@dxos/plugin-automation 0.6.14-main.8b352a0 → 0.6.14-staging.8758a12
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 +24 -9
- 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 +65 -50
- 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 +24 -9
- 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/meta.d.ts +2 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +1 -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 +32 -31
- package/src/AutomationPlugin.tsx +10 -1
- package/src/components/TriggerEditor/TriggerEditor.tsx +2 -2
- package/src/meta.ts +3 -1
- package/src/translations.ts +1 -0
- 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
package/dist/lib/node/index.cjs
CHANGED
|
@@ -28,26 +28,26 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
var node_exports = {};
|
|
30
30
|
__export(node_exports, {
|
|
31
|
-
AutomationAction: () =>
|
|
31
|
+
AutomationAction: () => import_chunk_XS53UP75.AutomationAction,
|
|
32
32
|
AutomationPanel: () => AutomationPanel,
|
|
33
33
|
AutomationPlugin: () => AutomationPlugin,
|
|
34
34
|
Chain: () => Chain,
|
|
35
|
-
ChainInputSchema: () =>
|
|
36
|
-
ChainInputType: () =>
|
|
35
|
+
ChainInputSchema: () => import_chunk_XS53UP75.ChainInputSchema,
|
|
36
|
+
ChainInputType: () => import_chunk_XS53UP75.ChainInputType,
|
|
37
37
|
ChainPresets: () => ChainPresets,
|
|
38
|
-
ChainPromptType: () =>
|
|
39
|
-
ChainType: () =>
|
|
38
|
+
ChainPromptType: () => import_chunk_XS53UP75.ChainPromptType,
|
|
39
|
+
ChainType: () => import_chunk_XS53UP75.ChainType,
|
|
40
40
|
PromptContainer: () => PromptContainer,
|
|
41
|
-
PromptEditor: () =>
|
|
41
|
+
PromptEditor: () => import_chunk_4TMTUB4X.PromptEditor,
|
|
42
42
|
TriggerEditor: () => TriggerEditor,
|
|
43
43
|
chainPresets: () => chainPresets,
|
|
44
44
|
default: () => src_default,
|
|
45
45
|
str: () => str
|
|
46
46
|
});
|
|
47
47
|
module.exports = __toCommonJS(node_exports);
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
48
|
+
var import_chunk_4TMTUB4X = require("./chunk-4TMTUB4X.cjs");
|
|
49
|
+
var import_chunk_XS53UP75 = require("./chunk-XS53UP75.cjs");
|
|
50
|
+
var import_chunk_JSZ6PAYL = require("./chunk-JSZ6PAYL.cjs");
|
|
51
51
|
var import_react = __toESM(require("react"));
|
|
52
52
|
var import_app_framework = require("@dxos/app-framework");
|
|
53
53
|
var import_types = require("@dxos/functions/types");
|
|
@@ -115,7 +115,7 @@ var chainPresets = [
|
|
|
115
115
|
{
|
|
116
116
|
id: "dxos.org/prompt/translate",
|
|
117
117
|
title: "Translate",
|
|
118
|
-
createPrompt: () => (0, import_echo_schema.create)(
|
|
118
|
+
createPrompt: () => (0, import_echo_schema.create)(import_chunk_XS53UP75.ChainPromptType, {
|
|
119
119
|
command: "say",
|
|
120
120
|
template: str(
|
|
121
121
|
// prettier-ignore
|
|
@@ -127,12 +127,12 @@ var chainPresets = [
|
|
|
127
127
|
),
|
|
128
128
|
inputs: [
|
|
129
129
|
{
|
|
130
|
-
type:
|
|
130
|
+
type: import_chunk_XS53UP75.ChainInputType.VALUE,
|
|
131
131
|
name: "language",
|
|
132
132
|
value: "japanese"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
type:
|
|
135
|
+
type: import_chunk_XS53UP75.ChainInputType.PASS_THROUGH,
|
|
136
136
|
name: "input"
|
|
137
137
|
}
|
|
138
138
|
]
|
|
@@ -141,7 +141,7 @@ var chainPresets = [
|
|
|
141
141
|
{
|
|
142
142
|
id: "dxos.org/prompt/chess",
|
|
143
143
|
title: "Chess",
|
|
144
|
-
createPrompt: () => (0, import_echo_schema.create)(
|
|
144
|
+
createPrompt: () => (0, import_echo_schema.create)(import_chunk_XS53UP75.ChainPromptType, {
|
|
145
145
|
command: "hint",
|
|
146
146
|
template: str(
|
|
147
147
|
// prettier-ignore
|
|
@@ -153,7 +153,7 @@ var chainPresets = [
|
|
|
153
153
|
),
|
|
154
154
|
inputs: [
|
|
155
155
|
{
|
|
156
|
-
type:
|
|
156
|
+
type: import_chunk_XS53UP75.ChainInputType.CONTEXT,
|
|
157
157
|
name: "history",
|
|
158
158
|
value: "object.pgn"
|
|
159
159
|
}
|
|
@@ -163,7 +163,7 @@ var chainPresets = [
|
|
|
163
163
|
{
|
|
164
164
|
id: "dxos.org/prompt/mermaid",
|
|
165
165
|
title: "Mermaid",
|
|
166
|
-
createPrompt: () => (0, import_echo_schema.create)(
|
|
166
|
+
createPrompt: () => (0, import_echo_schema.create)(import_chunk_XS53UP75.ChainPromptType, {
|
|
167
167
|
command: "draw",
|
|
168
168
|
template: str(
|
|
169
169
|
// prettier-ignore
|
|
@@ -176,7 +176,7 @@ var chainPresets = [
|
|
|
176
176
|
),
|
|
177
177
|
inputs: [
|
|
178
178
|
{
|
|
179
|
-
type:
|
|
179
|
+
type: import_chunk_XS53UP75.ChainInputType.PASS_THROUGH,
|
|
180
180
|
name: "input"
|
|
181
181
|
}
|
|
182
182
|
]
|
|
@@ -185,7 +185,7 @@ var chainPresets = [
|
|
|
185
185
|
{
|
|
186
186
|
id: "dxos.org/prompt/list",
|
|
187
187
|
title: "List",
|
|
188
|
-
createPrompt: () => (0, import_echo_schema.create)(
|
|
188
|
+
createPrompt: () => (0, import_echo_schema.create)(import_chunk_XS53UP75.ChainPromptType, {
|
|
189
189
|
command: "list",
|
|
190
190
|
template: str(
|
|
191
191
|
// prettier-ignore
|
|
@@ -202,12 +202,12 @@ var chainPresets = [
|
|
|
202
202
|
),
|
|
203
203
|
inputs: [
|
|
204
204
|
{
|
|
205
|
-
type:
|
|
205
|
+
type: import_chunk_XS53UP75.ChainInputType.SCHEMA,
|
|
206
206
|
name: "schema",
|
|
207
207
|
value: "example.com/type/project"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
type:
|
|
210
|
+
type: import_chunk_XS53UP75.ChainInputType.PASS_THROUGH,
|
|
211
211
|
name: "question"
|
|
212
212
|
}
|
|
213
213
|
]
|
|
@@ -216,7 +216,7 @@ var chainPresets = [
|
|
|
216
216
|
{
|
|
217
217
|
id: "dxos.org/prompt/base",
|
|
218
218
|
title: "RAG",
|
|
219
|
-
createPrompt: () => (0, import_echo_schema.create)(
|
|
219
|
+
createPrompt: () => (0, import_echo_schema.create)(import_chunk_XS53UP75.ChainPromptType, {
|
|
220
220
|
command: "rag",
|
|
221
221
|
template: str(
|
|
222
222
|
// prettier-ignore
|
|
@@ -231,11 +231,11 @@ var chainPresets = [
|
|
|
231
231
|
),
|
|
232
232
|
inputs: [
|
|
233
233
|
{
|
|
234
|
-
type:
|
|
234
|
+
type: import_chunk_XS53UP75.ChainInputType.RETRIEVER,
|
|
235
235
|
name: "context"
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
|
-
type:
|
|
238
|
+
type: import_chunk_XS53UP75.ChainInputType.CONTEXT,
|
|
239
239
|
name: "question",
|
|
240
240
|
value: "object.text"
|
|
241
241
|
}
|
|
@@ -245,7 +245,7 @@ var chainPresets = [
|
|
|
245
245
|
{
|
|
246
246
|
id: "dxos.org/prompt/lookup",
|
|
247
247
|
title: "Lookup",
|
|
248
|
-
createPrompt: () => (0, import_echo_schema.create)(
|
|
248
|
+
createPrompt: () => (0, import_echo_schema.create)(import_chunk_XS53UP75.ChainPromptType, {
|
|
249
249
|
command: "lookup",
|
|
250
250
|
template: str(
|
|
251
251
|
// prettier-ignore
|
|
@@ -257,7 +257,7 @@ var chainPresets = [
|
|
|
257
257
|
),
|
|
258
258
|
inputs: [
|
|
259
259
|
{
|
|
260
|
-
type:
|
|
260
|
+
type: import_chunk_XS53UP75.ChainInputType.CONTEXT,
|
|
261
261
|
name: "input",
|
|
262
262
|
value: "text"
|
|
263
263
|
}
|
|
@@ -267,7 +267,7 @@ var chainPresets = [
|
|
|
267
267
|
{
|
|
268
268
|
id: "dxos.org/prompt/extract",
|
|
269
269
|
title: "Extract",
|
|
270
|
-
createPrompt: () => (0, import_echo_schema.create)(
|
|
270
|
+
createPrompt: () => (0, import_echo_schema.create)(import_chunk_XS53UP75.ChainPromptType, {
|
|
271
271
|
command: "extract",
|
|
272
272
|
template: str(
|
|
273
273
|
// prettier-ignore
|
|
@@ -285,17 +285,17 @@ var chainPresets = [
|
|
|
285
285
|
),
|
|
286
286
|
inputs: [
|
|
287
287
|
{
|
|
288
|
-
type:
|
|
288
|
+
type: import_chunk_XS53UP75.ChainInputType.SCHEMA,
|
|
289
289
|
name: "contact",
|
|
290
290
|
value: "example.com/type/contact"
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
|
-
type:
|
|
293
|
+
type: import_chunk_XS53UP75.ChainInputType.SCHEMA,
|
|
294
294
|
name: "company",
|
|
295
295
|
value: "example.com/type/organization"
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
|
-
type:
|
|
298
|
+
type: import_chunk_XS53UP75.ChainInputType.CONTEXT,
|
|
299
299
|
name: "input",
|
|
300
300
|
value: "text"
|
|
301
301
|
}
|
|
@@ -305,7 +305,7 @@ var chainPresets = [
|
|
|
305
305
|
{
|
|
306
306
|
id: "dxos.org/prompt/discord",
|
|
307
307
|
title: "Summarize",
|
|
308
|
-
createPrompt: () => (0, import_echo_schema.create)(
|
|
308
|
+
createPrompt: () => (0, import_echo_schema.create)(import_chunk_XS53UP75.ChainPromptType, {
|
|
309
309
|
command: "summarize",
|
|
310
310
|
template: str(
|
|
311
311
|
// prettier-ignore
|
|
@@ -317,7 +317,7 @@ var chainPresets = [
|
|
|
317
317
|
),
|
|
318
318
|
inputs: [
|
|
319
319
|
{
|
|
320
|
-
type:
|
|
320
|
+
type: import_chunk_XS53UP75.ChainInputType.RESOLVER,
|
|
321
321
|
name: "context",
|
|
322
322
|
value: "discord.messages.recent"
|
|
323
323
|
}
|
|
@@ -339,7 +339,7 @@ var Chain = ({ chain }) => {
|
|
|
339
339
|
};
|
|
340
340
|
return /* @__PURE__ */ import_react4.default.createElement("div", {
|
|
341
341
|
className: "flex flex-col my-2 gap-4"
|
|
342
|
-
}, chain.prompts?.filter(import_util.nonNullable).map((prompt, i) => /* @__PURE__ */ import_react4.default.createElement(
|
|
342
|
+
}, chain.prompts?.filter(import_util.nonNullable).map((prompt, i) => /* @__PURE__ */ import_react4.default.createElement(import_chunk_4TMTUB4X.PromptEditor, {
|
|
343
343
|
key: i,
|
|
344
344
|
prompt
|
|
345
345
|
})), /* @__PURE__ */ import_react4.default.createElement("div", {
|
|
@@ -350,7 +350,7 @@ var Chain = ({ chain }) => {
|
|
|
350
350
|
})));
|
|
351
351
|
};
|
|
352
352
|
var ChainPresets = ({ presets, onSelect }) => {
|
|
353
|
-
const { t } = (0, import_react_ui2.useTranslation)(
|
|
353
|
+
const { t } = (0, import_react_ui2.useTranslation)(import_chunk_JSZ6PAYL.AUTOMATION_PLUGIN);
|
|
354
354
|
return /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Select.Root, {
|
|
355
355
|
onValueChange: (value) => {
|
|
356
356
|
onSelect(presets.find(({ id }) => id === value));
|
|
@@ -614,7 +614,7 @@ var ChainPromptMetaProps = ({ meta, triggerId }) => {
|
|
|
614
614
|
}
|
|
615
615
|
})), meta.prompt && /* @__PURE__ */ import_react7.default.createElement(InputRow, {
|
|
616
616
|
label: "Prompt"
|
|
617
|
-
}, /* @__PURE__ */ import_react7.default.createElement(
|
|
617
|
+
}, /* @__PURE__ */ import_react7.default.createElement(import_chunk_4TMTUB4X.PromptEditor, {
|
|
618
618
|
prompt: meta.prompt,
|
|
619
619
|
schema
|
|
620
620
|
})));
|
|
@@ -751,7 +751,7 @@ var TriggerEditor = ({ space, trigger }) => {
|
|
|
751
751
|
};
|
|
752
752
|
}, []);
|
|
753
753
|
(0, import_react5.useEffect)(() => {
|
|
754
|
-
void space.db.
|
|
754
|
+
void space.db.schemaRegistry.query().then((schemas) => {
|
|
755
755
|
state.schemas = (0, import_util2.distinctBy)([
|
|
756
756
|
...state.schemas,
|
|
757
757
|
...schemas
|
|
@@ -952,11 +952,11 @@ var TriggerSpec = ({ space, spec }) => {
|
|
|
952
952
|
spec
|
|
953
953
|
}) : null;
|
|
954
954
|
};
|
|
955
|
-
var PromptContainer = (0, import_react2.lazy)(() => import("./PromptContainer-
|
|
955
|
+
var PromptContainer = (0, import_react2.lazy)(() => import("./PromptContainer-74ZRO4HK.cjs"));
|
|
956
956
|
var translations_default = [
|
|
957
957
|
{
|
|
958
958
|
"en-US": {
|
|
959
|
-
[
|
|
959
|
+
[import_chunk_JSZ6PAYL.AUTOMATION_PLUGIN]: {
|
|
960
960
|
"plugin name": "Automation",
|
|
961
961
|
"object placeholder": "New prompt",
|
|
962
962
|
"create object label": "Create prompt",
|
|
@@ -965,7 +965,8 @@ var translations_default = [
|
|
|
965
965
|
"command placeholder": "Enter slash command...",
|
|
966
966
|
"template placeholder": "Enter template...",
|
|
967
967
|
"value placeholder": "Enter value...",
|
|
968
|
-
"select preset template placeholder": "Select preset"
|
|
968
|
+
"select preset template placeholder": "Select preset",
|
|
969
|
+
"open automation panel label": "Show Automations"
|
|
969
970
|
}
|
|
970
971
|
}
|
|
971
972
|
}
|
|
@@ -973,15 +974,15 @@ var translations_default = [
|
|
|
973
974
|
var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/plugins/experimental/plugin-automation/src/AutomationPlugin.tsx";
|
|
974
975
|
var AutomationPlugin = () => {
|
|
975
976
|
return {
|
|
976
|
-
meta:
|
|
977
|
+
meta: import_chunk_JSZ6PAYL.meta_default,
|
|
977
978
|
provides: {
|
|
978
979
|
metadata: {
|
|
979
980
|
records: {
|
|
980
|
-
[
|
|
981
|
+
[import_chunk_XS53UP75.ChainType.typename]: {
|
|
981
982
|
placeholder: [
|
|
982
983
|
"object placeholder",
|
|
983
984
|
{
|
|
984
|
-
ns:
|
|
985
|
+
ns: import_chunk_JSZ6PAYL.AUTOMATION_PLUGIN
|
|
985
986
|
}
|
|
986
987
|
],
|
|
987
988
|
icon: "ph--magic-wand--regular",
|
|
@@ -993,12 +994,26 @@ var AutomationPlugin = () => {
|
|
|
993
994
|
translations: translations_default,
|
|
994
995
|
echo: {
|
|
995
996
|
schema: [
|
|
996
|
-
|
|
997
|
-
|
|
997
|
+
import_chunk_XS53UP75.ChainType,
|
|
998
|
+
import_chunk_XS53UP75.ChainPromptType,
|
|
998
999
|
import_types.FunctionDef,
|
|
999
1000
|
import_types.FunctionTrigger
|
|
1000
1001
|
]
|
|
1001
1002
|
},
|
|
1003
|
+
complementary: {
|
|
1004
|
+
panels: [
|
|
1005
|
+
{
|
|
1006
|
+
id: "automation",
|
|
1007
|
+
label: [
|
|
1008
|
+
"open automation panel label",
|
|
1009
|
+
{
|
|
1010
|
+
ns: import_chunk_JSZ6PAYL.AUTOMATION_PLUGIN
|
|
1011
|
+
}
|
|
1012
|
+
],
|
|
1013
|
+
icon: "ph--flow-arrow--regular"
|
|
1014
|
+
}
|
|
1015
|
+
]
|
|
1016
|
+
},
|
|
1002
1017
|
graph: {
|
|
1003
1018
|
builder: (plugins) => {
|
|
1004
1019
|
const clientPlugin = (0, import_app_framework.resolvePlugin)(plugins, import_plugin_client.parseClientPlugin);
|
|
@@ -1007,7 +1022,7 @@ var AutomationPlugin = () => {
|
|
|
1007
1022
|
const client = clientPlugin?.provides.client;
|
|
1008
1023
|
(0, import_invariant.invariant)(resolve, void 0, {
|
|
1009
1024
|
F: __dxlog_file4,
|
|
1010
|
-
L:
|
|
1025
|
+
L: 55,
|
|
1011
1026
|
S: void 0,
|
|
1012
1027
|
A: [
|
|
1013
1028
|
"resolve",
|
|
@@ -1016,7 +1031,7 @@ var AutomationPlugin = () => {
|
|
|
1016
1031
|
});
|
|
1017
1032
|
(0, import_invariant.invariant)(client, void 0, {
|
|
1018
1033
|
F: __dxlog_file4,
|
|
1019
|
-
L:
|
|
1034
|
+
L: 56,
|
|
1020
1035
|
S: void 0,
|
|
1021
1036
|
A: [
|
|
1022
1037
|
"client",
|
|
@@ -1026,13 +1041,13 @@ var AutomationPlugin = () => {
|
|
|
1026
1041
|
return [
|
|
1027
1042
|
// Create nodes for object settings.
|
|
1028
1043
|
(0, import_plugin_graph.createExtension)({
|
|
1029
|
-
id: `${
|
|
1044
|
+
id: `${import_chunk_JSZ6PAYL.AUTOMATION_PLUGIN}/automation-for-subject`,
|
|
1030
1045
|
resolver: ({ id }) => {
|
|
1031
1046
|
if (!id.endsWith("~automation")) {
|
|
1032
1047
|
return;
|
|
1033
1048
|
}
|
|
1034
1049
|
const type = "orphan-settings-for-subject";
|
|
1035
|
-
const icon = "ph--
|
|
1050
|
+
const icon = "ph--flow-arrow--regular";
|
|
1036
1051
|
const [subjectId] = id.split("~");
|
|
1037
1052
|
const { spaceId, objectId } = (0, import_echo.parseId)(subjectId);
|
|
1038
1053
|
const space = client.spaces.get().find((space2) => space2.id === spaceId);
|
|
@@ -1040,12 +1055,12 @@ var AutomationPlugin = () => {
|
|
|
1040
1055
|
const label2 = space ? space.properties.name || [
|
|
1041
1056
|
"unnamed space label",
|
|
1042
1057
|
{
|
|
1043
|
-
ns:
|
|
1058
|
+
ns: import_chunk_JSZ6PAYL.AUTOMATION_PLUGIN
|
|
1044
1059
|
}
|
|
1045
1060
|
] : [
|
|
1046
1061
|
"unnamed object settings label",
|
|
1047
1062
|
{
|
|
1048
|
-
ns:
|
|
1063
|
+
ns: import_chunk_JSZ6PAYL.AUTOMATION_PLUGIN
|
|
1049
1064
|
}
|
|
1050
1065
|
];
|
|
1051
1066
|
return {
|
|
@@ -1075,7 +1090,7 @@ var AutomationPlugin = () => {
|
|
|
1075
1090
|
const label = meta.label?.(object) || object.name || meta.placeholder || [
|
|
1076
1091
|
"unnamed object settings label",
|
|
1077
1092
|
{
|
|
1078
|
-
ns:
|
|
1093
|
+
ns: import_chunk_JSZ6PAYL.AUTOMATION_PLUGIN
|
|
1079
1094
|
}
|
|
1080
1095
|
];
|
|
1081
1096
|
return {
|
|
@@ -1107,7 +1122,7 @@ var AutomationPlugin = () => {
|
|
|
1107
1122
|
intent: {
|
|
1108
1123
|
resolver: (intent) => {
|
|
1109
1124
|
switch (intent.action) {
|
|
1110
|
-
case
|
|
1125
|
+
case import_chunk_XS53UP75.AutomationAction.CREATE: {
|
|
1111
1126
|
return {};
|
|
1112
1127
|
}
|
|
1113
1128
|
}
|