@dxos/plugin-automation 0.7.4 → 0.7.5-labs.071a3e2
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-YPD3AGQN.mjs +8 -0
- package/dist/lib/browser/ChatContainer-ODZECATM.mjs +12 -0
- package/dist/lib/browser/ai-client-UJLNYP7B.mjs +22 -0
- package/dist/lib/browser/ai-client-UJLNYP7B.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-3H5TCRG4.mjs +162 -0
- package/dist/lib/browser/app-graph-builder-3H5TCRG4.mjs.map +7 -0
- package/dist/lib/browser/chunk-43WRHV2L.mjs +150 -0
- package/dist/lib/browser/chunk-43WRHV2L.mjs.map +7 -0
- package/dist/lib/browser/chunk-BQHXJZ4K.mjs +15 -0
- package/dist/lib/browser/chunk-BQHXJZ4K.mjs.map +7 -0
- package/dist/lib/browser/chunk-DL7XA62G.mjs +1531 -0
- package/dist/lib/browser/chunk-DL7XA62G.mjs.map +7 -0
- package/dist/lib/browser/{chunk-X5KMOH3I.mjs → chunk-DQ7ZSYJJ.mjs} +4 -4
- package/dist/lib/browser/chunk-DQ7ZSYJJ.mjs.map +7 -0
- package/dist/lib/browser/chunk-PQGFC2ZO.mjs +284 -0
- package/dist/lib/browser/chunk-PQGFC2ZO.mjs.map +7 -0
- package/dist/lib/browser/chunk-Z54KIF6H.mjs +242 -0
- package/dist/lib/browser/chunk-Z54KIF6H.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +152 -252
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-resolver-5YVZJFS3.mjs +29 -0
- package/dist/lib/browser/intent-resolver-5YVZJFS3.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-WRHRCEV5.mjs +50 -0
- package/dist/lib/browser/react-surface-WRHRCEV5.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +12 -3
- package/dist/lib/node/{meta.cjs → AutomationPanel-CO26O75P.cjs} +7 -11
- package/dist/lib/node/AutomationPanel-CO26O75P.cjs.map +7 -0
- package/dist/lib/node/ChatContainer-5URBEXQD.cjs +33 -0
- package/dist/lib/node/ChatContainer-5URBEXQD.cjs.map +7 -0
- package/dist/lib/node/ai-client-AOB6TLNW.cjs +38 -0
- package/dist/lib/node/ai-client-AOB6TLNW.cjs.map +7 -0
- package/dist/lib/node/app-graph-builder-CDEQJEHY.cjs +178 -0
- package/dist/lib/node/app-graph-builder-CDEQJEHY.cjs.map +7 -0
- package/dist/lib/node/chunk-AWZVJZ2I.cjs +34 -0
- package/dist/lib/node/chunk-AWZVJZ2I.cjs.map +7 -0
- package/dist/lib/node/chunk-D2QQXWOY.cjs +302 -0
- package/dist/lib/node/chunk-D2QQXWOY.cjs.map +7 -0
- package/dist/lib/node/chunk-H3RSMGJG.cjs +173 -0
- package/dist/lib/node/chunk-H3RSMGJG.cjs.map +7 -0
- package/dist/lib/node/chunk-NH7STAX6.cjs +1515 -0
- package/dist/lib/node/chunk-NH7STAX6.cjs.map +7 -0
- package/dist/lib/node/chunk-OCW5GAVZ.cjs +266 -0
- package/dist/lib/node/chunk-OCW5GAVZ.cjs.map +7 -0
- package/dist/lib/node/{chunk-DTJ7XVO2.cjs → chunk-TQEDPRY5.cjs} +8 -8
- package/dist/lib/node/chunk-TQEDPRY5.cjs.map +7 -0
- package/dist/lib/node/index.cjs +169 -282
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/intent-resolver-MJFZT5IU.cjs +44 -0
- package/dist/lib/node/intent-resolver-MJFZT5IU.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react-surface-HDAVE6NU.cjs +70 -0
- package/dist/lib/node/react-surface-HDAVE6NU.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-VQZUKPK2.mjs +9 -0
- package/dist/lib/node-esm/AutomationPanel-VQZUKPK2.mjs.map +7 -0
- package/dist/lib/node-esm/ChatContainer-23QIVDG5.mjs +13 -0
- package/dist/lib/node-esm/ChatContainer-23QIVDG5.mjs.map +7 -0
- package/dist/lib/node-esm/ai-client-RUCCJ7JZ.mjs +23 -0
- package/dist/lib/node-esm/ai-client-RUCCJ7JZ.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-GR3URVNX.mjs +163 -0
- package/dist/lib/node-esm/app-graph-builder-GR3URVNX.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-7JO77AAS.mjs +151 -0
- package/dist/lib/node-esm/chunk-7JO77AAS.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-HNOBZHWK.mjs → chunk-JFHI22MF.mjs} +4 -4
- package/dist/lib/node-esm/chunk-JFHI22MF.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JJFWFS6P.mjs +1532 -0
- package/dist/lib/node-esm/chunk-JJFWFS6P.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-LSSWQIQD.mjs +16 -0
- package/dist/lib/node-esm/chunk-LSSWQIQD.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-NSVQZ3EH.mjs +243 -0
- package/dist/lib/node-esm/chunk-NSVQZ3EH.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-VN2AFV25.mjs +285 -0
- package/dist/lib/node-esm/chunk-VN2AFV25.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +152 -252
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/intent-resolver-FCKNRTKQ.mjs +30 -0
- package/dist/lib/node-esm/intent-resolver-FCKNRTKQ.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-FZ5OFRDE.mjs +51 -0
- package/dist/lib/node-esm/react-surface-FZ5OFRDE.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 +180 -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/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/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/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/ScrollContainer.d.ts +15 -0
- package/dist/types/src/components/Thread/ScrollContainer.d.ts.map +1 -0
- package/dist/types/src/components/Thread/StatusLine.d.ts +11 -0
- package/dist/types/src/components/Thread/StatusLine.d.ts.map +1 -0
- package/dist/types/src/components/Thread/StatusLine.stories.d.ts +9 -0
- package/dist/types/src/components/Thread/StatusLine.stories.d.ts.map +1 -0
- package/dist/types/src/components/Thread/Tabbed.d.ts +9 -0
- package/dist/types/src/components/Thread/Tabbed.d.ts.map +1 -0
- package/dist/types/src/components/Thread/Tabbed.stories.d.ts +8 -0
- package/dist/types/src/components/Thread/Tabbed.stories.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 +10 -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/ToggleContainer.d.ts +13 -0
- package/dist/types/src/components/Thread/ToggleContainer.d.ts.map +1 -0
- package/dist/types/src/components/Thread/ToggleContainer.stories.d.ts +9 -0
- package/dist/types/src/components/Thread/ToggleContainer.stories.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 +12 -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 +1 -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 +81 -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 +54 -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 +156 -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 +36 -0
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +1 -2
- package/src/components/AutomationPanel/AutomationPanel.tsx +61 -39
- 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/PromptEditor/PromptEditor.stories.tsx +3 -3
- package/src/components/ServiceRegistry/ServiceRegistry.stories.tsx +49 -0
- package/src/components/ServiceRegistry/ServiceRegistry.tsx +75 -0
- package/src/components/ServiceRegistry/index.ts +5 -0
- package/src/components/Thread/ScrollContainer.tsx +92 -0
- package/src/components/Thread/StatusLine.stories.tsx +52 -0
- package/src/components/Thread/StatusLine.tsx +76 -0
- package/src/components/Thread/Tabbed.stories.tsx +52 -0
- package/src/components/Thread/Tabbed.tsx +72 -0
- package/src/components/Thread/Thread.stories.tsx +190 -0
- package/src/components/Thread/Thread.tsx +156 -0
- package/src/components/Thread/ThreadMessage.tsx +203 -0
- package/src/components/Thread/ToggleContainer.stories.tsx +111 -0
- package/src/components/Thread/ToggleContainer.tsx +103 -0
- package/src/components/Thread/index.ts +5 -0
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +1 -2
- package/src/components/TriggerEditor/TriggerEditor.tsx +81 -16
- package/src/components/index.ts +9 -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 +3 -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 +227 -0
- package/src/tools/openapi.ts +331 -0
- package/src/translations.ts +17 -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-YPD3AGQN.mjs.map} +0 -0
- /package/dist/lib/{node-esm/meta.mjs.map → browser/ChatContainer-ODZECATM.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,51 @@ 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_H3RSMGJG.AIChatType,
|
|
22
|
+
AUTOMATION_PLUGIN: () => import_chunk_TQEDPRY5.AUTOMATION_PLUGIN,
|
|
23
|
+
ApiAuthorization: () => import_chunk_H3RSMGJG.ApiAuthorization,
|
|
24
|
+
AutomationAction: () => import_chunk_H3RSMGJG.AutomationAction,
|
|
25
|
+
AutomationPanel: () => import_chunk_D2QQXWOY.AutomationPanel,
|
|
34
26
|
AutomationPlugin: () => AutomationPlugin,
|
|
35
|
-
ChainInputSchema: () =>
|
|
36
|
-
ChainInputType: () =>
|
|
37
|
-
ChainPromptType: () =>
|
|
38
|
-
ChainType: () =>
|
|
27
|
+
ChainInputSchema: () => import_chunk_H3RSMGJG.ChainInputSchema,
|
|
28
|
+
ChainInputType: () => import_chunk_H3RSMGJG.ChainInputType,
|
|
29
|
+
ChainPromptType: () => import_chunk_H3RSMGJG.ChainPromptType,
|
|
30
|
+
ChainType: () => import_chunk_H3RSMGJG.ChainType,
|
|
31
|
+
ChatContainer: () => import_chunk_D2QQXWOY.ChatContainer,
|
|
32
|
+
MarkdownViewer: () => import_chunk_NH7STAX6.MarkdownViewer,
|
|
33
|
+
PromptEditor: () => import_chunk_D2QQXWOY.PromptEditor,
|
|
34
|
+
ServiceRegistry: () => import_chunk_D2QQXWOY.ServiceRegistry,
|
|
35
|
+
ServiceType: () => import_chunk_H3RSMGJG.ServiceType,
|
|
36
|
+
Thread: () => import_chunk_NH7STAX6.Thread,
|
|
37
|
+
TriggerEditor: () => import_chunk_OCW5GAVZ.TriggerEditor,
|
|
38
|
+
categoryIcons: () => import_chunk_H3RSMGJG.categoryIcons,
|
|
39
39
|
chainPresets: () => chainPresets,
|
|
40
|
-
|
|
40
|
+
meta: () => import_chunk_TQEDPRY5.meta,
|
|
41
41
|
str: () => str
|
|
42
42
|
});
|
|
43
43
|
module.exports = __toCommonJS(node_exports);
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
44
|
+
var import_chunk_D2QQXWOY = require("./chunk-D2QQXWOY.cjs");
|
|
45
|
+
var import_chunk_OCW5GAVZ = require("./chunk-OCW5GAVZ.cjs");
|
|
46
|
+
var import_chunk_NH7STAX6 = require("./chunk-NH7STAX6.cjs");
|
|
47
|
+
var import_chunk_AWZVJZ2I = require("./chunk-AWZVJZ2I.cjs");
|
|
48
|
+
var import_chunk_H3RSMGJG = require("./chunk-H3RSMGJG.cjs");
|
|
49
|
+
var import_chunk_TQEDPRY5 = require("./chunk-TQEDPRY5.cjs");
|
|
47
50
|
var import_app_framework = require("@dxos/app-framework");
|
|
48
51
|
var import_functions = require("@dxos/functions");
|
|
49
|
-
var import_invariant = require("@dxos/invariant");
|
|
50
52
|
var import_plugin_client = require("@dxos/plugin-client");
|
|
51
|
-
var
|
|
52
|
-
var import_plugin_space = require("@dxos/plugin-space");
|
|
53
|
+
var import_plugin_deck = require("@dxos/plugin-deck");
|
|
53
54
|
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
55
|
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
56
|
var translations_default = [
|
|
60
57
|
{
|
|
61
58
|
"en-US": {
|
|
62
|
-
[
|
|
59
|
+
[import_chunk_H3RSMGJG.AIChatType.typename]: {
|
|
60
|
+
"typename label": "AI Chat"
|
|
61
|
+
},
|
|
62
|
+
[import_chunk_TQEDPRY5.AUTOMATION_PLUGIN]: {
|
|
63
63
|
"plugin name": "Automation",
|
|
64
64
|
"object placeholder": "New prompt",
|
|
65
65
|
"create object label": "Create prompt",
|
|
@@ -70,6 +70,10 @@ var translations_default = [
|
|
|
70
70
|
"value placeholder": "Enter value...",
|
|
71
71
|
"select preset template placeholder": "Select preset",
|
|
72
72
|
"open automation panel label": "Show Automations",
|
|
73
|
+
"automation panel label": "Automations",
|
|
74
|
+
"service registry label": "Service Registry",
|
|
75
|
+
"chat input placeholder": "Ask a question...",
|
|
76
|
+
"chat stop": "Cancel request.",
|
|
73
77
|
"function select label": "Function",
|
|
74
78
|
"function select placeholder": "Select function",
|
|
75
79
|
"function enabled": "Enabled",
|
|
@@ -79,254 +83,127 @@ var translations_default = [
|
|
|
79
83
|
"trigger type webhook": "Webhook",
|
|
80
84
|
"trigger type websocket": "Websocket",
|
|
81
85
|
"trigger type subscription": "Subscription",
|
|
86
|
+
"trigger type email": "Email",
|
|
82
87
|
"trigger filter": "Filter",
|
|
83
88
|
"trigger cron": "Cron",
|
|
84
89
|
"trigger method": "Method",
|
|
85
90
|
"trigger endpoint": "Endpoint",
|
|
86
|
-
"
|
|
87
|
-
"
|
|
91
|
+
"trigger copy url": "Copy URL",
|
|
92
|
+
"trigger copy email": "Copy Email",
|
|
93
|
+
"trigger meta add": "Add",
|
|
94
|
+
"trigger meta remove": "Remove",
|
|
95
|
+
"trigger meta prop name placeholder": "New meta property name"
|
|
88
96
|
}
|
|
89
97
|
}
|
|
90
98
|
}
|
|
91
99
|
];
|
|
92
|
-
var
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
100
|
+
var AutomationPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_TQEDPRY5.meta, [
|
|
101
|
+
(0, import_app_framework.defineModule)({
|
|
102
|
+
id: `${import_chunk_TQEDPRY5.meta.id}/module/ai-client`,
|
|
103
|
+
activatesOn: import_plugin_client.ClientEvents.ClientReady,
|
|
104
|
+
activate: import_chunk_NH7STAX6.AiClient
|
|
105
|
+
}),
|
|
106
|
+
(0, import_app_framework.defineModule)({
|
|
107
|
+
id: `${import_chunk_TQEDPRY5.meta.id}/module/translations`,
|
|
108
|
+
activatesOn: import_app_framework.Events.SetupTranslations,
|
|
109
|
+
activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Translations, translations_default)
|
|
110
|
+
}),
|
|
111
|
+
(0, import_app_framework.defineModule)({
|
|
112
|
+
id: `${import_chunk_TQEDPRY5.meta.id}/module/metadata`,
|
|
113
|
+
activatesOn: import_app_framework.Events.SetupMetadata,
|
|
114
|
+
activate: () => [
|
|
115
|
+
(0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
|
|
116
|
+
id: import_chunk_H3RSMGJG.ChainType.typename,
|
|
117
|
+
metadata: {
|
|
118
|
+
placeholder: [
|
|
119
|
+
"object placeholder",
|
|
120
|
+
{
|
|
121
|
+
ns: import_chunk_TQEDPRY5.AUTOMATION_PLUGIN
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
icon: "ph--magic-wand--regular",
|
|
125
|
+
// TODO(wittjosiah): Move out of metadata.
|
|
126
|
+
loadReferences: async (chain) => await import_echo.RefArray.loadAll(chain.prompts ?? [])
|
|
110
127
|
}
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
128
|
+
}),
|
|
129
|
+
(0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
|
|
130
|
+
id: import_chunk_H3RSMGJG.AIChatType.typename,
|
|
131
|
+
metadata: {
|
|
132
|
+
createObject: (props) => (0, import_app_framework.createIntent)(import_chunk_H3RSMGJG.AutomationAction.Create, props),
|
|
133
|
+
placeholder: [
|
|
134
|
+
"object placeholder",
|
|
135
|
+
{
|
|
136
|
+
ns: import_chunk_TQEDPRY5.AUTOMATION_PLUGIN
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
icon: "ph--atom--regular"
|
|
140
|
+
}
|
|
141
|
+
})
|
|
142
|
+
]
|
|
143
|
+
}),
|
|
144
|
+
(0, import_app_framework.defineModule)({
|
|
145
|
+
id: `${import_chunk_TQEDPRY5.meta.id}/module/schema`,
|
|
146
|
+
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
147
|
+
activate: () => [
|
|
148
|
+
(0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.SystemSchema, [
|
|
149
|
+
import_chunk_H3RSMGJG.ChainType,
|
|
150
|
+
import_chunk_H3RSMGJG.ChainPromptType,
|
|
151
|
+
import_functions.FunctionTrigger,
|
|
152
|
+
import_chunk_H3RSMGJG.ServiceType
|
|
153
|
+
]),
|
|
154
|
+
(0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.Schema, [
|
|
155
|
+
import_chunk_H3RSMGJG.AIChatType
|
|
156
|
+
])
|
|
157
|
+
]
|
|
158
|
+
}),
|
|
159
|
+
(0, import_app_framework.defineModule)({
|
|
160
|
+
id: `${import_chunk_TQEDPRY5.meta.id}/module/complementary-panels`,
|
|
161
|
+
activatesOn: import_app_framework.Events.Startup,
|
|
162
|
+
activate: () => [
|
|
163
|
+
(0, import_app_framework.contributes)(import_plugin_deck.DeckCapabilities.ComplementaryPanel, {
|
|
164
|
+
id: "service-registry",
|
|
165
|
+
label: [
|
|
166
|
+
"service registry label",
|
|
135
167
|
{
|
|
136
|
-
|
|
137
|
-
label: [
|
|
138
|
-
"open assistant panel label",
|
|
139
|
-
{
|
|
140
|
-
ns: import_chunk_DTJ7XVO2.AUTOMATION_PLUGIN
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
icon: "ph--atom--regular"
|
|
168
|
+
ns: import_chunk_TQEDPRY5.AUTOMATION_PLUGIN
|
|
144
169
|
}
|
|
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
|
-
}
|
|
170
|
+
],
|
|
171
|
+
icon: "ph--plugs--regular"
|
|
172
|
+
}),
|
|
173
|
+
(0, import_app_framework.contributes)(import_plugin_deck.DeckCapabilities.ComplementaryPanel, {
|
|
174
|
+
id: "automation",
|
|
175
|
+
label: [
|
|
176
|
+
"automation panel label",
|
|
177
|
+
{
|
|
178
|
+
ns: import_chunk_TQEDPRY5.AUTOMATION_PLUGIN
|
|
313
179
|
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
180
|
+
],
|
|
181
|
+
icon: "ph--magic-wand--regular"
|
|
182
|
+
})
|
|
183
|
+
]
|
|
184
|
+
}),
|
|
185
|
+
(0, import_app_framework.defineModule)({
|
|
186
|
+
id: `${import_chunk_TQEDPRY5.meta.id}/module/react-surface`,
|
|
187
|
+
activatesOn: import_app_framework.Events.SetupSurfaces,
|
|
188
|
+
activate: import_chunk_NH7STAX6.ReactSurface
|
|
189
|
+
}),
|
|
190
|
+
(0, import_app_framework.defineModule)({
|
|
191
|
+
id: `${import_chunk_TQEDPRY5.meta.id}/module/app-graph-builder`,
|
|
192
|
+
activatesOn: import_app_framework.Events.SetupAppGraph,
|
|
193
|
+
activate: import_chunk_NH7STAX6.AppGraphBuilder
|
|
194
|
+
}),
|
|
195
|
+
(0, import_app_framework.defineModule)({
|
|
196
|
+
id: `${import_chunk_TQEDPRY5.meta.id}/module/intent-resolver`,
|
|
197
|
+
activatesOn: import_app_framework.Events.SetupIntents,
|
|
198
|
+
activate: import_chunk_NH7STAX6.IntentResolver
|
|
199
|
+
})
|
|
200
|
+
]);
|
|
324
201
|
var str = (...text) => text.filter((value) => value !== void 0 && value !== false).flat().join("\n");
|
|
325
202
|
var chainPresets = [
|
|
326
203
|
{
|
|
327
204
|
id: "dxos.org/prompt/translate",
|
|
328
205
|
title: "Translate",
|
|
329
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
206
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
|
|
330
207
|
command: "say",
|
|
331
208
|
template: str(
|
|
332
209
|
// prettier-ignore
|
|
@@ -338,12 +215,12 @@ var chainPresets = [
|
|
|
338
215
|
),
|
|
339
216
|
inputs: [
|
|
340
217
|
{
|
|
341
|
-
type:
|
|
218
|
+
type: import_chunk_H3RSMGJG.ChainInputType.VALUE,
|
|
342
219
|
name: "language",
|
|
343
220
|
value: "japanese"
|
|
344
221
|
},
|
|
345
222
|
{
|
|
346
|
-
type:
|
|
223
|
+
type: import_chunk_H3RSMGJG.ChainInputType.PASS_THROUGH,
|
|
347
224
|
name: "input"
|
|
348
225
|
}
|
|
349
226
|
]
|
|
@@ -352,7 +229,7 @@ var chainPresets = [
|
|
|
352
229
|
{
|
|
353
230
|
id: "dxos.org/prompt/chess",
|
|
354
231
|
title: "Chess",
|
|
355
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
232
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
|
|
356
233
|
command: "hint",
|
|
357
234
|
template: str(
|
|
358
235
|
// prettier-ignore
|
|
@@ -364,7 +241,7 @@ var chainPresets = [
|
|
|
364
241
|
),
|
|
365
242
|
inputs: [
|
|
366
243
|
{
|
|
367
|
-
type:
|
|
244
|
+
type: import_chunk_H3RSMGJG.ChainInputType.CONTEXT,
|
|
368
245
|
name: "history",
|
|
369
246
|
value: "object.pgn"
|
|
370
247
|
}
|
|
@@ -374,7 +251,7 @@ var chainPresets = [
|
|
|
374
251
|
{
|
|
375
252
|
id: "dxos.org/prompt/mermaid",
|
|
376
253
|
title: "Mermaid",
|
|
377
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
254
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
|
|
378
255
|
command: "draw",
|
|
379
256
|
template: str(
|
|
380
257
|
// prettier-ignore
|
|
@@ -387,7 +264,7 @@ var chainPresets = [
|
|
|
387
264
|
),
|
|
388
265
|
inputs: [
|
|
389
266
|
{
|
|
390
|
-
type:
|
|
267
|
+
type: import_chunk_H3RSMGJG.ChainInputType.PASS_THROUGH,
|
|
391
268
|
name: "input"
|
|
392
269
|
}
|
|
393
270
|
]
|
|
@@ -396,7 +273,7 @@ var chainPresets = [
|
|
|
396
273
|
{
|
|
397
274
|
id: "dxos.org/prompt/list",
|
|
398
275
|
title: "List",
|
|
399
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
276
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
|
|
400
277
|
command: "list",
|
|
401
278
|
template: str(
|
|
402
279
|
// prettier-ignore
|
|
@@ -413,12 +290,12 @@ var chainPresets = [
|
|
|
413
290
|
),
|
|
414
291
|
inputs: [
|
|
415
292
|
{
|
|
416
|
-
type:
|
|
293
|
+
type: import_chunk_H3RSMGJG.ChainInputType.SCHEMA,
|
|
417
294
|
name: "schema",
|
|
418
295
|
value: "example.com/type/project"
|
|
419
296
|
},
|
|
420
297
|
{
|
|
421
|
-
type:
|
|
298
|
+
type: import_chunk_H3RSMGJG.ChainInputType.PASS_THROUGH,
|
|
422
299
|
name: "question"
|
|
423
300
|
}
|
|
424
301
|
]
|
|
@@ -427,7 +304,7 @@ var chainPresets = [
|
|
|
427
304
|
{
|
|
428
305
|
id: "dxos.org/prompt/base",
|
|
429
306
|
title: "RAG",
|
|
430
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
307
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
|
|
431
308
|
command: "rag",
|
|
432
309
|
template: str(
|
|
433
310
|
// prettier-ignore
|
|
@@ -442,11 +319,11 @@ var chainPresets = [
|
|
|
442
319
|
),
|
|
443
320
|
inputs: [
|
|
444
321
|
{
|
|
445
|
-
type:
|
|
322
|
+
type: import_chunk_H3RSMGJG.ChainInputType.RETRIEVER,
|
|
446
323
|
name: "context"
|
|
447
324
|
},
|
|
448
325
|
{
|
|
449
|
-
type:
|
|
326
|
+
type: import_chunk_H3RSMGJG.ChainInputType.CONTEXT,
|
|
450
327
|
name: "question",
|
|
451
328
|
value: "object.text"
|
|
452
329
|
}
|
|
@@ -456,7 +333,7 @@ var chainPresets = [
|
|
|
456
333
|
{
|
|
457
334
|
id: "dxos.org/prompt/lookup",
|
|
458
335
|
title: "Lookup",
|
|
459
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
336
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
|
|
460
337
|
command: "lookup",
|
|
461
338
|
template: str(
|
|
462
339
|
// prettier-ignore
|
|
@@ -468,7 +345,7 @@ var chainPresets = [
|
|
|
468
345
|
),
|
|
469
346
|
inputs: [
|
|
470
347
|
{
|
|
471
|
-
type:
|
|
348
|
+
type: import_chunk_H3RSMGJG.ChainInputType.CONTEXT,
|
|
472
349
|
name: "input",
|
|
473
350
|
value: "text"
|
|
474
351
|
}
|
|
@@ -478,7 +355,7 @@ var chainPresets = [
|
|
|
478
355
|
{
|
|
479
356
|
id: "dxos.org/prompt/extract",
|
|
480
357
|
title: "Extract",
|
|
481
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
358
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
|
|
482
359
|
command: "extract",
|
|
483
360
|
template: str(
|
|
484
361
|
// prettier-ignore
|
|
@@ -496,17 +373,17 @@ var chainPresets = [
|
|
|
496
373
|
),
|
|
497
374
|
inputs: [
|
|
498
375
|
{
|
|
499
|
-
type:
|
|
376
|
+
type: import_chunk_H3RSMGJG.ChainInputType.SCHEMA,
|
|
500
377
|
name: "contact",
|
|
501
378
|
value: "example.com/type/contact"
|
|
502
379
|
},
|
|
503
380
|
{
|
|
504
|
-
type:
|
|
381
|
+
type: import_chunk_H3RSMGJG.ChainInputType.SCHEMA,
|
|
505
382
|
name: "company",
|
|
506
383
|
value: "example.com/type/organization"
|
|
507
384
|
},
|
|
508
385
|
{
|
|
509
|
-
type:
|
|
386
|
+
type: import_chunk_H3RSMGJG.ChainInputType.CONTEXT,
|
|
510
387
|
name: "input",
|
|
511
388
|
value: "text"
|
|
512
389
|
}
|
|
@@ -516,7 +393,7 @@ var chainPresets = [
|
|
|
516
393
|
{
|
|
517
394
|
id: "dxos.org/prompt/discord",
|
|
518
395
|
title: "Summarize",
|
|
519
|
-
createPrompt: () => (0, import_live_object.create)(
|
|
396
|
+
createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
|
|
520
397
|
command: "summarize",
|
|
521
398
|
template: str(
|
|
522
399
|
// prettier-ignore
|
|
@@ -528,7 +405,7 @@ var chainPresets = [
|
|
|
528
405
|
),
|
|
529
406
|
inputs: [
|
|
530
407
|
{
|
|
531
|
-
type:
|
|
408
|
+
type: import_chunk_H3RSMGJG.ChainInputType.RESOLVER,
|
|
532
409
|
name: "context",
|
|
533
410
|
value: "discord.messages.recent"
|
|
534
411
|
}
|
|
@@ -536,10 +413,11 @@ var chainPresets = [
|
|
|
536
413
|
})
|
|
537
414
|
}
|
|
538
415
|
];
|
|
539
|
-
var src_default = AutomationPlugin;
|
|
540
416
|
// Annotate the CommonJS export names for ESM import in node:
|
|
541
417
|
0 && (module.exports = {
|
|
542
|
-
|
|
418
|
+
AIChatType,
|
|
419
|
+
AUTOMATION_PLUGIN,
|
|
420
|
+
ApiAuthorization,
|
|
543
421
|
AutomationAction,
|
|
544
422
|
AutomationPanel,
|
|
545
423
|
AutomationPlugin,
|
|
@@ -547,7 +425,16 @@ var src_default = AutomationPlugin;
|
|
|
547
425
|
ChainInputType,
|
|
548
426
|
ChainPromptType,
|
|
549
427
|
ChainType,
|
|
428
|
+
ChatContainer,
|
|
429
|
+
MarkdownViewer,
|
|
430
|
+
PromptEditor,
|
|
431
|
+
ServiceRegistry,
|
|
432
|
+
ServiceType,
|
|
433
|
+
Thread,
|
|
434
|
+
TriggerEditor,
|
|
435
|
+
categoryIcons,
|
|
550
436
|
chainPresets,
|
|
437
|
+
meta,
|
|
551
438
|
str
|
|
552
439
|
});
|
|
553
440
|
//# sourceMappingURL=index.cjs.map
|