@dxos/plugin-conductor 0.8.0 → 0.8.1-main.81238a8
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/{CanvasContainer-2LHBQGCB.mjs → CanvasContainer-XJMJHW3L.mjs} +9 -4
- package/dist/lib/browser/CanvasContainer-XJMJHW3L.mjs.map +7 -0
- package/dist/lib/browser/{chunk-DUUJXCVO.mjs → chunk-BRSQGILA.mjs} +1 -1
- package/dist/lib/browser/chunk-BRSQGILA.mjs.map +7 -0
- package/dist/lib/browser/{chunk-KTJBLHAY.mjs → chunk-S6UYKZNN.mjs} +2 -2
- package/dist/lib/browser/index.mjs +4 -4
- package/dist/lib/browser/{intent-resolver-IKITW45C.mjs → intent-resolver-U7G6ZHGW.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-KAJ3W4G5.mjs → react-surface-ACS2VMEE.mjs} +5 -4
- package/dist/lib/browser/react-surface-ACS2VMEE.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +2 -2
- package/dist/lib/node/{CanvasContainer-YQK4QVL6.cjs → CanvasContainer-CY5KP4RX.cjs} +10 -5
- package/dist/lib/node/CanvasContainer-CY5KP4RX.cjs.map +7 -0
- package/dist/lib/node/{chunk-3WWLHGNO.cjs → chunk-4LVYIOVH.cjs} +6 -6
- package/dist/lib/node/{chunk-Y3VOCBBO.cjs → chunk-77WLIW54.cjs} +4 -4
- package/dist/lib/node/chunk-77WLIW54.cjs.map +7 -0
- package/dist/lib/node/index.cjs +16 -16
- package/dist/lib/node/{intent-resolver-P6OSOKYW.cjs → intent-resolver-N2D4SLD4.cjs} +7 -7
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-NA74HMQP.cjs → react-surface-YXXBLFUX.cjs} +9 -8
- package/dist/lib/node/react-surface-YXXBLFUX.cjs.map +7 -0
- package/dist/lib/node/types.cjs +3 -3
- package/dist/lib/node/types.cjs.map +1 -1
- package/dist/lib/node-esm/{CanvasContainer-CJHLFVHB.mjs → CanvasContainer-JSGMRCQ7.mjs} +9 -4
- package/dist/lib/node-esm/CanvasContainer-JSGMRCQ7.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-ML7CFPFL.mjs → chunk-7HVDMRLN.mjs} +1 -1
- package/dist/lib/node-esm/chunk-7HVDMRLN.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-ZJLM74FY.mjs → chunk-BVBQK3ST.mjs} +2 -2
- package/dist/lib/node-esm/index.mjs +4 -4
- package/dist/lib/node-esm/{intent-resolver-LUU6EZQI.mjs → intent-resolver-H2DKT2UH.mjs} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-DX25CX6P.mjs → react-surface-TZB6XBCI.mjs} +5 -4
- package/dist/lib/node-esm/react-surface-TZB6XBCI.mjs.map +7 -0
- package/dist/lib/node-esm/types.mjs +2 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/CanvasContainer.d.ts +2 -1
- package/dist/types/src/components/CanvasContainer.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -9
- package/dist/types/src/meta.d.ts.map +1 -1
- package/package.json +20 -20
- package/src/capabilities/react-surface.tsx +2 -1
- package/src/components/CanvasContainer.tsx +4 -2
- package/src/meta.ts +2 -2
- package/dist/lib/browser/CanvasContainer-2LHBQGCB.mjs.map +0 -7
- package/dist/lib/browser/chunk-DUUJXCVO.mjs.map +0 -7
- package/dist/lib/browser/react-surface-KAJ3W4G5.mjs.map +0 -7
- package/dist/lib/node/CanvasContainer-YQK4QVL6.cjs.map +0 -7
- package/dist/lib/node/chunk-Y3VOCBBO.cjs.map +0 -7
- package/dist/lib/node/react-surface-NA74HMQP.cjs.map +0 -7
- package/dist/lib/node-esm/CanvasContainer-CJHLFVHB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ML7CFPFL.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-DX25CX6P.mjs.map +0 -7
- /package/dist/lib/browser/{chunk-KTJBLHAY.mjs.map → chunk-S6UYKZNN.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-IKITW45C.mjs.map → intent-resolver-U7G6ZHGW.mjs.map} +0 -0
- /package/dist/lib/node/{chunk-3WWLHGNO.cjs.map → chunk-4LVYIOVH.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-P6OSOKYW.cjs.map → intent-resolver-N2D4SLD4.cjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-ZJLM74FY.mjs.map → chunk-BVBQK3ST.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-LUU6EZQI.mjs.map → intent-resolver-H2DKT2UH.mjs.map} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import React, { useEffect, useMemo, useRef } from 'react';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { AIServiceEdgeClient } from '@dxos/assistant';
|
|
8
8
|
import { type Config } from '@dxos/client';
|
|
9
9
|
import { ComputeGraphModel, EdgeGpt } from '@dxos/conductor';
|
|
10
10
|
import { createStubEdgeIdentity, EdgeClient, EdgeHttpClient } from '@dxos/edge-client';
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
ComputeShapeLayout,
|
|
18
18
|
computeShapes,
|
|
19
19
|
type Services,
|
|
20
|
+
useComputeGraphController,
|
|
20
21
|
useGraphMonitor,
|
|
21
22
|
} from '@dxos/react-ui-canvas-compute';
|
|
22
23
|
import {
|
|
@@ -41,7 +42,7 @@ const createServices = (config: Config, space?: Space): Partial<Services> => {
|
|
|
41
42
|
gpt:
|
|
42
43
|
config.values.runtime?.services?.ai?.server == null
|
|
43
44
|
? undefined
|
|
44
|
-
: new EdgeGpt(new
|
|
45
|
+
: new EdgeGpt(new AIServiceEdgeClient({ endpoint: config.values.runtime?.services?.ai?.server })),
|
|
45
46
|
edgeClient:
|
|
46
47
|
config.values.runtime?.services?.edge?.url == null
|
|
47
48
|
? undefined
|
|
@@ -86,6 +87,7 @@ export const CanvasContainer = ({ canvas, role }: { canvas: CanvasBoardType; rol
|
|
|
86
87
|
const graphMonitor = useGraphMonitor(controller?.graph);
|
|
87
88
|
const registry = useMemo(() => new ShapeRegistry(computeShapes), []);
|
|
88
89
|
const editorRef = useRef<EditorController>(null);
|
|
90
|
+
useComputeGraphController({ controller, graph, editorRef });
|
|
89
91
|
|
|
90
92
|
// Layout.
|
|
91
93
|
const layout = useMemo(
|
package/src/meta.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type PluginMeta } from '@dxos/app-framework';
|
|
|
6
6
|
|
|
7
7
|
export const CONDUCTOR_PLUGIN = 'dxos.org/plugin/conductor';
|
|
8
8
|
|
|
9
|
-
export const meta = {
|
|
9
|
+
export const meta: PluginMeta = {
|
|
10
10
|
id: CONDUCTOR_PLUGIN,
|
|
11
11
|
name: 'Conductor',
|
|
12
12
|
description:
|
|
@@ -15,4 +15,4 @@ export const meta = {
|
|
|
15
15
|
source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-conductor',
|
|
16
16
|
tags: ['experimental'],
|
|
17
17
|
screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],
|
|
18
|
-
}
|
|
18
|
+
};
|
|
@@ -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 { AIServiceClientImpl } from '@dxos/assistant';\nimport { type Config } from '@dxos/client';\nimport { ComputeGraphModel, EdgeGpt } from '@dxos/conductor';\nimport { createStubEdgeIdentity, EdgeClient, EdgeHttpClient } from '@dxos/edge-client';\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 type Services,\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): Partial<Services> => {\n return {\n spaceService:\n space == null\n ? undefined\n : {\n spaceId: space.id,\n db: space.db,\n },\n gpt:\n config.values.runtime?.services?.ai?.server == null\n ? undefined\n : new EdgeGpt(new AIServiceClientImpl({ endpoint: config.values.runtime?.services?.ai?.server })),\n edgeClient:\n config.values.runtime?.services?.edge?.url == null\n ? undefined\n : new EdgeClient(createStubEdgeIdentity(), { socketEndpoint: config.values.runtime?.services?.edge?.url }),\n edgeHttpClient:\n config.values.runtime?.services?.edge?.url == null\n ? undefined\n : new EdgeHttpClient(config.values.runtime?.services?.edge?.url),\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(model);\n controller.setServices(createServices(config, space));\n return controller;\n }, [canvas.computeGraph?.target, space]);\n\n useEffect(() => {\n if (!controller) {\n return;\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\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 toolbar={false} 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,2BAA2B;AAEpC,SAASC,mBAAmBC,eAAe;AAC3C,SAASC,wBAAwBC,YAAYC,sBAAsB;AACnE,SAASC,iBAAiB;AAC1B,SAASC,kBAAkBC,gBAA4B;AACvD,SACEC,gBACAC,wBAEAC,oBACAC,eAEAC,uBACK;AACP,SAEEC,kBACAC,QAEAC,mBACAC,qBACK;AACP,SAASC,iBAAiB;AAE1B,IAAMC,iBAAiB,CAACC,QAAgBC,UAAAA;AACtC,SAAO;IACLC,cACED,SAAS,OACLE,SACA;MACEC,SAASH,MAAMI;MACfC,IAAIL,MAAMK;IACZ;IACNC,KACEP,OAAOQ,OAAOC,SAASC,UAAUC,IAAIC,UAAU,OAC3CT,SACA,IAAIU,QAAQ,IAAIC,oBAAoB;MAAEC,UAAUf,OAAOQ,OAAOC,SAASC,UAAUC,IAAIC;IAAO,CAAA,CAAA;IAClGI,YACEhB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC,OAAO,OAC1Cf,SACA,IAAIgB,WAAWC,uBAAAA,GAA0B;MAAEC,gBAAgBrB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC;IAAI,CAAA;IAC5GI,gBACEtB,OAAOQ,OAAOC,S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AY;AACf;EACF;AAEA,SACE,sBAAA,cAAC0B,eAAeC,UAAQ;IAACC,OAAO;MAAE5B;IAAW;KAC3C,sBAAA,cAAC6B,UAAUC,SAAO;IAACC,SAAS;IAAOC,MAAMpB,SAAS,YAAY,WAAW;KACvE,sBAAA,cAACqB,mBAAAA;IAAkBxD;KACjB,sBAAA,cAACyD,OAAOC,MAAI;IACV1D;IACA2D,KAAKb;IACLT;IACAI;IACAE;IACAH;KAEA,sBAAA,cAACiB,OAAOG,QAAM,IAAA,GACd,sBAAA,cAACH,OAAOI,IAAE;IAACC,WAAAA;;AAMvB;AAEA,IAAA,0BAAe5B;",
|
|
6
|
-
"names": ["React", "useEffect", "useMemo", "useRef", "AIServiceClientImpl", "ComputeGraphModel", "EdgeGpt", "createStubEdgeIdentity", "EdgeClient", "EdgeHttpClient", "useConfig", "fullyQualifiedId", "getSpace", "ComputeContext", "ComputeGraphController", "ComputeShapeLayout", "computeShapes", "useGraphMonitor", "CanvasGraphModel", "Editor", "KeyboardContainer", "ShapeRegistry", "StackItem", "createServices", "config", "space", "spaceService", "undefined", "spaceId", "id", "db", "gpt", "values", "runtime", "services", "ai", "server", "EdgeGpt", "AIServiceClientImpl", "endpoint", "edgeClient", "edge", "url", "EdgeClient", "createStubEdgeIdentity", "socketEndpoint", "edgeHttpClient", "EdgeHttpClient", "useGraphController", "canvas", "useConfig", "getSpace", "controller", "useMemo", "computeGraph", "target", "model", "ComputeGraphModel", "ComputeGraphController", "setServices", "useEffect", "open", "close", "CanvasContainer", "role", "fullyQualifiedId", "graph", "CanvasGraphModel", "create", "layout", "graphMonitor", "useGraphMonitor", "registry", "ShapeRegistry", "computeShapes", "editorRef", "useRef", "ComputeShapeLayout", "ComputeContext", "Provider", "value", "StackItem", "Content", "toolbar", "size", "KeyboardContainer", "Editor", "Root", "ref", "Canvas", "UI", "showTools"]
|
|
7
|
-
}
|
|
@@ -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 = {\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/experimental/plugin-conductor',\n tags: ['experimental'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";AAMO,IAAMA,mBAAmB;AAEzB,IAAMC,OAAO;EAClBC,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,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 { 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 } => data.subject instanceof CanvasBoardType,\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,uBAAuB;;;ACHhC,SAASC,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,gCAAA,CAAA;;;ADMjD,IAAA,wBAAe,MACbC,YACEC,aAAaC,cACbC,cAAc;EACZC,IAAIC;EACJC,MAAM;IAAC;IAAW;;EAClBC,QAAQ,CAACC,SAA+CA,KAAKC,mBAAmBC;EAChFC,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAO,sBAAA,cAACM,iBAAAA;IAAgBC,QAAQL,KAAKC;IAASH;;AACxE,CAAA,CAAA;",
|
|
6
|
-
"names": ["React", "Capabilities", "contributes", "createSurface", "CanvasBoardType", "lazy", "CanvasContainer", "lazy", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "CONDUCTOR_PLUGIN", "role", "filter", "data", "subject", "CanvasBoardType", "component", "CanvasContainer", "canvas"]
|
|
7
|
-
}
|
|
@@ -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 { AIServiceClientImpl } from '@dxos/assistant';\nimport { type Config } from '@dxos/client';\nimport { ComputeGraphModel, EdgeGpt } from '@dxos/conductor';\nimport { createStubEdgeIdentity, EdgeClient, EdgeHttpClient } from '@dxos/edge-client';\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 type Services,\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): Partial<Services> => {\n return {\n spaceService:\n space == null\n ? undefined\n : {\n spaceId: space.id,\n db: space.db,\n },\n gpt:\n config.values.runtime?.services?.ai?.server == null\n ? undefined\n : new EdgeGpt(new AIServiceClientImpl({ endpoint: config.values.runtime?.services?.ai?.server })),\n edgeClient:\n config.values.runtime?.services?.edge?.url == null\n ? undefined\n : new EdgeClient(createStubEdgeIdentity(), { socketEndpoint: config.values.runtime?.services?.edge?.url }),\n edgeHttpClient:\n config.values.runtime?.services?.edge?.url == null\n ? undefined\n : new EdgeHttpClient(config.values.runtime?.services?.edge?.url),\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(model);\n controller.setServices(createServices(config, space));\n return controller;\n }, [canvas.computeGraph?.target, space]);\n\n useEffect(() => {\n if (!controller) {\n return;\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\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 toolbar={false} 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,mBAAkD;AAElD,uBAAoC;AAEpC,uBAA2C;AAC3C,yBAAmE;AACnE,0BAA0B;AAC1B,kBAAuD;AACvD,qCAQO;AACP,oCAOO;AACP,4BAA0B;AAE1B,IAAMA,iBAAiB,CAACC,QAAgBC,UAAAA;AACtC,SAAO;IACLC,cACED,SAAS,OACLE,SACA;MACEC,SAASH,MAAMI;MACfC,IAAIL,MAAMK;IACZ;IACNC,KACEP,OAAOQ,OAAOC,SAASC,UAAUC,IAAIC,UAAU,OAC3CT,SACA,IAAIU,yBAAQ,IAAIC,qCAAoB;MAAEC,UAAUf,OAAOQ,OAAOC,SAASC,UAAUC,IAAIC;IAAO,CAAA,CAAA;IAClGI,YACEhB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC,OAAO,OAC1Cf,SACA,IAAIgB,kCAAWC,2CAAAA,GAA0B;MAAEC,gBAAgBrB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC;IAAI,CAAA;IAC5GI,gBACEtB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC,OAAO,OAC1Cf,SACA,IAAIoB,kCAAevB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC,GAAAA;EAClE;AACF;AAEA,IAAMM,qBAAqB,CAACC,WAAAA;AAC1B,QAAMzB,aAAS0B,+BAAAA;AACf,QAAMzB,YAAQ0B,sBAASF,MAAAA;AACvB,QAAMG,iBAAaC,sBAAQ,MAAA;AACzB,QAAI,CAACJ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,MAAI;IACV3D;IACA4D,KAAKd;IACLT;IACAI;IACAE;IACAH;KAEA,6BAAAS,QAAA,cAACS,qCAAOG,QAAM,IAAA,GACd,6BAAAZ,QAAA,cAACS,qCAAOI,IAAE;IAACC,WAAAA;;AAMvB;AAEA,IAAA,0BAAe7B;",
|
|
6
|
-
"names": ["createServices", "config", "space", "spaceService", "undefined", "spaceId", "id", "db", "gpt", "values", "runtime", "services", "ai", "server", "EdgeGpt", "AIServiceClientImpl", "endpoint", "edgeClient", "edge", "url", "EdgeClient", "createStubEdgeIdentity", "socketEndpoint", "edgeHttpClient", "EdgeHttpClient", "useGraphController", "canvas", "useConfig", "getSpace", "controller", "useMemo", "computeGraph", "target", "model", "ComputeGraphModel", "ComputeGraphController", "setServices", "useEffect", "open", "close", "CanvasContainer", "role", "fullyQualifiedId", "graph", "CanvasGraphModel", "create", "layout", "graphMonitor", "useGraphMonitor", "registry", "ShapeRegistry", "computeShapes", "editorRef", "useRef", "ComputeShapeLayout", "React", "ComputeContext", "Provider", "value", "StackItem", "Content", "toolbar", "size", "KeyboardContainer", "Editor", "Root", "ref", "Canvas", "UI", "showTools"]
|
|
7
|
-
}
|
|
@@ -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 = {\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/experimental/plugin-conductor',\n tags: ['experimental'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,mBAAmB;AAEzB,IAAMC,OAAO;EAClBC,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,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 { 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 } => data.subject instanceof CanvasBoardType,\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,mBAAkB;AAElB,2BAAyD;AACzD,oCAAgC;ACHhC,IAAAA,gBAAqB;AAEd,IAAMC,sBAAkBC,oBAAK,MAAM,OAAO,gCAAA,CAAA;ADMjD,IAAA,wBAAe,UACbC,kCACEC,kCAAaC,kBACbC,oCAAc;EACZC,IAAIC;EACJC,MAAM;IAAC;IAAW;;EAClBC,QAAQ,CAACC,SAA+CA,KAAKC,mBAAmBC;EAChFC,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAO,6BAAAM,QAAA,cAACd,iBAAAA;IAAgBe,QAAQL,KAAKC;IAASH;;AACxE,CAAA,CAAA;",
|
|
6
|
-
"names": ["import_react", "CanvasContainer", "lazy", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "CONDUCTOR_PLUGIN", "role", "filter", "data", "subject", "CanvasBoardType", "component", "React", "canvas"]
|
|
7
|
-
}
|
|
@@ -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 { AIServiceClientImpl } from '@dxos/assistant';\nimport { type Config } from '@dxos/client';\nimport { ComputeGraphModel, EdgeGpt } from '@dxos/conductor';\nimport { createStubEdgeIdentity, EdgeClient, EdgeHttpClient } from '@dxos/edge-client';\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 type Services,\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): Partial<Services> => {\n return {\n spaceService:\n space == null\n ? undefined\n : {\n spaceId: space.id,\n db: space.db,\n },\n gpt:\n config.values.runtime?.services?.ai?.server == null\n ? undefined\n : new EdgeGpt(new AIServiceClientImpl({ endpoint: config.values.runtime?.services?.ai?.server })),\n edgeClient:\n config.values.runtime?.services?.edge?.url == null\n ? undefined\n : new EdgeClient(createStubEdgeIdentity(), { socketEndpoint: config.values.runtime?.services?.edge?.url }),\n edgeHttpClient:\n config.values.runtime?.services?.edge?.url == null\n ? undefined\n : new EdgeHttpClient(config.values.runtime?.services?.edge?.url),\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(model);\n controller.setServices(createServices(config, space));\n return controller;\n }, [canvas.computeGraph?.target, space]);\n\n useEffect(() => {\n if (!controller) {\n return;\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\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 toolbar={false} 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,2BAA2B;AAEpC,SAASC,mBAAmBC,eAAe;AAC3C,SAASC,wBAAwBC,YAAYC,sBAAsB;AACnE,SAASC,iBAAiB;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AAWS,KAAI;AACpB,WAAO,MAAA;AACL,WAAKT,WAAWU,MAAK;IACvB;EACF,GAAG;IAACV;GAAW;AAEf,SAAOA;AACT;AAEO,IAAMW,kBAAkB,CAAC,EAAEd,QAAQe,KAAI,MAA6C;AACzF,QAAMnC,KAAKoC,iBAAiBhB,MAAAA;AAC5B,QAAMiB,QAAQb,QAAQ,MAAMc,iBAAiBC,OAAqBnB,OAAOoB,MAAM,GAAG;IAACpB,OAAOoB;GAAO;AACjG,QAAMjB,aAAaJ,mBAAmBC,MAAAA;AACtC,QAAMqB,eAAeC,gBAAgBnB,YAAYc,KAAAA;AACjD,QAAMM,WAAWnB,QAAQ,MAAM,IAAIoB,cAAcC,aAAAA,GAAgB,CAAA,CAAE;AACnE,QAAMC,YAAYC,OAAyB,IAAA;AAG3C,QAAMP,SAAShB,QACb,MAAOD,cAAcoB,WAAW,IAAIK,mBAAmBzB,YAAYoB,QAAAA,IAAY7C,QAC/E;IAACyB;IAAYoB;GAAS;AAGxB,MAAI,CAACpB,YAAY;AACf;EACF;AAEA,SACE,sBAAA,cAAC0B,eAAeC,UAAQ;IAACC,OAAO;MAAE5B;IAAW;KAC3C,sBAAA,cAAC6B,UAAUC,SAAO;IAACC,SAAS;IAAOC,MAAMpB,SAAS,YAAY,WAAW;KACvE,sBAAA,cAACqB,mBAAAA;IAAkBxD;KACjB,sBAAA,cAACyD,OAAOC,MAAI;IACV1D;IACA2D,KAAKb;IACLT;IACAI;IACAE;IACAH;KAEA,sBAAA,cAACiB,OAAOG,QAAM,IAAA,GACd,sBAAA,cAACH,OAAOI,IAAE;IAACC,WAAAA;;AAMvB;AAEA,IAAA,0BAAe5B;",
|
|
6
|
-
"names": ["React", "useEffect", "useMemo", "useRef", "AIServiceClientImpl", "ComputeGraphModel", "EdgeGpt", "createStubEdgeIdentity", "EdgeClient", "EdgeHttpClient", "useConfig", "fullyQualifiedId", "getSpace", "ComputeContext", "ComputeGraphController", "ComputeShapeLayout", "computeShapes", "useGraphMonitor", "CanvasGraphModel", "Editor", "KeyboardContainer", "ShapeRegistry", "StackItem", "createServices", "config", "space", "spaceService", "undefined", "spaceId", "id", "db", "gpt", "values", "runtime", "services", "ai", "server", "EdgeGpt", "AIServiceClientImpl", "endpoint", "edgeClient", "edge", "url", "EdgeClient", "createStubEdgeIdentity", "socketEndpoint", "edgeHttpClient", "EdgeHttpClient", "useGraphController", "canvas", "useConfig", "getSpace", "controller", "useMemo", "computeGraph", "target", "model", "ComputeGraphModel", "ComputeGraphController", "setServices", "useEffect", "open", "close", "CanvasContainer", "role", "fullyQualifiedId", "graph", "CanvasGraphModel", "create", "layout", "graphMonitor", "useGraphMonitor", "registry", "ShapeRegistry", "computeShapes", "editorRef", "useRef", "ComputeShapeLayout", "ComputeContext", "Provider", "value", "StackItem", "Content", "toolbar", "size", "KeyboardContainer", "Editor", "Root", "ref", "Canvas", "UI", "showTools"]
|
|
7
|
-
}
|
|
@@ -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 = {\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/experimental/plugin-conductor',\n tags: ['experimental'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";;;AAMO,IAAMA,mBAAmB;AAEzB,IAAMC,OAAO;EAClBC,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,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 { 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 } => data.subject instanceof CanvasBoardType,\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,uBAAuB;;;ACHhC,SAASC,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,gCAAA,CAAA;;;ADMjD,IAAA,wBAAe,MACbC,YACEC,aAAaC,cACbC,cAAc;EACZC,IAAIC;EACJC,MAAM;IAAC;IAAW;;EAClBC,QAAQ,CAACC,SAA+CA,KAAKC,mBAAmBC;EAChFC,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAO,sBAAA,cAACM,iBAAAA;IAAgBC,QAAQL,KAAKC;IAASH;;AACxE,CAAA,CAAA;",
|
|
6
|
-
"names": ["React", "Capabilities", "contributes", "createSurface", "CanvasBoardType", "lazy", "CanvasContainer", "lazy", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "CONDUCTOR_PLUGIN", "role", "filter", "data", "subject", "CanvasBoardType", "component", "CanvasContainer", "canvas"]
|
|
7
|
-
}
|
|
File without changes
|
/package/dist/lib/browser/{intent-resolver-IKITW45C.mjs.map → intent-resolver-U7G6ZHGW.mjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/lib/node/{intent-resolver-P6OSOKYW.cjs.map → intent-resolver-N2D4SLD4.cjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/lib/node-esm/{intent-resolver-LUU6EZQI.mjs.map → intent-resolver-H2DKT2UH.mjs.map}
RENAMED
|
File without changes
|