@dxos/plugin-conductor 0.8.4-main.b97322e → 0.8.4-main.bcb3aa67d6
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/README.md +7 -3
- package/dist/lib/browser/index.mjs +72 -75
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +72 -74
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/ConductorPlugin.d.ts +2 -1
- package/dist/types/src/ConductorPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -4
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/CanvasContainer/CanvasContainer.d.ts +6 -0
- package/dist/types/src/containers/CanvasContainer/CanvasContainer.d.ts.map +1 -0
- package/dist/types/src/containers/CanvasContainer/index.d.ts +3 -0
- package/dist/types/src/containers/CanvasContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +3 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +14 -12
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +50 -47
- package/src/ConductorPlugin.tsx +38 -55
- package/src/capabilities/index.ts +2 -3
- package/src/capabilities/react-surface.tsx +20 -14
- package/src/components/index.ts +1 -5
- package/src/{components → containers/CanvasContainer}/CanvasContainer.tsx +48 -51
- package/src/containers/CanvasContainer/index.ts +7 -0
- package/src/containers/index.ts +7 -0
- package/src/meta.ts +9 -7
- package/src/translations.ts +14 -12
- package/src/types/index.ts +0 -2
- package/dist/lib/browser/CanvasContainer-ZH5SFXCO.mjs +0 -97
- package/dist/lib/browser/CanvasContainer-ZH5SFXCO.mjs.map +0 -7
- package/dist/lib/browser/chunk-3AGZDOYQ.mjs +0 -21
- package/dist/lib/browser/chunk-3AGZDOYQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-IFYNDE3Z.mjs +0 -25
- package/dist/lib/browser/chunk-IFYNDE3Z.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-7OILSFLQ.mjs +0 -34
- package/dist/lib/browser/intent-resolver-7OILSFLQ.mjs.map +0 -7
- package/dist/lib/browser/react-surface-EDDAESDD.mjs +0 -31
- package/dist/lib/browser/react-surface-EDDAESDD.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -8
- package/dist/lib/browser/types/index.mjs.map +0 -7
- package/dist/lib/node-esm/CanvasContainer-T5LXU3YB.mjs +0 -99
- package/dist/lib/node-esm/CanvasContainer-T5LXU3YB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ELHUFMCW.mjs +0 -26
- package/dist/lib/node-esm/chunk-ELHUFMCW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TL52TWDT.mjs +0 -23
- package/dist/lib/node-esm/chunk-TL52TWDT.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-U3TIHMS2.mjs +0 -35
- package/dist/lib/node-esm/intent-resolver-U3TIHMS2.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-UFIHQSHX.mjs +0 -32
- package/dist/lib/node-esm/react-surface-UFIHQSHX.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -9
- package/dist/lib/node-esm/types/index.mjs.map +0 -7
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/CanvasContainer.d.ts +0 -8
- package/dist/types/src/components/CanvasContainer.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -18
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -27
- package/src/types/schema.ts +0 -20
package/README.md
CHANGED
|
@@ -28,10 +28,10 @@ The system is built on `@dxos/graph` as the core abstraction layer Canvas visual
|
|
|
28
28
|
- ComputeNode state changes are Effect signals
|
|
29
29
|
- Canvas React components automatically update based on these signals
|
|
30
30
|
|
|
31
|
-
|
|
32
31
|
## Development
|
|
33
32
|
|
|
34
33
|
### Phase 1: Basic editor
|
|
34
|
+
|
|
35
35
|
- [x] Canvas with pan and zoom (`@dxos/react-canvaas`).
|
|
36
36
|
- [x] General graph data structure (`@dxos/graph`).
|
|
37
37
|
- [x] Radix-style Editor component, with Canvas, Grid and Toolbar.
|
|
@@ -47,7 +47,8 @@ The system is built on `@dxos/graph` as the core abstraction layer Canvas visual
|
|
|
47
47
|
- [ ] Undo/redo (history).
|
|
48
48
|
- [ ] Snap to edges or center? (currently center).
|
|
49
49
|
|
|
50
|
-
### Phase 2:
|
|
50
|
+
### Phase 2:
|
|
51
|
+
|
|
51
52
|
- [x] FunctionShape components with properties and anchor points. Add/delete and Play buttons.
|
|
52
53
|
- [x] Shape registry.
|
|
53
54
|
- [x] Custom frames.
|
|
@@ -77,9 +78,11 @@ The system is built on `@dxos/graph` as the core abstraction layer Canvas visual
|
|
|
77
78
|
- [x] GPT (with prompt and base prompt inputs).
|
|
78
79
|
|
|
79
80
|
### Phase 4:
|
|
80
|
-
|
|
81
|
+
|
|
82
|
+
- [ ] Group/collapse nodes; hierarchical graph editor.
|
|
81
83
|
|
|
82
84
|
### Technical Debt
|
|
85
|
+
|
|
83
86
|
- [x] `AttentionContainer` (and key management).
|
|
84
87
|
- [ ] Factor out common Toolbar pattern (with state observers).
|
|
85
88
|
- [ ] Reconcile Graph with framework (ECHO, app-graph, etc.)
|
|
@@ -87,4 +90,5 @@ The system is built on `@dxos/graph` as the core abstraction layer Canvas visual
|
|
|
87
90
|
- [ ] TypedObject and schema id property.
|
|
88
91
|
|
|
89
92
|
### Design Issues
|
|
93
|
+
|
|
90
94
|
- [ ] Represent all compute node properties as inputs? (e.g., trigger).
|
|
@@ -1,94 +1,91 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ConductorAction
|
|
3
|
-
} from "./chunk-IFYNDE3Z.mjs";
|
|
4
|
-
import {
|
|
5
|
-
CONDUCTOR_PLUGIN,
|
|
6
|
-
meta
|
|
7
|
-
} from "./chunk-3AGZDOYQ.mjs";
|
|
8
|
-
|
|
9
1
|
// src/ConductorPlugin.tsx
|
|
10
|
-
import
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Option from "effect/Option";
|
|
4
|
+
import { Plugin } from "@dxos/app-framework";
|
|
5
|
+
import { AppPlugin } from "@dxos/app-toolkit";
|
|
6
|
+
import { Annotation } from "@dxos/echo";
|
|
11
7
|
import { ComputeGraph } from "@dxos/conductor";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { CanvasBoardType as CanvasBoardType2 } from "@dxos/react-ui-canvas-editor";
|
|
17
|
-
|
|
18
|
-
// src/capabilities/index.ts
|
|
19
|
-
import { lazy } from "@dxos/app-framework";
|
|
20
|
-
var IntentResolver = lazy(() => import("./intent-resolver-7OILSFLQ.mjs"));
|
|
21
|
-
var ReactSurface = lazy(() => import("./react-surface-EDDAESDD.mjs"));
|
|
8
|
+
import { Operation } from "@dxos/operation";
|
|
9
|
+
import { SpaceOperation } from "@dxos/plugin-space/operations";
|
|
10
|
+
import { CanvasBoard as CanvasBoard2 } from "@dxos/react-ui-canvas-editor";
|
|
11
|
+
import { meta as meta2 } from "#meta";
|
|
22
12
|
|
|
23
13
|
// src/translations.ts
|
|
24
|
-
import {
|
|
14
|
+
import { CanvasBoard } from "@dxos/react-ui-canvas-editor";
|
|
15
|
+
import { meta } from "#meta";
|
|
25
16
|
var translations = [
|
|
26
17
|
{
|
|
27
18
|
"en-US": {
|
|
28
|
-
[
|
|
29
|
-
"typename
|
|
30
|
-
"typename
|
|
31
|
-
"typename
|
|
32
|
-
"typename
|
|
33
|
-
"object
|
|
34
|
-
"
|
|
35
|
-
"
|
|
19
|
+
[CanvasBoard.CanvasBoard.typename]: {
|
|
20
|
+
"typename.label": "Circuit",
|
|
21
|
+
"typename.label_zero": "Circuits",
|
|
22
|
+
"typename.label_one": "Circuit",
|
|
23
|
+
"typename.label_other": "Circuits",
|
|
24
|
+
"object-name.placeholder": "New circuit",
|
|
25
|
+
"add-object.label": "Add circuit",
|
|
26
|
+
"rename-object.label": "Rename circuit",
|
|
27
|
+
"delete-object.label": "Delete circuit",
|
|
28
|
+
"object-deleted.label": "Circuit deleted"
|
|
36
29
|
},
|
|
37
30
|
[meta.id]: {
|
|
38
|
-
"plugin
|
|
39
|
-
"content
|
|
31
|
+
"plugin.name": "Conductor",
|
|
32
|
+
"content.placeholder": "Enter text..."
|
|
40
33
|
}
|
|
41
34
|
}
|
|
42
35
|
}
|
|
43
36
|
];
|
|
44
37
|
|
|
45
38
|
// src/ConductorPlugin.tsx
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
39
|
+
import { ReactSurface } from "#capabilities";
|
|
40
|
+
var ConductorPlugin = Plugin.define(meta2).pipe(AppPlugin.addMetadataModule({
|
|
41
|
+
metadata: {
|
|
42
|
+
id: CanvasBoard2.CanvasBoard.typename,
|
|
43
|
+
metadata: {
|
|
44
|
+
icon: Annotation.IconAnnotation.get(CanvasBoard2.CanvasBoard).pipe(Option.getOrThrow).icon,
|
|
45
|
+
iconHue: Annotation.IconAnnotation.get(CanvasBoard2.CanvasBoard).pipe(Option.getOrThrow).hue ?? "white",
|
|
46
|
+
createObject: (props, options) => Effect.gen(function* () {
|
|
47
|
+
const object = CanvasBoard2.make(props);
|
|
48
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
49
|
+
object,
|
|
50
|
+
target: options.target,
|
|
51
|
+
hidden: true,
|
|
52
|
+
targetNodeId: options.targetNodeId
|
|
53
|
+
});
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}), AppPlugin.addSchemaModule({
|
|
58
|
+
schema: [
|
|
59
|
+
CanvasBoard2.CanvasBoard,
|
|
60
|
+
ComputeGraph
|
|
61
|
+
]
|
|
62
|
+
}), AppPlugin.addSurfaceModule({
|
|
63
|
+
activate: ReactSurface
|
|
64
|
+
}), AppPlugin.addTranslationsModule({
|
|
65
|
+
translations
|
|
66
|
+
}), Plugin.make);
|
|
67
|
+
|
|
68
|
+
// src/meta.ts
|
|
69
|
+
import { trim } from "@dxos/util";
|
|
70
|
+
var meta3 = {
|
|
71
|
+
id: "org.dxos.plugin.conductor",
|
|
72
|
+
name: "Conductor",
|
|
73
|
+
description: trim`
|
|
74
|
+
Visual workflow builder using node-based compute graphs to orchestrate complex AI agent pipelines.
|
|
75
|
+
Connect data sources, transformations, and AI models in a drag-and-drop interface for advanced automation.
|
|
76
|
+
`,
|
|
77
|
+
icon: "ph--infinity--regular",
|
|
78
|
+
iconHue: "sky",
|
|
79
|
+
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-conductor",
|
|
80
|
+
tags: [
|
|
81
|
+
"labs"
|
|
82
|
+
],
|
|
83
|
+
screenshots: [
|
|
84
|
+
"https://dxos.network/plugin-details-canvas-dark.png"
|
|
85
|
+
]
|
|
86
|
+
};
|
|
89
87
|
export {
|
|
90
|
-
CONDUCTOR_PLUGIN,
|
|
91
88
|
ConductorPlugin,
|
|
92
|
-
meta
|
|
89
|
+
meta3 as meta
|
|
93
90
|
};
|
|
94
91
|
//# 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
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/ConductorPlugin.tsx", "../../../src/translations.ts", "../../../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 { Annotation } from '@dxos/echo';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { Operation } from '@dxos/operation';\nimport { type CreateObject } from '@dxos/plugin-space/types';\nimport { SpaceOperation } from '@dxos/plugin-space/operations';\nimport { CanvasBoard } from '@dxos/react-ui-canvas-editor';\n\nimport { meta } from '#meta';\nimport { translations } from './translations';\n\nimport { ReactSurface } from '#capabilities';\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 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", "//\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,kBAAkB;AAC3B,SAASC,oBAAoB;AAC7B,SAASC,iBAAiB;AAE1B,SAASC,sBAAsB;AAC/B,SAASC,eAAAA,oBAAmB;AAE5B,SAASC,QAAAA,aAAY;;;ACXrB,SAASC,mBAAmB;AAE5B,SAASC,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,YAAYA,YAAYC,QAAQ,GAAG;QAClC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,uBAAuB;MACzB;IACF;EACF;;;;ADTF,SAASC,oBAAoB;AAEtB,IAAMC,kBAAkBC,OAAOC,OAAOC,KAAAA,EAAMC,KACjDC,UAAUC,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,aAAYA,YAAYC;IAC5BH,UAAU;MACRI,MAAMC,WAAWC,eAAeC,IAAIL,aAAYA,WAAW,EAAEL,KAAYW,iBAAU,EAAEJ;MACrFK,SAASJ,WAAWC,eAAeC,IAAIL,aAAYA,WAAW,EAAEL,KAAYW,iBAAU,EAAEE,OAAO;MAC/FC,cAAe,CAACC,OAAOC,YACdC,WAAI,aAAA;AACT,cAAMC,SAASb,aAAYc,KAAKJ,KAAAA;AAChC,eAAO,OAAOK,UAAUC,OAAOC,eAAeC,WAAW;UACvDL;UACAM,QAAQR,QAAQQ;UAChBC,QAAQ;UACRC,cAAcV,QAAQU;QACxB,CAAA;MACF,CAAA;IACJ;EACF;AACF,CAAA,GACAzB,UAAU0B,gBAAgB;EAAEC,QAAQ;IAACvB,aAAYA;IAAawB;;AAAc,CAAA,GAC5E5B,UAAU6B,iBAAiB;EAAEC,UAAUC;AAAa,CAAA,GACpD/B,UAAUgC,sBAAsB;EAAEC;AAAa,CAAA,GAC/CrC,OAAOsB,IAAI;;;AEvCb,SAASgB,YAAY;AAEd,IAAMC,QAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
|
|
6
|
+
"names": ["Effect", "Option", "Plugin", "AppPlugin", "Annotation", "ComputeGraph", "Operation", "SpaceOperation", "CanvasBoard", "meta", "CanvasBoard", "meta", "translations", "CanvasBoard", "typename", "meta", "id", "ReactSurface", "ConductorPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addMetadataModule", "metadata", "id", "CanvasBoard", "typename", "icon", "Annotation", "IconAnnotation", "get", "getOrThrow", "iconHue", "hue", "createObject", "props", "options", "gen", "object", "make", "Operation", "invoke", "SpaceOperation", "AddObject", "target", "hidden", "targetNodeId", "addSchemaModule", "schema", "ComputeGraph", "addSurfaceModule", "activate", "ReactSurface", "addTranslationsModule", "translations", "trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "tags", "screenshots"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/
|
|
1
|
+
{"inputs":{"src/translations.ts":{"bytes":2880,"imports":[{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/ConductorPlugin.tsx":{"bytes":6317,"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/echo","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/operation","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":"#meta","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"#capabilities","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":2257,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":559,"imports":[{"path":"src/ConductorPlugin.tsx","kind":"import-statement","original":"./ConductorPlugin"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5574},"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/echo","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/operation","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":"#meta","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#capabilities","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":1452},"src/translations.ts":{"bytesInOutput":712},"src/index.ts":{"bytesInOutput":0},"src/meta.ts":{"bytesInOutput":590}},"bytes":2931}}}
|
|
@@ -1,95 +1,93 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
ConductorAction
|
|
4
|
-
} from "./chunk-ELHUFMCW.mjs";
|
|
5
|
-
import {
|
|
6
|
-
CONDUCTOR_PLUGIN,
|
|
7
|
-
meta
|
|
8
|
-
} from "./chunk-TL52TWDT.mjs";
|
|
9
2
|
|
|
10
3
|
// src/ConductorPlugin.tsx
|
|
11
|
-
import
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import * as Option from "effect/Option";
|
|
6
|
+
import { Plugin } from "@dxos/app-framework";
|
|
7
|
+
import { AppPlugin } from "@dxos/app-toolkit";
|
|
8
|
+
import { Annotation } from "@dxos/echo";
|
|
12
9
|
import { ComputeGraph } from "@dxos/conductor";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { CanvasBoardType as CanvasBoardType2 } from "@dxos/react-ui-canvas-editor";
|
|
18
|
-
|
|
19
|
-
// src/capabilities/index.ts
|
|
20
|
-
import { lazy } from "@dxos/app-framework";
|
|
21
|
-
var IntentResolver = lazy(() => import("./intent-resolver-U3TIHMS2.mjs"));
|
|
22
|
-
var ReactSurface = lazy(() => import("./react-surface-UFIHQSHX.mjs"));
|
|
10
|
+
import { Operation } from "@dxos/operation";
|
|
11
|
+
import { SpaceOperation } from "@dxos/plugin-space/operations";
|
|
12
|
+
import { CanvasBoard as CanvasBoard2 } from "@dxos/react-ui-canvas-editor";
|
|
13
|
+
import { meta as meta2 } from "#meta";
|
|
23
14
|
|
|
24
15
|
// src/translations.ts
|
|
25
|
-
import {
|
|
16
|
+
import { CanvasBoard } from "@dxos/react-ui-canvas-editor";
|
|
17
|
+
import { meta } from "#meta";
|
|
26
18
|
var translations = [
|
|
27
19
|
{
|
|
28
20
|
"en-US": {
|
|
29
|
-
[
|
|
30
|
-
"typename
|
|
31
|
-
"typename
|
|
32
|
-
"typename
|
|
33
|
-
"typename
|
|
34
|
-
"object
|
|
35
|
-
"
|
|
36
|
-
"
|
|
21
|
+
[CanvasBoard.CanvasBoard.typename]: {
|
|
22
|
+
"typename.label": "Circuit",
|
|
23
|
+
"typename.label_zero": "Circuits",
|
|
24
|
+
"typename.label_one": "Circuit",
|
|
25
|
+
"typename.label_other": "Circuits",
|
|
26
|
+
"object-name.placeholder": "New circuit",
|
|
27
|
+
"add-object.label": "Add circuit",
|
|
28
|
+
"rename-object.label": "Rename circuit",
|
|
29
|
+
"delete-object.label": "Delete circuit",
|
|
30
|
+
"object-deleted.label": "Circuit deleted"
|
|
37
31
|
},
|
|
38
32
|
[meta.id]: {
|
|
39
|
-
"plugin
|
|
40
|
-
"content
|
|
33
|
+
"plugin.name": "Conductor",
|
|
34
|
+
"content.placeholder": "Enter text..."
|
|
41
35
|
}
|
|
42
36
|
}
|
|
43
37
|
}
|
|
44
38
|
];
|
|
45
39
|
|
|
46
40
|
// src/ConductorPlugin.tsx
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
41
|
+
import { ReactSurface } from "#capabilities";
|
|
42
|
+
var ConductorPlugin = Plugin.define(meta2).pipe(AppPlugin.addMetadataModule({
|
|
43
|
+
metadata: {
|
|
44
|
+
id: CanvasBoard2.CanvasBoard.typename,
|
|
45
|
+
metadata: {
|
|
46
|
+
icon: Annotation.IconAnnotation.get(CanvasBoard2.CanvasBoard).pipe(Option.getOrThrow).icon,
|
|
47
|
+
iconHue: Annotation.IconAnnotation.get(CanvasBoard2.CanvasBoard).pipe(Option.getOrThrow).hue ?? "white",
|
|
48
|
+
createObject: (props, options) => Effect.gen(function* () {
|
|
49
|
+
const object = CanvasBoard2.make(props);
|
|
50
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
51
|
+
object,
|
|
52
|
+
target: options.target,
|
|
53
|
+
hidden: true,
|
|
54
|
+
targetNodeId: options.targetNodeId
|
|
55
|
+
});
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}), AppPlugin.addSchemaModule({
|
|
60
|
+
schema: [
|
|
61
|
+
CanvasBoard2.CanvasBoard,
|
|
62
|
+
ComputeGraph
|
|
63
|
+
]
|
|
64
|
+
}), AppPlugin.addSurfaceModule({
|
|
65
|
+
activate: ReactSurface
|
|
66
|
+
}), AppPlugin.addTranslationsModule({
|
|
67
|
+
translations
|
|
68
|
+
}), Plugin.make);
|
|
69
|
+
|
|
70
|
+
// src/meta.ts
|
|
71
|
+
import { trim } from "@dxos/util";
|
|
72
|
+
var meta3 = {
|
|
73
|
+
id: "org.dxos.plugin.conductor",
|
|
74
|
+
name: "Conductor",
|
|
75
|
+
description: trim`
|
|
76
|
+
Visual workflow builder using node-based compute graphs to orchestrate complex AI agent pipelines.
|
|
77
|
+
Connect data sources, transformations, and AI models in a drag-and-drop interface for advanced automation.
|
|
78
|
+
`,
|
|
79
|
+
icon: "ph--infinity--regular",
|
|
80
|
+
iconHue: "sky",
|
|
81
|
+
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-conductor",
|
|
82
|
+
tags: [
|
|
83
|
+
"labs"
|
|
84
|
+
],
|
|
85
|
+
screenshots: [
|
|
86
|
+
"https://dxos.network/plugin-details-canvas-dark.png"
|
|
87
|
+
]
|
|
88
|
+
};
|
|
90
89
|
export {
|
|
91
|
-
CONDUCTOR_PLUGIN,
|
|
92
90
|
ConductorPlugin,
|
|
93
|
-
meta
|
|
91
|
+
meta3 as meta
|
|
94
92
|
};
|
|
95
93
|
//# 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
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/ConductorPlugin.tsx", "../../../src/translations.ts", "../../../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 { Annotation } from '@dxos/echo';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { Operation } from '@dxos/operation';\nimport { type CreateObject } from '@dxos/plugin-space/types';\nimport { SpaceOperation } from '@dxos/plugin-space/operations';\nimport { CanvasBoard } from '@dxos/react-ui-canvas-editor';\n\nimport { meta } from '#meta';\nimport { translations } from './translations';\n\nimport { ReactSurface } from '#capabilities';\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 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", "//\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,kBAAkB;AAC3B,SAASC,oBAAoB;AAC7B,SAASC,iBAAiB;AAE1B,SAASC,sBAAsB;AAC/B,SAASC,eAAAA,oBAAmB;AAE5B,SAASC,QAAAA,aAAY;;;ACXrB,SAASC,mBAAmB;AAE5B,SAASC,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,YAAYA,YAAYC,QAAQ,GAAG;QAClC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,uBAAuB;MACzB;IACF;EACF;;;;ADTF,SAASC,oBAAoB;AAEtB,IAAMC,kBAAkBC,OAAOC,OAAOC,KAAAA,EAAMC,KACjDC,UAAUC,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,aAAYA,YAAYC;IAC5BH,UAAU;MACRI,MAAMC,WAAWC,eAAeC,IAAIL,aAAYA,WAAW,EAAEL,KAAYW,iBAAU,EAAEJ;MACrFK,SAASJ,WAAWC,eAAeC,IAAIL,aAAYA,WAAW,EAAEL,KAAYW,iBAAU,EAAEE,OAAO;MAC/FC,cAAe,CAACC,OAAOC,YACdC,WAAI,aAAA;AACT,cAAMC,SAASb,aAAYc,KAAKJ,KAAAA;AAChC,eAAO,OAAOK,UAAUC,OAAOC,eAAeC,WAAW;UACvDL;UACAM,QAAQR,QAAQQ;UAChBC,QAAQ;UACRC,cAAcV,QAAQU;QACxB,CAAA;MACF,CAAA;IACJ;EACF;AACF,CAAA,GACAzB,UAAU0B,gBAAgB;EAAEC,QAAQ;IAACvB,aAAYA;IAAawB;;AAAc,CAAA,GAC5E5B,UAAU6B,iBAAiB;EAAEC,UAAUC;AAAa,CAAA,GACpD/B,UAAUgC,sBAAsB;EAAEC;AAAa,CAAA,GAC/CrC,OAAOsB,IAAI;;;AEvCb,SAASgB,YAAY;AAEd,IAAMC,QAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
|
|
6
|
+
"names": ["Effect", "Option", "Plugin", "AppPlugin", "Annotation", "ComputeGraph", "Operation", "SpaceOperation", "CanvasBoard", "meta", "CanvasBoard", "meta", "translations", "CanvasBoard", "typename", "meta", "id", "ReactSurface", "ConductorPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addMetadataModule", "metadata", "id", "CanvasBoard", "typename", "icon", "Annotation", "IconAnnotation", "get", "getOrThrow", "iconHue", "hue", "createObject", "props", "options", "gen", "object", "make", "Operation", "invoke", "SpaceOperation", "AddObject", "target", "hidden", "targetNodeId", "addSchemaModule", "schema", "ComputeGraph", "addSurfaceModule", "activate", "ReactSurface", "addTranslationsModule", "translations", "trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "tags", "screenshots"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/
|
|
1
|
+
{"inputs":{"src/translations.ts":{"bytes":2880,"imports":[{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/ConductorPlugin.tsx":{"bytes":6317,"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/echo","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/operation","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":"#meta","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"#capabilities","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":2257,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":559,"imports":[{"path":"src/ConductorPlugin.tsx","kind":"import-statement","original":"./ConductorPlugin"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5576},"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/echo","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/operation","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":"#meta","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#capabilities","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":1452},"src/translations.ts":{"bytesInOutput":712},"src/index.ts":{"bytesInOutput":0},"src/meta.ts":{"bytesInOutput":590}},"bytes":3024}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConductorPlugin.d.ts","sourceRoot":"","sources":["../../../src/ConductorPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConductorPlugin.d.ts","sourceRoot":"","sources":["../../../src/ConductorPlugin.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAc7C,eAAO,MAAM,eAAe,4BAwB3B,CAAC"}
|