@dxos/plugin-automation 0.8.1 → 0.8.2-main.f081794
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/AutomationContainer-KEQ5RNIW.mjs +34 -0
- package/dist/lib/browser/AutomationContainer-KEQ5RNIW.mjs.map +7 -0
- package/dist/lib/browser/AutomationPanel-G3OB6ELR.mjs +11 -0
- package/dist/lib/browser/AutomationPanel-G3OB6ELR.mjs.map +7 -0
- package/dist/lib/browser/FunctionsContainer-STXBW4CX.mjs +33 -0
- package/dist/lib/browser/FunctionsContainer-STXBW4CX.mjs.map +7 -0
- package/dist/lib/browser/FunctionsPanel-JJPLIAJW.mjs +10 -0
- package/dist/lib/browser/FunctionsPanel-JJPLIAJW.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-K3BIQFWW.mjs → app-graph-builder-ND64CHOM.mjs} +42 -1
- package/dist/lib/browser/app-graph-builder-ND64CHOM.mjs.map +7 -0
- package/dist/lib/browser/chunk-65VL4EYS.mjs +88 -0
- package/dist/lib/browser/chunk-65VL4EYS.mjs.map +7 -0
- package/dist/lib/browser/chunk-FCLWFVFX.mjs +39 -0
- package/dist/lib/browser/chunk-FCLWFVFX.mjs.map +7 -0
- package/dist/lib/browser/{AutomationPanel-YAHFXQX6.mjs → chunk-NGG4ICAQ.mjs} +13 -12
- package/dist/lib/browser/chunk-NGG4ICAQ.mjs.map +7 -0
- package/dist/lib/browser/chunk-QJPKWYTL.mjs +14 -0
- package/dist/lib/browser/chunk-QJPKWYTL.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +23 -17
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/intent-resolver-3J647TIZ.mjs +71 -0
- package/dist/lib/browser/intent-resolver-3J647TIZ.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-L22QIANU.mjs +68 -0
- package/dist/lib/browser/react-surface-L22QIANU.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +8 -0
- package/dist/lib/browser/types.mjs.map +7 -0
- package/dist/lib/node/AutomationContainer-E5I76FPP.cjs +62 -0
- package/dist/lib/node/AutomationContainer-E5I76FPP.cjs.map +7 -0
- package/dist/lib/node/AutomationPanel-YLXAFJDP.cjs +32 -0
- package/dist/lib/node/AutomationPanel-YLXAFJDP.cjs.map +7 -0
- package/dist/lib/node/FunctionsContainer-3HCURMEB.cjs +61 -0
- package/dist/lib/node/FunctionsContainer-3HCURMEB.cjs.map +7 -0
- package/dist/lib/node/FunctionsPanel-SYIZHPGU.cjs +31 -0
- package/dist/lib/node/FunctionsPanel-SYIZHPGU.cjs.map +7 -0
- package/dist/lib/node/{app-graph-builder-HO4FPGZ5.cjs → app-graph-builder-TVFR6RXO.cjs} +45 -4
- package/dist/lib/node/app-graph-builder-TVFR6RXO.cjs.map +7 -0
- package/dist/lib/node/chunk-BSK5SHTR.cjs +116 -0
- package/dist/lib/node/chunk-BSK5SHTR.cjs.map +7 -0
- package/dist/lib/node/{chunk-AGJ6XTDN.cjs → chunk-L5TWLPGA.cjs} +16 -7
- package/dist/lib/node/chunk-L5TWLPGA.cjs.map +7 -0
- package/dist/lib/node/chunk-PSIJDHAX.cjs +58 -0
- package/dist/lib/node/chunk-PSIJDHAX.cjs.map +7 -0
- package/dist/lib/node/{AutomationPanel-ZKAMIU6O.cjs → chunk-SRXHHBDE.cjs} +19 -14
- package/dist/lib/node/chunk-SRXHHBDE.cjs.map +7 -0
- package/dist/lib/node/index.cjs +23 -17
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/intent-resolver-4YYZ2MMZ.cjs +87 -0
- package/dist/lib/node/intent-resolver-4YYZ2MMZ.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-52M54VWV.cjs → react-surface-PCZCHIET.cjs} +36 -12
- package/dist/lib/node/react-surface-PCZCHIET.cjs.map +7 -0
- package/dist/lib/node/types.cjs +30 -0
- package/dist/lib/node/types.cjs.map +7 -0
- package/dist/lib/node-esm/AutomationContainer-22PUFPSE.mjs +35 -0
- package/dist/lib/node-esm/AutomationContainer-22PUFPSE.mjs.map +7 -0
- package/dist/lib/node-esm/AutomationPanel-6UXIAJVS.mjs +12 -0
- package/dist/lib/node-esm/AutomationPanel-6UXIAJVS.mjs.map +7 -0
- package/dist/lib/node-esm/FunctionsContainer-XG5WVAN3.mjs +34 -0
- package/dist/lib/node-esm/FunctionsContainer-XG5WVAN3.mjs.map +7 -0
- package/dist/lib/node-esm/FunctionsPanel-J3QGUESH.mjs +11 -0
- package/dist/lib/node-esm/FunctionsPanel-J3QGUESH.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-builder-XCJR33VS.mjs → app-graph-builder-NYLOXWVV.mjs} +42 -1
- package/dist/lib/node-esm/app-graph-builder-NYLOXWVV.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-4UPGANGV.mjs +89 -0
- package/dist/lib/node-esm/chunk-4UPGANGV.mjs.map +7 -0
- package/dist/lib/node-esm/{AutomationPanel-XF7YPSKM.mjs → chunk-HMYAQLGF.mjs} +13 -12
- package/dist/lib/node-esm/chunk-HMYAQLGF.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-TMMB5ETD.mjs +16 -0
- package/dist/lib/node-esm/chunk-TMMB5ETD.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-YYBCQXB2.mjs +40 -0
- package/dist/lib/node-esm/chunk-YYBCQXB2.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +23 -17
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/intent-resolver-WXIXG5UY.mjs +72 -0
- package/dist/lib/node-esm/intent-resolver-WXIXG5UY.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-VSO4NWC6.mjs +69 -0
- package/dist/lib/node-esm/react-surface-VSO4NWC6.mjs.map +7 -0
- package/dist/lib/node-esm/types.mjs +9 -0
- package/dist/lib/node-esm/types.mjs.map +7 -0
- package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/types/src/components/AutomationContainer.d.ts +7 -0
- package/dist/types/src/components/AutomationContainer.d.ts.map +1 -0
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +6 -3
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/index.d.ts +1 -0
- package/dist/types/src/components/AutomationPanel/index.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsContainer.d.ts +7 -0
- package/dist/types/src/components/FunctionsContainer.d.ts.map +1 -0
- package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts +7 -0
- package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts.map +1 -0
- package/dist/types/src/components/FunctionsPanel/index.d.ts +4 -0
- package/dist/types/src/components/FunctionsPanel/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +8 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +8 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +25 -0
- package/dist/types/src/types.d.ts.map +1 -0
- package/package.json +29 -24
- package/src/AutomationPlugin.tsx +4 -9
- package/src/capabilities/app-graph-builder.ts +31 -0
- package/src/capabilities/index.ts +1 -0
- package/src/capabilities/intent-resolver.ts +62 -0
- package/src/capabilities/react-surface.tsx +31 -7
- package/src/components/AutomationContainer.tsx +31 -0
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +4 -4
- package/src/components/AutomationPanel/AutomationPanel.tsx +62 -63
- package/src/components/AutomationPanel/index.ts +2 -0
- package/src/components/FunctionsContainer.tsx +31 -0
- package/src/components/FunctionsPanel/FunctionsPanel.tsx +95 -0
- package/src/components/FunctionsPanel/index.ts +8 -0
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +3 -3
- package/src/components/index.ts +3 -0
- package/src/translations.ts +10 -1
- package/src/types.ts +32 -0
- package/dist/lib/browser/AutomationPanel-YAHFXQX6.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-K3BIQFWW.mjs.map +0 -7
- package/dist/lib/browser/chunk-MT3FZH4V.mjs +0 -8
- package/dist/lib/browser/chunk-MT3FZH4V.mjs.map +0 -7
- package/dist/lib/browser/react-surface-4QQSJR4A.mjs +0 -42
- package/dist/lib/browser/react-surface-4QQSJR4A.mjs.map +0 -7
- package/dist/lib/node/AutomationPanel-ZKAMIU6O.cjs.map +0 -7
- package/dist/lib/node/app-graph-builder-HO4FPGZ5.cjs.map +0 -7
- package/dist/lib/node/chunk-AGJ6XTDN.cjs.map +0 -7
- package/dist/lib/node/react-surface-52M54VWV.cjs.map +0 -7
- package/dist/lib/node-esm/AutomationPanel-XF7YPSKM.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-XCJR33VS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-OA75PSGH.mjs +0 -10
- package/dist/lib/node-esm/chunk-OA75PSGH.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-MGKM3OO3.mjs +0 -43
- package/dist/lib/node-esm/react-surface-MGKM3OO3.mjs.map +0 -7
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var intent_resolver_4YYZ2MMZ_exports = {};
|
|
20
|
+
__export(intent_resolver_4YYZ2MMZ_exports, {
|
|
21
|
+
default: () => intent_resolver_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(intent_resolver_4YYZ2MMZ_exports);
|
|
24
|
+
var import_chunk_PSIJDHAX = require("./chunk-PSIJDHAX.cjs");
|
|
25
|
+
var import_chunk_7GXNXMSM = require("./chunk-7GXNXMSM.cjs");
|
|
26
|
+
var import_app_framework = require("@dxos/app-framework");
|
|
27
|
+
var import_functions = require("@dxos/functions");
|
|
28
|
+
var import_live_object = require("@dxos/live-object");
|
|
29
|
+
var import_types = require("@dxos/plugin-space/types");
|
|
30
|
+
var import_echo = require("@dxos/react-client/echo");
|
|
31
|
+
var intent_resolver_default = (context) => (0, import_app_framework.contributes)(import_app_framework.Capabilities.IntentResolver, [
|
|
32
|
+
(0, import_app_framework.createResolver)({
|
|
33
|
+
intent: import_chunk_PSIJDHAX.AutomationAction.CreateTriggerFromTemplate,
|
|
34
|
+
resolve: async ({ space, template, enabled = false, scriptName, payload }) => {
|
|
35
|
+
const trigger = (0, import_live_object.live)(import_functions.FunctionTrigger, {
|
|
36
|
+
enabled
|
|
37
|
+
});
|
|
38
|
+
if (scriptName) {
|
|
39
|
+
const { objects: [script] } = await space.db.query(import_echo.Filter.schema(import_functions.ScriptType, {
|
|
40
|
+
name: scriptName
|
|
41
|
+
})).run();
|
|
42
|
+
if (script) {
|
|
43
|
+
const { objects: [fn] } = await space.db.query(import_echo.Filter.schema(import_functions.FunctionType, {
|
|
44
|
+
source: script
|
|
45
|
+
})).run();
|
|
46
|
+
if (fn) {
|
|
47
|
+
trigger.function = `dxn:worker:${fn.name}`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (payload) {
|
|
52
|
+
trigger.meta = payload;
|
|
53
|
+
}
|
|
54
|
+
switch (template.type) {
|
|
55
|
+
case "timer": {
|
|
56
|
+
trigger.spec = {
|
|
57
|
+
type: import_functions.TriggerKind.Timer,
|
|
58
|
+
cron: template.cron
|
|
59
|
+
};
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
case "queue": {
|
|
63
|
+
trigger.spec = {
|
|
64
|
+
type: import_functions.TriggerKind.Queue,
|
|
65
|
+
queue: template.queueDXN.toString()
|
|
66
|
+
};
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
default: {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
intents: [
|
|
75
|
+
(0, import_app_framework.createIntent)(import_types.SpaceAction.AddObject, {
|
|
76
|
+
object: trigger,
|
|
77
|
+
target: space
|
|
78
|
+
}),
|
|
79
|
+
(0, import_app_framework.createIntent)(import_types.SpaceAction.OpenSettings, {
|
|
80
|
+
space
|
|
81
|
+
})
|
|
82
|
+
]
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
})
|
|
86
|
+
]);
|
|
87
|
+
//# sourceMappingURL=intent-resolver-4YYZ2MMZ.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/intent-resolver.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { contributes, Capabilities, createResolver, type PluginsContext, createIntent } from '@dxos/app-framework';\nimport { FunctionTrigger, FunctionType, ScriptType, TriggerKind } from '@dxos/functions';\nimport { type DXN } from '@dxos/keys';\nimport { live } from '@dxos/live-object';\nimport { SpaceAction } from '@dxos/plugin-space/types';\nimport { Filter } from '@dxos/react-client/echo';\n\nimport { AutomationAction } from '../types';\n\nexport default (context: PluginsContext) =>\n contributes(Capabilities.IntentResolver, [\n createResolver({\n intent: AutomationAction.CreateTriggerFromTemplate,\n resolve: async ({ space, template, enabled = false, scriptName, payload }) => {\n const trigger = live(FunctionTrigger, { enabled });\n\n // TODO(wittjosiah): Factor out function lookup by script name?\n if (scriptName) {\n const {\n objects: [script],\n } = await space.db.query(Filter.schema(ScriptType, { name: scriptName })).run();\n if (script) {\n const {\n objects: [fn],\n } = await space.db.query(Filter.schema(FunctionType, { source: script })).run();\n if (fn) {\n trigger.function = `dxn:worker:${fn.name}`;\n }\n }\n }\n\n if (payload) {\n trigger.meta = payload;\n }\n\n switch (template.type) {\n case 'timer': {\n trigger.spec = { type: TriggerKind.Timer, cron: template.cron };\n break;\n }\n case 'queue': {\n trigger.spec = { type: TriggerKind.Queue, queue: (template.queueDXN as DXN).toString() };\n break;\n }\n default: {\n break;\n }\n }\n\n return {\n intents: [\n createIntent(SpaceAction.AddObject, { object: trigger, target: space }),\n createIntent(SpaceAction.OpenSettings, { space }),\n ],\n };\n },\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAA6F;AAC7F,uBAAuE;AAEvE,yBAAqB;AACrB,mBAA4B;AAC5B,kBAAuB;AAIvB,IAAA,0BAAe,CAACA,gBACdC,kCAAYC,kCAAaC,gBAAgB;MACvCC,qCAAe;IACbC,QAAQC,uCAAiBC;IACzBC,SAAS,OAAO,EAAEC,OAAOC,UAAUC,UAAU,OAAOC,YAAYC,QAAO,MAAE;AACvE,YAAMC,cAAUC,yBAAKC,kCAAiB;QAAEL;MAAQ,CAAA;AAGhD,UAAIC,YAAY;AACd,cAAM,EACJK,SAAS,CAACC,MAAAA,EAAO,IACf,MAAMT,MAAMU,GAAGC,MAAMC,mBAAOC,OAAOC,6BAAY;UAAEC,MAAMZ;QAAW,CAAA,CAAA,EAAIa,IAAG;AAC7E,YAAIP,QAAQ;AACV,gBAAM,EACJD,SAAS,CAACS,EAAAA,EAAG,IACX,MAAMjB,MAAMU,GAAGC,MAAMC,mBAAOC,OAAOK,+BAAc;YAAEC,QAAQV;UAAO,CAAA,CAAA,EAAIO,IAAG;AAC7E,cAAIC,IAAI;AACNZ,oBAAQe,WAAW,cAAcH,GAAGF,IAAI;UAC1C;QACF;MACF;AAEA,UAAIX,SAAS;AACXC,gBAAQgB,OAAOjB;MACjB;AAEA,cAAQH,SAASqB,MAAI;QACnB,KAAK,SAAS;AACZjB,kBAAQkB,OAAO;YAAED,MAAME,6BAAYC;YAAOC,MAAMzB,SAASyB;UAAK;AAC9D;QACF;QACA,KAAK,SAAS;AACZrB,kBAAQkB,OAAO;YAAED,MAAME,6BAAYG;YAAOC,OAAQ3B,SAAS4B,SAAiBC,SAAQ;UAAG;AACvF;QACF;QACA,SAAS;AACP;QACF;MACF;AAEA,aAAO;QACLC,SAAS;cACPC,mCAAaC,yBAAYC,WAAW;YAAEC,QAAQ9B;YAAS+B,QAAQpC;UAAM,CAAA;cACrEgC,mCAAaC,yBAAYI,cAAc;YAAErC;UAAM,CAAA;;MAEnD;IACF;EACF,CAAA;CACD;",
|
|
6
|
+
"names": ["context", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "AutomationAction", "CreateTriggerFromTemplate", "resolve", "space", "template", "enabled", "scriptName", "payload", "trigger", "live", "FunctionTrigger", "objects", "script", "db", "query", "Filter", "schema", "ScriptType", "name", "run", "fn", "FunctionType", "source", "function", "meta", "type", "spec", "TriggerKind", "Timer", "cron", "Queue", "queue", "queueDXN", "toString", "intents", "createIntent", "SpaceAction", "AddObject", "object", "target", "OpenSettings"]
|
|
7
|
+
}
|
package/dist/lib/node/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-automation/src/meta.ts":{"bytes":1764,"imports":[],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytes":18213,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytes":544,"imports":[{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx","kind":"import-statement","original":"./TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytes":21670,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"../TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytes":738,"imports":[{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/index.ts":{"bytes":914,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"./TriggerEditor"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"dynamic-import","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytes":4479,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-script/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytes":4985,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytes":1096,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-automation/src/translations.ts":{"bytes":3132,"imports":[{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytes":6390,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-automation/src/index.ts":{"bytes":704,"imports":[{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/AutomationPlugin.tsx","kind":"import-statement","original":"./AutomationPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-automation/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4811},"packages/plugins/plugin-automation/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-AGJ6XTDN.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-FTEDH5Q6.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/node/app-graph-builder-HO4FPGZ5.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node/react-surface-52M54VWV.cjs","kind":"dynamic-import"}],"exports":["AUTOMATION_PLUGIN","AutomationPanel","AutomationPlugin","TriggerEditor","meta"],"entryPoint":"packages/plugins/plugin-automation/src/index.ts","inputs":{"packages/plugins/plugin-automation/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytesInOutput":1357},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytesInOutput":193},"packages/plugins/plugin-automation/src/translations.ts":{"bytesInOutput":827}},"bytes":2942},"packages/plugins/plugin-automation/dist/lib/node/AutomationPanel-ZKAMIU6O.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12052},"packages/plugins/plugin-automation/dist/lib/node/AutomationPanel-ZKAMIU6O.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-FTEDH5Q6.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","inputs":{"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytesInOutput":5148},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytesInOutput":47}},"bytes":5583},"packages/plugins/plugin-automation/dist/lib/node/app-graph-builder-HO4FPGZ5.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2151},"packages/plugins/plugin-automation/dist/lib/node/app-graph-builder-HO4FPGZ5.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-script/types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytesInOutput":1001}},"bytes":1232},"packages/plugins/plugin-automation/dist/lib/node/react-surface-52M54VWV.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2476},"packages/plugins/plugin-automation/dist/lib/node/react-surface-52M54VWV.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-AGJ6XTDN.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-FTEDH5Q6.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytesInOutput":1121}},"bytes":1430},"packages/plugins/plugin-automation/dist/lib/node/chunk-AGJ6XTDN.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":404},"packages/plugins/plugin-automation/dist/lib/node/chunk-AGJ6XTDN.cjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/node/AutomationPanel-ZKAMIU6O.cjs","kind":"dynamic-import"}],"exports":["AutomationPanel"],"inputs":{"packages/plugins/plugin-automation/src/components/index.ts":{"bytesInOutput":106}},"bytes":243},"packages/plugins/plugin-automation/dist/lib/node/chunk-FTEDH5Q6.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9335},"packages/plugins/plugin-automation/dist/lib/node/chunk-FTEDH5Q6.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"exports":["TriggerEditor"],"inputs":{"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytesInOutput":4576},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytesInOutput":0}},"bytes":4795},"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":827},"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs":{"imports":[],"exports":["AUTOMATION_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-automation/src/meta.ts":{"bytesInOutput":395}},"bytes":530}}}
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-automation/src/meta.ts":{"bytes":1764,"imports":[],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytes":18213,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytes":544,"imports":[{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx","kind":"import-statement","original":"./TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytes":21076,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"../TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytes":849,"imports":[{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx":{"bytes":3556,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"import-statement","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx":{"bytes":11688,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts":{"bytes":832,"imports":[{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx","kind":"import-statement","original":"./FunctionsPanel"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx","kind":"import-statement","original":"./FunctionsPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx":{"bytes":3536,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","kind":"import-statement","original":"./FunctionsPanel"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/index.ts":{"bytes":1736,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"./TriggerEditor"},{"path":"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx","kind":"dynamic-import","original":"./AutomationContainer"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"dynamic-import","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx","kind":"dynamic-import","original":"./FunctionsContainer"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","kind":"dynamic-import","original":"./FunctionsPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytes":8950,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-script/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/types.ts":{"bytes":4192,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts":{"bytes":8498,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytes":7999,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytes":1353,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-automation/src/translations.ts":{"bytes":4657,"imports":[{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytes":5502,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-automation/src/index.ts":{"bytes":704,"imports":[{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/AutomationPlugin.tsx","kind":"import-statement","original":"./AutomationPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-automation/dist/lib/node/react-surface-PCZCHIET.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3903},"packages/plugins/plugin-automation/dist/lib/node/react-surface-PCZCHIET.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-L5TWLPGA.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-FTEDH5Q6.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytesInOutput":1848}},"bytes":2202},"packages/plugins/plugin-automation/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5194},"packages/plugins/plugin-automation/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-L5TWLPGA.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-FTEDH5Q6.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/node/app-graph-builder-TVFR6RXO.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node/intent-resolver-4YYZ2MMZ.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node/react-surface-PCZCHIET.cjs","kind":"dynamic-import"}],"exports":["AUTOMATION_PLUGIN","AutomationContainer","AutomationPanel","AutomationPlugin","FunctionsContainer","FunctionsPanel","TriggerEditor","meta"],"entryPoint":"packages/plugins/plugin-automation/src/index.ts","inputs":{"packages/plugins/plugin-automation/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytesInOutput":1115},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytesInOutput":268},"packages/plugins/plugin-automation/src/translations.ts":{"bytesInOutput":1380}},"bytes":3454},"packages/plugins/plugin-automation/dist/lib/node/chunk-L5TWLPGA.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":836},"packages/plugins/plugin-automation/dist/lib/node/chunk-L5TWLPGA.cjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/node/AutomationContainer-E5I76FPP.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node/AutomationPanel-YLXAFJDP.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node/FunctionsContainer-3HCURMEB.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node/FunctionsPanel-SYIZHPGU.cjs","kind":"dynamic-import"}],"exports":["AutomationContainer","AutomationPanel","FunctionsContainer","FunctionsPanel"],"inputs":{"packages/plugins/plugin-automation/src/components/index.ts":{"bytesInOutput":346}},"bytes":546},"packages/plugins/plugin-automation/dist/lib/node/types.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/node/types.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-PSIJDHAX.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"}],"exports":["AutomationAction"],"entryPoint":"packages/plugins/plugin-automation/src/types.ts","inputs":{},"bytes":156},"packages/plugins/plugin-automation/dist/lib/node/AutomationPanel-YLXAFJDP.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/node/AutomationPanel-YLXAFJDP.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-SRXHHBDE.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-FTEDH5Q6.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"}],"exports":["AutomationPanel","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","inputs":{},"bytes":269},"packages/plugins/plugin-automation/dist/lib/node/AutomationContainer-E5I76FPP.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1800},"packages/plugins/plugin-automation/dist/lib/node/AutomationContainer-E5I76FPP.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-SRXHHBDE.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-FTEDH5Q6.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["AutomationContainer","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx","inputs":{"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx":{"bytesInOutput":805}},"bytes":1166},"packages/plugins/plugin-automation/dist/lib/node/chunk-SRXHHBDE.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11749},"packages/plugins/plugin-automation/dist/lib/node/chunk-SRXHHBDE.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-FTEDH5Q6.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["AutomationPanel","AutomationPanel_default"],"inputs":{"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytesInOutput":4996},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytesInOutput":47}},"bytes":5430},"packages/plugins/plugin-automation/dist/lib/node/chunk-FTEDH5Q6.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9335},"packages/plugins/plugin-automation/dist/lib/node/chunk-FTEDH5Q6.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"exports":["TriggerEditor"],"inputs":{"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytesInOutput":4576},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytesInOutput":0}},"bytes":4795},"packages/plugins/plugin-automation/dist/lib/node/FunctionsPanel-SYIZHPGU.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/node/FunctionsPanel-SYIZHPGU.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-BSK5SHTR.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"}],"exports":["FunctionsPanel","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","inputs":{},"bytes":233},"packages/plugins/plugin-automation/dist/lib/node/FunctionsContainer-3HCURMEB.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1786},"packages/plugins/plugin-automation/dist/lib/node/FunctionsContainer-3HCURMEB.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-BSK5SHTR.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["FunctionsContainer","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx","inputs":{"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx":{"bytesInOutput":799}},"bytes":1124},"packages/plugins/plugin-automation/dist/lib/node/chunk-BSK5SHTR.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6527},"packages/plugins/plugin-automation/dist/lib/node/chunk-BSK5SHTR.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["FunctionsPanel","FunctionsPanel_default"],"inputs":{"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx":{"bytesInOutput":2911},"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts":{"bytesInOutput":45}},"bytes":3282},"packages/plugins/plugin-automation/dist/lib/node/app-graph-builder-TVFR6RXO.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3935},"packages/plugins/plugin-automation/dist/lib/node/app-graph-builder-TVFR6RXO.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-script/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytesInOutput":2112}},"bytes":2343},"packages/plugins/plugin-automation/dist/lib/node/intent-resolver-4YYZ2MMZ.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4029},"packages/plugins/plugin-automation/dist/lib/node/intent-resolver-4YYZ2MMZ.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-PSIJDHAX.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts":{"bytesInOutput":1819}},"bytes":2087},"packages/plugins/plugin-automation/dist/lib/node/chunk-PSIJDHAX.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2101},"packages/plugins/plugin-automation/dist/lib/node/chunk-PSIJDHAX.cjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["AutomationAction"],"inputs":{"packages/plugins/plugin-automation/src/types.ts":{"bytesInOutput":943}},"bytes":1131},"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":827},"packages/plugins/plugin-automation/dist/lib/node/chunk-7GXNXMSM.cjs":{"imports":[],"exports":["AUTOMATION_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-automation/src/meta.ts":{"bytesInOutput":395}},"bytes":530}}}
|
|
@@ -26,12 +26,12 @@ 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 react_surface_PCZCHIET_exports = {};
|
|
30
|
+
__export(react_surface_PCZCHIET_exports, {
|
|
31
31
|
default: () => react_surface_default
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(react_surface_PCZCHIET_exports);
|
|
34
|
+
var import_chunk_L5TWLPGA = require("./chunk-L5TWLPGA.cjs");
|
|
35
35
|
var import_chunk_FTEDH5Q6 = require("./chunk-FTEDH5Q6.cjs");
|
|
36
36
|
var import_chunk_7GXNXMSM = require("./chunk-7GXNXMSM.cjs");
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
@@ -42,12 +42,36 @@ var import_echo = require("@dxos/react-client/echo");
|
|
|
42
42
|
var import_react_ui_stack = require("@dxos/react-ui-stack");
|
|
43
43
|
var react_surface_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.ReactSurface, [
|
|
44
44
|
(0, import_app_framework.createSurface)({
|
|
45
|
-
id: `${import_chunk_7GXNXMSM.meta.id}/automation`,
|
|
46
|
-
role: "
|
|
47
|
-
filter: (data) =>
|
|
48
|
-
component: (
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
id: `${import_chunk_7GXNXMSM.meta.id}/space-settings-automation`,
|
|
46
|
+
role: "article",
|
|
47
|
+
filter: (data) => data.subject === `${import_chunk_7GXNXMSM.meta.id}/space-settings-automation`,
|
|
48
|
+
component: () => {
|
|
49
|
+
const layout = (0, import_app_framework.useLayout)();
|
|
50
|
+
const { spaceId } = (0, import_echo.parseId)(layout.workspace);
|
|
51
|
+
const space = (0, import_echo.useSpace)(spaceId);
|
|
52
|
+
if (!space || !spaceId) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return /* @__PURE__ */ import_react.default.createElement(import_chunk_L5TWLPGA.AutomationContainer, {
|
|
56
|
+
space
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
60
|
+
(0, import_app_framework.createSurface)({
|
|
61
|
+
id: `${import_chunk_7GXNXMSM.meta.id}/space-settings-functions`,
|
|
62
|
+
role: "article",
|
|
63
|
+
filter: (data) => data.subject === `${import_chunk_7GXNXMSM.meta.id}/space-settings-functions`,
|
|
64
|
+
component: () => {
|
|
65
|
+
const layout = (0, import_app_framework.useLayout)();
|
|
66
|
+
const { spaceId } = (0, import_echo.parseId)(layout.workspace);
|
|
67
|
+
const space = (0, import_echo.useSpace)(spaceId);
|
|
68
|
+
if (!space || !spaceId) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
return /* @__PURE__ */ import_react.default.createElement(import_chunk_L5TWLPGA.FunctionsContainer, {
|
|
72
|
+
space
|
|
73
|
+
});
|
|
74
|
+
}
|
|
51
75
|
}),
|
|
52
76
|
(0, import_app_framework.createSurface)({
|
|
53
77
|
id: `${import_chunk_7GXNXMSM.meta.id}/companion/automation`,
|
|
@@ -56,11 +80,11 @@ var react_surface_default = () => (0, import_app_framework.contributes)(import_a
|
|
|
56
80
|
component: ({ data, role }) => {
|
|
57
81
|
return /* @__PURE__ */ import_react.default.createElement(import_react_ui_stack.StackItem.Content, {
|
|
58
82
|
role
|
|
59
|
-
}, /* @__PURE__ */ import_react.default.createElement(
|
|
83
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_chunk_L5TWLPGA.AutomationPanel, {
|
|
60
84
|
space: (0, import_echo.getSpace)(data.companionTo),
|
|
61
85
|
object: data.companionTo
|
|
62
86
|
}));
|
|
63
87
|
}
|
|
64
88
|
})
|
|
65
89
|
]);
|
|
66
|
-
//# sourceMappingURL=react-surface-
|
|
90
|
+
//# sourceMappingURL=react-surface-PCZCHIET.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface, useLayout } from '@dxos/app-framework';\nimport { isInstanceOf } from '@dxos/echo-schema';\nimport { ScriptType } from '@dxos/functions/types';\nimport { getSpace, parseId, useSpace } from '@dxos/react-client/echo';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { AutomationContainer, AutomationPanel, FunctionsContainer } from '../components';\nimport { meta } from '../meta';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: `${meta.id}/space-settings-automation`,\n role: 'article',\n filter: (data): data is { subject: string } => data.subject === `${meta.id}/space-settings-automation`,\n component: () => {\n const layout = useLayout();\n const { spaceId } = parseId(layout.workspace);\n const space = useSpace(spaceId);\n if (!space || !spaceId) {\n return null;\n }\n\n return <AutomationContainer space={space} />;\n },\n }),\n createSurface({\n id: `${meta.id}/space-settings-functions`,\n role: 'article',\n filter: (data): data is { subject: string } => data.subject === `${meta.id}/space-settings-functions`,\n component: () => {\n const layout = useLayout();\n const { spaceId } = parseId(layout.workspace);\n const space = useSpace(spaceId);\n if (!space || !spaceId) {\n return null;\n }\n\n return <FunctionsContainer space={space} />;\n },\n }),\n createSurface({\n id: `${meta.id}/companion/automation`,\n role: 'article',\n filter: (data): data is { companionTo: ScriptType; subject: 'automation' } =>\n isInstanceOf(ScriptType, data.companionTo) && data.subject === 'automation',\n component: ({ data, role }) => {\n return (\n <StackItem.Content role={role}>\n <AutomationPanel space={getSpace(data.companionTo)!} object={data.companionTo} />\n </StackItem.Content>\n );\n },\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkB;AAElB,2BAAoE;AACpE,yBAA6B;AAC7B,mBAA2B;AAC3B,kBAA4C;AAC5C,4BAA0B;AAK1B,IAAA,wBAAe,UACbA,kCAAYC,kCAAaC,cAAc;MACrCC,oCAAc;IACZC,IAAI,GAAGC,2BAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SAAsCA,KAAKC,YAAY,GAAGJ,2BAAKD,EAAE;IAC1EM,WAAW,MAAA;AACT,YAAMC,aAASC,gCAAAA;AACf,YAAM,EAAEC,QAAO,QAAKC,qBAAQH,OAAOI,SAAS;AAC5C,YAAMC,YAAQC,sBAASJ,OAAAA;AACvB,UAAI,CAACG,SAAS,CAACH,SAAS;AACtB,eAAO;MACT;AAEA,aAAO,6BAAAK,QAAA,cAACC,2CAAAA;QAAoBH;;IAC9B;EACF,CAAA;MACAb,oCAAc;IACZC,IAAI,GAAGC,2BAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SAAsCA,KAAKC,YAAY,GAAGJ,2BAAKD,EAAE;IAC1EM,WAAW,MAAA;AACT,YAAMC,aAASC,gCAAAA;AACf,YAAM,EAAEC,QAAO,QAAKC,qBAAQH,OAAOI,SAAS;AAC5C,YAAMC,YAAQC,sBAASJ,OAAAA;AACvB,UAAI,CAACG,SAAS,CAACH,SAAS;AACtB,eAAO;MACT;AAEA,aAAO,6BAAAK,QAAA,cAACE,0CAAAA;QAAmBJ;;IAC7B;EACF,CAAA;MACAb,oCAAc;IACZC,IAAI,GAAGC,2BAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,aACPa,iCAAaC,yBAAYd,KAAKe,WAAW,KAAKf,KAAKC,YAAY;IACjEC,WAAW,CAAC,EAAEF,MAAMF,KAAI,MAAE;AACxB,aACE,6BAAAY,QAAA,cAACM,gCAAUC,SAAO;QAACnB;SACjB,6BAAAY,QAAA,cAACQ,uCAAAA;QAAgBV,WAAOW,sBAASnB,KAAKe,WAAW;QAAIK,QAAQpB,KAAKe;;IAGxE;EACF,CAAA;CACD;",
|
|
6
|
+
"names": ["contributes", "Capabilities", "ReactSurface", "createSurface", "id", "meta", "role", "filter", "data", "subject", "component", "layout", "useLayout", "spaceId", "parseId", "workspace", "space", "useSpace", "React", "AutomationContainer", "FunctionsContainer", "isInstanceOf", "ScriptType", "companionTo", "StackItem", "Content", "AutomationPanel", "getSpace", "object"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var types_exports = {};
|
|
20
|
+
__export(types_exports, {
|
|
21
|
+
AutomationAction: () => import_chunk_PSIJDHAX.AutomationAction
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(types_exports);
|
|
24
|
+
var import_chunk_PSIJDHAX = require("./chunk-PSIJDHAX.cjs");
|
|
25
|
+
var import_chunk_7GXNXMSM = require("./chunk-7GXNXMSM.cjs");
|
|
26
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
+
0 && (module.exports = {
|
|
28
|
+
AutomationAction
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=types.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["types.cjs"],
|
|
4
|
+
"sourcesContent": ["import {\n AutomationAction\n} from \"./chunk-PSIJDHAX.cjs\";\nimport \"./chunk-7GXNXMSM.cjs\";\nexport {\n AutomationAction\n};\n//# sourceMappingURL=types.cjs.map\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAEO;AACP,4BAAO;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
AutomationPanel
|
|
4
|
+
} from "./chunk-HMYAQLGF.mjs";
|
|
5
|
+
import "./chunk-M4QXMIIB.mjs";
|
|
6
|
+
import {
|
|
7
|
+
AUTOMATION_PLUGIN
|
|
8
|
+
} from "./chunk-DZ44LGYT.mjs";
|
|
9
|
+
|
|
10
|
+
// packages/plugins/plugin-automation/src/components/AutomationContainer.tsx
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { useTranslation } from "@dxos/react-ui";
|
|
13
|
+
import { ControlSection, ControlPage } from "@dxos/react-ui-form";
|
|
14
|
+
import { StackItem } from "@dxos/react-ui-stack";
|
|
15
|
+
var AutomationContainer = ({ space }) => {
|
|
16
|
+
const { t } = useTranslation(AUTOMATION_PLUGIN);
|
|
17
|
+
return /* @__PURE__ */ React.createElement(StackItem.Content, {
|
|
18
|
+
classNames: "block overflow-y-auto"
|
|
19
|
+
}, /* @__PURE__ */ React.createElement(ControlPage, null, /* @__PURE__ */ React.createElement(ControlSection, {
|
|
20
|
+
title: t("automation verbose label", {
|
|
21
|
+
ns: AUTOMATION_PLUGIN
|
|
22
|
+
}),
|
|
23
|
+
description: t("automation description", {
|
|
24
|
+
ns: AUTOMATION_PLUGIN
|
|
25
|
+
})
|
|
26
|
+
}, /* @__PURE__ */ React.createElement(AutomationPanel, {
|
|
27
|
+
space
|
|
28
|
+
}))));
|
|
29
|
+
};
|
|
30
|
+
var AutomationContainer_default = AutomationContainer;
|
|
31
|
+
export {
|
|
32
|
+
AutomationContainer,
|
|
33
|
+
AutomationContainer_default as default
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=AutomationContainer-22PUFPSE.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/AutomationContainer.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type Space } from '@dxos/react-client/echo';\nimport { useTranslation } from '@dxos/react-ui';\nimport { ControlSection, ControlPage } from '@dxos/react-ui-form';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { AutomationPanel } from './AutomationPanel';\nimport { AUTOMATION_PLUGIN } from '../meta';\n\nexport const AutomationContainer = ({ space }: { space: Space }) => {\n const { t } = useTranslation(AUTOMATION_PLUGIN);\n return (\n <StackItem.Content classNames='block overflow-y-auto'>\n <ControlPage>\n <ControlSection\n title={t('automation verbose label', { ns: AUTOMATION_PLUGIN })}\n description={t('automation description', { ns: AUTOMATION_PLUGIN })}\n >\n <AutomationPanel space={space} />\n </ControlSection>\n </ControlPage>\n </StackItem.Content>\n );\n};\n\nexport default AutomationContainer;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AAIA,OAAOA,WAAW;AAGlB,SAASC,sBAAsB;AAC/B,SAASC,gBAAgBC,mBAAmB;AAC5C,SAASC,iBAAiB;AAKnB,IAAMC,sBAAsB,CAAC,EAAEC,MAAK,MAAoB;AAC7D,QAAM,EAAEC,EAAC,IAAKC,eAAeC,iBAAAA;AAC7B,SACE,sBAAA,cAACC,UAAUC,SAAO;IAACC,YAAW;KAC5B,sBAAA,cAACC,aAAAA,MACC,sBAAA,cAACC,gBAAAA;IACCC,OAAOR,EAAE,4BAA4B;MAAES,IAAIP;IAAkB,CAAA;IAC7DQ,aAAaV,EAAE,0BAA0B;MAAES,IAAIP;IAAkB,CAAA;KAEjE,sBAAA,cAACS,iBAAAA;IAAgBZ;;AAK3B;AAEA,IAAA,8BAAeD;",
|
|
6
|
+
"names": ["React", "useTranslation", "ControlSection", "ControlPage", "StackItem", "AutomationContainer", "space", "t", "useTranslation", "AUTOMATION_PLUGIN", "StackItem", "Content", "classNames", "ControlPage", "ControlSection", "title", "ns", "description", "AutomationPanel"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
AutomationPanel,
|
|
4
|
+
AutomationPanel_default
|
|
5
|
+
} from "./chunk-HMYAQLGF.mjs";
|
|
6
|
+
import "./chunk-M4QXMIIB.mjs";
|
|
7
|
+
import "./chunk-DZ44LGYT.mjs";
|
|
8
|
+
export {
|
|
9
|
+
AutomationPanel,
|
|
10
|
+
AutomationPanel_default as default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=AutomationPanel-6UXIAJVS.mjs.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
FunctionsPanel
|
|
4
|
+
} from "./chunk-4UPGANGV.mjs";
|
|
5
|
+
import {
|
|
6
|
+
AUTOMATION_PLUGIN
|
|
7
|
+
} from "./chunk-DZ44LGYT.mjs";
|
|
8
|
+
|
|
9
|
+
// packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { useTranslation } from "@dxos/react-ui";
|
|
12
|
+
import { ControlPage, ControlSection } from "@dxos/react-ui-form";
|
|
13
|
+
import { StackItem } from "@dxos/react-ui-stack";
|
|
14
|
+
var FunctionsContainer = ({ space }) => {
|
|
15
|
+
const { t } = useTranslation(AUTOMATION_PLUGIN);
|
|
16
|
+
return /* @__PURE__ */ React.createElement(StackItem.Content, {
|
|
17
|
+
classNames: "block overflow-y-auto"
|
|
18
|
+
}, /* @__PURE__ */ React.createElement(ControlPage, null, /* @__PURE__ */ React.createElement(ControlSection, {
|
|
19
|
+
title: t("functions verbose label", {
|
|
20
|
+
ns: AUTOMATION_PLUGIN
|
|
21
|
+
}),
|
|
22
|
+
description: t("functions description", {
|
|
23
|
+
ns: AUTOMATION_PLUGIN
|
|
24
|
+
})
|
|
25
|
+
}, /* @__PURE__ */ React.createElement(FunctionsPanel, {
|
|
26
|
+
space
|
|
27
|
+
}))));
|
|
28
|
+
};
|
|
29
|
+
var FunctionsContainer_default = FunctionsContainer;
|
|
30
|
+
export {
|
|
31
|
+
FunctionsContainer,
|
|
32
|
+
FunctionsContainer_default as default
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=FunctionsContainer-XG5WVAN3.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/FunctionsContainer.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type Space } from '@dxos/react-client/echo';\nimport { useTranslation } from '@dxos/react-ui';\nimport { ControlPage, ControlSection } from '@dxos/react-ui-form';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { FunctionsPanel } from './FunctionsPanel';\nimport { AUTOMATION_PLUGIN } from '../meta';\n\nexport const FunctionsContainer = ({ space }: { space: Space }) => {\n const { t } = useTranslation(AUTOMATION_PLUGIN);\n return (\n <StackItem.Content classNames='block overflow-y-auto'>\n <ControlPage>\n <ControlSection\n title={t('functions verbose label', { ns: AUTOMATION_PLUGIN })}\n description={t('functions description', { ns: AUTOMATION_PLUGIN })}\n >\n <FunctionsPanel space={space} />\n </ControlSection>\n </ControlPage>\n </StackItem.Content>\n );\n};\n\nexport default FunctionsContainer;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,OAAOA,WAAW;AAGlB,SAASC,sBAAsB;AAC/B,SAASC,aAAaC,sBAAsB;AAC5C,SAASC,iBAAiB;AAKnB,IAAMC,qBAAqB,CAAC,EAAEC,MAAK,MAAoB;AAC5D,QAAM,EAAEC,EAAC,IAAKC,eAAeC,iBAAAA;AAC7B,SACE,sBAAA,cAACC,UAAUC,SAAO;IAACC,YAAW;KAC5B,sBAAA,cAACC,aAAAA,MACC,sBAAA,cAACC,gBAAAA;IACCC,OAAOR,EAAE,2BAA2B;MAAES,IAAIP;IAAkB,CAAA;IAC5DQ,aAAaV,EAAE,yBAAyB;MAAES,IAAIP;IAAkB,CAAA;KAEhE,sBAAA,cAACS,gBAAAA;IAAeZ;;AAK1B;AAEA,IAAA,6BAAeD;",
|
|
6
|
+
"names": ["React", "useTranslation", "ControlPage", "ControlSection", "StackItem", "FunctionsContainer", "space", "t", "useTranslation", "AUTOMATION_PLUGIN", "StackItem", "Content", "classNames", "ControlPage", "ControlSection", "title", "ns", "description", "FunctionsPanel"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
FunctionsPanel,
|
|
4
|
+
FunctionsPanel_default
|
|
5
|
+
} from "./chunk-4UPGANGV.mjs";
|
|
6
|
+
import "./chunk-DZ44LGYT.mjs";
|
|
7
|
+
export {
|
|
8
|
+
FunctionsPanel,
|
|
9
|
+
FunctionsPanel_default as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=FunctionsPanel-J3QGUESH.mjs.map
|
|
@@ -10,7 +10,48 @@ import { ScriptType } from "@dxos/functions";
|
|
|
10
10
|
import { PLANK_COMPANION_TYPE, ATTENDABLE_PATH_SEPARATOR } from "@dxos/plugin-deck/types";
|
|
11
11
|
import { createExtension } from "@dxos/plugin-graph";
|
|
12
12
|
import { SCRIPT_PLUGIN } from "@dxos/plugin-script/types";
|
|
13
|
+
import { SPACE_PLUGIN } from "@dxos/plugin-space";
|
|
13
14
|
var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, [
|
|
15
|
+
createExtension({
|
|
16
|
+
id: `${meta.id}/space-settings-automation`,
|
|
17
|
+
filter: (node) => node.type === `${SPACE_PLUGIN}/settings`,
|
|
18
|
+
connector: ({ node }) => [
|
|
19
|
+
{
|
|
20
|
+
id: `automation-${node.id}`,
|
|
21
|
+
type: `${meta.id}/space-settings-automation`,
|
|
22
|
+
data: `${meta.id}/space-settings-automation`,
|
|
23
|
+
properties: {
|
|
24
|
+
label: [
|
|
25
|
+
"automation panel label",
|
|
26
|
+
{
|
|
27
|
+
ns: meta.id
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
icon: "ph--lightning--regular"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}),
|
|
35
|
+
createExtension({
|
|
36
|
+
id: `${meta.id}/space-settings-functions`,
|
|
37
|
+
filter: (node) => node.type === `${SPACE_PLUGIN}/settings`,
|
|
38
|
+
connector: ({ node }) => [
|
|
39
|
+
{
|
|
40
|
+
id: `functions-${node.id}`,
|
|
41
|
+
type: `${meta.id}/space-settings-functions`,
|
|
42
|
+
data: `${meta.id}/space-settings-functions`,
|
|
43
|
+
properties: {
|
|
44
|
+
label: [
|
|
45
|
+
"functions panel label",
|
|
46
|
+
{
|
|
47
|
+
ns: meta.id
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
icon: "ph--function--regular"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}),
|
|
14
55
|
createExtension({
|
|
15
56
|
id: `${SCRIPT_PLUGIN}/script-companion`,
|
|
16
57
|
filter: (node) => isInstanceOf(ScriptType, node.data),
|
|
@@ -38,4 +79,4 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
38
79
|
export {
|
|
39
80
|
app_graph_builder_default as default
|
|
40
81
|
};
|
|
41
|
-
//# sourceMappingURL=app-graph-builder-
|
|
82
|
+
//# sourceMappingURL=app-graph-builder-NYLOXWVV.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/app-graph-builder.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, type PluginsContext } from '@dxos/app-framework';\nimport { isInstanceOf } from '@dxos/echo-schema';\nimport { ScriptType } from '@dxos/functions';\nimport { PLANK_COMPANION_TYPE, ATTENDABLE_PATH_SEPARATOR } from '@dxos/plugin-deck/types';\nimport { createExtension, type Node } from '@dxos/plugin-graph';\nimport { SCRIPT_PLUGIN } from '@dxos/plugin-script/types';\nimport { SPACE_PLUGIN } from '@dxos/plugin-space';\n\nimport { meta } from '../meta';\n\nexport default (context: PluginsContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n createExtension({\n id: `${meta.id}/space-settings-automation`,\n filter: (node): node is Node<null> => node.type === `${SPACE_PLUGIN}/settings`,\n connector: ({ node }) => [\n {\n id: `automation-${node.id}`,\n type: `${meta.id}/space-settings-automation`,\n data: `${meta.id}/space-settings-automation`,\n properties: {\n label: ['automation panel label', { ns: meta.id }],\n icon: 'ph--lightning--regular',\n },\n },\n ],\n }),\n createExtension({\n id: `${meta.id}/space-settings-functions`,\n filter: (node): node is Node<null> => node.type === `${SPACE_PLUGIN}/settings`,\n connector: ({ node }) => [\n {\n id: `functions-${node.id}`,\n type: `${meta.id}/space-settings-functions`,\n data: `${meta.id}/space-settings-functions`,\n properties: {\n label: ['functions panel label', { ns: meta.id }],\n icon: 'ph--function--regular',\n },\n },\n ],\n }),\n createExtension({\n id: `${SCRIPT_PLUGIN}/script-companion`,\n filter: (node): node is Node<ScriptType> => isInstanceOf(ScriptType, node.data),\n connector: ({ node }) => [\n {\n id: [node.id, 'automation'].join(ATTENDABLE_PATH_SEPARATOR),\n type: PLANK_COMPANION_TYPE,\n data: 'automation',\n properties: {\n label: ['script automation label', { ns: meta.id }],\n icon: 'ph--lightning--regular',\n },\n },\n ],\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,SAASA,cAAcC,mBAAwC;AAC/D,SAASC,oBAAoB;AAC7B,SAASC,kBAAkB;AAC3B,SAASC,sBAAsBC,iCAAiC;AAChE,SAASC,uBAAkC;AAC3C,SAASC,qBAAqB;AAC9B,SAASC,oBAAoB;AAI7B,IAAA,4BAAe,CAACC,YACdC,YAAYC,aAAaC,iBAAiB;EACxCC,gBAAgB;IACdC,IAAI,GAAGC,KAAKD,EAAE;IACdE,QAAQ,CAACC,SAA6BA,KAAKC,SAAS,GAAGC,YAAAA;IACvDC,WAAW,CAAC,EAAEH,KAAI,MAAO;MACvB;QACEH,IAAI,cAAcG,KAAKH,EAAE;QACzBI,MAAM,GAAGH,KAAKD,EAAE;QAChBO,MAAM,GAAGN,KAAKD,EAAE;QAChBQ,YAAY;UACVC,OAAO;YAAC;YAA0B;cAAEC,IAAIT,KAAKD;YAAG;;UAChDW,MAAM;QACR;MACF;;EAEJ,CAAA;EACAZ,gBAAgB;IACdC,IAAI,GAAGC,KAAKD,EAAE;IACdE,QAAQ,CAACC,SAA6BA,KAAKC,SAAS,GAAGC,YAAAA;IACvDC,WAAW,CAAC,EAAEH,KAAI,MAAO;MACvB;QACEH,IAAI,aAAaG,KAAKH,EAAE;QACxBI,MAAM,GAAGH,KAAKD,EAAE;QAChBO,MAAM,GAAGN,KAAKD,EAAE;QAChBQ,YAAY;UACVC,OAAO;YAAC;YAAyB;cAAEC,IAAIT,KAAKD;YAAG;;UAC/CW,MAAM;QACR;MACF;;EAEJ,CAAA;EACAZ,gBAAgB;IACdC,IAAI,GAAGY,aAAAA;IACPV,QAAQ,CAACC,SAAmCU,aAAaC,YAAYX,KAAKI,IAAI;IAC9ED,WAAW,CAAC,EAAEH,KAAI,MAAO;MACvB;QACEH,IAAI;UAACG,KAAKH;UAAI;UAAce,KAAKC,yBAAAA;QACjCZ,MAAMa;QACNV,MAAM;QACNC,YAAY;UACVC,OAAO;YAAC;YAA2B;cAAEC,IAAIT,KAAKD;YAAG;;UACjDW,MAAM;QACR;MACF;;EAEJ,CAAA;CACD;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "isInstanceOf", "ScriptType", "PLANK_COMPANION_TYPE", "ATTENDABLE_PATH_SEPARATOR", "createExtension", "SCRIPT_PLUGIN", "SPACE_PLUGIN", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "meta", "filter", "node", "type", "SPACE_PLUGIN", "connector", "data", "properties", "label", "ns", "icon", "SCRIPT_PLUGIN", "isInstanceOf", "ScriptType", "join", "ATTENDABLE_PATH_SEPARATOR", "PLANK_COMPANION_TYPE"]
|
|
7
|
+
}
|