@dxos/plugin-assistant 0.8.4-main.1da679c → 0.8.4-main.21d9917
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-WP3G5GLG.mjs +31 -0
- package/dist/lib/browser/BlueprintArticle-WP3G5GLG.mjs.map +7 -0
- package/dist/lib/browser/ChatCompanion-GFSJZTOT.mjs +153 -0
- package/dist/lib/browser/ChatCompanion-GFSJZTOT.mjs.map +7 -0
- package/dist/lib/browser/ChatContainer-IHAPBIZE.mjs +72 -0
- package/dist/lib/browser/ChatContainer-IHAPBIZE.mjs.map +7 -0
- package/dist/lib/browser/ChatDialog-EGRMPCTL.mjs +85 -0
- package/dist/lib/browser/ChatDialog-EGRMPCTL.mjs.map +7 -0
- package/dist/lib/browser/PromptArticle-K362ZPAE.mjs +53 -0
- package/dist/lib/browser/PromptArticle-K362ZPAE.mjs.map +7 -0
- package/dist/lib/browser/ai-service-5GUDOEWF.mjs +21 -0
- package/dist/lib/browser/ai-service-5GUDOEWF.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-DSNH2OMY.mjs +212 -0
- package/dist/lib/browser/app-graph-builder-DSNH2OMY.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-DGHH7MUU.mjs +14 -0
- package/dist/lib/browser/blueprints/index.mjs +12 -0
- package/dist/lib/browser/chunk-A75V4MOQ.mjs +1832 -0
- package/dist/lib/browser/chunk-A75V4MOQ.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-ML3QCFKA.mjs +265 -0
- package/dist/lib/browser/chunk-ML3QCFKA.mjs.map +7 -0
- package/dist/lib/browser/chunk-MRJVYGLU.mjs +208 -0
- package/dist/lib/browser/chunk-MRJVYGLU.mjs.map +7 -0
- package/dist/lib/browser/chunk-V772AMZM.mjs +250 -0
- package/dist/lib/browser/chunk-V772AMZM.mjs.map +7 -0
- package/dist/lib/browser/chunk-WGQTU6UJ.mjs +41 -0
- package/dist/lib/browser/chunk-WGQTU6UJ.mjs.map +7 -0
- package/dist/lib/browser/edge-model-resolver-26BOY6HY.mjs +20 -0
- package/dist/lib/browser/edge-model-resolver-26BOY6HY.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +229 -216
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/local-model-resolver-ZFIM6GGV.mjs +19 -0
- package/dist/lib/browser/local-model-resolver-ZFIM6GGV.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-7XJLBRQY.mjs +132 -0
- package/dist/lib/browser/operation-resolver-7XJLBRQY.mjs.map +7 -0
- package/dist/lib/browser/react-surface-S7SBFOSW.mjs +109 -0
- package/dist/lib/browser/react-surface-S7SBFOSW.mjs.map +7 -0
- package/dist/lib/browser/repair-6QGAKOVM.mjs +54 -0
- package/dist/lib/browser/repair-6QGAKOVM.mjs.map +7 -0
- package/dist/lib/browser/settings-4ZDLUMYE.mjs +32 -0
- package/dist/lib/browser/settings-4ZDLUMYE.mjs.map +7 -0
- package/dist/lib/browser/state-AN6336ZX.mjs +26 -0
- package/dist/lib/browser/state-AN6336ZX.mjs.map +7 -0
- package/dist/lib/browser/toolkit-7AVTEPMA.mjs +18 -0
- package/dist/lib/browser/toolkit-7AVTEPMA.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +8 -4
- package/dist/lib/node-esm/BlueprintArticle-WZ76E2C4.mjs +32 -0
- package/dist/lib/node-esm/BlueprintArticle-WZ76E2C4.mjs.map +7 -0
- package/dist/lib/node-esm/ChatCompanion-UR7DXZ54.mjs +154 -0
- package/dist/lib/node-esm/ChatCompanion-UR7DXZ54.mjs.map +7 -0
- package/dist/lib/node-esm/ChatContainer-YMLLGOZK.mjs +73 -0
- package/dist/lib/node-esm/ChatContainer-YMLLGOZK.mjs.map +7 -0
- package/dist/lib/node-esm/ChatDialog-D24WJPK4.mjs +86 -0
- package/dist/lib/node-esm/ChatDialog-D24WJPK4.mjs.map +7 -0
- package/dist/lib/node-esm/PromptArticle-D4HAIIC6.mjs +54 -0
- package/dist/lib/node-esm/PromptArticle-D4HAIIC6.mjs.map +7 -0
- package/dist/lib/node-esm/ai-service-PXKKCFIF.mjs +22 -0
- package/dist/lib/node-esm/ai-service-PXKKCFIF.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-TJCUEXW5.mjs +213 -0
- package/dist/lib/node-esm/app-graph-builder-TJCUEXW5.mjs.map +7 -0
- package/dist/lib/node-esm/{blueprint-definition-B6UDX5U3.mjs → blueprint-definition-SEMDEIYG.mjs} +6 -4
- package/dist/lib/node-esm/blueprint-definition-SEMDEIYG.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-355W5B27.mjs +251 -0
- package/dist/lib/node-esm/chunk-355W5B27.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-4BERCIES.mjs +1833 -0
- package/dist/lib/node-esm/chunk-4BERCIES.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-DCA5QWQT.mjs +209 -0
- package/dist/lib/node-esm/chunk-DCA5QWQT.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-MSBPC4RJ.mjs +42 -0
- package/dist/lib/node-esm/chunk-MSBPC4RJ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-POWB2BPC.mjs +25 -0
- package/dist/lib/node-esm/chunk-POWB2BPC.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-ZRIPP7YF.mjs +267 -0
- package/dist/lib/node-esm/chunk-ZRIPP7YF.mjs.map +7 -0
- package/dist/lib/node-esm/edge-model-resolver-G5KMODPO.mjs +21 -0
- package/dist/lib/node-esm/edge-model-resolver-G5KMODPO.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +229 -216
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/local-model-resolver-KDZLYI7Y.mjs +20 -0
- package/dist/lib/node-esm/local-model-resolver-KDZLYI7Y.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-SX4WMNA7.mjs +133 -0
- package/dist/lib/node-esm/operation-resolver-SX4WMNA7.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-ZR6FXGLF.mjs +110 -0
- package/dist/lib/node-esm/react-surface-ZR6FXGLF.mjs.map +7 -0
- package/dist/lib/node-esm/repair-QJ7CQDKU.mjs +55 -0
- package/dist/lib/node-esm/repair-QJ7CQDKU.mjs.map +7 -0
- package/dist/lib/node-esm/settings-CQEOHR3R.mjs +33 -0
- package/dist/lib/node-esm/settings-CQEOHR3R.mjs.map +7 -0
- package/dist/lib/node-esm/state-HDON4REW.mjs +27 -0
- package/dist/lib/node-esm/state-HDON4REW.mjs.map +7 -0
- package/dist/lib/node-esm/toolkit-OWGCEKOO.mjs +19 -0
- package/dist/lib/node-esm/toolkit-OWGCEKOO.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 +209 -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 +5 -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 +21 -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 +6 -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 +12 -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 +17 -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 +5 -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 +23 -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 +2 -2
- package/dist/types/src/components/ChatCompanion.d.ts.map +1 -1
- package/dist/types/src/components/ChatContainer.d.ts +13 -5
- package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
- package/dist/types/src/components/ChatDialog.d.ts.map +1 -1
- 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 -8
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +133 -74
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/reducers.d.ts +5 -5
- package/dist/types/src/components/ChatThread/reducers.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/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 +116 -61
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +12 -2
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +117 -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 +116 -61
- 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 +10 -9
- 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} +2 -2
- 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 -2
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts +5 -4
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatProcessor.d.ts +4 -2
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts +4 -4
- 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 +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +3 -4
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/processor/index.d.ts +1 -0
- package/dist/types/src/processor/index.d.ts.map +1 -1
- package/dist/types/src/processor/presets.d.ts +1 -1
- package/dist/types/src/processor/presets.d.ts.map +1 -1
- package/dist/types/src/processor/processor.d.ts +19 -17
- 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/index.d.ts +0 -2
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-generator.d.ts +6 -5
- package/dist/types/src/testing/test-generator.d.ts.map +1 -1
- package/dist/types/src/testing/test-services.d.ts +2 -2
- package/dist/types/src/testing/test-services.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +244 -26
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +20 -20
- package/dist/types/src/types/Assistant.d.ts.map +1 -1
- package/dist/types/src/types/AssistantAction.d.ts +89 -101
- 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 +3 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +14 -216
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +118 -117
- package/src/AssistantPlugin.tsx +114 -146
- package/src/blueprints/assistant-blueprint.ts +62 -0
- package/src/blueprints/index.ts +12 -0
- package/src/capabilities/ai-service/ai-service.ts +29 -0
- package/src/capabilities/ai-service/index.ts +7 -0
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +180 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +60 -0
- package/src/capabilities/blueprint-definition/index.ts +8 -0
- package/src/capabilities/edge-model-resolver/edge-model-resolver.ts +32 -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 +37 -0
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +110 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +95 -0
- package/src/capabilities/repair/index.ts +7 -0
- package/src/capabilities/repair/repair.ts +63 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +30 -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 +26 -0
- package/src/components/AssistantSettings/AssistantSettings.tsx +13 -5
- package/src/components/BlueprintArticle.tsx +29 -0
- package/src/components/Chat/Chat.tsx +193 -151
- package/src/components/Chat/events.ts +7 -1
- package/src/components/ChatCompanion.tsx +143 -91
- package/src/components/ChatContainer.tsx +40 -30
- package/src/components/ChatDialog.tsx +13 -7
- package/src/components/ChatProgress/ChatProgress.tsx +4 -18
- package/src/components/ChatPrompt/ChatActions.tsx +3 -5
- package/src/components/ChatPrompt/ChatOptions.tsx +104 -99
- package/src/components/ChatPrompt/ChatReferences.tsx +7 -8
- package/src/components/ChatPrompt/ChatStatusIndicator.tsx +1 -1
- package/src/components/ChatThread/ChatThread.stories.tsx +62 -42
- package/src/components/ChatThread/ChatThread.tsx +29 -35
- package/src/components/ChatThread/Link.tsx +3 -3
- package/src/components/ChatThread/reducers.ts +6 -6
- package/src/components/ChatThread/registry.tsx +26 -41
- package/src/components/ChatThread/sync.test.ts +33 -18
- package/src/components/ChatThread/sync.ts +54 -13
- package/src/components/ChatThread/testing/thread.md +37 -0
- package/src/components/PromptArticle.tsx +50 -0
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +16 -8
- package/src/components/TemplateEditor/TemplateEditor.tsx +24 -12
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +17 -11
- package/src/components/TemplateEditor/TemplateForm.tsx +77 -30
- 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 +40 -49
- package/src/components/Toolbox/Toolbox.stories.tsx +11 -15
- package/src/components/Toolbox/Toolbox.tsx +18 -19
- 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 +2 -5
- package/src/functions/index.ts +3 -3
- package/src/functions/{list.ts → object-list.ts} +10 -7
- package/src/functions/{load.ts → object-load.ts} +15 -10
- package/src/functions/object-search.ts +46 -0
- package/src/hooks/index.ts +2 -2
- package/src/hooks/useBlueprintRegistry.ts +44 -19
- package/src/hooks/useChatProcessor.ts +25 -14
- package/src/hooks/useChatServices.ts +16 -17
- package/src/hooks/useChatToolbarActions.ts +121 -0
- package/src/hooks/useContextBinder.ts +21 -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 +2 -1
- package/src/meta.ts +11 -8
- package/src/processor/index.ts +1 -0
- package/src/processor/presets.ts +2 -2
- package/src/processor/processor.test.ts +19 -24
- package/src/processor/processor.ts +51 -78
- package/src/processor/update-name.ts +59 -0
- package/src/queue-logger.ts +8 -9
- package/src/testing/index.ts +0 -2
- package/src/testing/test-generator.ts +19 -14
- package/src/testing/test-services.ts +10 -14
- package/src/translations.ts +28 -16
- package/src/types/Assistant.ts +13 -12
- package/src/types/AssistantAction.ts +65 -52
- package/src/types/capabilities.ts +27 -0
- package/src/types/events.ts +11 -0
- package/src/types/index.ts +3 -1
- package/src/types/service.ts +25 -14
- package/dist/lib/browser/BlueprintContainer-6MZHBQ25.mjs +0 -29
- package/dist/lib/browser/BlueprintContainer-6MZHBQ25.mjs.map +0 -7
- package/dist/lib/browser/ChatCompanion-B4DLQE6Y.mjs +0 -124
- package/dist/lib/browser/ChatCompanion-B4DLQE6Y.mjs.map +0 -7
- package/dist/lib/browser/ChatContainer-Z7A3RKOY.mjs +0 -73
- package/dist/lib/browser/ChatContainer-Z7A3RKOY.mjs.map +0 -7
- package/dist/lib/browser/ChatDialog-PL5TSGD5.mjs +0 -86
- package/dist/lib/browser/ChatDialog-PL5TSGD5.mjs.map +0 -7
- package/dist/lib/browser/SequenceContainer-TF5QNXYM.mjs +0 -150
- package/dist/lib/browser/SequenceContainer-TF5QNXYM.mjs.map +0 -7
- package/dist/lib/browser/ai-service-4VESSFNB.mjs +0 -18
- package/dist/lib/browser/ai-service-4VESSFNB.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-BBDHBJXA.mjs +0 -153
- package/dist/lib/browser/app-graph-builder-BBDHBJXA.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-3SATLYJW.mjs +0 -12
- package/dist/lib/browser/chunk-BBT6KNXA.mjs +0 -165
- package/dist/lib/browser/chunk-BBT6KNXA.mjs.map +0 -7
- package/dist/lib/browser/chunk-JDI4FEKA.mjs +0 -299
- package/dist/lib/browser/chunk-JDI4FEKA.mjs.map +0 -7
- package/dist/lib/browser/chunk-O4LUJEDV.mjs +0 -20
- package/dist/lib/browser/chunk-O4LUJEDV.mjs.map +0 -7
- package/dist/lib/browser/chunk-PQI3MGDN.mjs +0 -169
- package/dist/lib/browser/chunk-PQI3MGDN.mjs.map +0 -7
- package/dist/lib/browser/chunk-SMIVXXAI.mjs +0 -202
- package/dist/lib/browser/chunk-SMIVXXAI.mjs.map +0 -7
- package/dist/lib/browser/chunk-TMKK6VCA.mjs +0 -216
- package/dist/lib/browser/chunk-TMKK6VCA.mjs.map +0 -7
- package/dist/lib/browser/chunk-YKODYEYR.mjs +0 -16
- package/dist/lib/browser/chunk-YKODYEYR.mjs.map +0 -7
- package/dist/lib/browser/chunk-YOBHCEEI.mjs +0 -1941
- package/dist/lib/browser/chunk-YOBHCEEI.mjs.map +0 -7
- package/dist/lib/browser/edge-model-resolver-6YWYDPTS.mjs +0 -18
- package/dist/lib/browser/edge-model-resolver-6YWYDPTS.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-MRZJU255.mjs +0 -112
- package/dist/lib/browser/intent-resolver-MRZJU255.mjs.map +0 -7
- package/dist/lib/browser/local-model-resolver-QXLLTV2H.mjs +0 -17
- package/dist/lib/browser/local-model-resolver-QXLLTV2H.mjs.map +0 -7
- package/dist/lib/browser/react-surface-UKMOARXR.mjs +0 -107
- package/dist/lib/browser/react-surface-UKMOARXR.mjs.map +0 -7
- package/dist/lib/browser/settings-4AJ34FKF.mjs +0 -23
- package/dist/lib/browser/settings-4AJ34FKF.mjs.map +0 -7
- package/dist/lib/browser/state-ABR7YSSA.mjs +0 -21
- package/dist/lib/browser/state-ABR7YSSA.mjs.map +0 -7
- package/dist/lib/browser/toolkit-U7SKGAIC.mjs +0 -191
- package/dist/lib/browser/toolkit-U7SKGAIC.mjs.map +0 -7
- package/dist/lib/node-esm/BlueprintContainer-MUHW5HNY.mjs +0 -30
- package/dist/lib/node-esm/BlueprintContainer-MUHW5HNY.mjs.map +0 -7
- package/dist/lib/node-esm/ChatCompanion-DK6FULBU.mjs +0 -125
- package/dist/lib/node-esm/ChatCompanion-DK6FULBU.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-7IN7ZICQ.mjs +0 -74
- package/dist/lib/node-esm/ChatContainer-7IN7ZICQ.mjs.map +0 -7
- package/dist/lib/node-esm/ChatDialog-LPE653RZ.mjs +0 -87
- package/dist/lib/node-esm/ChatDialog-LPE653RZ.mjs.map +0 -7
- package/dist/lib/node-esm/SequenceContainer-UXOVZPZO.mjs +0 -151
- package/dist/lib/node-esm/SequenceContainer-UXOVZPZO.mjs.map +0 -7
- package/dist/lib/node-esm/ai-service-I5JU4JN2.mjs +0 -19
- package/dist/lib/node-esm/ai-service-I5JU4JN2.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-EMR5JF6Z.mjs +0 -154
- package/dist/lib/node-esm/app-graph-builder-EMR5JF6Z.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-4WLFSXZG.mjs +0 -170
- package/dist/lib/node-esm/chunk-4WLFSXZG.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5MYWJPYA.mjs +0 -167
- package/dist/lib/node-esm/chunk-5MYWJPYA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7YOGZI66.mjs +0 -203
- package/dist/lib/node-esm/chunk-7YOGZI66.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-FHRJMZ7L.mjs +0 -17
- package/dist/lib/node-esm/chunk-FHRJMZ7L.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GCNF3CQU.mjs +0 -217
- package/dist/lib/node-esm/chunk-GCNF3CQU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-H3ZC4UL7.mjs +0 -300
- package/dist/lib/node-esm/chunk-H3ZC4UL7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-VFY2JG62.mjs +0 -22
- package/dist/lib/node-esm/chunk-VFY2JG62.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-X2YUKRBE.mjs +0 -1942
- package/dist/lib/node-esm/chunk-X2YUKRBE.mjs.map +0 -7
- package/dist/lib/node-esm/edge-model-resolver-A7B6QHLL.mjs +0 -19
- package/dist/lib/node-esm/edge-model-resolver-A7B6QHLL.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-CIXO3KMY.mjs +0 -113
- package/dist/lib/node-esm/intent-resolver-CIXO3KMY.mjs.map +0 -7
- package/dist/lib/node-esm/local-model-resolver-JCYDHAZY.mjs +0 -18
- package/dist/lib/node-esm/local-model-resolver-JCYDHAZY.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-5NDJAWA2.mjs +0 -108
- package/dist/lib/node-esm/react-surface-5NDJAWA2.mjs.map +0 -7
- package/dist/lib/node-esm/settings-K2QW4ATZ.mjs +0 -24
- package/dist/lib/node-esm/settings-K2QW4ATZ.mjs.map +0 -7
- package/dist/lib/node-esm/state-6UHESJI5.mjs +0 -22
- package/dist/lib/node-esm/state-6UHESJI5.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-LNLRBVDU.mjs +0 -192
- package/dist/lib/node-esm/toolkit-LNLRBVDU.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/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 -267
- 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/execution-graph/execution-graph.d.ts +0 -21
- package/dist/types/src/execution-graph/execution-graph.d.ts.map +0 -1
- package/dist/types/src/execution-graph/index.d.ts +0 -2
- package/dist/types/src/execution-graph/index.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/useExecutionGraph.d.ts +0 -6
- package/dist/types/src/hooks/useExecutionGraph.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/stories/Chat.stories.d.ts +0 -31
- package/dist/types/src/stories/Chat.stories.d.ts.map +0 -1
- package/dist/types/src/stories/components/BlueprintContainer.d.ts +0 -4
- package/dist/types/src/stories/components/BlueprintContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/ChatContainer.d.ts +0 -4
- package/dist/types/src/stories/components/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/ChessContainer.d.ts +0 -4
- package/dist/types/src/stories/components/ChessContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/CommentsContainer.d.ts +0 -4
- package/dist/types/src/stories/components/CommentsContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/DebugCard.d.ts +0 -8
- package/dist/types/src/stories/components/DebugCard.d.ts.map +0 -1
- package/dist/types/src/stories/components/GraphContainer.d.ts +0 -6
- package/dist/types/src/stories/components/GraphContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/InvocationsContainer.d.ts +0 -4
- package/dist/types/src/stories/components/InvocationsContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/LoggingContainer.d.ts +0 -7
- package/dist/types/src/stories/components/LoggingContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/MessageContainer.d.ts +0 -4
- package/dist/types/src/stories/components/MessageContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/ProjectContainer.d.ts +0 -4
- package/dist/types/src/stories/components/ProjectContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/PromptContainer.d.ts +0 -6
- package/dist/types/src/stories/components/PromptContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/ResearchInputStack.d.ts +0 -4
- package/dist/types/src/stories/components/ResearchInputStack.d.ts.map +0 -1
- package/dist/types/src/stories/components/ResearchOutputStack.d.ts +0 -4
- package/dist/types/src/stories/components/ResearchOutputStack.d.ts.map +0 -1
- package/dist/types/src/stories/components/TasksContainer.d.ts +0 -4
- package/dist/types/src/stories/components/TasksContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/TokenManagerContainer.d.ts +0 -3
- package/dist/types/src/stories/components/TokenManagerContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/TriggersContainer.d.ts +0 -3
- package/dist/types/src/stories/components/TriggersContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/index.d.ts +0 -17
- package/dist/types/src/stories/components/index.d.ts.map +0 -1
- package/dist/types/src/stories/components/types.d.ts +0 -7
- package/dist/types/src/stories/components/types.d.ts.map +0 -1
- package/dist/types/src/stories/testing/data.d.ts +0 -9
- package/dist/types/src/stories/testing/data.d.ts.map +0 -1
- package/dist/types/src/stories/testing/index.d.ts +0 -3
- package/dist/types/src/stories/testing/index.d.ts.map +0 -1
- package/dist/types/src/stories/testing/schema.d.ts +0 -7
- package/dist/types/src/stories/testing/schema.d.ts.map +0 -1
- package/dist/types/src/stories/testing/testing.d.ts +0 -48
- package/dist/types/src/stories/testing/testing.d.ts.map +0 -1
- package/dist/types/src/testing/test-data.d.ts +0 -14
- package/dist/types/src/testing/test-data.d.ts.map +0 -1
- package/dist/types/src/testing/test-functions.d.ts +0 -6
- package/dist/types/src/testing/test-functions.d.ts.map +0 -1
- package/src/capabilities/ai-service.ts +0 -26
- package/src/capabilities/app-graph-builder.ts +0 -162
- package/src/capabilities/blueprint-definition.ts +0 -61
- package/src/capabilities/capabilities.ts +0 -18
- package/src/capabilities/edge-model-resolver.ts +0 -25
- package/src/capabilities/intent-resolver.ts +0 -94
- 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 -163
- package/src/components/BlueprintContainer.tsx +0 -24
- package/src/components/PromptSettings.tsx +0 -90
- package/src/components/SequenceContainer.tsx +0 -131
- package/src/components/SequenceEditor/SequenceEditor.stories.tsx +0 -33
- 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/index.ts +0 -5
- package/src/components/Toolbar/useChatToolbarActions.ts +0 -126
- package/src/events.ts +0 -11
- package/src/execution-graph/execution-graph.ts +0 -211
- package/src/execution-graph/index.ts +0 -5
- package/src/functions/analysis.ts +0 -20
- package/src/hooks/useExecutionGraph.ts +0 -20
- package/src/hooks/useItemTypes.ts +0 -37
- package/src/stories/Chat.stories.tsx +0 -804
- package/src/stories/components/BlueprintContainer.tsx +0 -34
- package/src/stories/components/ChatContainer.tsx +0 -74
- package/src/stories/components/ChessContainer.tsx +0 -17
- package/src/stories/components/CommentsContainer.tsx +0 -25
- package/src/stories/components/DebugCard.tsx +0 -61
- package/src/stories/components/GraphContainer.tsx +0 -119
- package/src/stories/components/InvocationsContainer.tsx +0 -17
- package/src/stories/components/LoggingContainer.tsx +0 -33
- package/src/stories/components/MessageContainer.tsx +0 -22
- package/src/stories/components/ProjectContainer.tsx +0 -17
- package/src/stories/components/PromptContainer.tsx +0 -52
- package/src/stories/components/ResearchInputStack.tsx +0 -30
- package/src/stories/components/ResearchOutputStack.tsx +0 -29
- package/src/stories/components/TasksContainer.tsx +0 -49
- package/src/stories/components/TokenManagerContainer.tsx +0 -14
- package/src/stories/components/TriggersContainer.tsx +0 -12
- package/src/stories/components/index.ts +0 -21
- package/src/stories/components/types.ts +0 -11
- package/src/stories/testing/data.ts +0 -142
- package/src/stories/testing/index.ts +0 -6
- package/src/stories/testing/schema.ts +0 -17
- package/src/stories/testing/testing.tsx +0 -284
- package/src/testing/test-data.ts +0 -255
- package/src/testing/test-functions.ts +0 -16
- /package/dist/lib/browser/{blueprint-definition-3SATLYJW.mjs.map → blueprint-definition-DGHH7MUU.mjs.map} +0 -0
- /package/dist/lib/{node-esm/blueprint-definition-B6UDX5U3.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,34 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { Blueprint } from '@dxos/blueprints';
|
|
8
|
-
import { Filter, Obj } from '@dxos/echo';
|
|
9
|
-
import { useQuery } from '@dxos/react-client/echo';
|
|
10
|
-
import { Toolbar, useTranslation } from '@dxos/react-ui';
|
|
11
|
-
import { descriptionMessage, mx } from '@dxos/react-ui-theme';
|
|
12
|
-
|
|
13
|
-
import { TemplateEditor } from '../../components';
|
|
14
|
-
import { meta } from '../../meta';
|
|
15
|
-
|
|
16
|
-
import { type ComponentProps } from './types';
|
|
17
|
-
|
|
18
|
-
export const BlueprintContainer = ({ space }: ComponentProps) => {
|
|
19
|
-
const [blueprint] = useQuery(space, Filter.type(Blueprint.Blueprint));
|
|
20
|
-
const { t } = useTranslation(meta.id);
|
|
21
|
-
|
|
22
|
-
return !blueprint?.instructions ? (
|
|
23
|
-
<p className={mx(descriptionMessage, 'm-trimLg')}>{t('no blueprint message')}</p>
|
|
24
|
-
) : (
|
|
25
|
-
<div className='flex flex-col h-full'>
|
|
26
|
-
<Toolbar.Root classNames='density-coarse border-b border-subduedSeparator'>
|
|
27
|
-
<h2>{Obj.getLabel(blueprint)}</h2>
|
|
28
|
-
<div className='flex-1' />
|
|
29
|
-
<Toolbar.IconButton icon='ph--arrow-clockwise--regular' iconOnly label='Refresh' />
|
|
30
|
-
</Toolbar.Root>
|
|
31
|
-
<TemplateEditor id={blueprint.id} template={blueprint.instructions} />
|
|
32
|
-
</div>
|
|
33
|
-
);
|
|
34
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { useCallback } from 'react';
|
|
6
|
-
|
|
7
|
-
import { Filter } from '@dxos/echo';
|
|
8
|
-
import { useQuery } from '@dxos/react-client/echo';
|
|
9
|
-
import { IconButton, Popover } from '@dxos/react-ui';
|
|
10
|
-
import { StackItem } from '@dxos/react-ui-stack';
|
|
11
|
-
|
|
12
|
-
import { Chat, Toolbar } from '../../components';
|
|
13
|
-
import { useBlueprintRegistry, useChatProcessor, useChatServices } from '../../hooks';
|
|
14
|
-
import { useOnline, usePresets } from '../../hooks';
|
|
15
|
-
import { Assistant } from '../../types';
|
|
16
|
-
|
|
17
|
-
import { LoggingContainer } from './LoggingContainer';
|
|
18
|
-
import { type ComponentProps } from './types';
|
|
19
|
-
|
|
20
|
-
export const ChatContainer = ({ space, onEvent }: ComponentProps) => {
|
|
21
|
-
const [online, setOnline] = useOnline();
|
|
22
|
-
const { preset, ...chatProps } = usePresets(online);
|
|
23
|
-
|
|
24
|
-
const chats = useQuery(space, Filter.type(Assistant.Chat));
|
|
25
|
-
const chat = chats.at(-1);
|
|
26
|
-
|
|
27
|
-
const blueprintRegistry = useBlueprintRegistry();
|
|
28
|
-
const services = useChatServices({ space, chat });
|
|
29
|
-
const processor = useChatProcessor({ chat, preset, services, blueprintRegistry });
|
|
30
|
-
|
|
31
|
-
const handleUpdateName = useCallback(() => {
|
|
32
|
-
if (chat) {
|
|
33
|
-
void processor?.updateName(chat);
|
|
34
|
-
}
|
|
35
|
-
}, [processor, chat]);
|
|
36
|
-
|
|
37
|
-
return !chat || !processor ? null : (
|
|
38
|
-
<StackItem.Content toolbar>
|
|
39
|
-
<div role='none' className='flex items-center gap-2 pie-2'>
|
|
40
|
-
<Toolbar classNames='is-min grow' chat={chat} onReset={() => onEvent?.('reset')} />
|
|
41
|
-
<Popover.Root>
|
|
42
|
-
<Popover.Trigger asChild>
|
|
43
|
-
<IconButton icon='ph--sort-ascending--regular' label='Logs' variant='ghost' />
|
|
44
|
-
</Popover.Trigger>
|
|
45
|
-
<Popover.Portal>
|
|
46
|
-
<Popover.Content>
|
|
47
|
-
<LoggingContainer space={space} />
|
|
48
|
-
<Popover.Arrow />
|
|
49
|
-
</Popover.Content>
|
|
50
|
-
</Popover.Portal>
|
|
51
|
-
</Popover.Root>
|
|
52
|
-
<div className='truncate text-subdued'>{chat.name ?? 'no name'}</div>
|
|
53
|
-
<IconButton icon='ph--arrow-clockwise--regular' iconOnly label='Update name' onClick={handleUpdateName} />
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
<div role='none' className='relative'>
|
|
57
|
-
<Chat.Root chat={chat} processor={processor} classNames='absolute inset-0'>
|
|
58
|
-
<Chat.Thread />
|
|
59
|
-
{/* <ChatProgress chat={chat} /> */}
|
|
60
|
-
<div className='flex justify-center p-4'>
|
|
61
|
-
<Chat.Prompt
|
|
62
|
-
{...chatProps}
|
|
63
|
-
outline
|
|
64
|
-
classNames='max-is-prose'
|
|
65
|
-
preset={preset?.id}
|
|
66
|
-
online={online}
|
|
67
|
-
onOnlineChange={setOnline}
|
|
68
|
-
/>
|
|
69
|
-
</div>
|
|
70
|
-
</Chat.Root>
|
|
71
|
-
</div>
|
|
72
|
-
</StackItem.Content>
|
|
73
|
-
);
|
|
74
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { type FC } from 'react';
|
|
6
|
-
|
|
7
|
-
import { Surface } from '@dxos/app-framework';
|
|
8
|
-
import { Filter } from '@dxos/echo';
|
|
9
|
-
import { Chess } from '@dxos/plugin-chess';
|
|
10
|
-
import { useQuery } from '@dxos/react-client/echo';
|
|
11
|
-
|
|
12
|
-
import type { ComponentProps } from './types';
|
|
13
|
-
|
|
14
|
-
export const ChessContainer: FC<ComponentProps> = ({ space }) => {
|
|
15
|
-
const chess = useQuery(space, Filter.type(Chess.Game));
|
|
16
|
-
return <Surface role='section' limit={1} data={{ subject: chess.at(-1) }} />;
|
|
17
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { useMemo } from 'react';
|
|
6
|
-
|
|
7
|
-
import { Surface } from '@dxos/app-framework';
|
|
8
|
-
import { Filter, useQuery } from '@dxos/react-client/echo';
|
|
9
|
-
|
|
10
|
-
import { useContextBinder } from '../../hooks';
|
|
11
|
-
import { Assistant } from '../../types';
|
|
12
|
-
|
|
13
|
-
import { type ComponentProps } from './types';
|
|
14
|
-
|
|
15
|
-
export const CommentsContainer = ({ space }: ComponentProps) => {
|
|
16
|
-
const chats = useQuery(space, Filter.type(Assistant.Chat));
|
|
17
|
-
const binder = useContextBinder(chats.at(-1));
|
|
18
|
-
const object = binder?.objects.value[0]?.target;
|
|
19
|
-
const data = useMemo(() => ({ subject: 'comments', companionTo: object }), [object]);
|
|
20
|
-
if (!object) {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return <Surface role='article' data={data} />;
|
|
25
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { Obj, type Relation } from '@dxos/echo';
|
|
8
|
-
import { type ObjectId } from '@dxos/keys';
|
|
9
|
-
|
|
10
|
-
interface DebugCardProps {
|
|
11
|
-
obj: Obj.Any | Relation.Any;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const DebugCard = ({ obj }: DebugCardProps) => {
|
|
15
|
-
return (
|
|
16
|
-
<div className='border border-separator rounded-lg p-4 bg-surface'>
|
|
17
|
-
<div className='flex items-center justify-between mb-2'>
|
|
18
|
-
<h3 className='font-medium text-lg'>{Obj.getLabel(obj)}</h3>
|
|
19
|
-
<p className='flex gap-2 items-center'>
|
|
20
|
-
<span className='text-sm font-mono dx-text-hue' data-hue={colors[insecureIdHash(obj.id, colors.length)]}>
|
|
21
|
-
#{obj.id.slice(-6)}
|
|
22
|
-
</span>
|
|
23
|
-
<span className='text-sm text-description bg-neutral-800 px-2 py-1 rounded'>{Obj.getTypename(obj)}</span>
|
|
24
|
-
</p>
|
|
25
|
-
</div>
|
|
26
|
-
<details className='group'>
|
|
27
|
-
<summary className='cursor-pointer text-sm text-primary hover:text-primaryHover'>View JSON</summary>
|
|
28
|
-
<pre className='mt-2 text-xs p-3 rounded overflow-x-auto'>{JSON.stringify(obj, null, 2)}</pre>
|
|
29
|
-
</details>
|
|
30
|
-
</div>
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const insecureIdHash = (id: ObjectId, modulo: number) => {
|
|
35
|
-
let hash = 0;
|
|
36
|
-
for (let i = 0; i < id.length; i++) {
|
|
37
|
-
const num = id.charCodeAt(i);
|
|
38
|
-
hash = (hash ^ num) | 0;
|
|
39
|
-
}
|
|
40
|
-
return Math.abs(hash) % modulo;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const colors = [
|
|
44
|
-
'red',
|
|
45
|
-
'orange',
|
|
46
|
-
'amber',
|
|
47
|
-
'yellow',
|
|
48
|
-
'lime',
|
|
49
|
-
'green',
|
|
50
|
-
'emerald',
|
|
51
|
-
'teal',
|
|
52
|
-
'cyan',
|
|
53
|
-
'sky',
|
|
54
|
-
'blue',
|
|
55
|
-
'indigo',
|
|
56
|
-
'violet',
|
|
57
|
-
'purple',
|
|
58
|
-
'fuchsia',
|
|
59
|
-
'pink',
|
|
60
|
-
'rose',
|
|
61
|
-
];
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Match } from 'effect';
|
|
6
|
-
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
7
|
-
|
|
8
|
-
import { ResearchGraph } from '@dxos/assistant-testing';
|
|
9
|
-
import { Filter, Query } from '@dxos/echo';
|
|
10
|
-
import { D3ForceGraph, useGraphModel } from '@dxos/plugin-explorer';
|
|
11
|
-
import { useQuery } from '@dxos/react-client/echo';
|
|
12
|
-
import { IconButton, Toolbar } from '@dxos/react-ui';
|
|
13
|
-
import { ChatEditor, type ChatEditorController, type ChatEditorProps } from '@dxos/react-ui-chat';
|
|
14
|
-
import { useMatcherExtension } from '@dxos/react-ui-components';
|
|
15
|
-
import { type Expression, QueryParser, createFilter } from '@dxos/react-ui-components';
|
|
16
|
-
import { SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';
|
|
17
|
-
import { mx } from '@dxos/react-ui-theme';
|
|
18
|
-
|
|
19
|
-
import { useFlush } from '../../hooks';
|
|
20
|
-
|
|
21
|
-
import { type ComponentProps } from './types';
|
|
22
|
-
|
|
23
|
-
export const GraphContainer = ({ space }: ComponentProps) => {
|
|
24
|
-
const [ast, setAst] = useState<Expression | undefined>();
|
|
25
|
-
const [filter, setFilter] = useState<Filter.Any>();
|
|
26
|
-
const [open, setOpen] = useState(false);
|
|
27
|
-
|
|
28
|
-
const [researchGraph] = useQuery(space, Query.type(ResearchGraph));
|
|
29
|
-
const queue = researchGraph?.queue.target;
|
|
30
|
-
|
|
31
|
-
const model = useGraphModel(space, undefined, undefined, queue);
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
model?.setFilter(filter ?? Filter.everything());
|
|
34
|
-
}, [model, filter]);
|
|
35
|
-
|
|
36
|
-
const handleSubmit = useCallback<NonNullable<ChatEditorProps['onSubmit']>>(
|
|
37
|
-
(text) => {
|
|
38
|
-
try {
|
|
39
|
-
const parser = new QueryParser(text);
|
|
40
|
-
const ast = parser.parse();
|
|
41
|
-
setAst(ast);
|
|
42
|
-
const filter = createFilter(ast);
|
|
43
|
-
setFilter(filter);
|
|
44
|
-
setOpen(true);
|
|
45
|
-
} catch {
|
|
46
|
-
// TODO(mykola): Make hybrid search.
|
|
47
|
-
const filter = Filter.text(text, { type: 'vector' });
|
|
48
|
-
setFilter(filter);
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
[space],
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<div className={mx('relative grid h-full', open && 'grid-rows-[min-content_1fr]')}>
|
|
56
|
-
<SearchBar space={space} onSubmit={handleSubmit} />
|
|
57
|
-
<D3ForceGraph classNames='min-h-[50vh]' model={model} />
|
|
58
|
-
|
|
59
|
-
{/* TODO(burdon): Create component with context state for story. */}
|
|
60
|
-
{(open && (
|
|
61
|
-
<div className='absolute left-2 right-2 bottom-2 h-[8rem] flex overflow-hidden bg-baseSurface border border-subduedSeparator'>
|
|
62
|
-
<SyntaxHighlighter language='json' classNames='text-sm'>
|
|
63
|
-
{JSON.stringify({ ast, filter }, null, 2)}
|
|
64
|
-
</SyntaxHighlighter>
|
|
65
|
-
<div className='absolute bottom-1 right-1'>
|
|
66
|
-
<IconButton variant='ghost' icon='ph--x--regular' iconOnly label='Close' onClick={() => setOpen(false)} />
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
)) || (
|
|
70
|
-
<div className='absolute bottom-3 right-3'>
|
|
71
|
-
<IconButton
|
|
72
|
-
variant='ghost'
|
|
73
|
-
icon='ph--arrow-line-up--regular'
|
|
74
|
-
iconOnly
|
|
75
|
-
label='Open'
|
|
76
|
-
onClick={() => setOpen(true)}
|
|
77
|
-
/>
|
|
78
|
-
</div>
|
|
79
|
-
)}
|
|
80
|
-
</div>
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export const SearchBar = ({ space, onSubmit }: ComponentProps & Pick<ChatEditorProps, 'onSubmit'>) => {
|
|
85
|
-
const { state: flushState, handleFlush } = useFlush(space);
|
|
86
|
-
const extensions = useMatcherExtension(space);
|
|
87
|
-
const editorRef = useRef<ChatEditorController>(null);
|
|
88
|
-
|
|
89
|
-
return (
|
|
90
|
-
<Toolbar.Root classNames='density-coarse border-b border-subduedSeparator'>
|
|
91
|
-
<ChatEditor
|
|
92
|
-
ref={editorRef}
|
|
93
|
-
autoFocus
|
|
94
|
-
placeholder='Search'
|
|
95
|
-
extensions={extensions}
|
|
96
|
-
fireIfEmpty
|
|
97
|
-
onSubmit={onSubmit}
|
|
98
|
-
/>
|
|
99
|
-
<Toolbar.IconButton
|
|
100
|
-
icon='ph--magnifying-glass--regular'
|
|
101
|
-
iconOnly
|
|
102
|
-
label='Search'
|
|
103
|
-
onClick={() => onSubmit?.(editorRef.current?.getText() ?? '')}
|
|
104
|
-
/>
|
|
105
|
-
<Toolbar.IconButton
|
|
106
|
-
disabled={flushState === 'flushing'}
|
|
107
|
-
icon={Match.value(flushState).pipe(
|
|
108
|
-
Match.when('idle', () => 'ph--floppy-disk--regular'),
|
|
109
|
-
Match.when('flushing', () => 'ph--spinner--regular'),
|
|
110
|
-
Match.when('flushed', () => 'ph--check--regular'),
|
|
111
|
-
Match.exhaustive,
|
|
112
|
-
)}
|
|
113
|
-
iconOnly
|
|
114
|
-
label='flush'
|
|
115
|
-
onClick={handleFlush}
|
|
116
|
-
/>
|
|
117
|
-
</Toolbar.Root>
|
|
118
|
-
);
|
|
119
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { InvocationTraceContainer } from '@dxos/devtools';
|
|
8
|
-
|
|
9
|
-
import type { ComponentProps } from './types';
|
|
10
|
-
|
|
11
|
-
export const InvocationsContainer = ({ space }: ComponentProps) => {
|
|
12
|
-
return (
|
|
13
|
-
<div className='flex bs-full min-bs-[20rem] items-center justify-center'>
|
|
14
|
-
<InvocationTraceContainer space={space} />
|
|
15
|
-
</div>
|
|
16
|
-
);
|
|
17
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { Filter } from '@dxos/echo';
|
|
8
|
-
import { Obj } from '@dxos/echo';
|
|
9
|
-
import { InvocationTraceStartEvent } from '@dxos/functions';
|
|
10
|
-
import { type Queue, useQuery, useQueue } from '@dxos/react-client/echo';
|
|
11
|
-
import { Timeline } from '@dxos/react-ui-components';
|
|
12
|
-
|
|
13
|
-
import { useExecutionGraph } from '../../hooks';
|
|
14
|
-
import { Assistant } from '../../types';
|
|
15
|
-
|
|
16
|
-
import { type ComponentProps } from './types';
|
|
17
|
-
|
|
18
|
-
export const LoggingContainer = ({ space, traceQueue }: ComponentProps & { traceQueue?: Queue }) => {
|
|
19
|
-
const [chat] = useQuery(space, Filter.type(Assistant.Chat));
|
|
20
|
-
const invocations =
|
|
21
|
-
useQueue(space.properties?.invocationTraceQueue?.dxn)?.objects.filter(Obj.instanceOf(InvocationTraceStartEvent)) ??
|
|
22
|
-
[];
|
|
23
|
-
const { branches, commits } = useExecutionGraph(
|
|
24
|
-
traceQueue ?? invocations?.at(-1)?.invocationTraceQueue?.target ?? chat?.traceQueue?.target,
|
|
25
|
-
true,
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<div className='flex flex-col h-full'>
|
|
30
|
-
<Timeline branches={branches} commits={commits} />
|
|
31
|
-
</div>
|
|
32
|
-
);
|
|
33
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { useMemo } from 'react';
|
|
6
|
-
|
|
7
|
-
import { Surface, useCapability } from '@dxos/app-framework';
|
|
8
|
-
import { Filter } from '@dxos/echo';
|
|
9
|
-
import { InboxCapabilities } from '@dxos/plugin-inbox';
|
|
10
|
-
import { Mailbox } from '@dxos/plugin-inbox/types';
|
|
11
|
-
import { fullyQualifiedId, useQuery } from '@dxos/react-client/echo';
|
|
12
|
-
|
|
13
|
-
import { type ComponentProps } from './types';
|
|
14
|
-
|
|
15
|
-
export const MessageContainer = ({ space }: ComponentProps) => {
|
|
16
|
-
const [mailbox] = useQuery(space, Filter.type(Mailbox.Mailbox));
|
|
17
|
-
const state = useCapability(InboxCapabilities.MailboxState);
|
|
18
|
-
const message = mailbox && state[fullyQualifiedId(mailbox)];
|
|
19
|
-
const data = useMemo(() => ({ subject: message ?? 'message', companionTo: mailbox }), [message, mailbox]);
|
|
20
|
-
|
|
21
|
-
return <Surface role='section' data={data} limit={1} />;
|
|
22
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { type FC } from 'react';
|
|
6
|
-
|
|
7
|
-
import { Surface } from '@dxos/app-framework';
|
|
8
|
-
import { Filter } from '@dxos/echo';
|
|
9
|
-
import { useQuery } from '@dxos/react-client/echo';
|
|
10
|
-
import { DataType } from '@dxos/schema';
|
|
11
|
-
|
|
12
|
-
import type { ComponentProps } from './types';
|
|
13
|
-
|
|
14
|
-
export const ProjectContainer: FC<ComponentProps> = ({ space }) => {
|
|
15
|
-
const projects = useQuery(space, Filter.type(DataType.Project));
|
|
16
|
-
return <Surface role='article' limit={1} data={{ subject: projects.at(-1) }} />;
|
|
17
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Predicate } from 'effect';
|
|
6
|
-
import React from 'react';
|
|
7
|
-
|
|
8
|
-
import { Prompt } from '@dxos/blueprints';
|
|
9
|
-
import { Filter } from '@dxos/echo';
|
|
10
|
-
import { type Space, createDocAccessor, useQuery } from '@dxos/react-client/echo';
|
|
11
|
-
import { type ThemedClassName, useThemeContext } from '@dxos/react-ui';
|
|
12
|
-
import {
|
|
13
|
-
createBasicExtensions,
|
|
14
|
-
createDataExtensions,
|
|
15
|
-
createMarkdownExtensions,
|
|
16
|
-
createThemeExtensions,
|
|
17
|
-
useTextEditor,
|
|
18
|
-
} from '@dxos/react-ui-editor';
|
|
19
|
-
import { mx } from '@dxos/react-ui-theme';
|
|
20
|
-
|
|
21
|
-
export const PromptContainer = ({ space }: { space: Space }) => {
|
|
22
|
-
const [prompt] = useQuery(space, Filter.type(Prompt.Prompt));
|
|
23
|
-
if (!prompt) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
return (
|
|
27
|
-
<div style={{ minHeight: '300px' }}>
|
|
28
|
-
<PromptEditor prompt={prompt} />
|
|
29
|
-
</div>
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const PromptEditor = ({ prompt, classNames }: ThemedClassName<{ prompt: Prompt.Prompt }>) => {
|
|
34
|
-
const { themeMode } = useThemeContext();
|
|
35
|
-
const { parentRef } = useTextEditor(() => {
|
|
36
|
-
return {
|
|
37
|
-
initialValue: prompt.instructions ?? '',
|
|
38
|
-
extensions: [
|
|
39
|
-
createDataExtensions({ id: prompt.id, text: createDocAccessor(prompt, ['instructions']) }),
|
|
40
|
-
createBasicExtensions({
|
|
41
|
-
bracketMatching: false,
|
|
42
|
-
lineNumbers: true,
|
|
43
|
-
lineWrapping: true,
|
|
44
|
-
}),
|
|
45
|
-
createThemeExtensions({ themeMode }),
|
|
46
|
-
createMarkdownExtensions(),
|
|
47
|
-
].filter(Predicate.isTruthy),
|
|
48
|
-
};
|
|
49
|
-
}, [themeMode, prompt]);
|
|
50
|
-
|
|
51
|
-
return <div ref={parentRef} className={mx('bs-full overflow-hidden', classNames)} />;
|
|
52
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { Filter } from '@dxos/echo';
|
|
8
|
-
import { useQuery, useQueue } from '@dxos/react-client/echo';
|
|
9
|
-
|
|
10
|
-
import { ResearchInputQueue } from '../testing';
|
|
11
|
-
|
|
12
|
-
import { DebugCard } from './DebugCard';
|
|
13
|
-
import type { ComponentProps } from './types';
|
|
14
|
-
|
|
15
|
-
export const ResearchInputStack = ({ space }: ComponentProps) => {
|
|
16
|
-
const [researchInput] = useQuery(space, Filter.type(ResearchInputQueue));
|
|
17
|
-
const queue = useQueue(researchInput?.queue.dxn);
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<div className='p-4 overflow-y-auto h-full'>
|
|
21
|
-
<ul className='space-y-4 '>
|
|
22
|
-
{queue?.objects.map((object) => (
|
|
23
|
-
<li key={object.id}>
|
|
24
|
-
<DebugCard obj={object} />
|
|
25
|
-
</li>
|
|
26
|
-
))}
|
|
27
|
-
</ul>
|
|
28
|
-
</div>
|
|
29
|
-
);
|
|
30
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { Surface } from '@dxos/app-framework';
|
|
8
|
-
import { ResearchGraph } from '@dxos/assistant-testing';
|
|
9
|
-
import { Filter } from '@dxos/echo';
|
|
10
|
-
import { useQuery, useQueue } from '@dxos/react-client/echo';
|
|
11
|
-
|
|
12
|
-
import type { ComponentProps } from './types';
|
|
13
|
-
|
|
14
|
-
export const ResearchOutputStack = ({ space }: ComponentProps) => {
|
|
15
|
-
const [researchGraph] = useQuery(space, Filter.type(ResearchGraph));
|
|
16
|
-
const queue = useQueue(researchGraph?.queue.dxn);
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<div className='p-4 overflow-y-auto h-full'>
|
|
20
|
-
<ul className='space-y-4 '>
|
|
21
|
-
{queue?.objects.map((object) => (
|
|
22
|
-
<li key={object.id}>
|
|
23
|
-
<Surface role='card' data={{ subject: object }} limit={1} />
|
|
24
|
-
</li>
|
|
25
|
-
))}
|
|
26
|
-
</ul>
|
|
27
|
-
</div>
|
|
28
|
-
);
|
|
29
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { Filter, Obj } from '@dxos/echo';
|
|
8
|
-
import { Markdown } from '@dxos/plugin-markdown/types';
|
|
9
|
-
import { createDocAccessor, useQuery } from '@dxos/react-client/echo';
|
|
10
|
-
import { Toolbar, useThemeContext } from '@dxos/react-ui';
|
|
11
|
-
import {
|
|
12
|
-
Editor,
|
|
13
|
-
createBasicExtensions,
|
|
14
|
-
createDataExtensions,
|
|
15
|
-
createMarkdownExtensions,
|
|
16
|
-
createThemeExtensions,
|
|
17
|
-
outliner,
|
|
18
|
-
} from '@dxos/react-ui-editor';
|
|
19
|
-
|
|
20
|
-
import { type ComponentProps } from './types';
|
|
21
|
-
|
|
22
|
-
export const TasksContainer = ({ space }: ComponentProps) => {
|
|
23
|
-
const { themeMode } = useThemeContext();
|
|
24
|
-
const [document] = useQuery(space, Filter.type(Markdown.Document));
|
|
25
|
-
if (!document?.content.target) {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<>
|
|
31
|
-
<Toolbar.Root classNames='border-b border-subduedSeparator'>
|
|
32
|
-
<h2>{Obj.getLabel(document)}</h2>
|
|
33
|
-
</Toolbar.Root>
|
|
34
|
-
<Editor
|
|
35
|
-
id={document.id}
|
|
36
|
-
text={document.content.target}
|
|
37
|
-
classNames='h-full p-2 overflow-hidden'
|
|
38
|
-
extensions={[
|
|
39
|
-
// TODO(burdon): Create util.
|
|
40
|
-
createDataExtensions({ id: document.id, text: createDocAccessor(document.content.target, ['content']) }),
|
|
41
|
-
createBasicExtensions({ readOnly: false }),
|
|
42
|
-
createMarkdownExtensions(),
|
|
43
|
-
createThemeExtensions({ themeMode }),
|
|
44
|
-
outliner(),
|
|
45
|
-
]}
|
|
46
|
-
/>
|
|
47
|
-
</>
|
|
48
|
-
);
|
|
49
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { useMemo } from 'react';
|
|
6
|
-
|
|
7
|
-
import { Surface } from '@dxos/app-framework';
|
|
8
|
-
import { meta } from '@dxos/plugin-token-manager';
|
|
9
|
-
|
|
10
|
-
export const TokenManagerContainer = () => {
|
|
11
|
-
const data = useMemo(() => ({ subject: `${meta.id}/space-settings` }), []);
|
|
12
|
-
|
|
13
|
-
return <Surface role='article' data={data} limit={1} />;
|
|
14
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { Surface } from '@dxos/app-framework';
|
|
8
|
-
import { meta as automationMeta } from '@dxos/plugin-automation';
|
|
9
|
-
|
|
10
|
-
export const TriggersContainer = () => {
|
|
11
|
-
return <Surface role='article' data={{ subject: `${automationMeta.id}/space-settings-automation` }} />;
|
|
12
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
export * from './types';
|
|
6
|
-
|
|
7
|
-
export * from './BlueprintContainer';
|
|
8
|
-
export * from './ChatContainer';
|
|
9
|
-
export * from './ChessContainer';
|
|
10
|
-
export * from './CommentsContainer';
|
|
11
|
-
export * from './GraphContainer';
|
|
12
|
-
export * from './InvocationsContainer';
|
|
13
|
-
export * from './LoggingContainer';
|
|
14
|
-
export * from './MessageContainer';
|
|
15
|
-
export * from './ProjectContainer';
|
|
16
|
-
export * from './PromptContainer';
|
|
17
|
-
export * from './ResearchInputStack';
|
|
18
|
-
export * from './ResearchOutputStack';
|
|
19
|
-
export * from './TasksContainer';
|
|
20
|
-
export * from './TokenManagerContainer';
|
|
21
|
-
export * from './TriggersContainer';
|