@dxos/plugin-automation 0.6.14-main.8b352a0 → 0.6.14-staging.3e2eaca
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/{PromptContainer-RFMJXMUA.mjs → PromptContainer-3GUENQHE.mjs} +4 -4
- package/dist/lib/browser/{chunk-PSSWFA6A.mjs → chunk-2FOJUVYG.mjs} +3 -3
- package/dist/lib/browser/{chunk-GGA62V7D.mjs → chunk-J4SYTP4Y.mjs} +2 -2
- package/dist/lib/browser/{chunk-GGA62V7D.mjs.map → chunk-J4SYTP4Y.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-3TNRXJTD.mjs → chunk-PQLGYMNY.mjs} +6 -2
- package/dist/lib/browser/{chunk-3TNRXJTD.mjs.map → chunk-PQLGYMNY.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +88 -44
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/meta.mjs +1 -1
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node/{PromptContainer-FRSY6FNL.cjs → PromptContainer-74ZRO4HK.cjs} +8 -8
- package/dist/lib/node/{chunk-E2H3AGKB.cjs → chunk-4TMTUB4X.cjs} +18 -18
- package/dist/lib/node/{chunk-UPPUTAPL.cjs → chunk-JSZ6PAYL.cjs} +9 -5
- package/dist/lib/node/{chunk-UPPUTAPL.cjs.map → chunk-JSZ6PAYL.cjs.map} +3 -3
- package/dist/lib/node/{chunk-N5IDAUFU.cjs → chunk-XS53UP75.cjs} +6 -6
- package/dist/lib/node/{chunk-N5IDAUFU.cjs.map → chunk-XS53UP75.cjs.map} +2 -2
- package/dist/lib/node/index.cjs +128 -84
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.cjs +3 -3
- package/dist/lib/node/meta.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/types/index.cjs +7 -7
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{PromptContainer-4VHFPEQH.mjs → PromptContainer-5OK4GWIR.mjs} +4 -4
- package/dist/lib/node-esm/{chunk-UT6QKU6J.mjs → chunk-AAUSG7OA.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-UT6QKU6J.mjs.map → chunk-AAUSG7OA.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-QAPWYK2P.mjs → chunk-B35UD3D7.mjs} +6 -2
- package/dist/lib/node-esm/{chunk-QAPWYK2P.mjs.map → chunk-B35UD3D7.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-HFTXKLRR.mjs → chunk-FN6DOJZP.mjs} +3 -3
- package/dist/lib/node-esm/index.mjs +88 -44
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/meta.mjs +1 -1
- package/dist/lib/node-esm/types/index.mjs +2 -2
- package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +14 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +2 -1
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/package.json +33 -31
- package/src/AutomationPlugin.tsx +10 -1
- package/src/components/AutomationPanel.tsx +2 -0
- package/src/components/TriggerEditor/TriggerEditor.tsx +59 -44
- package/src/meta.ts +3 -1
- package/src/translations.ts +16 -6
- package/src/types/types.ts +3 -1
- /package/dist/lib/browser/{PromptContainer-RFMJXMUA.mjs.map → PromptContainer-3GUENQHE.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-PSSWFA6A.mjs.map → chunk-2FOJUVYG.mjs.map} +0 -0
- /package/dist/lib/node/{PromptContainer-FRSY6FNL.cjs.map → PromptContainer-74ZRO4HK.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-E2H3AGKB.cjs.map → chunk-4TMTUB4X.cjs.map} +0 -0
- /package/dist/lib/node-esm/{PromptContainer-4VHFPEQH.mjs.map → PromptContainer-5OK4GWIR.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-HFTXKLRR.mjs.map → chunk-FN6DOJZP.mjs.map} +0 -0
|
@@ -26,20 +26,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var PromptContainer_74ZRO4HK_exports = {};
|
|
30
|
+
__export(PromptContainer_74ZRO4HK_exports, {
|
|
31
31
|
default: () => PromptContainer_default
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(PromptContainer_74ZRO4HK_exports);
|
|
34
|
+
var import_chunk_4TMTUB4X = require("./chunk-4TMTUB4X.cjs");
|
|
35
|
+
var import_chunk_XS53UP75 = require("./chunk-XS53UP75.cjs");
|
|
36
|
+
var import_chunk_JSZ6PAYL = require("./chunk-JSZ6PAYL.cjs");
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
38
|
var PromptContainer = (props) => {
|
|
39
39
|
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
40
40
|
role: "none",
|
|
41
41
|
className: "row-span-2 pli-2"
|
|
42
|
-
}, /* @__PURE__ */ import_react.default.createElement(
|
|
42
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_chunk_4TMTUB4X.PromptEditor, props));
|
|
43
43
|
};
|
|
44
44
|
var PromptContainer_default = PromptContainer;
|
|
45
|
-
//# sourceMappingURL=PromptContainer-
|
|
45
|
+
//# sourceMappingURL=PromptContainer-74ZRO4HK.cjs.map
|
|
@@ -26,13 +26,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_4TMTUB4X_exports = {};
|
|
30
|
+
__export(chunk_4TMTUB4X_exports, {
|
|
31
31
|
PromptEditor: () => PromptEditor
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
35
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_4TMTUB4X_exports);
|
|
34
|
+
var import_chunk_XS53UP75 = require("./chunk-XS53UP75.cjs");
|
|
35
|
+
var import_chunk_JSZ6PAYL = require("./chunk-JSZ6PAYL.cjs");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var import_echo = require("@dxos/react-client/echo");
|
|
38
38
|
var import_react_ui = require("@dxos/react-ui");
|
|
@@ -73,15 +73,15 @@ var promptExtension = [
|
|
|
73
73
|
];
|
|
74
74
|
var inputTypes = [
|
|
75
75
|
{
|
|
76
|
-
value:
|
|
76
|
+
value: import_chunk_XS53UP75.ChainInputType.VALUE,
|
|
77
77
|
label: "Value"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
|
-
value:
|
|
80
|
+
value: import_chunk_XS53UP75.ChainInputType.PASS_THROUGH,
|
|
81
81
|
label: "Pass through"
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
value:
|
|
84
|
+
value: import_chunk_XS53UP75.ChainInputType.RETRIEVER,
|
|
85
85
|
label: "Retriever"
|
|
86
86
|
},
|
|
87
87
|
// {
|
|
@@ -93,15 +93,15 @@ var inputTypes = [
|
|
|
93
93
|
// label: 'Query',
|
|
94
94
|
// },
|
|
95
95
|
{
|
|
96
|
-
value:
|
|
96
|
+
value: import_chunk_XS53UP75.ChainInputType.RESOLVER,
|
|
97
97
|
label: "Resolver"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
|
-
value:
|
|
100
|
+
value: import_chunk_XS53UP75.ChainInputType.CONTEXT,
|
|
101
101
|
label: "Context"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
value:
|
|
104
|
+
value: import_chunk_XS53UP75.ChainInputType.SCHEMA,
|
|
105
105
|
label: "Schema"
|
|
106
106
|
}
|
|
107
107
|
];
|
|
@@ -147,7 +147,7 @@ var usePromptInputs = (prompt) => {
|
|
|
147
147
|
]);
|
|
148
148
|
};
|
|
149
149
|
var PromptEditor = ({ prompt, commandEditable = true }) => {
|
|
150
|
-
const { t } = (0, import_react_ui.useTranslation)(
|
|
150
|
+
const { t } = (0, import_react_ui.useTranslation)(import_chunk_JSZ6PAYL.AUTOMATION_PLUGIN);
|
|
151
151
|
const { themeMode } = (0, import_react_ui.useThemeContext)();
|
|
152
152
|
const { parentRef } = (0, import_react_ui_editor.useTextEditor)(() => ({
|
|
153
153
|
initialValue: prompt.template,
|
|
@@ -209,7 +209,7 @@ var PromptEditor = ({ prompt, commandEditable = true }) => {
|
|
|
209
209
|
}, /* @__PURE__ */ import_react.default.createElement(import_react_ui.Input.Root, null, /* @__PURE__ */ import_react.default.createElement(import_react_ui.Select.Root, {
|
|
210
210
|
value: String(input.type),
|
|
211
211
|
onValueChange: (type) => {
|
|
212
|
-
input.type = getInputType(type) ??
|
|
212
|
+
input.type = getInputType(type) ?? import_chunk_XS53UP75.ChainInputType.VALUE;
|
|
213
213
|
}
|
|
214
214
|
}, /* @__PURE__ */ import_react.default.createElement(import_react_ui.Select.TriggerButton, {
|
|
215
215
|
placeholder: "Type",
|
|
@@ -220,10 +220,10 @@ var PromptEditor = ({ prompt, commandEditable = true }) => {
|
|
|
220
220
|
}, label)))))))), /* @__PURE__ */ import_react.default.createElement("td", {
|
|
221
221
|
className: "p-1 pr-2"
|
|
222
222
|
}, input.type !== void 0 && [
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
import_chunk_XS53UP75.ChainInputType.VALUE,
|
|
224
|
+
import_chunk_XS53UP75.ChainInputType.CONTEXT,
|
|
225
|
+
import_chunk_XS53UP75.ChainInputType.RESOLVER,
|
|
226
|
+
import_chunk_XS53UP75.ChainInputType.SCHEMA
|
|
227
227
|
].includes(input.type) && /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(import_react_ui.Input.Root, null, /* @__PURE__ */ import_react.default.createElement(import_react_ui.Input.TextInput, {
|
|
228
228
|
placeholder: t("command placeholder"),
|
|
229
229
|
classNames: (0, import_react_ui_theme.mx)("is-full bg-transparent"),
|
|
@@ -237,4 +237,4 @@ var PromptEditor = ({ prompt, commandEditable = true }) => {
|
|
|
237
237
|
0 && (module.exports = {
|
|
238
238
|
PromptEditor
|
|
239
239
|
});
|
|
240
|
-
//# sourceMappingURL=chunk-
|
|
240
|
+
//# sourceMappingURL=chunk-4TMTUB4X.cjs.map
|
|
@@ -16,22 +16,26 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_JSZ6PAYL_exports = {};
|
|
20
|
+
__export(chunk_JSZ6PAYL_exports, {
|
|
21
21
|
AUTOMATION_PLUGIN: () => AUTOMATION_PLUGIN,
|
|
22
22
|
meta_default: () => meta_default
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(chunk_JSZ6PAYL_exports);
|
|
25
25
|
var AUTOMATION_PLUGIN = "dxos.org/plugin/automation";
|
|
26
26
|
var meta_default = {
|
|
27
27
|
id: AUTOMATION_PLUGIN,
|
|
28
28
|
name: "Automation",
|
|
29
29
|
description: "Automation workflows.",
|
|
30
|
-
icon: "ph--
|
|
30
|
+
icon: "ph--flow-arrow--regular",
|
|
31
|
+
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-automation",
|
|
32
|
+
tags: [
|
|
33
|
+
"experimental"
|
|
34
|
+
]
|
|
31
35
|
};
|
|
32
36
|
// Annotate the CommonJS export names for ESM import in node:
|
|
33
37
|
0 && (module.exports = {
|
|
34
38
|
AUTOMATION_PLUGIN,
|
|
35
39
|
meta_default
|
|
36
40
|
});
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
41
|
+
//# sourceMappingURL=chunk-JSZ6PAYL.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const AUTOMATION_PLUGIN = 'dxos.org/plugin/automation';\n\nexport default {\n id: AUTOMATION_PLUGIN,\n name: 'Automation',\n description: 'Automation workflows.',\n icon: 'ph--
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,oBAAoB;AAEjC,IAAA,eAAe;EACbC,IAAID;EACJE,MAAM;EACNC,aAAa;EACbC,MAAM;
|
|
6
|
-
"names": ["AUTOMATION_PLUGIN", "id", "name", "description", "icon"]
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const AUTOMATION_PLUGIN = 'dxos.org/plugin/automation';\n\nexport default {\n id: AUTOMATION_PLUGIN,\n name: 'Automation',\n description: 'Automation workflows.',\n icon: 'ph--flow-arrow--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-automation',\n tags: ['experimental'],\n} satisfies PluginMeta;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,oBAAoB;AAEjC,IAAA,eAAe;EACbC,IAAID;EACJE,MAAM;EACNC,aAAa;EACbC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;",
|
|
6
|
+
"names": ["AUTOMATION_PLUGIN", "id", "name", "description", "icon", "source", "tags"]
|
|
7
7
|
}
|
|
@@ -16,16 +16,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_XS53UP75_exports = {};
|
|
20
|
+
__export(chunk_XS53UP75_exports, {
|
|
21
21
|
AutomationAction: () => AutomationAction,
|
|
22
22
|
ChainInputSchema: () => ChainInputSchema,
|
|
23
23
|
ChainInputType: () => ChainInputType,
|
|
24
24
|
ChainPromptType: () => ChainPromptType,
|
|
25
25
|
ChainType: () => ChainType
|
|
26
26
|
});
|
|
27
|
-
module.exports = __toCommonJS(
|
|
28
|
-
var
|
|
27
|
+
module.exports = __toCommonJS(chunk_XS53UP75_exports);
|
|
28
|
+
var import_chunk_JSZ6PAYL = require("./chunk-JSZ6PAYL.cjs");
|
|
29
29
|
var import_echo_schema = require("@dxos/echo-schema");
|
|
30
30
|
var ChainInputType;
|
|
31
31
|
(function(ChainInputType2) {
|
|
@@ -60,7 +60,7 @@ var ChainType = class extends (0, import_echo_schema.TypedObject)({
|
|
|
60
60
|
prompts: import_echo_schema.S.optional(import_echo_schema.S.mutable(import_echo_schema.S.Array((0, import_echo_schema.ref)(ChainPromptType))))
|
|
61
61
|
}) {
|
|
62
62
|
};
|
|
63
|
-
var AUTOMATION_ACTION = `${
|
|
63
|
+
var AUTOMATION_ACTION = `${import_chunk_JSZ6PAYL.AUTOMATION_PLUGIN}/action`;
|
|
64
64
|
var AutomationAction;
|
|
65
65
|
(function(AutomationAction2) {
|
|
66
66
|
AutomationAction2[AutomationAction2["CREATE"] = `${AUTOMATION_ACTION}/create`] = "CREATE";
|
|
@@ -73,4 +73,4 @@ var AutomationAction;
|
|
|
73
73
|
ChainPromptType,
|
|
74
74
|
ChainType
|
|
75
75
|
});
|
|
76
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-XS53UP75.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/types/chain.ts", "../../../src/types/types.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { ref, S, TypedObject } from '@dxos/echo-schema';\n\n// TODO(burdon): Change to S.Literal (and discriminated union).\nexport enum ChainInputType {\n VALUE = 0,\n PASS_THROUGH = 1,\n RETRIEVER = 2,\n FUNCTION = 3,\n QUERY = 4,\n RESOLVER = 5,\n CONTEXT = 6,\n SCHEMA = 7,\n}\n\nexport const ChainInputSchema = S.mutable(\n S.Struct({\n name: S.String,\n type: S.optional(S.Enums(ChainInputType)),\n value: S.optional(S.String),\n }),\n);\n\nexport type ChainInput = S.Schema.Type<typeof ChainInputSchema>;\n\nexport class ChainPromptType extends TypedObject({ typename: 'dxos.org/type/ChainPrompt', version: '0.1.0' })({\n command: S.optional(S.String),\n template: S.String,\n inputs: S.optional(S.mutable(S.Array(ChainInputSchema))),\n}) {}\n\nexport class ChainType extends TypedObject({ typename: 'dxos.org/type/Chain', version: '0.1.0' })({\n name: S.optional(S.String),\n prompts: S.optional(S.mutable(S.Array(ref(ChainPromptType)))),\n}) {}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type {\n GraphBuilderProvides,\n IntentResolverProvides,\n MetadataRecordsProvides,\n SurfaceProvides,\n TranslationsProvides,\n} from '@dxos/app-framework';\nimport { type SchemaProvides } from '@dxos/plugin-client';\n\nimport { AUTOMATION_PLUGIN } from '../meta';\n\nconst AUTOMATION_ACTION = `${AUTOMATION_PLUGIN}/action`;\n\nexport enum AutomationAction {\n CREATE = `${AUTOMATION_ACTION}/create`,\n}\n\nexport type AutomationPluginProvides = SurfaceProvides &\n IntentResolverProvides &\n MetadataRecordsProvides &\n TranslationsProvides &\n GraphBuilderProvides &\n SchemaProvides;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,yBAAoC;;UAGxBA,iBAAAA;;;;;;;;;GAAAA,mBAAAA,iBAAAA,CAAAA,EAAAA;AAWL,IAAMC,mBAAmBC,qBAAEC,QAChCD,qBAAEE,OAAO;EACPC,MAAMH,qBAAEI;EACRC,MAAML,qBAAEM,SAASN,qBAAEO,MAAMT,cAAAA,CAAAA;EACzBU,OAAOR,qBAAEM,SAASN,qBAAEI,MAAM;AAC5B,CAAA,CAAA;AAKK,IAAMK,kBAAN,kBAA8BC,gCAAY;EAAEC,UAAU;EAA6BC,SAAS;AAAQ,CAAA,EAAG;EAC5GC,SAASb,qBAAEM,SAASN,qBAAEI,MAAM;EAC5BU,UAAUd,qBAAEI;EACZW,QAAQf,qBAAEM,SAASN,qBAAEC,QAAQD,qBAAEgB,MAAMjB,gBAAAA,CAAAA,CAAAA;AACvC,CAAA,EAAA;AAAI;AAEG,IAAMkB,YAAN,kBAAwBP,gCAAY;EAAEC,UAAU;EAAuBC,SAAS;AAAQ,CAAA,EAAG;EAChGT,MAAMH,qBAAEM,SAASN,qBAAEI,MAAM;EACzBc,SAASlB,qBAAEM,SAASN,qBAAEC,QAAQD,qBAAEgB,UAAMG,wBAAIV,eAAAA,CAAAA,CAAAA,CAAAA;AAC5C,CAAA,EAAA;AAAI;
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { ref, S, TypedObject } from '@dxos/echo-schema';\n\n// TODO(burdon): Change to S.Literal (and discriminated union).\nexport enum ChainInputType {\n VALUE = 0,\n PASS_THROUGH = 1,\n RETRIEVER = 2,\n FUNCTION = 3,\n QUERY = 4,\n RESOLVER = 5,\n CONTEXT = 6,\n SCHEMA = 7,\n}\n\nexport const ChainInputSchema = S.mutable(\n S.Struct({\n name: S.String,\n type: S.optional(S.Enums(ChainInputType)),\n value: S.optional(S.String),\n }),\n);\n\nexport type ChainInput = S.Schema.Type<typeof ChainInputSchema>;\n\nexport class ChainPromptType extends TypedObject({ typename: 'dxos.org/type/ChainPrompt', version: '0.1.0' })({\n command: S.optional(S.String),\n template: S.String,\n inputs: S.optional(S.mutable(S.Array(ChainInputSchema))),\n}) {}\n\nexport class ChainType extends TypedObject({ typename: 'dxos.org/type/Chain', version: '0.1.0' })({\n name: S.optional(S.String),\n prompts: S.optional(S.mutable(S.Array(ref(ChainPromptType)))),\n}) {}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type {\n GraphBuilderProvides,\n IntentResolverProvides,\n MetadataRecordsProvides,\n SurfaceProvides,\n TranslationsProvides,\n} from '@dxos/app-framework';\nimport { type SchemaProvides } from '@dxos/plugin-client';\nimport { type PanelProvides } from '@dxos/plugin-deck/types';\n\nimport { AUTOMATION_PLUGIN } from '../meta';\n\nconst AUTOMATION_ACTION = `${AUTOMATION_PLUGIN}/action`;\n\nexport enum AutomationAction {\n CREATE = `${AUTOMATION_ACTION}/create`,\n}\n\nexport type AutomationPluginProvides = SurfaceProvides &\n IntentResolverProvides &\n MetadataRecordsProvides &\n TranslationsProvides &\n GraphBuilderProvides &\n SchemaProvides &\n PanelProvides;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,yBAAoC;;UAGxBA,iBAAAA;;;;;;;;;GAAAA,mBAAAA,iBAAAA,CAAAA,EAAAA;AAWL,IAAMC,mBAAmBC,qBAAEC,QAChCD,qBAAEE,OAAO;EACPC,MAAMH,qBAAEI;EACRC,MAAML,qBAAEM,SAASN,qBAAEO,MAAMT,cAAAA,CAAAA;EACzBU,OAAOR,qBAAEM,SAASN,qBAAEI,MAAM;AAC5B,CAAA,CAAA;AAKK,IAAMK,kBAAN,kBAA8BC,gCAAY;EAAEC,UAAU;EAA6BC,SAAS;AAAQ,CAAA,EAAG;EAC5GC,SAASb,qBAAEM,SAASN,qBAAEI,MAAM;EAC5BU,UAAUd,qBAAEI;EACZW,QAAQf,qBAAEM,SAASN,qBAAEC,QAAQD,qBAAEgB,MAAMjB,gBAAAA,CAAAA,CAAAA;AACvC,CAAA,EAAA;AAAI;AAEG,IAAMkB,YAAN,kBAAwBP,gCAAY;EAAEC,UAAU;EAAuBC,SAAS;AAAQ,CAAA,EAAG;EAChGT,MAAMH,qBAAEM,SAASN,qBAAEI,MAAM;EACzBc,SAASlB,qBAAEM,SAASN,qBAAEC,QAAQD,qBAAEgB,UAAMG,wBAAIV,eAAAA,CAAAA,CAAAA,CAAAA;AAC5C,CAAA,EAAA;AAAI;ACrBJ,IAAMW,oBAAoB,GAAGC,uCAAAA;;UAEjBC,mBAAAA;kDACD,GAAGF,iBAAAA,SAA0B,IAAA;GAD5BE,qBAAAA,mBAAAA,CAAAA,EAAAA;",
|
|
6
6
|
"names": ["ChainInputType", "ChainInputSchema", "S", "mutable", "Struct", "name", "String", "type", "optional", "Enums", "value", "ChainPromptType", "TypedObject", "typename", "version", "command", "template", "inputs", "Array", "ChainType", "prompts", "ref", "AUTOMATION_ACTION", "AUTOMATION_PLUGIN", "AutomationAction"]
|
|
7
7
|
}
|