@dxos/plugin-conductor 0.8.4-main.422d1c7879 → 0.8.4-main.51f1e5ca51
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/index.mjs +11 -37
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/translations.mjs +28 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +11 -37
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/translations.mjs +30 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/types/src/ConductorPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/containers/CanvasContainer/CanvasContainer.d.ts +1 -1
- package/dist/types/src/containers/CanvasContainer/CanvasContainer.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +24 -16
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +33 -28
- package/src/ConductorPlugin.tsx +2 -3
- package/src/containers/CanvasContainer/CanvasContainer.tsx +6 -6
|
@@ -3,48 +3,22 @@ import * as Effect from "effect/Effect";
|
|
|
3
3
|
import * as Option from "effect/Option";
|
|
4
4
|
import { Plugin } from "@dxos/app-framework";
|
|
5
5
|
import { AppPlugin } from "@dxos/app-toolkit";
|
|
6
|
+
import { Operation } from "@dxos/compute";
|
|
6
7
|
import { ComputeGraph } from "@dxos/conductor";
|
|
7
8
|
import { Annotation } from "@dxos/echo";
|
|
8
|
-
import { Operation } from "@dxos/operation";
|
|
9
9
|
import { SpaceOperation } from "@dxos/plugin-space/operations";
|
|
10
|
-
import { CanvasBoard as CanvasBoard2 } from "@dxos/react-ui-canvas-editor";
|
|
11
|
-
import { ReactSurface } from "#capabilities";
|
|
12
|
-
import { meta as meta2 } from "#meta";
|
|
13
|
-
|
|
14
|
-
// src/translations.ts
|
|
15
10
|
import { CanvasBoard } from "@dxos/react-ui-canvas-editor";
|
|
11
|
+
import { ReactSurface } from "#capabilities";
|
|
16
12
|
import { meta } from "#meta";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"en-US": {
|
|
20
|
-
[CanvasBoard.CanvasBoard.typename]: {
|
|
21
|
-
"typename.label": "Circuit",
|
|
22
|
-
"typename.label_zero": "Circuits",
|
|
23
|
-
"typename.label_one": "Circuit",
|
|
24
|
-
"typename.label_other": "Circuits",
|
|
25
|
-
"object-name.placeholder": "New circuit",
|
|
26
|
-
"add-object.label": "Add circuit",
|
|
27
|
-
"rename-object.label": "Rename circuit",
|
|
28
|
-
"delete-object.label": "Delete circuit",
|
|
29
|
-
"object-deleted.label": "Circuit deleted"
|
|
30
|
-
},
|
|
31
|
-
[meta.id]: {
|
|
32
|
-
"plugin.name": "Conductor",
|
|
33
|
-
"content.placeholder": "Enter text..."
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
];
|
|
38
|
-
|
|
39
|
-
// src/ConductorPlugin.tsx
|
|
40
|
-
var ConductorPlugin = Plugin.define(meta2).pipe(AppPlugin.addMetadataModule({
|
|
13
|
+
import { translations } from "#translations";
|
|
14
|
+
var ConductorPlugin = Plugin.define(meta).pipe(AppPlugin.addMetadataModule({
|
|
41
15
|
metadata: {
|
|
42
|
-
id:
|
|
16
|
+
id: CanvasBoard.CanvasBoard.typename,
|
|
43
17
|
metadata: {
|
|
44
|
-
icon: Annotation.IconAnnotation.get(
|
|
45
|
-
iconHue: Annotation.IconAnnotation.get(
|
|
18
|
+
icon: Annotation.IconAnnotation.get(CanvasBoard.CanvasBoard).pipe(Option.getOrThrow).icon,
|
|
19
|
+
iconHue: Annotation.IconAnnotation.get(CanvasBoard.CanvasBoard).pipe(Option.getOrThrow).hue ?? "white",
|
|
46
20
|
createObject: (props, options) => Effect.gen(function* () {
|
|
47
|
-
const object =
|
|
21
|
+
const object = CanvasBoard.make(props);
|
|
48
22
|
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
49
23
|
object,
|
|
50
24
|
target: options.target,
|
|
@@ -56,7 +30,7 @@ var ConductorPlugin = Plugin.define(meta2).pipe(AppPlugin.addMetadataModule({
|
|
|
56
30
|
}
|
|
57
31
|
}), AppPlugin.addSchemaModule({
|
|
58
32
|
schema: [
|
|
59
|
-
|
|
33
|
+
CanvasBoard.CanvasBoard,
|
|
60
34
|
ComputeGraph
|
|
61
35
|
]
|
|
62
36
|
}), AppPlugin.addSurfaceModule({
|
|
@@ -67,7 +41,7 @@ var ConductorPlugin = Plugin.define(meta2).pipe(AppPlugin.addMetadataModule({
|
|
|
67
41
|
|
|
68
42
|
// src/meta.ts
|
|
69
43
|
import { trim } from "@dxos/util";
|
|
70
|
-
var
|
|
44
|
+
var meta2 = {
|
|
71
45
|
id: "org.dxos.plugin.conductor",
|
|
72
46
|
name: "Conductor",
|
|
73
47
|
description: trim`
|
|
@@ -86,6 +60,6 @@ var meta3 = {
|
|
|
86
60
|
};
|
|
87
61
|
export {
|
|
88
62
|
ConductorPlugin,
|
|
89
|
-
|
|
63
|
+
meta2 as meta
|
|
90
64
|
};
|
|
91
65
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/ConductorPlugin.tsx", "../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport {
|
|
5
|
-
"mappings": ";AAIA,YAAYA,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,oBAAoB;AAC7B,SAASC,kBAAkB;AAC3B,SAASC,
|
|
6
|
-
"names": ["Effect", "Option", "Plugin", "AppPlugin", "
|
|
3
|
+
"sources": ["../../../src/ConductorPlugin.tsx", "../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { Annotation } from '@dxos/echo';\nimport { SpaceOperation } from '@dxos/plugin-space/operations';\nimport { type CreateObject } from '@dxos/plugin-space/types';\nimport { CanvasBoard } from '@dxos/react-ui-canvas-editor';\n\nimport { ReactSurface } from '#capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\nexport const ConductorPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: CanvasBoard.CanvasBoard.typename,\n metadata: {\n icon: Annotation.IconAnnotation.get(CanvasBoard.CanvasBoard).pipe(Option.getOrThrow).icon,\n iconHue: Annotation.IconAnnotation.get(CanvasBoard.CanvasBoard).pipe(Option.getOrThrow).hue ?? 'white',\n createObject: ((props, options) =>\n Effect.gen(function* () {\n const object = CanvasBoard.make(props);\n return yield* Operation.invoke(SpaceOperation.AddObject, {\n object,\n target: options.target,\n hidden: true,\n targetNodeId: options.targetNodeId,\n });\n })) satisfies CreateObject,\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [CanvasBoard.CanvasBoard, ComputeGraph] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.conductor',\n name: 'Conductor',\n description: trim`\n Visual workflow builder using node-based compute graphs to orchestrate complex AI agent pipelines.\n Connect data sources, transformations, and AI models in a drag-and-drop interface for advanced automation.\n `,\n icon: 'ph--infinity--regular',\n iconHue: 'sky',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-conductor',\n tags: ['labs'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n};\n"],
|
|
5
|
+
"mappings": ";AAIA,YAAYA,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,oBAAoB;AAC7B,SAASC,kBAAkB;AAC3B,SAASC,sBAAsB;AAE/B,SAASC,mBAAmB;AAE5B,SAASC,oBAAoB;AAC7B,SAASC,YAAY;AACrB,SAASC,oBAAoB;AAEtB,IAAMC,kBAAkBV,OAAOW,OAAOH,IAAAA,EAAMI,KACjDX,UAAUY,kBAAkB;EAC1BC,UAAU;IACRC,IAAIT,YAAYA,YAAYU;IAC5BF,UAAU;MACRG,MAAMb,WAAWc,eAAeC,IAAIb,YAAYA,WAAW,EAAEM,KAAYQ,iBAAU,EAAEH;MACrFI,SAASjB,WAAWc,eAAeC,IAAIb,YAAYA,WAAW,EAAEM,KAAYQ,iBAAU,EAAEE,OAAO;MAC/FC,cAAe,CAACC,OAAOC,YACdC,WAAI,aAAA;AACT,cAAMC,SAASrB,YAAYsB,KAAKJ,KAAAA;AAChC,eAAO,OAAOtB,UAAU2B,OAAOxB,eAAeyB,WAAW;UACvDH;UACAI,QAAQN,QAAQM;UAChBC,QAAQ;UACRC,cAAcR,QAAQQ;QACxB,CAAA;MACF,CAAA;IACJ;EACF;AACF,CAAA,GACAhC,UAAUiC,gBAAgB;EAAEC,QAAQ;IAAC7B,YAAYA;IAAaH;;AAAc,CAAA,GAC5EF,UAAUmC,iBAAiB;EAAEC,UAAU9B;AAAa,CAAA,GACpDN,UAAUqC,sBAAsB;EAAE7B;AAAa,CAAA,GAC/CT,OAAO4B,IAAI;;;ACtCb,SAASW,YAAY;AAEd,IAAMC,QAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
|
|
6
|
+
"names": ["Effect", "Option", "Plugin", "AppPlugin", "Operation", "ComputeGraph", "Annotation", "SpaceOperation", "CanvasBoard", "ReactSurface", "meta", "translations", "ConductorPlugin", "define", "pipe", "addMetadataModule", "metadata", "id", "typename", "icon", "IconAnnotation", "get", "getOrThrow", "iconHue", "hue", "createObject", "props", "options", "gen", "object", "make", "invoke", "AddObject", "target", "hidden", "targetNodeId", "addSchemaModule", "schema", "addSurfaceModule", "activate", "addTranslationsModule", "trim", "meta", "id", "name", "description", "icon", "iconHue", "source", "tags", "screenshots"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/
|
|
1
|
+
{"inputs":{"src/ConductorPlugin.tsx":{"bytes":6207,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":2174,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":475,"imports":[{"path":"src/ConductorPlugin.tsx","kind":"import-statement","original":"./ConductorPlugin"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/translations.ts":{"bytes":2789,"imports":[{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4170},"dist/lib/browser/index.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["ConductorPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/ConductorPlugin.tsx":{"bytesInOutput":1465},"src/index.ts":{"bytesInOutput":0},"src/meta.ts":{"bytesInOutput":590}},"bytes":2180},"dist/lib/browser/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1340},"dist/lib/browser/translations.mjs":{"imports":[{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":712}},"bytes":804}}}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// src/translations.ts
|
|
2
|
+
import { CanvasBoard } from "@dxos/react-ui-canvas-editor";
|
|
3
|
+
import { meta } from "#meta";
|
|
4
|
+
var translations = [
|
|
5
|
+
{
|
|
6
|
+
"en-US": {
|
|
7
|
+
[CanvasBoard.CanvasBoard.typename]: {
|
|
8
|
+
"typename.label": "Circuit",
|
|
9
|
+
"typename.label_zero": "Circuits",
|
|
10
|
+
"typename.label_one": "Circuit",
|
|
11
|
+
"typename.label_other": "Circuits",
|
|
12
|
+
"object-name.placeholder": "New circuit",
|
|
13
|
+
"add-object.label": "Add circuit",
|
|
14
|
+
"rename-object.label": "Rename circuit",
|
|
15
|
+
"delete-object.label": "Delete circuit",
|
|
16
|
+
"object-deleted.label": "Circuit deleted"
|
|
17
|
+
},
|
|
18
|
+
[meta.id]: {
|
|
19
|
+
"plugin.name": "Conductor",
|
|
20
|
+
"content.placeholder": "Enter text..."
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
export {
|
|
26
|
+
translations
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { CanvasBoard } from '@dxos/react-ui-canvas-editor';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [CanvasBoard.CanvasBoard.typename]: {\n 'typename.label': 'Circuit',\n 'typename.label_zero': 'Circuits',\n 'typename.label_one': 'Circuit',\n 'typename.label_other': 'Circuits',\n 'object-name.placeholder': 'New circuit',\n 'add-object.label': 'Add circuit',\n 'rename-object.label': 'Rename circuit',\n 'delete-object.label': 'Delete circuit',\n 'object-deleted.label': 'Circuit deleted',\n },\n [meta.id]: {\n 'plugin.name': 'Conductor',\n 'content.placeholder': 'Enter text...',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";AAKA,SAASA,mBAAmB;AAE5B,SAASC,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACF,YAAYA,YAAYG,QAAQ,GAAG;QAClC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACF,KAAKG,EAAE,GAAG;QACT,eAAe;QACf,uBAAuB;MACzB;IACF;EACF;;",
|
|
6
|
+
"names": ["CanvasBoard", "meta", "translations", "typename", "id"]
|
|
7
|
+
}
|
|
@@ -5,48 +5,22 @@ import * as Effect from "effect/Effect";
|
|
|
5
5
|
import * as Option from "effect/Option";
|
|
6
6
|
import { Plugin } from "@dxos/app-framework";
|
|
7
7
|
import { AppPlugin } from "@dxos/app-toolkit";
|
|
8
|
+
import { Operation } from "@dxos/compute";
|
|
8
9
|
import { ComputeGraph } from "@dxos/conductor";
|
|
9
10
|
import { Annotation } from "@dxos/echo";
|
|
10
|
-
import { Operation } from "@dxos/operation";
|
|
11
11
|
import { SpaceOperation } from "@dxos/plugin-space/operations";
|
|
12
|
-
import { CanvasBoard as CanvasBoard2 } from "@dxos/react-ui-canvas-editor";
|
|
13
|
-
import { ReactSurface } from "#capabilities";
|
|
14
|
-
import { meta as meta2 } from "#meta";
|
|
15
|
-
|
|
16
|
-
// src/translations.ts
|
|
17
12
|
import { CanvasBoard } from "@dxos/react-ui-canvas-editor";
|
|
13
|
+
import { ReactSurface } from "#capabilities";
|
|
18
14
|
import { meta } from "#meta";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"en-US": {
|
|
22
|
-
[CanvasBoard.CanvasBoard.typename]: {
|
|
23
|
-
"typename.label": "Circuit",
|
|
24
|
-
"typename.label_zero": "Circuits",
|
|
25
|
-
"typename.label_one": "Circuit",
|
|
26
|
-
"typename.label_other": "Circuits",
|
|
27
|
-
"object-name.placeholder": "New circuit",
|
|
28
|
-
"add-object.label": "Add circuit",
|
|
29
|
-
"rename-object.label": "Rename circuit",
|
|
30
|
-
"delete-object.label": "Delete circuit",
|
|
31
|
-
"object-deleted.label": "Circuit deleted"
|
|
32
|
-
},
|
|
33
|
-
[meta.id]: {
|
|
34
|
-
"plugin.name": "Conductor",
|
|
35
|
-
"content.placeholder": "Enter text..."
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
];
|
|
40
|
-
|
|
41
|
-
// src/ConductorPlugin.tsx
|
|
42
|
-
var ConductorPlugin = Plugin.define(meta2).pipe(AppPlugin.addMetadataModule({
|
|
15
|
+
import { translations } from "#translations";
|
|
16
|
+
var ConductorPlugin = Plugin.define(meta).pipe(AppPlugin.addMetadataModule({
|
|
43
17
|
metadata: {
|
|
44
|
-
id:
|
|
18
|
+
id: CanvasBoard.CanvasBoard.typename,
|
|
45
19
|
metadata: {
|
|
46
|
-
icon: Annotation.IconAnnotation.get(
|
|
47
|
-
iconHue: Annotation.IconAnnotation.get(
|
|
20
|
+
icon: Annotation.IconAnnotation.get(CanvasBoard.CanvasBoard).pipe(Option.getOrThrow).icon,
|
|
21
|
+
iconHue: Annotation.IconAnnotation.get(CanvasBoard.CanvasBoard).pipe(Option.getOrThrow).hue ?? "white",
|
|
48
22
|
createObject: (props, options) => Effect.gen(function* () {
|
|
49
|
-
const object =
|
|
23
|
+
const object = CanvasBoard.make(props);
|
|
50
24
|
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
51
25
|
object,
|
|
52
26
|
target: options.target,
|
|
@@ -58,7 +32,7 @@ var ConductorPlugin = Plugin.define(meta2).pipe(AppPlugin.addMetadataModule({
|
|
|
58
32
|
}
|
|
59
33
|
}), AppPlugin.addSchemaModule({
|
|
60
34
|
schema: [
|
|
61
|
-
|
|
35
|
+
CanvasBoard.CanvasBoard,
|
|
62
36
|
ComputeGraph
|
|
63
37
|
]
|
|
64
38
|
}), AppPlugin.addSurfaceModule({
|
|
@@ -69,7 +43,7 @@ var ConductorPlugin = Plugin.define(meta2).pipe(AppPlugin.addMetadataModule({
|
|
|
69
43
|
|
|
70
44
|
// src/meta.ts
|
|
71
45
|
import { trim } from "@dxos/util";
|
|
72
|
-
var
|
|
46
|
+
var meta2 = {
|
|
73
47
|
id: "org.dxos.plugin.conductor",
|
|
74
48
|
name: "Conductor",
|
|
75
49
|
description: trim`
|
|
@@ -88,6 +62,6 @@ var meta3 = {
|
|
|
88
62
|
};
|
|
89
63
|
export {
|
|
90
64
|
ConductorPlugin,
|
|
91
|
-
|
|
65
|
+
meta2 as meta
|
|
92
66
|
};
|
|
93
67
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/ConductorPlugin.tsx", "../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport {
|
|
5
|
-
"mappings": ";;;AAIA,YAAYA,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,oBAAoB;AAC7B,SAASC,kBAAkB;AAC3B,SAASC,
|
|
6
|
-
"names": ["Effect", "Option", "Plugin", "AppPlugin", "
|
|
3
|
+
"sources": ["../../../src/ConductorPlugin.tsx", "../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { Annotation } from '@dxos/echo';\nimport { SpaceOperation } from '@dxos/plugin-space/operations';\nimport { type CreateObject } from '@dxos/plugin-space/types';\nimport { CanvasBoard } from '@dxos/react-ui-canvas-editor';\n\nimport { ReactSurface } from '#capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\nexport const ConductorPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: CanvasBoard.CanvasBoard.typename,\n metadata: {\n icon: Annotation.IconAnnotation.get(CanvasBoard.CanvasBoard).pipe(Option.getOrThrow).icon,\n iconHue: Annotation.IconAnnotation.get(CanvasBoard.CanvasBoard).pipe(Option.getOrThrow).hue ?? 'white',\n createObject: ((props, options) =>\n Effect.gen(function* () {\n const object = CanvasBoard.make(props);\n return yield* Operation.invoke(SpaceOperation.AddObject, {\n object,\n target: options.target,\n hidden: true,\n targetNodeId: options.targetNodeId,\n });\n })) satisfies CreateObject,\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [CanvasBoard.CanvasBoard, ComputeGraph] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.conductor',\n name: 'Conductor',\n description: trim`\n Visual workflow builder using node-based compute graphs to orchestrate complex AI agent pipelines.\n Connect data sources, transformations, and AI models in a drag-and-drop interface for advanced automation.\n `,\n icon: 'ph--infinity--regular',\n iconHue: 'sky',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-conductor',\n tags: ['labs'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n};\n"],
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,oBAAoB;AAC7B,SAASC,kBAAkB;AAC3B,SAASC,sBAAsB;AAE/B,SAASC,mBAAmB;AAE5B,SAASC,oBAAoB;AAC7B,SAASC,YAAY;AACrB,SAASC,oBAAoB;AAEtB,IAAMC,kBAAkBV,OAAOW,OAAOH,IAAAA,EAAMI,KACjDX,UAAUY,kBAAkB;EAC1BC,UAAU;IACRC,IAAIT,YAAYA,YAAYU;IAC5BF,UAAU;MACRG,MAAMb,WAAWc,eAAeC,IAAIb,YAAYA,WAAW,EAAEM,KAAYQ,iBAAU,EAAEH;MACrFI,SAASjB,WAAWc,eAAeC,IAAIb,YAAYA,WAAW,EAAEM,KAAYQ,iBAAU,EAAEE,OAAO;MAC/FC,cAAe,CAACC,OAAOC,YACdC,WAAI,aAAA;AACT,cAAMC,SAASrB,YAAYsB,KAAKJ,KAAAA;AAChC,eAAO,OAAOtB,UAAU2B,OAAOxB,eAAeyB,WAAW;UACvDH;UACAI,QAAQN,QAAQM;UAChBC,QAAQ;UACRC,cAAcR,QAAQQ;QACxB,CAAA;MACF,CAAA;IACJ;EACF;AACF,CAAA,GACAhC,UAAUiC,gBAAgB;EAAEC,QAAQ;IAAC7B,YAAYA;IAAaH;;AAAc,CAAA,GAC5EF,UAAUmC,iBAAiB;EAAEC,UAAU9B;AAAa,CAAA,GACpDN,UAAUqC,sBAAsB;EAAE7B;AAAa,CAAA,GAC/CT,OAAO4B,IAAI;;;ACtCb,SAASW,YAAY;AAEd,IAAMC,QAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
|
|
6
|
+
"names": ["Effect", "Option", "Plugin", "AppPlugin", "Operation", "ComputeGraph", "Annotation", "SpaceOperation", "CanvasBoard", "ReactSurface", "meta", "translations", "ConductorPlugin", "define", "pipe", "addMetadataModule", "metadata", "id", "typename", "icon", "IconAnnotation", "get", "getOrThrow", "iconHue", "hue", "createObject", "props", "options", "gen", "object", "make", "invoke", "AddObject", "target", "hidden", "targetNodeId", "addSchemaModule", "schema", "addSurfaceModule", "activate", "addTranslationsModule", "trim", "meta", "id", "name", "description", "icon", "iconHue", "source", "tags", "screenshots"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/
|
|
1
|
+
{"inputs":{"src/ConductorPlugin.tsx":{"bytes":6207,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":2174,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":475,"imports":[{"path":"src/ConductorPlugin.tsx","kind":"import-statement","original":"./ConductorPlugin"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/translations.ts":{"bytes":2789,"imports":[{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4172},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["ConductorPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/ConductorPlugin.tsx":{"bytesInOutput":1465},"src/index.ts":{"bytesInOutput":0},"src/meta.ts":{"bytesInOutput":590}},"bytes":2273},"dist/lib/node-esm/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1342},"dist/lib/node-esm/translations.mjs":{"imports":[{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":712}},"bytes":897}}}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/translations.ts
|
|
4
|
+
import { CanvasBoard } from "@dxos/react-ui-canvas-editor";
|
|
5
|
+
import { meta } from "#meta";
|
|
6
|
+
var translations = [
|
|
7
|
+
{
|
|
8
|
+
"en-US": {
|
|
9
|
+
[CanvasBoard.CanvasBoard.typename]: {
|
|
10
|
+
"typename.label": "Circuit",
|
|
11
|
+
"typename.label_zero": "Circuits",
|
|
12
|
+
"typename.label_one": "Circuit",
|
|
13
|
+
"typename.label_other": "Circuits",
|
|
14
|
+
"object-name.placeholder": "New circuit",
|
|
15
|
+
"add-object.label": "Add circuit",
|
|
16
|
+
"rename-object.label": "Rename circuit",
|
|
17
|
+
"delete-object.label": "Delete circuit",
|
|
18
|
+
"object-deleted.label": "Circuit deleted"
|
|
19
|
+
},
|
|
20
|
+
[meta.id]: {
|
|
21
|
+
"plugin.name": "Conductor",
|
|
22
|
+
"content.placeholder": "Enter text..."
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
export {
|
|
28
|
+
translations
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { CanvasBoard } from '@dxos/react-ui-canvas-editor';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [CanvasBoard.CanvasBoard.typename]: {\n 'typename.label': 'Circuit',\n 'typename.label_zero': 'Circuits',\n 'typename.label_one': 'Circuit',\n 'typename.label_other': 'Circuits',\n 'object-name.placeholder': 'New circuit',\n 'add-object.label': 'Add circuit',\n 'rename-object.label': 'Rename circuit',\n 'delete-object.label': 'Delete circuit',\n 'object-deleted.label': 'Circuit deleted',\n },\n [meta.id]: {\n 'plugin.name': 'Conductor',\n 'content.placeholder': 'Enter text...',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";;;AAKA,SAASA,mBAAmB;AAE5B,SAASC,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACF,YAAYA,YAAYG,QAAQ,GAAG;QAClC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACF,KAAKG,EAAE,GAAG;QACT,eAAe;QACf,uBAAuB;MACzB;IACF;EACF;;",
|
|
6
|
+
"names": ["CanvasBoard", "meta", "translations", "typename", "id"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConductorPlugin.d.ts","sourceRoot":"","sources":["../../../src/ConductorPlugin.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConductorPlugin.d.ts","sourceRoot":"","sources":["../../../src/ConductorPlugin.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAa7C,eAAO,MAAM,eAAe,4BAwB3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
3
3
|
import { type CanvasBoard } from '@dxos/react-ui-canvas-editor';
|
|
4
4
|
export type CanvasContainerProps = AppSurface.ObjectArticleProps<CanvasBoard.CanvasBoard>;
|
|
5
|
-
export declare const CanvasContainer: ({ role, subject
|
|
5
|
+
export declare const CanvasContainer: ({ role, subject, attendableId: _attendableId }: CanvasContainerProps) => React.JSX.Element | undefined;
|
|
6
6
|
//# sourceMappingURL=CanvasContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/CanvasContainer/CanvasContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAGpE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAevD,OAAO,EACL,KAAK,WAAW,EAMjB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,kBAAkB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;AAE1F,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"CanvasContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/CanvasContainer/CanvasContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAGpE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAevD,OAAO,EACL,KAAK,WAAW,EAMjB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,kBAAkB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;AAE1F,eAAO,MAAM,eAAe,mDAAoD,oBAAoB,kCA4CnG,CAAC"}
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import { CanvasBoard } from '@dxos/react-ui-canvas-editor';
|
|
2
|
-
import { meta } from '#meta';
|
|
3
1
|
export declare const translations: [{
|
|
4
2
|
readonly 'en-US': {
|
|
5
|
-
readonly [
|
|
6
|
-
readonly 'typename.label':
|
|
7
|
-
readonly 'typename.label_zero':
|
|
8
|
-
readonly 'typename.label_one':
|
|
9
|
-
readonly 'typename.label_other':
|
|
10
|
-
readonly 'object-name.placeholder':
|
|
11
|
-
readonly 'add-object.label':
|
|
12
|
-
readonly 'rename-object.label':
|
|
13
|
-
readonly 'delete-object.label':
|
|
14
|
-
readonly 'object-deleted.label':
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
readonly '
|
|
3
|
+
readonly [x: string]: {
|
|
4
|
+
readonly 'typename.label': 'Circuit';
|
|
5
|
+
readonly 'typename.label_zero': 'Circuits';
|
|
6
|
+
readonly 'typename.label_one': 'Circuit';
|
|
7
|
+
readonly 'typename.label_other': 'Circuits';
|
|
8
|
+
readonly 'object-name.placeholder': 'New circuit';
|
|
9
|
+
readonly 'add-object.label': 'Add circuit';
|
|
10
|
+
readonly 'rename-object.label': 'Rename circuit';
|
|
11
|
+
readonly 'delete-object.label': 'Delete circuit';
|
|
12
|
+
readonly 'object-deleted.label': 'Circuit deleted';
|
|
13
|
+
readonly 'plugin.name'?: undefined;
|
|
14
|
+
readonly 'content.placeholder'?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
readonly 'typename.label'?: undefined;
|
|
17
|
+
readonly 'typename.label_zero'?: undefined;
|
|
18
|
+
readonly 'typename.label_one'?: undefined;
|
|
19
|
+
readonly 'typename.label_other'?: undefined;
|
|
20
|
+
readonly 'object-name.placeholder'?: undefined;
|
|
21
|
+
readonly 'add-object.label'?: undefined;
|
|
22
|
+
readonly 'rename-object.label'?: undefined;
|
|
23
|
+
readonly 'delete-object.label'?: undefined;
|
|
24
|
+
readonly 'object-deleted.label'?: undefined;
|
|
25
|
+
readonly 'plugin.name': 'Conductor';
|
|
26
|
+
readonly 'content.placeholder': 'Enter text...';
|
|
19
27
|
};
|
|
20
28
|
};
|
|
21
29
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY;;;uCAIC,SAAS;4CACJ,UAAU;2CACX,SAAS;6CACP,UAAU;gDACP,aAAa;yCACpB,aAAa;4CACV,gBAAgB;4CAChB,gBAAgB;6CACf,iBAAiB;;;;;;;;;;;;;oCAG1B,WAAW;4CACH,eAAe;;;EAIf,CAAC"}
|