@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
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// src/meta.ts
|
|
2
|
-
var CONDUCTOR_PLUGIN = "dxos.org/plugin/conductor";
|
|
3
|
-
var meta = {
|
|
4
|
-
id: CONDUCTOR_PLUGIN,
|
|
5
|
-
name: "Conductor",
|
|
6
|
-
description: "Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.",
|
|
7
|
-
icon: "ph--infinity--regular",
|
|
8
|
-
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-conductor",
|
|
9
|
-
tags: [
|
|
10
|
-
"labs"
|
|
11
|
-
],
|
|
12
|
-
screenshots: [
|
|
13
|
-
"https://dxos.network/plugin-details-canvas-dark.png"
|
|
14
|
-
]
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
CONDUCTOR_PLUGIN,
|
|
19
|
-
meta
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=chunk-3AGZDOYQ.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CONDUCTOR_PLUGIN = 'dxos.org/plugin/conductor';\n\nexport const meta: PluginMeta = {\n id: CONDUCTOR_PLUGIN,\n name: 'Conductor',\n description:\n 'Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.',\n icon: 'ph--infinity--regular',\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": ";AAMO,IAAMA,mBAAmB;AAEzB,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
|
|
6
|
-
"names": ["CONDUCTOR_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "screenshots"]
|
|
7
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
meta
|
|
3
|
-
} from "./chunk-3AGZDOYQ.mjs";
|
|
4
|
-
|
|
5
|
-
// src/types/schema.ts
|
|
6
|
-
import { Schema } from "effect";
|
|
7
|
-
import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
|
|
8
|
-
(function(ConductorAction2) {
|
|
9
|
-
class Create extends Schema.TaggedClass()(`${meta.id}/action/create`, {
|
|
10
|
-
input: Schema.Struct({
|
|
11
|
-
name: Schema.optional(Schema.String)
|
|
12
|
-
}),
|
|
13
|
-
output: Schema.Struct({
|
|
14
|
-
object: CanvasBoardType
|
|
15
|
-
})
|
|
16
|
-
}) {
|
|
17
|
-
}
|
|
18
|
-
ConductorAction2.Create = Create;
|
|
19
|
-
})(ConductorAction || (ConductorAction = {}));
|
|
20
|
-
var ConductorAction;
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
ConductorAction
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=chunk-IFYNDE3Z.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types/schema.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { meta } from '../meta';\n\nexport namespace ConductorAction {\n export class Create extends Schema.TaggedClass<Create>()(`${meta.id}/action/create`, {\n input: Schema.Struct({\n name: Schema.optional(Schema.String),\n }),\n output: Schema.Struct({\n object: CanvasBoardType,\n }),\n }) {}\n}\n"],
|
|
5
|
-
"mappings": ";;;;;AAIA,SAASA,cAAc;AAEvB,SAASC,uBAAuB;UAIfC,kBAAAA;EACR,MAAMC,eAAeC,OAAOC,YAAW,EAAW,GAAGC,KAAKC,EAAE,kBAAkB;IACnFC,OAAOJ,OAAOK,OAAO;MACnBC,MAAMN,OAAOO,SAASP,OAAOQ,MAAM;IACrC,CAAA;IACAC,QAAQT,OAAOK,OAAO;MACpBK,QAAQC;IACV,CAAA;EACF,CAAA,EAAA;EAAI;mBAPSZ,SAAAA;AAQf,GATiBD,oBAAAA,kBAAAA,CAAAA,EAAAA;;",
|
|
6
|
-
"names": ["Schema", "CanvasBoardType", "ConductorAction", "Create", "Schema", "TaggedClass", "meta", "id", "input", "Struct", "name", "optional", "String", "output", "object", "CanvasBoardType"]
|
|
7
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ConductorAction
|
|
3
|
-
} from "./chunk-IFYNDE3Z.mjs";
|
|
4
|
-
import "./chunk-3AGZDOYQ.mjs";
|
|
5
|
-
|
|
6
|
-
// src/capabilities/intent-resolver.ts
|
|
7
|
-
import { Capabilities, contributes, createResolver } from "@dxos/app-framework";
|
|
8
|
-
import { ComputeGraph } from "@dxos/conductor";
|
|
9
|
-
import { Obj, Ref } from "@dxos/echo";
|
|
10
|
-
import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
|
|
11
|
-
var intent_resolver_default = () => contributes(Capabilities.IntentResolver, createResolver({
|
|
12
|
-
intent: ConductorAction.Create,
|
|
13
|
-
resolve: ({ name }) => ({
|
|
14
|
-
data: {
|
|
15
|
-
object: Obj.make(CanvasBoardType, {
|
|
16
|
-
name,
|
|
17
|
-
computeGraph: Ref.make(Obj.make(ComputeGraph, {
|
|
18
|
-
graph: {
|
|
19
|
-
nodes: [],
|
|
20
|
-
edges: []
|
|
21
|
-
}
|
|
22
|
-
})),
|
|
23
|
-
layout: {
|
|
24
|
-
nodes: [],
|
|
25
|
-
edges: []
|
|
26
|
-
}
|
|
27
|
-
})
|
|
28
|
-
}
|
|
29
|
-
})
|
|
30
|
-
}));
|
|
31
|
-
export {
|
|
32
|
-
intent_resolver_default as default
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=intent-resolver-7OILSFLQ.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/intent-resolver.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, createResolver } from '@dxos/app-framework';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { Obj, Ref } from '@dxos/echo';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { ConductorAction } from '../types';\n\nexport default () =>\n contributes(\n Capabilities.IntentResolver,\n createResolver({\n intent: ConductorAction.Create,\n resolve: ({ name }) => ({\n data: {\n object: Obj.make(CanvasBoardType, {\n name,\n computeGraph: Ref.make(Obj.make(ComputeGraph, { graph: { nodes: [], edges: [] } })),\n layout: { nodes: [], edges: [] },\n }),\n },\n }),\n }),\n );\n"],
|
|
5
|
-
"mappings": ";;;;;;AAIA,SAASA,cAAcC,aAAaC,sBAAsB;AAC1D,SAASC,oBAAoB;AAC7B,SAASC,KAAKC,WAAW;AACzB,SAASC,uBAAuB;AAIhC,IAAA,0BAAe,MACbC,YACEC,aAAaC,gBACbC,eAAe;EACbC,QAAQC,gBAAgBC;EACxBC,SAAS,CAAC,EAAEC,KAAI,OAAQ;IACtBC,MAAM;MACJC,QAAQC,IAAIC,KAAKC,iBAAiB;QAChCL;QACAM,cAAcC,IAAIH,KAAKD,IAAIC,KAAKI,cAAc;UAAEC,OAAO;YAAEC,OAAO,CAAA;YAAIC,OAAO,CAAA;UAAG;QAAE,CAAA,CAAA;QAChFC,QAAQ;UAAEF,OAAO,CAAA;UAAIC,OAAO,CAAA;QAAG;MACjC,CAAA;IACF;EACF;AACF,CAAA,CAAA;",
|
|
6
|
-
"names": ["Capabilities", "contributes", "createResolver", "ComputeGraph", "Obj", "Ref", "CanvasBoardType", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "ConductorAction", "Create", "resolve", "name", "data", "object", "Obj", "make", "CanvasBoardType", "computeGraph", "Ref", "ComputeGraph", "graph", "nodes", "edges", "layout"]
|
|
7
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CONDUCTOR_PLUGIN
|
|
3
|
-
} from "./chunk-3AGZDOYQ.mjs";
|
|
4
|
-
|
|
5
|
-
// src/capabilities/react-surface.tsx
|
|
6
|
-
import React from "react";
|
|
7
|
-
import { Capabilities, contributes, createSurface } from "@dxos/app-framework";
|
|
8
|
-
import { Obj } from "@dxos/echo";
|
|
9
|
-
import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
|
|
10
|
-
|
|
11
|
-
// src/components/index.ts
|
|
12
|
-
import { lazy } from "react";
|
|
13
|
-
var CanvasContainer = lazy(() => import("./CanvasContainer-ZH5SFXCO.mjs"));
|
|
14
|
-
|
|
15
|
-
// src/capabilities/react-surface.tsx
|
|
16
|
-
var react_surface_default = () => contributes(Capabilities.ReactSurface, createSurface({
|
|
17
|
-
id: CONDUCTOR_PLUGIN,
|
|
18
|
-
role: [
|
|
19
|
-
"article",
|
|
20
|
-
"section"
|
|
21
|
-
],
|
|
22
|
-
filter: (data) => Obj.instanceOf(CanvasBoardType, data.subject),
|
|
23
|
-
component: ({ data, role }) => /* @__PURE__ */ React.createElement(CanvasContainer, {
|
|
24
|
-
canvas: data.subject,
|
|
25
|
-
role
|
|
26
|
-
})
|
|
27
|
-
}));
|
|
28
|
-
export {
|
|
29
|
-
react_surface_default as default
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=react-surface-EDDAESDD.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/components/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { Obj } from '@dxos/echo';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CanvasContainer } from '../components';\nimport { CONDUCTOR_PLUGIN } from '../meta';\n\nexport default () =>\n contributes(\n Capabilities.ReactSurface,\n createSurface({\n id: CONDUCTOR_PLUGIN,\n role: ['article', 'section'],\n filter: (data): data is { subject: CanvasBoardType } => Obj.instanceOf(CanvasBoardType, data.subject),\n component: ({ data, role }) => <CanvasContainer canvas={data.subject} role={role} />,\n }),\n );\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport const CanvasContainer = lazy(() => import('./CanvasContainer'));\n"],
|
|
5
|
-
"mappings": ";;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AACzD,SAASC,WAAW;AACpB,SAASC,uBAAuB;;;ACJhC,SAASC,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,gCAAA,CAAA;;;ADOjD,IAAA,wBAAe,MACbC,YACEC,aAAaC,cACbC,cAAc;EACZC,IAAIC;EACJC,MAAM;IAAC;IAAW;;EAClBC,QAAQ,CAACC,SAA+CC,IAAIC,WAAWC,iBAAiBH,KAAKI,OAAO;EACpGC,WAAW,CAAC,EAAEL,MAAMF,KAAI,MAAO,sBAAA,cAACQ,iBAAAA;IAAgBC,QAAQP,KAAKI;IAASN;;AACxE,CAAA,CAAA;",
|
|
6
|
-
"names": ["React", "Capabilities", "contributes", "createSurface", "Obj", "CanvasBoardType", "lazy", "CanvasContainer", "lazy", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "CONDUCTOR_PLUGIN", "role", "filter", "data", "Obj", "instanceOf", "CanvasBoardType", "subject", "component", "CanvasContainer", "canvas"]
|
|
7
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
|
|
3
|
-
// src/components/CanvasContainer.tsx
|
|
4
|
-
import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
|
|
5
|
-
import React, { useEffect, useMemo, useRef } from "react";
|
|
6
|
-
import { AiService } from "@dxos/ai";
|
|
7
|
-
import { ComputeGraphModel } from "@dxos/conductor";
|
|
8
|
-
import { todo } from "@dxos/debug";
|
|
9
|
-
import { DatabaseService, QueueService, ServiceContainer } from "@dxos/functions";
|
|
10
|
-
import { useConfig } from "@dxos/react-client";
|
|
11
|
-
import { fullyQualifiedId, getSpace } from "@dxos/react-client/echo";
|
|
12
|
-
import { ComputeContext, ComputeGraphController, ComputeShapeLayout, computeShapes, useComputeGraphController, useGraphMonitor } from "@dxos/react-ui-canvas-compute";
|
|
13
|
-
import { CanvasGraphModel, Editor, KeyboardContainer, ShapeRegistry } from "@dxos/react-ui-canvas-editor";
|
|
14
|
-
import { StackItem } from "@dxos/react-ui-stack";
|
|
15
|
-
var createServices = (config, space) => {
|
|
16
|
-
return new ServiceContainer().setServices({
|
|
17
|
-
database: space == null ? void 0 : DatabaseService.make(space.db),
|
|
18
|
-
queues: space == null ? void 0 : QueueService.make(space.queues, void 0),
|
|
19
|
-
ai: config.values.runtime?.services?.ai?.server == null ? void 0 : AiService.make(todo(`new Edge AiServiceClient({ endpoint: config.values.runtime?.services?.ai?.server })`))
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var useGraphController = (canvas) => {
|
|
23
|
-
const config = useConfig();
|
|
24
|
-
const space = getSpace(canvas);
|
|
25
|
-
const controller = useMemo(() => {
|
|
26
|
-
if (!canvas.computeGraph?.target) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
const model = new ComputeGraphModel(canvas.computeGraph?.target);
|
|
30
|
-
const controller2 = new ComputeGraphController(createServices(config, space), model);
|
|
31
|
-
return controller2;
|
|
32
|
-
}, [
|
|
33
|
-
canvas.computeGraph?.target,
|
|
34
|
-
space
|
|
35
|
-
]);
|
|
36
|
-
useEffect(() => {
|
|
37
|
-
if (!controller) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
void controller.open();
|
|
41
|
-
return () => {
|
|
42
|
-
void controller.close();
|
|
43
|
-
};
|
|
44
|
-
}, [
|
|
45
|
-
controller
|
|
46
|
-
]);
|
|
47
|
-
return controller;
|
|
48
|
-
};
|
|
49
|
-
var CanvasContainer = ({ canvas, role }) => {
|
|
50
|
-
var _effect = _useSignals();
|
|
51
|
-
try {
|
|
52
|
-
const id = fullyQualifiedId(canvas);
|
|
53
|
-
const graph = useMemo(() => CanvasGraphModel.create(canvas.layout), [
|
|
54
|
-
canvas.layout
|
|
55
|
-
]);
|
|
56
|
-
const controller = useGraphController(canvas);
|
|
57
|
-
const graphMonitor = useGraphMonitor(controller?.graph);
|
|
58
|
-
const registry = useMemo(() => new ShapeRegistry(computeShapes), []);
|
|
59
|
-
const editorRef = useRef(null);
|
|
60
|
-
useComputeGraphController({
|
|
61
|
-
controller,
|
|
62
|
-
graph,
|
|
63
|
-
editorRef
|
|
64
|
-
});
|
|
65
|
-
const layout = useMemo(() => controller && registry ? new ComputeShapeLayout(controller, registry) : void 0, [
|
|
66
|
-
controller,
|
|
67
|
-
registry
|
|
68
|
-
]);
|
|
69
|
-
if (!controller) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
return /* @__PURE__ */ React.createElement(ComputeContext.Provider, {
|
|
73
|
-
value: {
|
|
74
|
-
controller
|
|
75
|
-
}
|
|
76
|
-
}, /* @__PURE__ */ React.createElement(StackItem.Content, {
|
|
77
|
-
size: role === "section" ? "square" : "intrinsic"
|
|
78
|
-
}, /* @__PURE__ */ React.createElement(KeyboardContainer, {
|
|
79
|
-
id
|
|
80
|
-
}, /* @__PURE__ */ React.createElement(Editor.Root, {
|
|
81
|
-
id,
|
|
82
|
-
ref: editorRef,
|
|
83
|
-
graph,
|
|
84
|
-
graphMonitor,
|
|
85
|
-
registry,
|
|
86
|
-
layout
|
|
87
|
-
}, /* @__PURE__ */ React.createElement(Editor.Canvas, null), /* @__PURE__ */ React.createElement(Editor.UI, {
|
|
88
|
-
showTools: true
|
|
89
|
-
})))));
|
|
90
|
-
} finally {
|
|
91
|
-
_effect.f();
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
var CanvasContainer_default = CanvasContainer;
|
|
95
|
-
export {
|
|
96
|
-
CanvasContainer,
|
|
97
|
-
CanvasContainer_default as default
|
|
98
|
-
};
|
|
99
|
-
//# sourceMappingURL=CanvasContainer-T5LXU3YB.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/CanvasContainer.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useEffect, useMemo, useRef } from 'react';\n\nimport { AiService } from '@dxos/ai';\nimport { type Config } from '@dxos/client';\nimport { ComputeGraphModel } from '@dxos/conductor';\nimport { todo } from '@dxos/debug';\nimport { DatabaseService, QueueService, ServiceContainer } from '@dxos/functions';\nimport { useConfig } from '@dxos/react-client';\nimport { fullyQualifiedId, getSpace, type Space } from '@dxos/react-client/echo';\nimport {\n ComputeContext,\n ComputeGraphController,\n type ComputeShape,\n ComputeShapeLayout,\n computeShapes,\n useComputeGraphController,\n useGraphMonitor,\n} from '@dxos/react-ui-canvas-compute';\nimport {\n type CanvasBoardType,\n CanvasGraphModel,\n Editor,\n type EditorController,\n KeyboardContainer,\n ShapeRegistry,\n} from '@dxos/react-ui-canvas-editor';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nconst createServices = (config: Config, space?: Space): ServiceContainer => {\n return new ServiceContainer().setServices({\n database: space == null ? undefined : DatabaseService.make(space.db),\n queues: space == null ? undefined : QueueService.make(space.queues, undefined),\n ai:\n config.values.runtime?.services?.ai?.server == null\n ? undefined\n : AiService.make(todo(`new Edge AiServiceClient({ endpoint: config.values.runtime?.services?.ai?.server })`)),\n });\n};\n\nconst useGraphController = (canvas: CanvasBoardType) => {\n const config = useConfig();\n const space = getSpace(canvas);\n const controller = useMemo(() => {\n if (!canvas.computeGraph?.target) {\n return null;\n }\n const model = new ComputeGraphModel(canvas.computeGraph?.target);\n const controller = new ComputeGraphController(createServices(config, space), model);\n return controller;\n }, [canvas.computeGraph?.target, space]);\n\n useEffect(() => {\n if (!controller) {\n return;\n }\n\n void controller.open();\n return () => {\n void controller.close();\n };\n }, [controller]);\n\n return controller;\n};\n\nexport const CanvasContainer = ({ canvas, role }: { canvas: CanvasBoardType; role: string }) => {\n const id = fullyQualifiedId(canvas);\n const graph = useMemo(() => CanvasGraphModel.create<ComputeShape>(canvas.layout), [canvas.layout]);\n const controller = useGraphController(canvas);\n const graphMonitor = useGraphMonitor(controller?.graph);\n const registry = useMemo(() => new ShapeRegistry(computeShapes), []);\n const editorRef = useRef<EditorController>(null);\n useComputeGraphController({ controller, graph, editorRef });\n\n // Layout.\n const layout = useMemo(\n () => (controller && registry ? new ComputeShapeLayout(controller, registry) : undefined),\n [controller, registry],\n );\n\n if (!controller) {\n return;\n }\n\n return (\n <ComputeContext.Provider value={{ controller }}>\n <StackItem.Content size={role === 'section' ? 'square' : 'intrinsic'}>\n <KeyboardContainer id={id}>\n <Editor.Root\n id={id}\n ref={editorRef}\n graph={graph}\n graphMonitor={graphMonitor as any}\n registry={registry}\n layout={layout}\n >\n <Editor.Canvas />\n <Editor.UI showTools />\n </Editor.Root>\n </KeyboardContainer>\n </StackItem.Content>\n </ComputeContext.Provider>\n );\n};\n\nexport default CanvasContainer;\n"],
|
|
5
|
-
"mappings": ";;;;AAIA,OAAOA,SAASC,WAAWC,SAASC,cAAc;AAElD,SAASC,iBAAiB;AAE1B,SAASC,yBAAyB;AAClC,SAASC,YAAY;AACrB,SAASC,iBAAiBC,cAAcC,wBAAwB;AAChE,SAASC,iBAAiB;AAC1B,SAASC,kBAAkBC,gBAA4B;AACvD,SACEC,gBACAC,wBAEAC,oBACAC,eACAC,2BACAC,uBACK;AACP,SAEEC,kBACAC,QAEAC,mBACAC,qBACK;AACP,SAASC,iBAAiB;AAE1B,IAAMC,iBAAiB,CAACC,QAAgBC,UAAAA;AACtC,SAAO,IAAIC,iBAAAA,EAAmBC,YAAY;IACxCC,UAAUH,SAAS,OAAOI,SAAYC,gBAAgBC,KAAKN,MAAMO,EAAE;IACnEC,QAAQR,SAAS,OAAOI,SAAYK,aAAaH,KAAKN,MAAMQ,QAAQJ,MAAAA;IACpEM,IACEX,OAAOY,OAAOC,SAASC,UAAUH,IAAII,UAAU,OAC3CV,SACAW,UAAUT,KAAKU,KAAK,qFAAqF,CAAA;EACjH,CAAA;AACF;AAEA,IAAMC,qBAAqB,CAACC,WAAAA;AAC1B,QAAMnB,SAASoB,UAAAA;AACf,QAAMnB,QAAQoB,SAASF,MAAAA;AACvB,QAAMG,aAAaC,QAAQ,MAAA;AACzB,QAAI,CAACJ,OAAOK,cAAcC,QAAQ;AAChC,aAAO;IACT;AACA,UAAMC,QAAQ,IAAIC,kBAAkBR,OAAOK,cAAcC,MAAAA;AACzD,UAAMH,cAAa,IAAIM,uBAAuB7B,eAAeC,QAAQC,KAAAA,GAAQyB,KAAAA;AAC7E,WAAOJ;EACT,GAAG;IAACH,OAAOK,cAAcC;IAAQxB;GAAM;AAEvC4B,YAAU,MAAA;AACR,QAAI,CAACP,YAAY;AACf;IACF;AAEA,SAAKA,WAAWQ,KAAI;AACpB,WAAO,MAAA;AACL,WAAKR,WAAWS,MAAK;IACvB;EACF,GAAG;IAACT;GAAW;AAEf,SAAOA;AACT;AAEO,IAAMU,kBAAkB,CAAC,EAAEb,QAAQc,KAAI,MAA6C;;;AACzF,UAAMC,KAAKC,iBAAiBhB,MAAAA;AAC5B,UAAMiB,QAAQb,QAAQ,MAAMc,iBAAiBC,OAAqBnB,OAAOoB,MAAM,GAAG;MAACpB,OAAOoB;KAAO;AACjG,UAAMjB,aAAaJ,mBAAmBC,MAAAA;AACtC,UAAMqB,eAAeC,gBAAgBnB,YAAYc,KAAAA;AACjD,UAAMM,WAAWnB,QAAQ,MAAM,IAAIoB,cAAcC,aAAAA,GAAgB,CAAA,CAAE;AACnE,UAAMC,YAAYC,OAAyB,IAAA;AAC3CC,8BAA0B;MAAEzB;MAAYc;MAAOS;IAAU,CAAA;AAGzD,UAAMN,SAAShB,QACb,MAAOD,cAAcoB,WAAW,IAAIM,mBAAmB1B,YAAYoB,QAAAA,IAAYrC,QAC/E;MAACiB;MAAYoB;KAAS;AAGxB,QAAI,CAACpB,YAAY;AACf;IACF;AAEA,WACE,sBAAA,cAAC2B,eAAeC,UAAQ;MAACC,OAAO;QAAE7B;MAAW;OAC3C,sBAAA,cAAC8B,UAAUC,SAAO;MAACC,MAAMrB,SAAS,YAAY,WAAW;OACvD,sBAAA,cAACsB,mBAAAA;MAAkBrB;OACjB,sBAAA,cAACsB,OAAOC,MAAI;MACVvB;MACAwB,KAAKb;MACLT;MACAI;MACAE;MACAH;OAEA,sBAAA,cAACiB,OAAOG,QAAM,IAAA,GACd,sBAAA,cAACH,OAAOI,IAAE;MAACC,WAAAA;;;;;AAMvB;AAEA,IAAA,0BAAe7B;",
|
|
6
|
-
"names": ["React", "useEffect", "useMemo", "useRef", "AiService", "ComputeGraphModel", "todo", "DatabaseService", "QueueService", "ServiceContainer", "useConfig", "fullyQualifiedId", "getSpace", "ComputeContext", "ComputeGraphController", "ComputeShapeLayout", "computeShapes", "useComputeGraphController", "useGraphMonitor", "CanvasGraphModel", "Editor", "KeyboardContainer", "ShapeRegistry", "StackItem", "createServices", "config", "space", "ServiceContainer", "setServices", "database", "undefined", "DatabaseService", "make", "db", "queues", "QueueService", "ai", "values", "runtime", "services", "server", "AiService", "todo", "useGraphController", "canvas", "useConfig", "getSpace", "controller", "useMemo", "computeGraph", "target", "model", "ComputeGraphModel", "ComputeGraphController", "useEffect", "open", "close", "CanvasContainer", "role", "id", "fullyQualifiedId", "graph", "CanvasGraphModel", "create", "layout", "graphMonitor", "useGraphMonitor", "registry", "ShapeRegistry", "computeShapes", "editorRef", "useRef", "useComputeGraphController", "ComputeShapeLayout", "ComputeContext", "Provider", "value", "StackItem", "Content", "size", "KeyboardContainer", "Editor", "Root", "ref", "Canvas", "UI", "showTools"]
|
|
7
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
meta
|
|
4
|
-
} from "./chunk-TL52TWDT.mjs";
|
|
5
|
-
|
|
6
|
-
// src/types/schema.ts
|
|
7
|
-
import { Schema } from "effect";
|
|
8
|
-
import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
|
|
9
|
-
(function(ConductorAction2) {
|
|
10
|
-
class Create extends Schema.TaggedClass()(`${meta.id}/action/create`, {
|
|
11
|
-
input: Schema.Struct({
|
|
12
|
-
name: Schema.optional(Schema.String)
|
|
13
|
-
}),
|
|
14
|
-
output: Schema.Struct({
|
|
15
|
-
object: CanvasBoardType
|
|
16
|
-
})
|
|
17
|
-
}) {
|
|
18
|
-
}
|
|
19
|
-
ConductorAction2.Create = Create;
|
|
20
|
-
})(ConductorAction || (ConductorAction = {}));
|
|
21
|
-
var ConductorAction;
|
|
22
|
-
|
|
23
|
-
export {
|
|
24
|
-
ConductorAction
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=chunk-ELHUFMCW.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types/schema.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { meta } from '../meta';\n\nexport namespace ConductorAction {\n export class Create extends Schema.TaggedClass<Create>()(`${meta.id}/action/create`, {\n input: Schema.Struct({\n name: Schema.optional(Schema.String),\n }),\n output: Schema.Struct({\n object: CanvasBoardType,\n }),\n }) {}\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;AAIA,SAASA,cAAc;AAEvB,SAASC,uBAAuB;UAIfC,kBAAAA;EACR,MAAMC,eAAeC,OAAOC,YAAW,EAAW,GAAGC,KAAKC,EAAE,kBAAkB;IACnFC,OAAOJ,OAAOK,OAAO;MACnBC,MAAMN,OAAOO,SAASP,OAAOQ,MAAM;IACrC,CAAA;IACAC,QAAQT,OAAOK,OAAO;MACpBK,QAAQC;IACV,CAAA;EACF,CAAA,EAAA;EAAI;mBAPSZ,SAAAA;AAQf,GATiBD,oBAAAA,kBAAAA,CAAAA,EAAAA;;",
|
|
6
|
-
"names": ["Schema", "CanvasBoardType", "ConductorAction", "Create", "Schema", "TaggedClass", "meta", "id", "input", "Struct", "name", "optional", "String", "output", "object", "CanvasBoardType"]
|
|
7
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
|
|
3
|
-
// src/meta.ts
|
|
4
|
-
var CONDUCTOR_PLUGIN = "dxos.org/plugin/conductor";
|
|
5
|
-
var meta = {
|
|
6
|
-
id: CONDUCTOR_PLUGIN,
|
|
7
|
-
name: "Conductor",
|
|
8
|
-
description: "Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.",
|
|
9
|
-
icon: "ph--infinity--regular",
|
|
10
|
-
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-conductor",
|
|
11
|
-
tags: [
|
|
12
|
-
"labs"
|
|
13
|
-
],
|
|
14
|
-
screenshots: [
|
|
15
|
-
"https://dxos.network/plugin-details-canvas-dark.png"
|
|
16
|
-
]
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
CONDUCTOR_PLUGIN,
|
|
21
|
-
meta
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=chunk-TL52TWDT.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CONDUCTOR_PLUGIN = 'dxos.org/plugin/conductor';\n\nexport const meta: PluginMeta = {\n id: CONDUCTOR_PLUGIN,\n name: 'Conductor',\n description:\n 'Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.',\n icon: 'ph--infinity--regular',\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": ";;;AAMO,IAAMA,mBAAmB;AAEzB,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
|
|
6
|
-
"names": ["CONDUCTOR_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "screenshots"]
|
|
7
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
ConductorAction
|
|
4
|
-
} from "./chunk-ELHUFMCW.mjs";
|
|
5
|
-
import "./chunk-TL52TWDT.mjs";
|
|
6
|
-
|
|
7
|
-
// src/capabilities/intent-resolver.ts
|
|
8
|
-
import { Capabilities, contributes, createResolver } from "@dxos/app-framework";
|
|
9
|
-
import { ComputeGraph } from "@dxos/conductor";
|
|
10
|
-
import { Obj, Ref } from "@dxos/echo";
|
|
11
|
-
import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
|
|
12
|
-
var intent_resolver_default = () => contributes(Capabilities.IntentResolver, createResolver({
|
|
13
|
-
intent: ConductorAction.Create,
|
|
14
|
-
resolve: ({ name }) => ({
|
|
15
|
-
data: {
|
|
16
|
-
object: Obj.make(CanvasBoardType, {
|
|
17
|
-
name,
|
|
18
|
-
computeGraph: Ref.make(Obj.make(ComputeGraph, {
|
|
19
|
-
graph: {
|
|
20
|
-
nodes: [],
|
|
21
|
-
edges: []
|
|
22
|
-
}
|
|
23
|
-
})),
|
|
24
|
-
layout: {
|
|
25
|
-
nodes: [],
|
|
26
|
-
edges: []
|
|
27
|
-
}
|
|
28
|
-
})
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
}));
|
|
32
|
-
export {
|
|
33
|
-
intent_resolver_default as default
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=intent-resolver-U3TIHMS2.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/intent-resolver.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, createResolver } from '@dxos/app-framework';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { Obj, Ref } from '@dxos/echo';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { ConductorAction } from '../types';\n\nexport default () =>\n contributes(\n Capabilities.IntentResolver,\n createResolver({\n intent: ConductorAction.Create,\n resolve: ({ name }) => ({\n data: {\n object: Obj.make(CanvasBoardType, {\n name,\n computeGraph: Ref.make(Obj.make(ComputeGraph, { graph: { nodes: [], edges: [] } })),\n layout: { nodes: [], edges: [] },\n }),\n },\n }),\n }),\n );\n"],
|
|
5
|
-
"mappings": ";;;;;;;AAIA,SAASA,cAAcC,aAAaC,sBAAsB;AAC1D,SAASC,oBAAoB;AAC7B,SAASC,KAAKC,WAAW;AACzB,SAASC,uBAAuB;AAIhC,IAAA,0BAAe,MACbC,YACEC,aAAaC,gBACbC,eAAe;EACbC,QAAQC,gBAAgBC;EACxBC,SAAS,CAAC,EAAEC,KAAI,OAAQ;IACtBC,MAAM;MACJC,QAAQC,IAAIC,KAAKC,iBAAiB;QAChCL;QACAM,cAAcC,IAAIH,KAAKD,IAAIC,KAAKI,cAAc;UAAEC,OAAO;YAAEC,OAAO,CAAA;YAAIC,OAAO,CAAA;UAAG;QAAE,CAAA,CAAA;QAChFC,QAAQ;UAAEF,OAAO,CAAA;UAAIC,OAAO,CAAA;QAAG;MACjC,CAAA;IACF;EACF;AACF,CAAA,CAAA;",
|
|
6
|
-
"names": ["Capabilities", "contributes", "createResolver", "ComputeGraph", "Obj", "Ref", "CanvasBoardType", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "ConductorAction", "Create", "resolve", "name", "data", "object", "Obj", "make", "CanvasBoardType", "computeGraph", "Ref", "ComputeGraph", "graph", "nodes", "edges", "layout"]
|
|
7
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
CONDUCTOR_PLUGIN
|
|
4
|
-
} from "./chunk-TL52TWDT.mjs";
|
|
5
|
-
|
|
6
|
-
// src/capabilities/react-surface.tsx
|
|
7
|
-
import React from "react";
|
|
8
|
-
import { Capabilities, contributes, createSurface } from "@dxos/app-framework";
|
|
9
|
-
import { Obj } from "@dxos/echo";
|
|
10
|
-
import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
|
|
11
|
-
|
|
12
|
-
// src/components/index.ts
|
|
13
|
-
import { lazy } from "react";
|
|
14
|
-
var CanvasContainer = lazy(() => import("./CanvasContainer-T5LXU3YB.mjs"));
|
|
15
|
-
|
|
16
|
-
// src/capabilities/react-surface.tsx
|
|
17
|
-
var react_surface_default = () => contributes(Capabilities.ReactSurface, createSurface({
|
|
18
|
-
id: CONDUCTOR_PLUGIN,
|
|
19
|
-
role: [
|
|
20
|
-
"article",
|
|
21
|
-
"section"
|
|
22
|
-
],
|
|
23
|
-
filter: (data) => Obj.instanceOf(CanvasBoardType, data.subject),
|
|
24
|
-
component: ({ data, role }) => /* @__PURE__ */ React.createElement(CanvasContainer, {
|
|
25
|
-
canvas: data.subject,
|
|
26
|
-
role
|
|
27
|
-
})
|
|
28
|
-
}));
|
|
29
|
-
export {
|
|
30
|
-
react_surface_default as default
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=react-surface-UFIHQSHX.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/components/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { Obj } from '@dxos/echo';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CanvasContainer } from '../components';\nimport { CONDUCTOR_PLUGIN } from '../meta';\n\nexport default () =>\n contributes(\n Capabilities.ReactSurface,\n createSurface({\n id: CONDUCTOR_PLUGIN,\n role: ['article', 'section'],\n filter: (data): data is { subject: CanvasBoardType } => Obj.instanceOf(CanvasBoardType, data.subject),\n component: ({ data, role }) => <CanvasContainer canvas={data.subject} role={role} />,\n }),\n );\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport const CanvasContainer = lazy(() => import('./CanvasContainer'));\n"],
|
|
5
|
-
"mappings": ";;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AACzD,SAASC,WAAW;AACpB,SAASC,uBAAuB;;;ACJhC,SAASC,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,gCAAA,CAAA;;;ADOjD,IAAA,wBAAe,MACbC,YACEC,aAAaC,cACbC,cAAc;EACZC,IAAIC;EACJC,MAAM;IAAC;IAAW;;EAClBC,QAAQ,CAACC,SAA+CC,IAAIC,WAAWC,iBAAiBH,KAAKI,OAAO;EACpGC,WAAW,CAAC,EAAEL,MAAMF,KAAI,MAAO,sBAAA,cAACQ,iBAAAA;IAAgBC,QAAQP,KAAKI;IAASN;;AACxE,CAAA,CAAA;",
|
|
6
|
-
"names": ["React", "Capabilities", "contributes", "createSurface", "Obj", "CanvasBoardType", "lazy", "CanvasContainer", "lazy", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "CONDUCTOR_PLUGIN", "role", "filter", "data", "Obj", "instanceOf", "CanvasBoardType", "subject", "component", "CanvasContainer", "canvas"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAA+B,MAAM,qBAAqB,CAAC;;AAOhF,wBAeI"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type CanvasBoardType } from '@dxos/react-ui-canvas-editor';
|
|
3
|
-
export declare const CanvasContainer: ({ canvas, role }: {
|
|
4
|
-
canvas: CanvasBoardType;
|
|
5
|
-
role: string;
|
|
6
|
-
}) => React.JSX.Element | undefined;
|
|
7
|
-
export default CanvasContainer;
|
|
8
|
-
//# sourceMappingURL=CanvasContainer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAkB1D,OAAO,EACL,KAAK,eAAe,EAMrB,MAAM,8BAA8B,CAAC;AAwCtC,eAAO,MAAM,eAAe,GAAI,kBAAkB;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,kCAsC1F,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
|
-
import { CanvasBoardType } from '@dxos/react-ui-canvas-editor';
|
|
3
|
-
export declare namespace ConductorAction {
|
|
4
|
-
const Create_base: Schema.TaggedClass<Create, `${string}/action/create`, {
|
|
5
|
-
readonly _tag: Schema.tag<`${string}/action/create`>;
|
|
6
|
-
} & {
|
|
7
|
-
input: Schema.Struct<{
|
|
8
|
-
name: Schema.optional<typeof Schema.String>;
|
|
9
|
-
}>;
|
|
10
|
-
output: Schema.Struct<{
|
|
11
|
-
object: typeof CanvasBoardType;
|
|
12
|
-
}>;
|
|
13
|
-
}>;
|
|
14
|
-
export class Create extends Create_base {
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAI/D,yBAAiB,eAAe,CAAC;;;;;;;;;;;IAC/B,MAAM,OAAO,MAAO,SAAQ,WAO1B;KAAG;;CACN"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Capabilities, contributes, createResolver } from '@dxos/app-framework';
|
|
6
|
-
import { ComputeGraph } from '@dxos/conductor';
|
|
7
|
-
import { Obj, Ref } from '@dxos/echo';
|
|
8
|
-
import { CanvasBoardType } from '@dxos/react-ui-canvas-editor';
|
|
9
|
-
|
|
10
|
-
import { ConductorAction } from '../types';
|
|
11
|
-
|
|
12
|
-
export default () =>
|
|
13
|
-
contributes(
|
|
14
|
-
Capabilities.IntentResolver,
|
|
15
|
-
createResolver({
|
|
16
|
-
intent: ConductorAction.Create,
|
|
17
|
-
resolve: ({ name }) => ({
|
|
18
|
-
data: {
|
|
19
|
-
object: Obj.make(CanvasBoardType, {
|
|
20
|
-
name,
|
|
21
|
-
computeGraph: Ref.make(Obj.make(ComputeGraph, { graph: { nodes: [], edges: [] } })),
|
|
22
|
-
layout: { nodes: [], edges: [] },
|
|
23
|
-
}),
|
|
24
|
-
},
|
|
25
|
-
}),
|
|
26
|
-
}),
|
|
27
|
-
);
|
package/src/types/schema.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Schema } from 'effect';
|
|
6
|
-
|
|
7
|
-
import { CanvasBoardType } from '@dxos/react-ui-canvas-editor';
|
|
8
|
-
|
|
9
|
-
import { meta } from '../meta';
|
|
10
|
-
|
|
11
|
-
export namespace ConductorAction {
|
|
12
|
-
export class Create extends Schema.TaggedClass<Create>()(`${meta.id}/action/create`, {
|
|
13
|
-
input: Schema.Struct({
|
|
14
|
-
name: Schema.optional(Schema.String),
|
|
15
|
-
}),
|
|
16
|
-
output: Schema.Struct({
|
|
17
|
-
object: CanvasBoardType,
|
|
18
|
-
}),
|
|
19
|
-
}) {}
|
|
20
|
-
}
|