@dxos/plugin-automation 0.7.4 → 0.7.5-labs.401163d
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/AutomationPanel-VW2XIUPU.mjs +8 -0
- package/dist/lib/browser/ChatContainer-OLRZNGWK.mjs +12 -0
- package/dist/lib/browser/ai-client-5CNY6JBF.mjs +22 -0
- package/dist/lib/browser/ai-client-5CNY6JBF.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-6H7MDCXE.mjs +197 -0
- package/dist/lib/browser/app-graph-builder-6H7MDCXE.mjs.map +7 -0
- package/dist/lib/browser/chunk-2H2EUYXL.mjs +15 -0
- package/dist/lib/browser/chunk-2H2EUYXL.mjs.map +7 -0
- package/dist/lib/browser/chunk-ITG6CBKL.mjs +1602 -0
- package/dist/lib/browser/chunk-ITG6CBKL.mjs.map +7 -0
- package/dist/lib/browser/chunk-MRBC5J4T.mjs +518 -0
- package/dist/lib/browser/chunk-MRBC5J4T.mjs.map +7 -0
- package/dist/lib/browser/chunk-NQFZ6XRX.mjs +243 -0
- package/dist/lib/browser/chunk-NQFZ6XRX.mjs.map +7 -0
- package/dist/lib/browser/chunk-Q4IMHYGH.mjs +150 -0
- package/dist/lib/browser/chunk-Q4IMHYGH.mjs.map +7 -0
- package/dist/lib/browser/{chunk-X5KMOH3I.mjs → chunk-R4JH4TLE.mjs} +6 -4
- package/dist/lib/browser/chunk-R4JH4TLE.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +157 -252
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-resolver-BWAXKT27.mjs +29 -0
- package/dist/lib/browser/intent-resolver-BWAXKT27.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-O6SHIBCA.mjs +58 -0
- package/dist/lib/browser/react-surface-O6SHIBCA.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +12 -3
- package/dist/lib/node/{meta.cjs → AutomationPanel-G6EDDYWW.cjs} +7 -11
- package/dist/lib/node/AutomationPanel-G6EDDYWW.cjs.map +7 -0
- package/dist/lib/node/ChatContainer-GRZDJIG5.cjs +33 -0
- package/dist/lib/node/ChatContainer-GRZDJIG5.cjs.map +7 -0
- package/dist/lib/node/ai-client-FKLPDELV.cjs +38 -0
- package/dist/lib/node/ai-client-FKLPDELV.cjs.map +7 -0
- package/dist/lib/node/app-graph-builder-7JMJLZIE.cjs +212 -0
- package/dist/lib/node/app-graph-builder-7JMJLZIE.cjs.map +7 -0
- package/dist/lib/node/chunk-CFBERLTN.cjs +1586 -0
- package/dist/lib/node/chunk-CFBERLTN.cjs.map +7 -0
- package/dist/lib/node/{chunk-DTJ7XVO2.cjs → chunk-EQYHOTGG.cjs} +11 -8
- package/dist/lib/node/chunk-EQYHOTGG.cjs.map +7 -0
- package/dist/lib/node/chunk-FQUY77HT.cjs +527 -0
- package/dist/lib/node/chunk-FQUY77HT.cjs.map +7 -0
- package/dist/lib/node/chunk-GB7245FH.cjs +173 -0
- package/dist/lib/node/chunk-GB7245FH.cjs.map +7 -0
- package/dist/lib/node/chunk-QXIHYOMF.cjs +267 -0
- package/dist/lib/node/chunk-QXIHYOMF.cjs.map +7 -0
- package/dist/lib/node/chunk-U5Z7LFWB.cjs +34 -0
- package/dist/lib/node/chunk-U5Z7LFWB.cjs.map +7 -0
- package/dist/lib/node/index.cjs +174 -282
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/intent-resolver-C6OKFVEW.cjs +44 -0
- package/dist/lib/node/intent-resolver-C6OKFVEW.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react-surface-JT6SVCPK.cjs +76 -0
- package/dist/lib/node/react-surface-JT6SVCPK.cjs.map +7 -0
- package/dist/lib/node/types/index.cjs +16 -7
- package/dist/lib/node/types/index.cjs.map +2 -2
- package/dist/lib/node-esm/AutomationPanel-V3IWQAMO.mjs +9 -0
- package/dist/lib/node-esm/AutomationPanel-V3IWQAMO.mjs.map +7 -0
- package/dist/lib/node-esm/ChatContainer-ORVWQPJO.mjs +13 -0
- package/dist/lib/node-esm/ChatContainer-ORVWQPJO.mjs.map +7 -0
- package/dist/lib/node-esm/ai-client-XGNA6SJ5.mjs +23 -0
- package/dist/lib/node-esm/ai-client-XGNA6SJ5.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-C6NUQGCU.mjs +198 -0
- package/dist/lib/node-esm/app-graph-builder-C6NUQGCU.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-2OKJZ4ZW.mjs +519 -0
- package/dist/lib/node-esm/chunk-2OKJZ4ZW.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-6HLBYDUI.mjs +244 -0
- package/dist/lib/node-esm/chunk-6HLBYDUI.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-7VPT3OO3.mjs +1603 -0
- package/dist/lib/node-esm/chunk-7VPT3OO3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-DNCXRGAF.mjs +151 -0
- package/dist/lib/node-esm/chunk-DNCXRGAF.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-HNOBZHWK.mjs → chunk-EMVA6QUT.mjs} +6 -4
- package/dist/lib/node-esm/chunk-EMVA6QUT.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-IJRTDSKN.mjs +16 -0
- package/dist/lib/node-esm/chunk-IJRTDSKN.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +157 -252
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/intent-resolver-DCP4ZDBA.mjs +30 -0
- package/dist/lib/node-esm/intent-resolver-DCP4ZDBA.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-DSVM33SA.mjs +59 -0
- package/dist/lib/node-esm/react-surface-DSVM33SA.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +12 -3
- package/dist/types/src/AutomationPlugin.d.ts +1 -3
- package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
- package/dist/types/src/artifacts.stories.d.ts +16 -0
- package/dist/types/src/artifacts.stories.d.ts.map +1 -0
- package/dist/types/src/capabilities/ai-client.d.ts +5 -0
- package/dist/types/src/capabilities/ai-client.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +181 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/capabilities.d.ts +5 -0
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +182 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +4 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts +3 -0
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts.map +1 -0
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.stories.d.ts +8 -0
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.stories.d.ts.map +1 -0
- package/dist/types/src/components/AmbientChatDialog/index.d.ts +2 -0
- package/dist/types/src/components/AmbientChatDialog/index.d.ts.map +1 -0
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
- package/dist/types/src/components/Box/StatusLine.d.ts +11 -0
- package/dist/types/src/components/Box/StatusLine.d.ts.map +1 -0
- package/dist/types/src/components/Box/StatusLine.stories.d.ts +9 -0
- package/dist/types/src/components/Box/StatusLine.stories.d.ts.map +1 -0
- package/dist/types/src/components/Box/Tabbed.d.ts +15 -0
- package/dist/types/src/components/Box/Tabbed.d.ts.map +1 -0
- package/dist/types/src/components/Box/Tabbed.stories.d.ts +8 -0
- package/dist/types/src/components/Box/Tabbed.stories.d.ts.map +1 -0
- package/dist/types/src/components/Box/ToggleContainer.d.ts +13 -0
- package/dist/types/src/components/Box/ToggleContainer.d.ts.map +1 -0
- package/dist/types/src/components/Box/ToggleContainer.stories.d.ts +9 -0
- package/dist/types/src/components/Box/ToggleContainer.stories.d.ts.map +1 -0
- package/dist/types/src/components/Box/index.d.ts +4 -0
- package/dist/types/src/components/Box/index.d.ts.map +1 -0
- package/dist/types/src/components/ChatContainer/ChatContainer.d.ts +7 -0
- package/dist/types/src/components/ChatContainer/ChatContainer.d.ts.map +1 -0
- package/dist/types/src/components/ChatContainer/index.d.ts +4 -0
- package/dist/types/src/components/ChatContainer/index.d.ts.map +1 -0
- package/dist/types/src/components/MarkdownViewer/MarkdownViewer.d.ts +14 -0
- package/dist/types/src/components/MarkdownViewer/MarkdownViewer.d.ts.map +1 -0
- package/dist/types/src/components/MarkdownViewer/MarkdownViewer.stories.d.ts +8 -0
- package/dist/types/src/components/MarkdownViewer/MarkdownViewer.stories.d.ts.map +1 -0
- package/dist/types/src/components/MarkdownViewer/index.d.ts +2 -0
- package/dist/types/src/components/MarkdownViewer/index.d.ts.map +1 -0
- package/dist/types/src/components/Prompt/Prompt.d.ts +7 -0
- package/dist/types/src/components/Prompt/Prompt.d.ts.map +1 -0
- package/dist/types/src/components/Prompt/Prompt.stories.d.ts +8 -0
- package/dist/types/src/components/Prompt/Prompt.stories.d.ts.map +1 -0
- package/dist/types/src/components/Prompt/index.d.ts +2 -0
- package/dist/types/src/components/Prompt/index.d.ts.map +1 -0
- package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts +20 -0
- package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts.map +1 -0
- package/dist/types/src/components/ServiceRegistry/ServiceRegistry.d.ts +6 -0
- package/dist/types/src/components/ServiceRegistry/ServiceRegistry.d.ts.map +1 -0
- package/dist/types/src/components/ServiceRegistry/ServiceRegistry.stories.d.ts +8 -0
- package/dist/types/src/components/ServiceRegistry/ServiceRegistry.stories.d.ts.map +1 -0
- package/dist/types/src/components/ServiceRegistry/index.d.ts +2 -0
- package/dist/types/src/components/ServiceRegistry/index.d.ts.map +1 -0
- package/dist/types/src/components/Thread/Thread.d.ts +11 -0
- package/dist/types/src/components/Thread/Thread.d.ts.map +1 -0
- package/dist/types/src/components/Thread/Thread.stories.d.ts +11 -0
- package/dist/types/src/components/Thread/Thread.stories.d.ts.map +1 -0
- package/dist/types/src/components/Thread/ThreadMessage.d.ts +12 -0
- package/dist/types/src/components/Thread/ThreadMessage.d.ts.map +1 -0
- package/dist/types/src/components/Thread/index.d.ts +2 -0
- package/dist/types/src/components/Thread/index.d.ts.map +1 -0
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +1 -2
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +13 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/hooks/email.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +4 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/invocation-handler.d.ts.map +1 -1
- package/dist/types/src/hooks/processor.d.ts +70 -0
- package/dist/types/src/hooks/processor.d.ts.map +1 -0
- package/dist/types/src/hooks/processor.test.d.ts +2 -0
- package/dist/types/src/hooks/processor.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useChatProcessor.d.ts +7 -0
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -0
- package/dist/types/src/hooks/useMessageQueue.d.ts +41 -0
- package/dist/types/src/hooks/useMessageQueue.d.ts.map +1 -0
- package/dist/types/src/hooks/useServices.d.ts +7 -0
- package/dist/types/src/hooks/useServices.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -2
- 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/testing/index.d.ts +2 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/{testing.d.ts → test-functions.d.ts} +3 -1
- package/dist/types/src/testing/test-functions.d.ts.map +1 -0
- package/dist/types/src/testing/test-services.d.ts +5 -0
- package/dist/types/src/testing/test-services.d.ts.map +1 -0
- package/dist/types/src/tools/function.d.ts +5 -0
- package/dist/types/src/tools/function.d.ts.map +1 -0
- package/dist/types/src/tools/index.d.ts +3 -0
- package/dist/types/src/tools/index.d.ts.map +1 -0
- package/dist/types/src/tools/openapi.d.ts +10 -0
- package/dist/types/src/tools/openapi.d.ts.map +1 -0
- package/dist/types/src/tools/openapi.test.d.ts +2 -0
- package/dist/types/src/tools/openapi.test.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +84 -2
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +1 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/registry.d.ts +10 -0
- package/dist/types/src/types/registry.d.ts.map +1 -0
- package/dist/types/src/types/schema.d.ts +189 -39
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +16 -5
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +57 -48
- package/src/AutomationPlugin.tsx +77 -194
- package/src/artifacts.stories.tsx +241 -0
- package/src/capabilities/ai-client.ts +19 -0
- package/src/capabilities/app-graph-builder.ts +187 -0
- package/src/capabilities/capabilities.ts +12 -0
- package/src/capabilities/index.ts +12 -0
- package/src/capabilities/intent-resolver.ts +27 -0
- package/src/capabilities/react-surface.tsx +42 -0
- package/src/components/AmbientChatDialog/AmbientChatDialog.stories.tsx +44 -0
- package/src/components/AmbientChatDialog/AmbientChatDialog.tsx +63 -0
- package/src/components/AmbientChatDialog/index.ts +5 -0
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +1 -2
- package/src/components/AutomationPanel/AutomationPanel.tsx +61 -39
- package/src/components/Box/StatusLine.stories.tsx +52 -0
- package/src/components/Box/StatusLine.tsx +76 -0
- package/src/components/Box/Tabbed.stories.tsx +51 -0
- package/src/components/Box/Tabbed.tsx +89 -0
- package/src/components/Box/ToggleContainer.stories.tsx +110 -0
- package/src/components/Box/ToggleContainer.tsx +108 -0
- package/src/components/Box/index.ts +7 -0
- package/src/components/ChatContainer/ChatContainer.tsx +52 -0
- package/src/components/ChatContainer/index.ts +8 -0
- package/src/components/MarkdownViewer/MarkdownViewer.stories.tsx +56 -0
- package/src/components/MarkdownViewer/MarkdownViewer.tsx +79 -0
- package/src/components/MarkdownViewer/index.ts +5 -0
- package/src/components/Prompt/Prompt.stories.tsx +50 -0
- package/src/components/Prompt/Prompt.tsx +39 -0
- package/src/components/Prompt/index.ts +5 -0
- package/src/components/Prompt/prompt-autocomplete.ts +200 -0
- package/src/components/PromptEditor/PromptEditor.stories.tsx +6 -6
- package/src/components/PromptEditor/PromptEditor.tsx +3 -3
- package/src/components/ServiceRegistry/ServiceRegistry.stories.tsx +49 -0
- package/src/components/ServiceRegistry/ServiceRegistry.tsx +76 -0
- package/src/components/ServiceRegistry/index.ts +5 -0
- package/src/components/Thread/Thread.stories.tsx +197 -0
- package/src/components/Thread/Thread.tsx +156 -0
- package/src/components/Thread/ThreadMessage.tsx +225 -0
- package/src/components/Thread/index.ts +5 -0
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +1 -2
- package/src/components/TriggerEditor/TriggerEditor.tsx +86 -16
- package/src/components/index.ts +10 -1
- package/src/hooks/email.ts +2 -2
- package/src/hooks/index.ts +5 -0
- package/src/hooks/invocation-handler.ts +2 -2
- package/src/hooks/processor.test.ts +15 -0
- package/src/hooks/processor.ts +210 -0
- package/src/hooks/useChatProcessor.tsx +86 -0
- package/src/hooks/useMessageQueue.ts +23 -0
- package/src/hooks/useServices.ts +28 -0
- package/src/index.ts +1 -4
- package/src/meta.ts +5 -2
- package/src/testing/index.ts +2 -1
- package/src/testing/{testing.ts → test-functions.ts} +9 -2
- package/src/testing/test-services.ts +131 -0
- package/src/tools/function.ts +47 -0
- package/src/tools/index.ts +6 -0
- package/src/tools/openapi.test.ts +224 -0
- package/src/tools/openapi.ts +331 -0
- package/src/translations.ts +18 -2
- package/src/types/index.ts +1 -0
- package/src/types/registry.ts +26 -0
- package/src/types/schema.ts +96 -2
- package/src/types/types.ts +15 -21
- package/dist/lib/browser/AssistantPanel-N3QSALKY.mjs +0 -341
- package/dist/lib/browser/AssistantPanel-N3QSALKY.mjs.map +0 -7
- package/dist/lib/browser/AutomationPanel-AQMN2CQR.mjs +0 -153
- package/dist/lib/browser/AutomationPanel-AQMN2CQR.mjs.map +0 -7
- package/dist/lib/browser/chunk-7KB4UMXO.mjs +0 -49
- package/dist/lib/browser/chunk-7KB4UMXO.mjs.map +0 -7
- package/dist/lib/browser/chunk-X5KMOH3I.mjs.map +0 -7
- package/dist/lib/browser/meta.mjs +0 -9
- package/dist/lib/node/AssistantPanel-RIA4TI3B.cjs +0 -361
- package/dist/lib/node/AssistantPanel-RIA4TI3B.cjs.map +0 -7
- package/dist/lib/node/AutomationPanel-HZS5WKI5.cjs +0 -173
- package/dist/lib/node/AutomationPanel-HZS5WKI5.cjs.map +0 -7
- package/dist/lib/node/chunk-CUCUWUAF.cjs +0 -73
- package/dist/lib/node/chunk-CUCUWUAF.cjs.map +0 -7
- package/dist/lib/node/chunk-DTJ7XVO2.cjs.map +0 -7
- package/dist/lib/node/meta.cjs.map +0 -7
- package/dist/lib/node-esm/AssistantPanel-72YH43CH.mjs +0 -342
- package/dist/lib/node-esm/AssistantPanel-72YH43CH.mjs.map +0 -7
- package/dist/lib/node-esm/AutomationPanel-JUHOWQWW.mjs +0 -154
- package/dist/lib/node-esm/AutomationPanel-JUHOWQWW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-23LY7DYS.mjs +0 -51
- package/dist/lib/node-esm/chunk-23LY7DYS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HNOBZHWK.mjs.map +0 -7
- package/dist/lib/node-esm/meta.mjs +0 -10
- package/dist/types/src/components/AssistantPanel/AssistantPanel.d.ts +0 -8
- package/dist/types/src/components/AssistantPanel/AssistantPanel.d.ts.map +0 -1
- package/dist/types/src/components/AssistantPanel/index.d.ts +0 -3
- package/dist/types/src/components/AssistantPanel/index.d.ts.map +0 -1
- package/dist/types/src/components/AssistantPanel/system-instructions.d.ts +0 -6
- package/dist/types/src/components/AssistantPanel/system-instructions.d.ts.map +0 -1
- package/dist/types/src/testing/testing.d.ts.map +0 -1
- package/src/components/AssistantPanel/AssistantPanel.tsx +0 -230
- package/src/components/AssistantPanel/index.ts +0 -7
- package/src/components/AssistantPanel/system-instructions.ts +0 -166
- /package/dist/lib/browser/{meta.mjs.map → AutomationPanel-VW2XIUPU.mjs.map} +0 -0
- /package/dist/lib/{node-esm/meta.mjs.map → browser/ChatContainer-OLRZNGWK.mjs.map} +0 -0
package/dist/lib/node/index.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,49 +15,53 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
var node_exports = {};
|
|
30
20
|
__export(node_exports, {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
AIChatType: () => import_chunk_GB7245FH.AIChatType,
|
|
22
|
+
AMBIENT_CHAT_DIALOG: () => import_chunk_EQYHOTGG.AMBIENT_CHAT_DIALOG,
|
|
23
|
+
AUTOMATION_PLUGIN: () => import_chunk_EQYHOTGG.AUTOMATION_PLUGIN,
|
|
24
|
+
AmbientChatDialog: () => import_chunk_FQUY77HT.AmbientChatDialog,
|
|
25
|
+
ApiAuthorization: () => import_chunk_GB7245FH.ApiAuthorization,
|
|
26
|
+
AutomationAction: () => import_chunk_GB7245FH.AutomationAction,
|
|
27
|
+
AutomationPanel: () => import_chunk_FQUY77HT.AutomationPanel,
|
|
34
28
|
AutomationPlugin: () => AutomationPlugin,
|
|
35
|
-
ChainInputSchema: () =>
|
|
36
|
-
ChainInputType: () =>
|
|
37
|
-
ChainPromptType: () =>
|
|
38
|
-
ChainType: () =>
|
|
29
|
+
ChainInputSchema: () => import_chunk_GB7245FH.ChainInputSchema,
|
|
30
|
+
ChainInputType: () => import_chunk_GB7245FH.ChainInputType,
|
|
31
|
+
ChainPromptType: () => import_chunk_GB7245FH.ChainPromptType,
|
|
32
|
+
ChainType: () => import_chunk_GB7245FH.ChainType,
|
|
33
|
+
ChatContainer: () => import_chunk_FQUY77HT.ChatContainer,
|
|
34
|
+
MarkdownViewer: () => import_chunk_CFBERLTN.MarkdownViewer,
|
|
35
|
+
PromptEditor: () => import_chunk_FQUY77HT.PromptEditor,
|
|
36
|
+
ServiceRegistry: () => import_chunk_FQUY77HT.ServiceRegistry,
|
|
37
|
+
ServiceType: () => import_chunk_GB7245FH.ServiceType,
|
|
38
|
+
Thread: () => import_chunk_CFBERLTN.Thread,
|
|
39
|
+
TriggerEditor: () => import_chunk_QXIHYOMF.TriggerEditor,
|
|
40
|
+
categoryIcons: () => import_chunk_GB7245FH.categoryIcons,
|
|
39
41
|
chainPresets: () => chainPresets,
|
|
40
|
-
|
|
42
|
+
meta: () => import_chunk_EQYHOTGG.meta,
|
|
41
43
|
str: () => str
|
|
42
44
|
});
|
|
43
45
|
module.exports = __toCommonJS(node_exports);
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
46
|
+
var import_chunk_FQUY77HT = require("./chunk-FQUY77HT.cjs");
|
|
47
|
+
var import_chunk_QXIHYOMF = require("./chunk-QXIHYOMF.cjs");
|
|
48
|
+
var import_chunk_CFBERLTN = require("./chunk-CFBERLTN.cjs");
|
|
49
|
+
var import_chunk_U5Z7LFWB = require("./chunk-U5Z7LFWB.cjs");
|
|
50
|
+
var import_chunk_GB7245FH = require("./chunk-GB7245FH.cjs");
|
|
51
|
+
var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
|
|
47
52
|
var import_app_framework = require("@dxos/app-framework");
|
|
48
53
|
var import_functions = require("@dxos/functions");
|
|
49
|
-
var import_invariant = require("@dxos/invariant");
|
|
50
54
|
var import_plugin_client = require("@dxos/plugin-client");
|
|
51
|
-
var
|
|
52
|
-
var import_plugin_space = require("@dxos/plugin-space");
|
|
55
|
+
var import_plugin_deck = require("@dxos/plugin-deck");
|
|
53
56
|
var import_echo = require("@dxos/react-client/echo");
|
|
54
|
-
var import_react_ui_form = require("@dxos/react-ui-form");
|
|
55
|
-
var import_react2 = require("react");
|
|
56
57
|
var import_live_object = require("@dxos/live-object");
|
|
57
|
-
var AssistantPanel = (0, import_react2.lazy)(() => import("./AssistantPanel-RIA4TI3B.cjs"));
|
|
58
|
-
var AutomationPanel = (0, import_react2.lazy)(() => import("./AutomationPanel-HZS5WKI5.cjs"));
|
|
59
58
|
var translations_default = [
|
|
60
59
|
{
|
|
61
60
|
"en-US": {
|
|
62
|
-
[
|
|
61
|
+
[import_chunk_GB7245FH.AIChatType.typename]: {
|
|
62
|
+
"typename label": "AI Chat"
|
|
63
|
+
},
|
|
64
|
+
[import_chunk_EQYHOTGG.AUTOMATION_PLUGIN]: {
|
|
63
65
|
"plugin name": "Automation",
|
|
64
66
|
"object placeholder": "New prompt",
|
|
65
67
|
"create object label": "Create prompt",
|
|
@@ -70,6 +72,10 @@ var translations_default = [
|
|
|
70
72
|
"value placeholder": "Enter value...",
|
|
71
73
|
"select preset template placeholder": "Select preset",
|
|
72
74
|
"open automation panel label": "Show Automations",
|
|
75
|
+
"automation panel label": "Automations",
|
|
76
|
+
"service registry label": "Service Registry",
|
|
77
|
+
"chat input placeholder": "Ask a question...",
|
|
78
|
+
"chat stop": "Cancel request.",
|
|
73
79
|
"function select label": "Function",
|
|
74
80
|
"function select placeholder": "Select function",
|
|
75
81
|
"function enabled": "Enabled",
|
|
@@ -79,254 +85,128 @@ var translations_default = [
|
|
|
79
85
|
"trigger type webhook": "Webhook",
|
|
80
86
|
"trigger type websocket": "Websocket",
|
|
81
87
|
"trigger type subscription": "Subscription",
|
|
88
|
+
"trigger type email": "Email",
|
|
89
|
+
"trigger type queue": "Queue",
|
|
82
90
|
"trigger filter": "Filter",
|
|
83
91
|
"trigger cron": "Cron",
|
|
84
92
|
"trigger method": "Method",
|
|
85
93
|
"trigger endpoint": "Endpoint",
|
|
86
|
-
"
|
|
87
|
-
"
|
|
94
|
+
"trigger copy url": "Copy URL",
|
|
95
|
+
"trigger copy email": "Copy Email",
|
|
96
|
+
"trigger meta add": "Add",
|
|
97
|
+
"trigger meta remove": "Remove",
|
|
98
|
+
"trigger meta prop name placeholder": "New meta property name"
|
|
88
99
|
}
|
|
89
100
|
}
|
|
90
101
|
}
|
|
91
102
|
];
|
|
92
|
-
var
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
var AutomationPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_EQYHOTGG.meta, [
|
|
104
|
+
(0, import_app_framework.defineModule)({
|
|
105
|
+
id: `${import_chunk_EQYHOTGG.meta.id}/module/translations`,
|
|
106
|
+
activatesOn: import_app_framework.Events.SetupTranslations,
|
|
107
|
+
activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Translations, translations_default)
|
|
108
|
+
}),
|
|
109
|
+
(0, import_app_framework.defineModule)({
|
|
110
|
+
id: `${import_chunk_EQYHOTGG.meta.id}/module/metadata`,
|
|
111
|
+
activatesOn: import_app_framework.Events.SetupMetadata,
|
|
112
|
+
activate: () => [
|
|
113
|
+
(0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
|
|
114
|
+
id: import_chunk_GB7245FH.ChainType.typename,
|
|
115
|
+
metadata: {
|
|
116
|
+
placeholder: [
|
|
117
|
+
"object placeholder",
|
|
118
|
+
{
|
|
119
|
+
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
icon: "ph--magic-wand--regular",
|
|
123
|
+
// TODO(wittjosiah): Move out of metadata.
|
|
124
|
+
loadReferences: async (chain) => await import_echo.RefArray.loadAll(chain.prompts ?? [])
|
|
110
125
|
}
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
126
|
+
}),
|
|
127
|
+
(0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
|
|
128
|
+
id: import_chunk_GB7245FH.AIChatType.typename,
|
|
129
|
+
metadata: {
|
|
130
|
+
createObject: (props) => (0, import_app_framework.createIntent)(import_chunk_GB7245FH.AutomationAction.Create, props),
|
|
131
|
+
placeholder: [
|
|
132
|
+
"object placeholder",
|
|
133
|
+
{
|
|
134
|
+
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
icon: "ph--atom--regular"
|
|
138
|
+
}
|
|
139
|
+
})
|
|
140
|
+
]
|
|
141
|
+
}),
|
|
142
|
+
(0, import_app_framework.defineModule)({
|
|
143
|
+
id: `${import_chunk_EQYHOTGG.meta.id}/module/schema`,
|
|
144
|
+
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
145
|
+
activate: () => [
|
|
146
|
+
(0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.SystemSchema, [
|
|
147
|
+
import_chunk_GB7245FH.ChainType,
|
|
148
|
+
import_chunk_GB7245FH.ChainPromptType,
|
|
149
|
+
import_functions.FunctionTrigger,
|
|
150
|
+
import_chunk_GB7245FH.ServiceType
|
|
151
|
+
]),
|
|
152
|
+
(0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.Schema, [
|
|
153
|
+
import_chunk_GB7245FH.AIChatType
|
|
154
|
+
])
|
|
155
|
+
]
|
|
156
|
+
}),
|
|
157
|
+
(0, import_app_framework.defineModule)({
|
|
158
|
+
id: `${import_chunk_EQYHOTGG.meta.id}/module/complementary-panels`,
|
|
159
|
+
activatesOn: import_app_framework.Events.Startup,
|
|
160
|
+
activate: () => [
|
|
161
|
+
(0, import_app_framework.contributes)(import_plugin_deck.DeckCapabilities.ComplementaryPanel, {
|
|
162
|
+
id: "service-registry",
|
|
163
|
+
label: [
|
|
164
|
+
"service registry label",
|
|
135
165
|
{
|
|
136
|
-
|
|
137
|
-
label: [
|
|
138
|
-
"open assistant panel label",
|
|
139
|
-
{
|
|
140
|
-
ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
icon: "ph--atom--regular"
|
|
166
|
+
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
144
167
|
}
|
|
145
|
-
]
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
F: __dxlog_file,
|
|
155
|
-
L: 66,
|
|
156
|
-
S: void 0,
|
|
157
|
-
A: [
|
|
158
|
-
"resolve",
|
|
159
|
-
""
|
|
160
|
-
]
|
|
161
|
-
});
|
|
162
|
-
(0, import_invariant.invariant)(client, void 0, {
|
|
163
|
-
F: __dxlog_file,
|
|
164
|
-
L: 67,
|
|
165
|
-
S: void 0,
|
|
166
|
-
A: [
|
|
167
|
-
"client",
|
|
168
|
-
""
|
|
169
|
-
]
|
|
170
|
-
});
|
|
171
|
-
return [
|
|
172
|
-
// Create nodes for object settings.
|
|
173
|
-
(0, import_plugin_graph.createExtension)({
|
|
174
|
-
id: `${import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN}/automation-for-subject`,
|
|
175
|
-
resolver: ({ id }) => {
|
|
176
|
-
if (!id.endsWith("~automation")) {
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
const type = "orphan-settings-for-subject";
|
|
180
|
-
const icon = "ph--magic-wand--regular";
|
|
181
|
-
const [subjectId] = id.split("~");
|
|
182
|
-
const { spaceId, objectId } = (0, import_echo.parseId)(subjectId);
|
|
183
|
-
const spaces = (0, import_plugin_graph.toSignal)((onChange) => client.spaces.subscribe(() => onChange()).unsubscribe, () => client.spaces.get());
|
|
184
|
-
const space = spaces?.find((space2) => space2.id === spaceId && space2.state.get() === import_echo.SpaceState.SPACE_READY);
|
|
185
|
-
if (!objectId) {
|
|
186
|
-
const label2 = space ? space.properties.name || [
|
|
187
|
-
"unnamed space label",
|
|
188
|
-
{
|
|
189
|
-
ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
|
|
190
|
-
}
|
|
191
|
-
] : [
|
|
192
|
-
"unnamed object settings label",
|
|
193
|
-
{
|
|
194
|
-
ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
|
|
195
|
-
}
|
|
196
|
-
];
|
|
197
|
-
return {
|
|
198
|
-
id,
|
|
199
|
-
type,
|
|
200
|
-
data: null,
|
|
201
|
-
properties: {
|
|
202
|
-
icon,
|
|
203
|
-
label: label2,
|
|
204
|
-
showResolvedThreads: false,
|
|
205
|
-
object: null,
|
|
206
|
-
space
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
const [object] = (0, import_plugin_space.memoizeQuery)(space, {
|
|
211
|
-
id: objectId
|
|
212
|
-
});
|
|
213
|
-
if (!object || !subjectId) {
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
const meta = resolve((0, import_echo.getTypename)(object) ?? "");
|
|
217
|
-
const label = meta.label?.(object) || object.name || meta.placeholder || [
|
|
218
|
-
"unnamed object settings label",
|
|
219
|
-
{
|
|
220
|
-
ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
|
|
221
|
-
}
|
|
222
|
-
];
|
|
223
|
-
return {
|
|
224
|
-
id,
|
|
225
|
-
type,
|
|
226
|
-
data: null,
|
|
227
|
-
properties: {
|
|
228
|
-
icon,
|
|
229
|
-
label,
|
|
230
|
-
object
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
}),
|
|
235
|
-
(0, import_plugin_graph.createExtension)({
|
|
236
|
-
id: `${import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN}/assistant-for-subject`,
|
|
237
|
-
resolver: ({ id }) => {
|
|
238
|
-
if (!id.endsWith("~assistant")) {
|
|
239
|
-
return;
|
|
240
|
-
}
|
|
241
|
-
const [subjectId] = id.split("~");
|
|
242
|
-
const { spaceId, objectId } = (0, import_echo.parseId)(subjectId);
|
|
243
|
-
const spaces = (0, import_plugin_graph.toSignal)((onChange) => client.spaces.subscribe(() => onChange()).unsubscribe, () => client.spaces.get());
|
|
244
|
-
const space = spaces?.find((space2) => space2.id === spaceId && space2.state.get() === import_echo.SpaceState.SPACE_READY);
|
|
245
|
-
if (!objectId) {
|
|
246
|
-
return {
|
|
247
|
-
id,
|
|
248
|
-
type: "orphan-automation-for-subject",
|
|
249
|
-
data: null,
|
|
250
|
-
properties: {
|
|
251
|
-
icon: "ph--atom--regular",
|
|
252
|
-
label: [
|
|
253
|
-
"assistant panel label",
|
|
254
|
-
{
|
|
255
|
-
ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
|
|
256
|
-
}
|
|
257
|
-
],
|
|
258
|
-
object: null,
|
|
259
|
-
space
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
const [object] = (0, import_plugin_space.memoizeQuery)(space, {
|
|
264
|
-
id: objectId
|
|
265
|
-
});
|
|
266
|
-
return {
|
|
267
|
-
id,
|
|
268
|
-
type: "orphan-automation-for-subject",
|
|
269
|
-
data: null,
|
|
270
|
-
properties: {
|
|
271
|
-
icon: "ph--atom--regular",
|
|
272
|
-
label: [
|
|
273
|
-
"assistant panel label",
|
|
274
|
-
{
|
|
275
|
-
ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
|
|
276
|
-
}
|
|
277
|
-
],
|
|
278
|
-
object
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
})
|
|
283
|
-
];
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
surface: {
|
|
287
|
-
component: ({ data, role }) => {
|
|
288
|
-
switch (role) {
|
|
289
|
-
case "complementary--assistant":
|
|
290
|
-
return /* @__PURE__ */ import_react.default.createElement(AssistantPanel, {
|
|
291
|
-
subject: data.subject
|
|
292
|
-
});
|
|
293
|
-
case "complementary--automation": {
|
|
294
|
-
const object = data.subject;
|
|
295
|
-
const space = (0, import_echo.isEchoObject)(object) ? (0, import_echo.getSpace)(object) : void 0;
|
|
296
|
-
if (space) {
|
|
297
|
-
(0, import_invariant.invariant)((0, import_echo.isEchoObject)(object), void 0, {
|
|
298
|
-
F: __dxlog_file,
|
|
299
|
-
L: 193,
|
|
300
|
-
S: void 0,
|
|
301
|
-
A: [
|
|
302
|
-
"isEchoObject(object)",
|
|
303
|
-
""
|
|
304
|
-
]
|
|
305
|
-
});
|
|
306
|
-
return /* @__PURE__ */ import_react.default.createElement(AutomationPanel, {
|
|
307
|
-
space,
|
|
308
|
-
object
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
break;
|
|
312
|
-
}
|
|
168
|
+
],
|
|
169
|
+
icon: "ph--plugs--regular"
|
|
170
|
+
}),
|
|
171
|
+
(0, import_app_framework.contributes)(import_plugin_deck.DeckCapabilities.ComplementaryPanel, {
|
|
172
|
+
id: "automation",
|
|
173
|
+
label: [
|
|
174
|
+
"automation panel label",
|
|
175
|
+
{
|
|
176
|
+
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
313
177
|
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
178
|
+
],
|
|
179
|
+
icon: "ph--magic-wand--regular"
|
|
180
|
+
})
|
|
181
|
+
]
|
|
182
|
+
}),
|
|
183
|
+
(0, import_app_framework.defineModule)({
|
|
184
|
+
id: `${import_chunk_EQYHOTGG.meta.id}/module/react-surface`,
|
|
185
|
+
activatesOn: import_app_framework.Events.SetupSurfaces,
|
|
186
|
+
activate: import_chunk_CFBERLTN.ReactSurface
|
|
187
|
+
}),
|
|
188
|
+
(0, import_app_framework.defineModule)({
|
|
189
|
+
id: `${import_chunk_EQYHOTGG.meta.id}/module/app-graph-builder`,
|
|
190
|
+
activatesOn: import_app_framework.Events.SetupAppGraph,
|
|
191
|
+
activate: import_chunk_CFBERLTN.AppGraphBuilder
|
|
192
|
+
}),
|
|
193
|
+
(0, import_app_framework.defineModule)({
|
|
194
|
+
id: `${import_chunk_EQYHOTGG.meta.id}/module/intent-resolver`,
|
|
195
|
+
activatesOn: import_app_framework.Events.SetupIntents,
|
|
196
|
+
activate: import_chunk_CFBERLTN.IntentResolver
|
|
197
|
+
}),
|
|
198
|
+
(0, import_app_framework.defineModule)({
|
|
199
|
+
id: `${import_chunk_EQYHOTGG.meta.id}/module/ai-client`,
|
|
200
|
+
activatesOn: import_plugin_client.ClientEvents.ClientReady,
|
|
201
|
+
activate: import_chunk_CFBERLTN.AiClient
|
|
202
|
+
})
|
|
203
|
+
]);
|
|
324
204
|
var str = (...text) => text.filter((value) => value !== void 0 && value !== false).flat().join("\n");
|
|
325
205
|
var chainPresets = [
|
|
326
206
|
{
|
|
327
207
|
id: "dxos.org/prompt/translate",
|
|
328
208
|
title: "Translate",
|
|
329
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
209
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
330
210
|
command: "say",
|
|
331
211
|
template: str(
|
|
332
212
|
// prettier-ignore
|
|
@@ -338,12 +218,12 @@ var chainPresets = [
|
|
|
338
218
|
),
|
|
339
219
|
inputs: [
|
|
340
220
|
{
|
|
341
|
-
type:
|
|
221
|
+
type: import_chunk_GB7245FH.ChainInputType.VALUE,
|
|
342
222
|
name: "language",
|
|
343
223
|
value: "japanese"
|
|
344
224
|
},
|
|
345
225
|
{
|
|
346
|
-
type:
|
|
226
|
+
type: import_chunk_GB7245FH.ChainInputType.PASS_THROUGH,
|
|
347
227
|
name: "input"
|
|
348
228
|
}
|
|
349
229
|
]
|
|
@@ -352,7 +232,7 @@ var chainPresets = [
|
|
|
352
232
|
{
|
|
353
233
|
id: "dxos.org/prompt/chess",
|
|
354
234
|
title: "Chess",
|
|
355
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
235
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
356
236
|
command: "hint",
|
|
357
237
|
template: str(
|
|
358
238
|
// prettier-ignore
|
|
@@ -364,7 +244,7 @@ var chainPresets = [
|
|
|
364
244
|
),
|
|
365
245
|
inputs: [
|
|
366
246
|
{
|
|
367
|
-
type:
|
|
247
|
+
type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
|
|
368
248
|
name: "history",
|
|
369
249
|
value: "object.pgn"
|
|
370
250
|
}
|
|
@@ -374,7 +254,7 @@ var chainPresets = [
|
|
|
374
254
|
{
|
|
375
255
|
id: "dxos.org/prompt/mermaid",
|
|
376
256
|
title: "Mermaid",
|
|
377
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
257
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
378
258
|
command: "draw",
|
|
379
259
|
template: str(
|
|
380
260
|
// prettier-ignore
|
|
@@ -387,7 +267,7 @@ var chainPresets = [
|
|
|
387
267
|
),
|
|
388
268
|
inputs: [
|
|
389
269
|
{
|
|
390
|
-
type:
|
|
270
|
+
type: import_chunk_GB7245FH.ChainInputType.PASS_THROUGH,
|
|
391
271
|
name: "input"
|
|
392
272
|
}
|
|
393
273
|
]
|
|
@@ -396,7 +276,7 @@ var chainPresets = [
|
|
|
396
276
|
{
|
|
397
277
|
id: "dxos.org/prompt/list",
|
|
398
278
|
title: "List",
|
|
399
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
279
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
400
280
|
command: "list",
|
|
401
281
|
template: str(
|
|
402
282
|
// prettier-ignore
|
|
@@ -413,12 +293,12 @@ var chainPresets = [
|
|
|
413
293
|
),
|
|
414
294
|
inputs: [
|
|
415
295
|
{
|
|
416
|
-
type:
|
|
296
|
+
type: import_chunk_GB7245FH.ChainInputType.SCHEMA,
|
|
417
297
|
name: "schema",
|
|
418
298
|
value: "example.com/type/project"
|
|
419
299
|
},
|
|
420
300
|
{
|
|
421
|
-
type:
|
|
301
|
+
type: import_chunk_GB7245FH.ChainInputType.PASS_THROUGH,
|
|
422
302
|
name: "question"
|
|
423
303
|
}
|
|
424
304
|
]
|
|
@@ -427,7 +307,7 @@ var chainPresets = [
|
|
|
427
307
|
{
|
|
428
308
|
id: "dxos.org/prompt/base",
|
|
429
309
|
title: "RAG",
|
|
430
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
310
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
431
311
|
command: "rag",
|
|
432
312
|
template: str(
|
|
433
313
|
// prettier-ignore
|
|
@@ -442,11 +322,11 @@ var chainPresets = [
|
|
|
442
322
|
),
|
|
443
323
|
inputs: [
|
|
444
324
|
{
|
|
445
|
-
type:
|
|
325
|
+
type: import_chunk_GB7245FH.ChainInputType.RETRIEVER,
|
|
446
326
|
name: "context"
|
|
447
327
|
},
|
|
448
328
|
{
|
|
449
|
-
type:
|
|
329
|
+
type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
|
|
450
330
|
name: "question",
|
|
451
331
|
value: "object.text"
|
|
452
332
|
}
|
|
@@ -456,7 +336,7 @@ var chainPresets = [
|
|
|
456
336
|
{
|
|
457
337
|
id: "dxos.org/prompt/lookup",
|
|
458
338
|
title: "Lookup",
|
|
459
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
339
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
460
340
|
command: "lookup",
|
|
461
341
|
template: str(
|
|
462
342
|
// prettier-ignore
|
|
@@ -468,7 +348,7 @@ var chainPresets = [
|
|
|
468
348
|
),
|
|
469
349
|
inputs: [
|
|
470
350
|
{
|
|
471
|
-
type:
|
|
351
|
+
type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
|
|
472
352
|
name: "input",
|
|
473
353
|
value: "text"
|
|
474
354
|
}
|
|
@@ -478,7 +358,7 @@ var chainPresets = [
|
|
|
478
358
|
{
|
|
479
359
|
id: "dxos.org/prompt/extract",
|
|
480
360
|
title: "Extract",
|
|
481
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
361
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
482
362
|
command: "extract",
|
|
483
363
|
template: str(
|
|
484
364
|
// prettier-ignore
|
|
@@ -496,17 +376,17 @@ var chainPresets = [
|
|
|
496
376
|
),
|
|
497
377
|
inputs: [
|
|
498
378
|
{
|
|
499
|
-
type:
|
|
379
|
+
type: import_chunk_GB7245FH.ChainInputType.SCHEMA,
|
|
500
380
|
name: "contact",
|
|
501
381
|
value: "example.com/type/contact"
|
|
502
382
|
},
|
|
503
383
|
{
|
|
504
|
-
type:
|
|
384
|
+
type: import_chunk_GB7245FH.ChainInputType.SCHEMA,
|
|
505
385
|
name: "company",
|
|
506
386
|
value: "example.com/type/organization"
|
|
507
387
|
},
|
|
508
388
|
{
|
|
509
|
-
type:
|
|
389
|
+
type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
|
|
510
390
|
name: "input",
|
|
511
391
|
value: "text"
|
|
512
392
|
}
|
|
@@ -516,7 +396,7 @@ var chainPresets = [
|
|
|
516
396
|
{
|
|
517
397
|
id: "dxos.org/prompt/discord",
|
|
518
398
|
title: "Summarize",
|
|
519
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
399
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
520
400
|
command: "summarize",
|
|
521
401
|
template: str(
|
|
522
402
|
// prettier-ignore
|
|
@@ -528,7 +408,7 @@ var chainPresets = [
|
|
|
528
408
|
),
|
|
529
409
|
inputs: [
|
|
530
410
|
{
|
|
531
|
-
type:
|
|
411
|
+
type: import_chunk_GB7245FH.ChainInputType.RESOLVER,
|
|
532
412
|
name: "context",
|
|
533
413
|
value: "discord.messages.recent"
|
|
534
414
|
}
|
|
@@ -536,10 +416,13 @@ var chainPresets = [
|
|
|
536
416
|
})
|
|
537
417
|
}
|
|
538
418
|
];
|
|
539
|
-
var src_default = AutomationPlugin;
|
|
540
419
|
// Annotate the CommonJS export names for ESM import in node:
|
|
541
420
|
0 && (module.exports = {
|
|
542
|
-
|
|
421
|
+
AIChatType,
|
|
422
|
+
AMBIENT_CHAT_DIALOG,
|
|
423
|
+
AUTOMATION_PLUGIN,
|
|
424
|
+
AmbientChatDialog,
|
|
425
|
+
ApiAuthorization,
|
|
543
426
|
AutomationAction,
|
|
544
427
|
AutomationPanel,
|
|
545
428
|
AutomationPlugin,
|
|
@@ -547,7 +430,16 @@ var src_default = AutomationPlugin;
|
|
|
547
430
|
ChainInputType,
|
|
548
431
|
ChainPromptType,
|
|
549
432
|
ChainType,
|
|
433
|
+
ChatContainer,
|
|
434
|
+
MarkdownViewer,
|
|
435
|
+
PromptEditor,
|
|
436
|
+
ServiceRegistry,
|
|
437
|
+
ServiceType,
|
|
438
|
+
Thread,
|
|
439
|
+
TriggerEditor,
|
|
440
|
+
categoryIcons,
|
|
550
441
|
chainPresets,
|
|
442
|
+
meta,
|
|
551
443
|
str
|
|
552
444
|
});
|
|
553
445
|
//# sourceMappingURL=index.cjs.map
|