@dxos/plugin-conductor 0.8.3-main.7f5a14c → 0.8.3
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-7DXW45ZA.mjs → CanvasContainer-IAWAWKZK.mjs} +11 -18
- package/dist/lib/browser/CanvasContainer-IAWAWKZK.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +6 -2
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-PPBJ4KEL.mjs → react-surface-I4XNNFSF.mjs} +2 -2
- package/dist/lib/node/{CanvasContainer-OINWTW67.cjs → CanvasContainer-BORU64NX.cjs} +12 -19
- package/dist/lib/node/CanvasContainer-BORU64NX.cjs.map +7 -0
- package/dist/lib/node/index.cjs +6 -2
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-IZDIYH3T.cjs → react-surface-5UCYIK4Q.cjs} +5 -5
- package/dist/lib/node-esm/{CanvasContainer-BTAYISKF.mjs → CanvasContainer-XFNPFWLN.mjs} +11 -18
- package/dist/lib/node-esm/CanvasContainer-XFNPFWLN.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +6 -2
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-J5XANJ2Q.mjs → react-surface-WZFA32UY.mjs} +2 -2
- package/dist/types/src/components/CanvasContainer.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +14 -2
- package/dist/types/src/translations.d.ts.map +1 -1
- package/package.json +22 -22
- package/src/components/CanvasContainer.tsx +11 -26
- package/src/translations.ts +5 -1
- package/dist/lib/browser/CanvasContainer-7DXW45ZA.mjs.map +0 -7
- package/dist/lib/node/CanvasContainer-OINWTW67.cjs.map +0 -7
- package/dist/lib/node-esm/CanvasContainer-BTAYISKF.mjs.map +0 -7
- /package/dist/lib/browser/{react-surface-PPBJ4KEL.mjs.map → react-surface-I4XNNFSF.mjs.map} +0 -0
- /package/dist/lib/node/{react-surface-IZDIYH3T.cjs.map → react-surface-5UCYIK4Q.cjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-J5XANJ2Q.mjs.map → react-surface-WZFA32UY.mjs.map} +0 -0
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
// packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx
|
|
2
2
|
import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
|
|
3
3
|
import React, { useEffect, useMemo, useRef } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { ComputeGraphModel
|
|
6
|
-
import {
|
|
4
|
+
import { EdgeAiServiceClient } from "@dxos/ai";
|
|
5
|
+
import { ComputeGraphModel } from "@dxos/conductor";
|
|
6
|
+
import { AiService, DatabaseService, QueueService, ServiceContainer } from "@dxos/functions";
|
|
7
7
|
import { useConfig } from "@dxos/react-client";
|
|
8
8
|
import { fullyQualifiedId, getSpace } from "@dxos/react-client/echo";
|
|
9
9
|
import { ComputeContext, ComputeGraphController, ComputeShapeLayout, computeShapes, useComputeGraphController, useGraphMonitor } from "@dxos/react-ui-canvas-compute";
|
|
10
10
|
import { CanvasGraphModel, Editor, KeyboardContainer, ShapeRegistry } from "@dxos/react-ui-canvas-editor";
|
|
11
11
|
import { StackItem } from "@dxos/react-ui-stack";
|
|
12
12
|
var createServices = (config, space) => {
|
|
13
|
-
return {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
gpt: config.values.runtime?.services?.ai?.server == null ? void 0 : new EdgeGpt(new AIServiceEdgeClient({
|
|
13
|
+
return new ServiceContainer().setServices({
|
|
14
|
+
database: space == null ? void 0 : DatabaseService.make(space.db),
|
|
15
|
+
queues: space == null ? void 0 : QueueService.make(space.queues, void 0),
|
|
16
|
+
ai: config.values.runtime?.services?.ai?.server == null ? void 0 : AiService.make(new EdgeAiServiceClient({
|
|
19
17
|
endpoint: config.values.runtime?.services?.ai?.server
|
|
20
|
-
}))
|
|
21
|
-
|
|
22
|
-
socketEndpoint: config.values.runtime?.services?.edge?.url
|
|
23
|
-
}),
|
|
24
|
-
edgeHttpClient: config.values.runtime?.services?.edge?.url == null ? void 0 : new EdgeHttpClient(config.values.runtime?.services?.edge?.url)
|
|
25
|
-
};
|
|
18
|
+
}))
|
|
19
|
+
});
|
|
26
20
|
};
|
|
27
21
|
var useGraphController = (canvas) => {
|
|
28
22
|
const config = useConfig();
|
|
@@ -32,8 +26,7 @@ var useGraphController = (canvas) => {
|
|
|
32
26
|
return null;
|
|
33
27
|
}
|
|
34
28
|
const model = new ComputeGraphModel(canvas.computeGraph?.target);
|
|
35
|
-
const controller2 = new ComputeGraphController(model);
|
|
36
|
-
controller2.setServices(createServices(config, space));
|
|
29
|
+
const controller2 = new ComputeGraphController(createServices(config, space), model);
|
|
37
30
|
return controller2;
|
|
38
31
|
}, [
|
|
39
32
|
canvas.computeGraph?.target,
|
|
@@ -102,4 +95,4 @@ export {
|
|
|
102
95
|
CanvasContainer,
|
|
103
96
|
CanvasContainer_default as default
|
|
104
97
|
};
|
|
105
|
-
//# sourceMappingURL=CanvasContainer-
|
|
98
|
+
//# sourceMappingURL=CanvasContainer-IAWAWKZK.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
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 { EdgeAiServiceClient } from '@dxos/ai';\nimport { type Config } from '@dxos/client';\nimport { ComputeGraphModel } from '@dxos/conductor';\nimport { AiService, 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(new EdgeAiServiceClient({ 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 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,2BAA2B;AAEpC,SAASC,yBAAyB;AAClC,SAASC,WAAWC,iBAAiBC,cAAcC,wBAAwB;AAC3E,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,KAAK,IAAIU,oBAAoB;MAAEC,UAAUlB,OAAOY,OAAOC,SAASC,UAAUH,IAAII;IAAO,CAAA,CAAA;EACvG,CAAA;AACF;AAEA,IAAMI,qBAAqB,CAACC,WAAAA;AAC1B,QAAMpB,SAASqB,UAAAA;AACf,QAAMpB,QAAQqB,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,uBAAuB9B,eAAeC,QAAQC,KAAAA,GAAQ0B,KAAAA;AAC7E,WAAOJ;EACT,GAAG;IAACH,OAAOK,cAAcC;IAAQzB;GAAM;AAEvC6B,YAAU,MAAA;AACR,QAAI,CAACP,YAAY;AACf;IACF;AACA,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,IAAYtC,QAC/E;MAACkB;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", "EdgeAiServiceClient", "ComputeGraphModel", "AiService", "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", "EdgeAiServiceClient", "endpoint", "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
|
+
}
|
|
@@ -18,15 +18,19 @@ import { CanvasBoardType as CanvasBoardType2 } from "@dxos/react-ui-canvas-edito
|
|
|
18
18
|
// packages/plugins/plugin-conductor/src/capabilities/index.ts
|
|
19
19
|
import { lazy } from "@dxos/app-framework";
|
|
20
20
|
var IntentResolver = lazy(() => import("./intent-resolver-6YY3BXWS.mjs"));
|
|
21
|
-
var ReactSurface = lazy(() => import("./react-surface-
|
|
21
|
+
var ReactSurface = lazy(() => import("./react-surface-I4XNNFSF.mjs"));
|
|
22
22
|
|
|
23
23
|
// packages/plugins/plugin-conductor/src/translations.ts
|
|
24
|
+
import { Type } from "@dxos/echo";
|
|
24
25
|
import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
|
|
25
26
|
var translations_default = [
|
|
26
27
|
{
|
|
27
28
|
"en-US": {
|
|
28
|
-
[CanvasBoardType
|
|
29
|
+
[Type.getTypename(CanvasBoardType)]: {
|
|
29
30
|
"typename label": "Circuit",
|
|
31
|
+
"typename label_zero": "Circuits",
|
|
32
|
+
"typename label_one": "Circuit",
|
|
33
|
+
"typename label_other": "Circuits",
|
|
30
34
|
"object name placeholder": "New circuit"
|
|
31
35
|
},
|
|
32
36
|
[CONDUCTOR_PLUGIN]: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/ConductorPlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { FunctionTrigger } from '@dxos/functions';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\nimport { ConductorAction } from './types';\n\nexport const ConductorPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: CanvasBoardType.typename,\n metadata: {\n icon: 'ph--infinity--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: CanvasBoardType,\n getIntent: () => createIntent(ConductorAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, [ComputeGraph, FunctionTrigger]),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CONDUCTOR_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [CanvasBoardType
|
|
5
|
-
"mappings": ";;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAcC,cAAc;AAC5F,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,oBAAoBC,oBAAoB;AACjD,SAASC,yBAAyB;AAClC,SAASC,wBAAwB;AACjC,SAASC,mBAAAA,wBAAuB;;;ACNhC,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,eAAeD,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACH9C,SAASE,uBAAuB;AAIhC,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACC,
|
|
6
|
-
"names": ["Capabilities", "contributes", "createIntent", "defineModule", "definePlugin", "Events", "ComputeGraph", "FunctionTrigger", "ClientCapabilities", "ClientEvents", "SpaceCapabilities", "defineObjectForm", "CanvasBoardType", "lazy", "IntentResolver", "lazy", "ReactSurface", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { FunctionTrigger } from '@dxos/functions';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\nimport { ConductorAction } from './types';\n\nexport const ConductorPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: CanvasBoardType.typename,\n metadata: {\n icon: 'ph--infinity--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: CanvasBoardType,\n getIntent: () => createIntent(ConductorAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, [ComputeGraph, FunctionTrigger]),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Type } from '@dxos/echo';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CONDUCTOR_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [Type.getTypename(CanvasBoardType)]: {\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 },\n [CONDUCTOR_PLUGIN]: {\n 'plugin name': 'Conductor',\n 'content placeholder': 'Enter text...',\n },\n },\n },\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAcC,cAAc;AAC5F,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,oBAAoBC,oBAAoB;AACjD,SAASC,yBAAyB;AAClC,SAASC,wBAAwB;AACjC,SAASC,mBAAAA,wBAAuB;;;ACNhC,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,eAAeD,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACH9C,SAASE,YAAY;AACrB,SAASC,uBAAuB;AAIhC,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACC,KAAKC,YAAYC,eAAAA,CAAAA,GAAmB;QACnC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;MAC7B;MACA,CAACC,gBAAAA,GAAmB;QAClB,eAAe;QACf,uBAAuB;MACzB;IACF;EACF;;;;AFPK,IAAMC,kBAAkB,MAC7BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,oBAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOO;IACpBL,UAAU,MACRC,YAAYC,aAAaI,UAAU;MACjCV,IAAIW,iBAAgBC;MACpBC,UAAU;QACRC,MAAM;MACR;IACF,CAAA;EACJ,CAAA;EACAf,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAac,aAAaC;IAC1BZ,UAAU,MACRC,YACEY,kBAAkBC,YAClBC,iBAAiB;MACfC,cAAcT;MACdU,WAAW,MAAMC,aAAaC,gBAAgBC,MAAM;IACtD,CAAA,CAAA;EAEN,CAAA;EACAzB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAac,aAAaC;IAC1BZ,UAAU,MAAMC,YAAYoB,mBAAmBC,QAAQ;MAACC;MAAcC;KAAgB;EACxF,CAAA;EACA7B,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAO2B;IACpBzB,UAAU0B;EACZ,CAAA;EACA/B,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAO6B;IACpB3B,UAAU4B;EACZ,CAAA;CACD;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "createIntent", "defineModule", "definePlugin", "Events", "ComputeGraph", "FunctionTrigger", "ClientCapabilities", "ClientEvents", "SpaceCapabilities", "defineObjectForm", "CanvasBoardType", "lazy", "IntentResolver", "lazy", "ReactSurface", "Type", "CanvasBoardType", "Type", "getTypename", "CanvasBoardType", "CONDUCTOR_PLUGIN", "ConductorPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "CanvasBoardType", "typename", "metadata", "icon", "ClientEvents", "SetupSchema", "SpaceCapabilities", "ObjectForm", "defineObjectForm", "objectSchema", "getIntent", "createIntent", "ConductorAction", "Create", "ClientCapabilities", "Schema", "ComputeGraph", "FunctionTrigger", "SetupReactSurface", "ReactSurface", "SetupIntentResolver", "IntentResolver"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytes":2262,"imports":[],"format":"esm"},"packages/plugins/plugin-conductor/src/types.ts":{"bytes":2361,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytes":3436,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx":{"bytes":13687,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytes":776,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx","kind":"dynamic-import","original":"./CanvasContainer"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx":{"bytes":2925,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/index.ts":{"bytes":1052,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-conductor/src/translations.ts":{"bytes":1814,"imports":[{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx":{"bytes":8046,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-conductor/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-conductor/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-conductor/src/index.ts":{"bytes":572,"imports":[{"path":"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx","kind":"import-statement","original":"./ConductorPlugin"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-conductor/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5244},"packages/plugins/plugin-conductor/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-4EJT5EIW.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/intent-resolver-6YY3BXWS.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/react-surface-PPBJ4KEL.mjs","kind":"dynamic-import"},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["CONDUCTOR_PLUGIN","ConductorPlugin","meta"],"entryPoint":"packages/plugins/plugin-conductor/src/index.ts","inputs":{"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx":{"bytesInOutput":1777},"packages/plugins/plugin-conductor/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/plugin-conductor/src/translations.ts":{"bytesInOutput":375},"packages/plugins/plugin-conductor/src/index.ts":{"bytesInOutput":0}},"bytes":2806},"packages/plugins/plugin-conductor/dist/lib/browser/types.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-conductor/dist/lib/browser/types.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-4EJT5EIW.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs","kind":"import-statement"}],"exports":["ConductorAction"],"entryPoint":"packages/plugins/plugin-conductor/src/types.ts","inputs":{},"bytes":154},"packages/plugins/plugin-conductor/dist/lib/browser/intent-resolver-6YY3BXWS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1696},"packages/plugins/plugin-conductor/dist/lib/browser/intent-resolver-6YY3BXWS.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-4EJT5EIW.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytesInOutput":695}},"bytes":961},"packages/plugins/plugin-conductor/dist/lib/browser/chunk-4EJT5EIW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1192},"packages/plugins/plugin-conductor/dist/lib/browser/chunk-4EJT5EIW.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["ConductorAction"],"inputs":{"packages/plugins/plugin-conductor/src/types.ts":{"bytesInOutput":518}},"bytes":703},"packages/plugins/plugin-conductor/dist/lib/browser/CanvasContainer-7DXW45ZA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7461},"packages/plugins/plugin-conductor/dist/lib/browser/CanvasContainer-7DXW45ZA.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["CanvasContainer","default"],"entryPoint":"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx","inputs":{"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx":{"bytesInOutput":3559}},"bytes":3753},"packages/plugins/plugin-conductor/dist/lib/browser/react-surface-PPBJ4KEL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1762},"packages/plugins/plugin-conductor/dist/lib/browser/react-surface-PPBJ4KEL.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/CanvasContainer-7DXW45ZA.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx":{"bytesInOutput":562},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytesInOutput":106}},"bytes":1034},"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1065},"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs":{"imports":[],"exports":["CONDUCTOR_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytesInOutput":590}},"bytes":723}}}
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytes":2262,"imports":[],"format":"esm"},"packages/plugins/plugin-conductor/src/types.ts":{"bytes":2361,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytes":3436,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx":{"bytes":12481,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytes":776,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx","kind":"dynamic-import","original":"./CanvasContainer"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx":{"bytes":2925,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/index.ts":{"bytes":1052,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-conductor/src/translations.ts":{"bytes":2358,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx":{"bytes":8046,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-conductor/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-conductor/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-conductor/src/index.ts":{"bytes":572,"imports":[{"path":"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx","kind":"import-statement","original":"./ConductorPlugin"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-conductor/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5507},"packages/plugins/plugin-conductor/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-4EJT5EIW.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/intent-resolver-6YY3BXWS.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/react-surface-I4XNNFSF.mjs","kind":"dynamic-import"},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["CONDUCTOR_PLUGIN","ConductorPlugin","meta"],"entryPoint":"packages/plugins/plugin-conductor/src/index.ts","inputs":{"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx":{"bytesInOutput":1777},"packages/plugins/plugin-conductor/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/plugin-conductor/src/translations.ts":{"bytesInOutput":547},"packages/plugins/plugin-conductor/src/index.ts":{"bytesInOutput":0}},"bytes":2978},"packages/plugins/plugin-conductor/dist/lib/browser/types.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-conductor/dist/lib/browser/types.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-4EJT5EIW.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs","kind":"import-statement"}],"exports":["ConductorAction"],"entryPoint":"packages/plugins/plugin-conductor/src/types.ts","inputs":{},"bytes":154},"packages/plugins/plugin-conductor/dist/lib/browser/intent-resolver-6YY3BXWS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1696},"packages/plugins/plugin-conductor/dist/lib/browser/intent-resolver-6YY3BXWS.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-4EJT5EIW.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytesInOutput":695}},"bytes":961},"packages/plugins/plugin-conductor/dist/lib/browser/chunk-4EJT5EIW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1192},"packages/plugins/plugin-conductor/dist/lib/browser/chunk-4EJT5EIW.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["ConductorAction"],"inputs":{"packages/plugins/plugin-conductor/src/types.ts":{"bytesInOutput":518}},"bytes":703},"packages/plugins/plugin-conductor/dist/lib/browser/CanvasContainer-IAWAWKZK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6800},"packages/plugins/plugin-conductor/dist/lib/browser/CanvasContainer-IAWAWKZK.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["CanvasContainer","default"],"entryPoint":"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx","inputs":{"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx":{"bytesInOutput":3278}},"bytes":3472},"packages/plugins/plugin-conductor/dist/lib/browser/react-surface-I4XNNFSF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1762},"packages/plugins/plugin-conductor/dist/lib/browser/react-surface-I4XNNFSF.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/CanvasContainer-IAWAWKZK.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx":{"bytesInOutput":562},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytesInOutput":106}},"bytes":1034},"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1065},"packages/plugins/plugin-conductor/dist/lib/browser/chunk-B4FDW7Y7.mjs":{"imports":[],"exports":["CONDUCTOR_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytesInOutput":590}},"bytes":723}}}
|
|
@@ -10,7 +10,7 @@ import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
|
|
|
10
10
|
|
|
11
11
|
// packages/plugins/plugin-conductor/src/components/index.ts
|
|
12
12
|
import { lazy } from "react";
|
|
13
|
-
var CanvasContainer = lazy(() => import("./CanvasContainer-
|
|
13
|
+
var CanvasContainer = lazy(() => import("./CanvasContainer-IAWAWKZK.mjs"));
|
|
14
14
|
|
|
15
15
|
// packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx
|
|
16
16
|
var react_surface_default = () => contributes(Capabilities.ReactSurface, createSurface({
|
|
@@ -28,4 +28,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, createS
|
|
|
28
28
|
export {
|
|
29
29
|
react_surface_default as default
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=react-surface-
|
|
31
|
+
//# sourceMappingURL=react-surface-I4XNNFSF.mjs.map
|
|
@@ -26,36 +26,30 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var CanvasContainer_BORU64NX_exports = {};
|
|
30
|
+
__export(CanvasContainer_BORU64NX_exports, {
|
|
31
31
|
CanvasContainer: () => CanvasContainer,
|
|
32
32
|
default: () => CanvasContainer_default
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(CanvasContainer_BORU64NX_exports);
|
|
35
35
|
var import_tracking = require("@preact-signals/safe-react/tracking");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var import_ai = require("@dxos/ai");
|
|
38
38
|
var import_conductor = require("@dxos/conductor");
|
|
39
|
-
var
|
|
39
|
+
var import_functions = require("@dxos/functions");
|
|
40
40
|
var import_react_client = require("@dxos/react-client");
|
|
41
41
|
var import_echo = require("@dxos/react-client/echo");
|
|
42
42
|
var import_react_ui_canvas_compute = require("@dxos/react-ui-canvas-compute");
|
|
43
43
|
var import_react_ui_canvas_editor = require("@dxos/react-ui-canvas-editor");
|
|
44
44
|
var import_react_ui_stack = require("@dxos/react-ui-stack");
|
|
45
45
|
var createServices = (config, space) => {
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
gpt: config.values.runtime?.services?.ai?.server == null ? void 0 : new import_conductor.EdgeGpt(new import_ai.AIServiceEdgeClient({
|
|
46
|
+
return new import_functions.ServiceContainer().setServices({
|
|
47
|
+
database: space == null ? void 0 : import_functions.DatabaseService.make(space.db),
|
|
48
|
+
queues: space == null ? void 0 : import_functions.QueueService.make(space.queues, void 0),
|
|
49
|
+
ai: config.values.runtime?.services?.ai?.server == null ? void 0 : import_functions.AiService.make(new import_ai.EdgeAiServiceClient({
|
|
52
50
|
endpoint: config.values.runtime?.services?.ai?.server
|
|
53
|
-
}))
|
|
54
|
-
|
|
55
|
-
socketEndpoint: config.values.runtime?.services?.edge?.url
|
|
56
|
-
}),
|
|
57
|
-
edgeHttpClient: config.values.runtime?.services?.edge?.url == null ? void 0 : new import_edge_client.EdgeHttpClient(config.values.runtime?.services?.edge?.url)
|
|
58
|
-
};
|
|
51
|
+
}))
|
|
52
|
+
});
|
|
59
53
|
};
|
|
60
54
|
var useGraphController = (canvas) => {
|
|
61
55
|
const config = (0, import_react_client.useConfig)();
|
|
@@ -65,8 +59,7 @@ var useGraphController = (canvas) => {
|
|
|
65
59
|
return null;
|
|
66
60
|
}
|
|
67
61
|
const model = new import_conductor.ComputeGraphModel(canvas.computeGraph?.target);
|
|
68
|
-
const controller2 = new import_react_ui_canvas_compute.ComputeGraphController(model);
|
|
69
|
-
controller2.setServices(createServices(config, space));
|
|
62
|
+
const controller2 = new import_react_ui_canvas_compute.ComputeGraphController(createServices(config, space), model);
|
|
70
63
|
return controller2;
|
|
71
64
|
}, [
|
|
72
65
|
canvas.computeGraph?.target,
|
|
@@ -135,4 +128,4 @@ var CanvasContainer_default = CanvasContainer;
|
|
|
135
128
|
0 && (module.exports = {
|
|
136
129
|
CanvasContainer
|
|
137
130
|
});
|
|
138
|
-
//# sourceMappingURL=CanvasContainer-
|
|
131
|
+
//# sourceMappingURL=CanvasContainer-BORU64NX.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
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 { EdgeAiServiceClient } from '@dxos/ai';\nimport { type Config } from '@dxos/client';\nimport { ComputeGraphModel } from '@dxos/conductor';\nimport { AiService, 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(new EdgeAiServiceClient({ 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 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,mBAAkD;AAElD,gBAAoC;AAEpC,uBAAkC;AAClC,uBAA2E;AAC3E,0BAA0B;AAC1B,kBAAuD;AACvD,qCAQO;AACP,oCAOO;AACP,4BAA0B;AAE1B,IAAMA,iBAAiB,CAACC,QAAgBC,UAAAA;AACtC,SAAO,IAAIC,kCAAAA,EAAmBC,YAAY;IACxCC,UAAUH,SAAS,OAAOI,SAAYC,iCAAgBC,KAAKN,MAAMO,EAAE;IACnEC,QAAQR,SAAS,OAAOI,SAAYK,8BAAaH,KAAKN,MAAMQ,QAAQJ,MAAAA;IACpEM,IACEX,OAAOY,OAAOC,SAASC,UAAUH,IAAII,UAAU,OAC3CV,SACAW,2BAAUT,KAAK,IAAIU,8BAAoB;MAAEC,UAAUlB,OAAOY,OAAOC,SAASC,UAAUH,IAAII;IAAO,CAAA,CAAA;EACvG,CAAA;AACF;AAEA,IAAMI,qBAAqB,CAACC,WAAAA;AAC1B,QAAMpB,aAASqB,+BAAAA;AACf,QAAMpB,YAAQqB,sBAASF,MAAAA;AACvB,QAAMG,iBAAaC,sBAAQ,MAAA;AACzB,QAAI,CAACJ,OAAOK,cAAcC,QAAQ;AAChC,aAAO;IACT;AACA,UAAMC,QAAQ,IAAIC,mCAAkBR,OAAOK,cAAcC,MAAAA;AACzD,UAAMH,cAAa,IAAIM,sDAAuB9B,eAAeC,QAAQC,KAAAA,GAAQ0B,KAAAA;AAC7E,WAAOJ;EACT,GAAG;IAACH,OAAOK,cAAcC;IAAQzB;GAAM;AAEvC6B,8BAAU,MAAA;AACR,QAAI,CAACP,YAAY;AACf;IACF;AACA,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,SAAKC,8BAAiBhB,MAAAA;AAC5B,UAAMiB,YAAQb,sBAAQ,MAAMc,+CAAiBC,OAAqBnB,OAAOoB,MAAM,GAAG;MAACpB,OAAOoB;KAAO;AACjG,UAAMjB,aAAaJ,mBAAmBC,MAAAA;AACtC,UAAMqB,mBAAeC,gDAAgBnB,YAAYc,KAAAA;AACjD,UAAMM,eAAWnB,sBAAQ,MAAM,IAAIoB,4CAAcC,4CAAAA,GAAgB,CAAA,CAAE;AACnE,UAAMC,gBAAYC,qBAAyB,IAAA;AAC3CC,kEAA0B;MAAEzB;MAAYc;MAAOS;IAAU,CAAA;AAGzD,UAAMN,aAAShB,sBACb,MAAOD,cAAcoB,WAAW,IAAIM,kDAAmB1B,YAAYoB,QAAAA,IAAYtC,QAC/E;MAACkB;MAAYoB;KAAS;AAGxB,QAAI,CAACpB,YAAY;AACf;IACF;AAEA,WACE,6BAAA2B,QAAA,cAACC,8CAAeC,UAAQ;MAACC,OAAO;QAAE9B;MAAW;OAC3C,6BAAA2B,QAAA,cAACI,gCAAUC,SAAO;MAACC,MAAMtB,SAAS,YAAY,WAAW;OACvD,6BAAAgB,QAAA,cAACO,iDAAAA;MAAkBtB;OACjB,6BAAAe,QAAA,cAACQ,qCAAOC,MAAI;MACVxB;MACAyB,KAAKd;MACLT;MACAI;MACAE;MACAH;OAEA,6BAAAU,QAAA,cAACQ,qCAAOG,QAAM,IAAA,GACd,6BAAAX,QAAA,cAACQ,qCAAOI,IAAE;MAACC,WAAAA;;;;;AAMvB;AAEA,IAAA,0BAAe9B;",
|
|
6
|
+
"names": ["createServices", "config", "space", "ServiceContainer", "setServices", "database", "undefined", "DatabaseService", "make", "db", "queues", "QueueService", "ai", "values", "runtime", "services", "server", "AiService", "EdgeAiServiceClient", "endpoint", "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", "React", "ComputeContext", "Provider", "value", "StackItem", "Content", "size", "KeyboardContainer", "Editor", "Root", "ref", "Canvas", "UI", "showTools"]
|
|
7
|
+
}
|
package/dist/lib/node/index.cjs
CHANGED
|
@@ -43,14 +43,18 @@ var import_plugin_space = require("@dxos/plugin-space");
|
|
|
43
43
|
var import_types = require("@dxos/plugin-space/types");
|
|
44
44
|
var import_react_ui_canvas_editor = require("@dxos/react-ui-canvas-editor");
|
|
45
45
|
var import_app_framework2 = require("@dxos/app-framework");
|
|
46
|
+
var import_echo = require("@dxos/echo");
|
|
46
47
|
var import_react_ui_canvas_editor2 = require("@dxos/react-ui-canvas-editor");
|
|
47
48
|
var IntentResolver = (0, import_app_framework2.lazy)(() => import("./intent-resolver-LR2DNPAH.cjs"));
|
|
48
|
-
var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-
|
|
49
|
+
var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-5UCYIK4Q.cjs"));
|
|
49
50
|
var translations_default = [
|
|
50
51
|
{
|
|
51
52
|
"en-US": {
|
|
52
|
-
[import_react_ui_canvas_editor2.CanvasBoardType
|
|
53
|
+
[import_echo.Type.getTypename(import_react_ui_canvas_editor2.CanvasBoardType)]: {
|
|
53
54
|
"typename label": "Circuit",
|
|
55
|
+
"typename label_zero": "Circuits",
|
|
56
|
+
"typename label_one": "Circuit",
|
|
57
|
+
"typename label_other": "Circuits",
|
|
54
58
|
"object name placeholder": "New circuit"
|
|
55
59
|
},
|
|
56
60
|
[import_chunk_V22Y2ZJE.CONDUCTOR_PLUGIN]: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/ConductorPlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { FunctionTrigger } from '@dxos/functions';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\nimport { ConductorAction } from './types';\n\nexport const ConductorPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: CanvasBoardType.typename,\n metadata: {\n icon: 'ph--infinity--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: CanvasBoardType,\n getIntent: () => createIntent(ConductorAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, [ComputeGraph, FunctionTrigger]),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CONDUCTOR_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [CanvasBoardType
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAA4F;AAC5F,uBAA6B;AAC7B,uBAAgC;AAChC,2BAAiD;AACjD,0BAAkC;AAClC,mBAAiC;AACjC,oCAAgC;ACNhC,IAAAA,wBAAqB;ACArB,IAAAC,iCAAgC;
|
|
6
|
-
"names": ["import_app_framework", "import_react_ui_canvas_editor", "IntentResolver", "lazy", "ReactSurface", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { FunctionTrigger } from '@dxos/functions';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\nimport { ConductorAction } from './types';\n\nexport const ConductorPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: CanvasBoardType.typename,\n metadata: {\n icon: 'ph--infinity--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: CanvasBoardType,\n getIntent: () => createIntent(ConductorAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, [ComputeGraph, FunctionTrigger]),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Type } from '@dxos/echo';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CONDUCTOR_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [Type.getTypename(CanvasBoardType)]: {\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 },\n [CONDUCTOR_PLUGIN]: {\n 'plugin name': 'Conductor',\n 'content placeholder': 'Enter text...',\n },\n },\n },\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAA4F;AAC5F,uBAA6B;AAC7B,uBAAgC;AAChC,2BAAiD;AACjD,0BAAkC;AAClC,mBAAiC;AACjC,oCAAgC;ACNhC,IAAAA,wBAAqB;ACArB,kBAAqB;AACrB,IAAAC,iCAAgC;ADCzB,IAAMC,qBAAiBC,4BAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,mBAAeD,4BAAK,MAAM,OAAO,8BAAA,CAAA;ACE9C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACE,iBAAKC,YAAYC,8CAAAA,CAAAA,GAAmB;QACnC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;MAC7B;MACA,CAACC,sCAAAA,GAAmB;QAClB,eAAe;QACf,uBAAuB;MACzB;IACF;EACF;;AFPK,IAAMC,kBAAkB,UAC7BC,mCAAaC,4BAAM;MACjBC,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAOC;IACpBC,UAAU,UAAMC,kCAAYC,kCAAaC,cAAcC,oBAAAA;EACzD,CAAA;MACAT,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAOO;IACpBL,UAAU,UACRC,kCAAYC,kCAAaI,UAAU;MACjCV,IAAIN,8BAAAA,gBAAgBiB;MACpBC,UAAU;QACRC,MAAM;MACR;IACF,CAAA;EACJ,CAAA;MACAd,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaa,kCAAaC;IAC1BX,UAAU,UACRC,kCACEW,sCAAkBC,gBAClBC,+BAAiB;MACfC,cAAczB,8BAAAA;MACd0B,WAAW,UAAMC,mCAAaC,sCAAgBC,MAAM;IACtD,CAAA,CAAA;EAEN,CAAA;MACAxB,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaa,kCAAaC;IAC1BX,UAAU,UAAMC,kCAAYmB,wCAAmBC,QAAQ;MAACC;MAAcC;KAAgB;EACxF,CAAA;MACA5B,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAO0B;IACpBxB,UAAUb;EACZ,CAAA;MACAQ,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAO2B;IACpBzB,UAAUf;EACZ,CAAA;CACD;",
|
|
6
|
+
"names": ["import_app_framework", "import_react_ui_canvas_editor", "IntentResolver", "lazy", "ReactSurface", "Type", "getTypename", "CanvasBoardType", "CONDUCTOR_PLUGIN", "ConductorPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "typename", "metadata", "icon", "ClientEvents", "SetupSchema", "SpaceCapabilities", "ObjectForm", "defineObjectForm", "objectSchema", "getIntent", "createIntent", "ConductorAction", "Create", "ClientCapabilities", "Schema", "ComputeGraph", "FunctionTrigger", "SetupReactSurface", "SetupIntentResolver"]
|
|
7
7
|
}
|
package/dist/lib/node/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytes":2262,"imports":[],"format":"esm"},"packages/plugins/plugin-conductor/src/types.ts":{"bytes":2361,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytes":3436,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx":{"bytes":13687,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytes":776,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx","kind":"dynamic-import","original":"./CanvasContainer"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx":{"bytes":2925,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/index.ts":{"bytes":1052,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-conductor/src/translations.ts":{"bytes":1814,"imports":[{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx":{"bytes":8046,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-conductor/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-conductor/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-conductor/src/index.ts":{"bytes":572,"imports":[{"path":"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx","kind":"import-statement","original":"./ConductorPlugin"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-conductor/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5244},"packages/plugins/plugin-conductor/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-QBA2VGYG.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/dist/lib/node/intent-resolver-LR2DNPAH.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-conductor/dist/lib/node/react-surface-IZDIYH3T.cjs","kind":"dynamic-import"},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["CONDUCTOR_PLUGIN","ConductorPlugin","meta"],"entryPoint":"packages/plugins/plugin-conductor/src/index.ts","inputs":{"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx":{"bytesInOutput":1777},"packages/plugins/plugin-conductor/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/plugin-conductor/src/translations.ts":{"bytesInOutput":375},"packages/plugins/plugin-conductor/src/index.ts":{"bytesInOutput":0}},"bytes":2806},"packages/plugins/plugin-conductor/dist/lib/node/types.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-conductor/dist/lib/node/types.cjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-QBA2VGYG.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs","kind":"import-statement"}],"exports":["ConductorAction"],"entryPoint":"packages/plugins/plugin-conductor/src/types.ts","inputs":{},"bytes":154},"packages/plugins/plugin-conductor/dist/lib/node/intent-resolver-LR2DNPAH.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1696},"packages/plugins/plugin-conductor/dist/lib/node/intent-resolver-LR2DNPAH.cjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-QBA2VGYG.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytesInOutput":695}},"bytes":961},"packages/plugins/plugin-conductor/dist/lib/node/chunk-QBA2VGYG.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1192},"packages/plugins/plugin-conductor/dist/lib/node/chunk-QBA2VGYG.cjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["ConductorAction"],"inputs":{"packages/plugins/plugin-conductor/src/types.ts":{"bytesInOutput":518}},"bytes":703},"packages/plugins/plugin-conductor/dist/lib/node/CanvasContainer-OINWTW67.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7461},"packages/plugins/plugin-conductor/dist/lib/node/CanvasContainer-OINWTW67.cjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["CanvasContainer","default"],"entryPoint":"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx","inputs":{"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx":{"bytesInOutput":3559}},"bytes":3753},"packages/plugins/plugin-conductor/dist/lib/node/react-surface-IZDIYH3T.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1762},"packages/plugins/plugin-conductor/dist/lib/node/react-surface-IZDIYH3T.cjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/dist/lib/node/CanvasContainer-OINWTW67.cjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx":{"bytesInOutput":562},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytesInOutput":106}},"bytes":1034},"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1065},"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs":{"imports":[],"exports":["CONDUCTOR_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytesInOutput":590}},"bytes":723}}}
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytes":2262,"imports":[],"format":"esm"},"packages/plugins/plugin-conductor/src/types.ts":{"bytes":2361,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytes":3436,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx":{"bytes":12481,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytes":776,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx","kind":"dynamic-import","original":"./CanvasContainer"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx":{"bytes":2925,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/index.ts":{"bytes":1052,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-conductor/src/translations.ts":{"bytes":2358,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx":{"bytes":8046,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-conductor/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-conductor/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-conductor/src/index.ts":{"bytes":572,"imports":[{"path":"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx","kind":"import-statement","original":"./ConductorPlugin"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-conductor/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5507},"packages/plugins/plugin-conductor/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-QBA2VGYG.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/dist/lib/node/intent-resolver-LR2DNPAH.cjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-conductor/dist/lib/node/react-surface-5UCYIK4Q.cjs","kind":"dynamic-import"},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["CONDUCTOR_PLUGIN","ConductorPlugin","meta"],"entryPoint":"packages/plugins/plugin-conductor/src/index.ts","inputs":{"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx":{"bytesInOutput":1777},"packages/plugins/plugin-conductor/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/plugin-conductor/src/translations.ts":{"bytesInOutput":547},"packages/plugins/plugin-conductor/src/index.ts":{"bytesInOutput":0}},"bytes":2978},"packages/plugins/plugin-conductor/dist/lib/node/types.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-conductor/dist/lib/node/types.cjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-QBA2VGYG.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs","kind":"import-statement"}],"exports":["ConductorAction"],"entryPoint":"packages/plugins/plugin-conductor/src/types.ts","inputs":{},"bytes":154},"packages/plugins/plugin-conductor/dist/lib/node/intent-resolver-LR2DNPAH.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1696},"packages/plugins/plugin-conductor/dist/lib/node/intent-resolver-LR2DNPAH.cjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-QBA2VGYG.cjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytesInOutput":695}},"bytes":961},"packages/plugins/plugin-conductor/dist/lib/node/chunk-QBA2VGYG.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1192},"packages/plugins/plugin-conductor/dist/lib/node/chunk-QBA2VGYG.cjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["ConductorAction"],"inputs":{"packages/plugins/plugin-conductor/src/types.ts":{"bytesInOutput":518}},"bytes":703},"packages/plugins/plugin-conductor/dist/lib/node/CanvasContainer-BORU64NX.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6800},"packages/plugins/plugin-conductor/dist/lib/node/CanvasContainer-BORU64NX.cjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["CanvasContainer","default"],"entryPoint":"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx","inputs":{"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx":{"bytesInOutput":3278}},"bytes":3472},"packages/plugins/plugin-conductor/dist/lib/node/react-surface-5UCYIK4Q.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1762},"packages/plugins/plugin-conductor/dist/lib/node/react-surface-5UCYIK4Q.cjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/dist/lib/node/CanvasContainer-BORU64NX.cjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx":{"bytesInOutput":562},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytesInOutput":106}},"bytes":1034},"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1065},"packages/plugins/plugin-conductor/dist/lib/node/chunk-V22Y2ZJE.cjs":{"imports":[],"exports":["CONDUCTOR_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytesInOutput":590}},"bytes":723}}}
|
|
@@ -26,18 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var react_surface_5UCYIK4Q_exports = {};
|
|
30
|
+
__export(react_surface_5UCYIK4Q_exports, {
|
|
31
31
|
default: () => react_surface_default
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(react_surface_5UCYIK4Q_exports);
|
|
34
34
|
var import_chunk_V22Y2ZJE = require("./chunk-V22Y2ZJE.cjs");
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_app_framework = require("@dxos/app-framework");
|
|
37
37
|
var import_echo = require("@dxos/echo");
|
|
38
38
|
var import_react_ui_canvas_editor = require("@dxos/react-ui-canvas-editor");
|
|
39
39
|
var import_react2 = require("react");
|
|
40
|
-
var CanvasContainer = (0, import_react2.lazy)(() => import("./CanvasContainer-
|
|
40
|
+
var CanvasContainer = (0, import_react2.lazy)(() => import("./CanvasContainer-BORU64NX.cjs"));
|
|
41
41
|
var react_surface_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.ReactSurface, (0, import_app_framework.createSurface)({
|
|
42
42
|
id: import_chunk_V22Y2ZJE.CONDUCTOR_PLUGIN,
|
|
43
43
|
role: [
|
|
@@ -50,4 +50,4 @@ var react_surface_default = () => (0, import_app_framework.contributes)(import_a
|
|
|
50
50
|
role
|
|
51
51
|
})
|
|
52
52
|
}));
|
|
53
|
-
//# sourceMappingURL=react-surface-
|
|
53
|
+
//# sourceMappingURL=react-surface-5UCYIK4Q.cjs.map
|
|
@@ -3,28 +3,22 @@ import { createRequire } from 'node:module';const require = createRequire(import
|
|
|
3
3
|
// packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx
|
|
4
4
|
import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
|
|
5
5
|
import React, { useEffect, useMemo, useRef } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { ComputeGraphModel
|
|
8
|
-
import {
|
|
6
|
+
import { EdgeAiServiceClient } from "@dxos/ai";
|
|
7
|
+
import { ComputeGraphModel } from "@dxos/conductor";
|
|
8
|
+
import { AiService, DatabaseService, QueueService, ServiceContainer } from "@dxos/functions";
|
|
9
9
|
import { useConfig } from "@dxos/react-client";
|
|
10
10
|
import { fullyQualifiedId, getSpace } from "@dxos/react-client/echo";
|
|
11
11
|
import { ComputeContext, ComputeGraphController, ComputeShapeLayout, computeShapes, useComputeGraphController, useGraphMonitor } from "@dxos/react-ui-canvas-compute";
|
|
12
12
|
import { CanvasGraphModel, Editor, KeyboardContainer, ShapeRegistry } from "@dxos/react-ui-canvas-editor";
|
|
13
13
|
import { StackItem } from "@dxos/react-ui-stack";
|
|
14
14
|
var createServices = (config, space) => {
|
|
15
|
-
return {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
gpt: config.values.runtime?.services?.ai?.server == null ? void 0 : new EdgeGpt(new AIServiceEdgeClient({
|
|
15
|
+
return new ServiceContainer().setServices({
|
|
16
|
+
database: space == null ? void 0 : DatabaseService.make(space.db),
|
|
17
|
+
queues: space == null ? void 0 : QueueService.make(space.queues, void 0),
|
|
18
|
+
ai: config.values.runtime?.services?.ai?.server == null ? void 0 : AiService.make(new EdgeAiServiceClient({
|
|
21
19
|
endpoint: config.values.runtime?.services?.ai?.server
|
|
22
|
-
}))
|
|
23
|
-
|
|
24
|
-
socketEndpoint: config.values.runtime?.services?.edge?.url
|
|
25
|
-
}),
|
|
26
|
-
edgeHttpClient: config.values.runtime?.services?.edge?.url == null ? void 0 : new EdgeHttpClient(config.values.runtime?.services?.edge?.url)
|
|
27
|
-
};
|
|
20
|
+
}))
|
|
21
|
+
});
|
|
28
22
|
};
|
|
29
23
|
var useGraphController = (canvas) => {
|
|
30
24
|
const config = useConfig();
|
|
@@ -34,8 +28,7 @@ var useGraphController = (canvas) => {
|
|
|
34
28
|
return null;
|
|
35
29
|
}
|
|
36
30
|
const model = new ComputeGraphModel(canvas.computeGraph?.target);
|
|
37
|
-
const controller2 = new ComputeGraphController(model);
|
|
38
|
-
controller2.setServices(createServices(config, space));
|
|
31
|
+
const controller2 = new ComputeGraphController(createServices(config, space), model);
|
|
39
32
|
return controller2;
|
|
40
33
|
}, [
|
|
41
34
|
canvas.computeGraph?.target,
|
|
@@ -104,4 +97,4 @@ export {
|
|
|
104
97
|
CanvasContainer,
|
|
105
98
|
CanvasContainer_default as default
|
|
106
99
|
};
|
|
107
|
-
//# sourceMappingURL=CanvasContainer-
|
|
100
|
+
//# sourceMappingURL=CanvasContainer-XFNPFWLN.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
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 { EdgeAiServiceClient } from '@dxos/ai';\nimport { type Config } from '@dxos/client';\nimport { ComputeGraphModel } from '@dxos/conductor';\nimport { AiService, 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(new EdgeAiServiceClient({ 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 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,2BAA2B;AAEpC,SAASC,yBAAyB;AAClC,SAASC,WAAWC,iBAAiBC,cAAcC,wBAAwB;AAC3E,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,KAAK,IAAIU,oBAAoB;MAAEC,UAAUlB,OAAOY,OAAOC,SAASC,UAAUH,IAAII;IAAO,CAAA,CAAA;EACvG,CAAA;AACF;AAEA,IAAMI,qBAAqB,CAACC,WAAAA;AAC1B,QAAMpB,SAASqB,UAAAA;AACf,QAAMpB,QAAQqB,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,uBAAuB9B,eAAeC,QAAQC,KAAAA,GAAQ0B,KAAAA;AAC7E,WAAOJ;EACT,GAAG;IAACH,OAAOK,cAAcC;IAAQzB;GAAM;AAEvC6B,YAAU,MAAA;AACR,QAAI,CAACP,YAAY;AACf;IACF;AACA,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,IAAYtC,QAC/E;MAACkB;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", "EdgeAiServiceClient", "ComputeGraphModel", "AiService", "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", "EdgeAiServiceClient", "endpoint", "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
|
+
}
|
|
@@ -19,15 +19,19 @@ import { CanvasBoardType as CanvasBoardType2 } from "@dxos/react-ui-canvas-edito
|
|
|
19
19
|
// packages/plugins/plugin-conductor/src/capabilities/index.ts
|
|
20
20
|
import { lazy } from "@dxos/app-framework";
|
|
21
21
|
var IntentResolver = lazy(() => import("./intent-resolver-OMXIT5KT.mjs"));
|
|
22
|
-
var ReactSurface = lazy(() => import("./react-surface-
|
|
22
|
+
var ReactSurface = lazy(() => import("./react-surface-WZFA32UY.mjs"));
|
|
23
23
|
|
|
24
24
|
// packages/plugins/plugin-conductor/src/translations.ts
|
|
25
|
+
import { Type } from "@dxos/echo";
|
|
25
26
|
import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
|
|
26
27
|
var translations_default = [
|
|
27
28
|
{
|
|
28
29
|
"en-US": {
|
|
29
|
-
[CanvasBoardType
|
|
30
|
+
[Type.getTypename(CanvasBoardType)]: {
|
|
30
31
|
"typename label": "Circuit",
|
|
32
|
+
"typename label_zero": "Circuits",
|
|
33
|
+
"typename label_one": "Circuit",
|
|
34
|
+
"typename label_other": "Circuits",
|
|
31
35
|
"object name placeholder": "New circuit"
|
|
32
36
|
},
|
|
33
37
|
[CONDUCTOR_PLUGIN]: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/ConductorPlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { FunctionTrigger } from '@dxos/functions';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\nimport { ConductorAction } from './types';\n\nexport const ConductorPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: CanvasBoardType.typename,\n metadata: {\n icon: 'ph--infinity--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: CanvasBoardType,\n getIntent: () => createIntent(ConductorAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, [ComputeGraph, FunctionTrigger]),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CONDUCTOR_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [CanvasBoardType
|
|
5
|
-
"mappings": ";;;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAcC,cAAc;AAC5F,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,oBAAoBC,oBAAoB;AACjD,SAASC,yBAAyB;AAClC,SAASC,wBAAwB;AACjC,SAASC,mBAAAA,wBAAuB;;;ACNhC,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,eAAeD,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACH9C,SAASE,uBAAuB;AAIhC,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACC,
|
|
6
|
-
"names": ["Capabilities", "contributes", "createIntent", "defineModule", "definePlugin", "Events", "ComputeGraph", "FunctionTrigger", "ClientCapabilities", "ClientEvents", "SpaceCapabilities", "defineObjectForm", "CanvasBoardType", "lazy", "IntentResolver", "lazy", "ReactSurface", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { FunctionTrigger } from '@dxos/functions';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\nimport { ConductorAction } from './types';\n\nexport const ConductorPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: CanvasBoardType.typename,\n metadata: {\n icon: 'ph--infinity--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: CanvasBoardType,\n getIntent: () => createIntent(ConductorAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, [ComputeGraph, FunctionTrigger]),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Type } from '@dxos/echo';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CONDUCTOR_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [Type.getTypename(CanvasBoardType)]: {\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 },\n [CONDUCTOR_PLUGIN]: {\n 'plugin name': 'Conductor',\n 'content placeholder': 'Enter text...',\n },\n },\n },\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAcC,cAAc;AAC5F,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;AAChC,SAASC,oBAAoBC,oBAAoB;AACjD,SAASC,yBAAyB;AAClC,SAASC,wBAAwB;AACjC,SAASC,mBAAAA,wBAAuB;;;ACNhC,SAASC,YAAY;AAEd,IAAMC,iBAAiBC,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,eAAeD,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACH9C,SAASE,YAAY;AACrB,SAASC,uBAAuB;AAIhC,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACC,KAAKC,YAAYC,eAAAA,CAAAA,GAAmB;QACnC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;MAC7B;MACA,CAACC,gBAAAA,GAAmB;QAClB,eAAe;QACf,uBAAuB;MACzB;IACF;EACF;;;;AFPK,IAAMC,kBAAkB,MAC7BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,oBAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOO;IACpBL,UAAU,MACRC,YAAYC,aAAaI,UAAU;MACjCV,IAAIW,iBAAgBC;MACpBC,UAAU;QACRC,MAAM;MACR;IACF,CAAA;EACJ,CAAA;EACAf,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAac,aAAaC;IAC1BZ,UAAU,MACRC,YACEY,kBAAkBC,YAClBC,iBAAiB;MACfC,cAAcT;MACdU,WAAW,MAAMC,aAAaC,gBAAgBC,MAAM;IACtD,CAAA,CAAA;EAEN,CAAA;EACAzB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAac,aAAaC;IAC1BZ,UAAU,MAAMC,YAAYoB,mBAAmBC,QAAQ;MAACC;MAAcC;KAAgB;EACxF,CAAA;EACA7B,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAO2B;IACpBzB,UAAU0B;EACZ,CAAA;EACA/B,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAO6B;IACpB3B,UAAU4B;EACZ,CAAA;CACD;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "createIntent", "defineModule", "definePlugin", "Events", "ComputeGraph", "FunctionTrigger", "ClientCapabilities", "ClientEvents", "SpaceCapabilities", "defineObjectForm", "CanvasBoardType", "lazy", "IntentResolver", "lazy", "ReactSurface", "Type", "CanvasBoardType", "Type", "getTypename", "CanvasBoardType", "CONDUCTOR_PLUGIN", "ConductorPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "CanvasBoardType", "typename", "metadata", "icon", "ClientEvents", "SetupSchema", "SpaceCapabilities", "ObjectForm", "defineObjectForm", "objectSchema", "getIntent", "createIntent", "ConductorAction", "Create", "ClientCapabilities", "Schema", "ComputeGraph", "FunctionTrigger", "SetupReactSurface", "ReactSurface", "SetupIntentResolver", "IntentResolver"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytes":2262,"imports":[],"format":"esm"},"packages/plugins/plugin-conductor/src/types.ts":{"bytes":2361,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytes":3436,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx":{"bytes":13687,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytes":776,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx","kind":"dynamic-import","original":"./CanvasContainer"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx":{"bytes":2925,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/index.ts":{"bytes":1052,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-conductor/src/translations.ts":{"bytes":1814,"imports":[{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx":{"bytes":8046,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-conductor/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-conductor/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-conductor/src/index.ts":{"bytes":572,"imports":[{"path":"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx","kind":"import-statement","original":"./ConductorPlugin"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-conductor/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5245},"packages/plugins/plugin-conductor/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-7644E2YF.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/intent-resolver-OMXIT5KT.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/react-surface-J5XANJ2Q.mjs","kind":"dynamic-import"},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["CONDUCTOR_PLUGIN","ConductorPlugin","meta"],"entryPoint":"packages/plugins/plugin-conductor/src/index.ts","inputs":{"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx":{"bytesInOutput":1777},"packages/plugins/plugin-conductor/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/plugin-conductor/src/translations.ts":{"bytesInOutput":375},"packages/plugins/plugin-conductor/src/index.ts":{"bytesInOutput":0}},"bytes":2898},"packages/plugins/plugin-conductor/dist/lib/node-esm/types.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-conductor/dist/lib/node-esm/types.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-7644E2YF.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs","kind":"import-statement"}],"exports":["ConductorAction"],"entryPoint":"packages/plugins/plugin-conductor/src/types.ts","inputs":{},"bytes":246},"packages/plugins/plugin-conductor/dist/lib/node-esm/intent-resolver-OMXIT5KT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1697},"packages/plugins/plugin-conductor/dist/lib/node-esm/intent-resolver-OMXIT5KT.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-7644E2YF.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytesInOutput":695}},"bytes":1053},"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-7644E2YF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1193},"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-7644E2YF.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["ConductorAction"],"inputs":{"packages/plugins/plugin-conductor/src/types.ts":{"bytesInOutput":518}},"bytes":795},"packages/plugins/plugin-conductor/dist/lib/node-esm/CanvasContainer-BTAYISKF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7463},"packages/plugins/plugin-conductor/dist/lib/node-esm/CanvasContainer-BTAYISKF.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["CanvasContainer","default"],"entryPoint":"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx","inputs":{"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx":{"bytesInOutput":3559}},"bytes":3846},"packages/plugins/plugin-conductor/dist/lib/node-esm/react-surface-J5XANJ2Q.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1763},"packages/plugins/plugin-conductor/dist/lib/node-esm/react-surface-J5XANJ2Q.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/CanvasContainer-BTAYISKF.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx":{"bytesInOutput":562},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytesInOutput":106}},"bytes":1126},"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1067},"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs":{"imports":[],"exports":["CONDUCTOR_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytesInOutput":590}},"bytes":816}}}
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytes":2262,"imports":[],"format":"esm"},"packages/plugins/plugin-conductor/src/types.ts":{"bytes":2361,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytes":3436,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx":{"bytes":12481,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytes":776,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx","kind":"dynamic-import","original":"./CanvasContainer"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx":{"bytes":2925,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/capabilities/index.ts":{"bytes":1052,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-conductor/src/translations.ts":{"bytes":2358,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx":{"bytes":8046,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-conductor/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-conductor/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-conductor/src/index.ts":{"bytes":572,"imports":[{"path":"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx","kind":"import-statement","original":"./ConductorPlugin"},{"path":"packages/plugins/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-conductor/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5508},"packages/plugins/plugin-conductor/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-7644E2YF.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/intent-resolver-OMXIT5KT.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/react-surface-WZFA32UY.mjs","kind":"dynamic-import"},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["CONDUCTOR_PLUGIN","ConductorPlugin","meta"],"entryPoint":"packages/plugins/plugin-conductor/src/index.ts","inputs":{"packages/plugins/plugin-conductor/src/ConductorPlugin.tsx":{"bytesInOutput":1777},"packages/plugins/plugin-conductor/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/plugin-conductor/src/translations.ts":{"bytesInOutput":547},"packages/plugins/plugin-conductor/src/index.ts":{"bytesInOutput":0}},"bytes":3070},"packages/plugins/plugin-conductor/dist/lib/node-esm/types.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-conductor/dist/lib/node-esm/types.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-7644E2YF.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs","kind":"import-statement"}],"exports":["ConductorAction"],"entryPoint":"packages/plugins/plugin-conductor/src/types.ts","inputs":{},"bytes":246},"packages/plugins/plugin-conductor/dist/lib/node-esm/intent-resolver-OMXIT5KT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1697},"packages/plugins/plugin-conductor/dist/lib/node-esm/intent-resolver-OMXIT5KT.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-7644E2YF.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytesInOutput":695}},"bytes":1053},"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-7644E2YF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1193},"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-7644E2YF.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["ConductorAction"],"inputs":{"packages/plugins/plugin-conductor/src/types.ts":{"bytesInOutput":518}},"bytes":795},"packages/plugins/plugin-conductor/dist/lib/node-esm/CanvasContainer-XFNPFWLN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6802},"packages/plugins/plugin-conductor/dist/lib/node-esm/CanvasContainer-XFNPFWLN.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ai","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["CanvasContainer","default"],"entryPoint":"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx","inputs":{"packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx":{"bytesInOutput":3278}},"bytes":3565},"packages/plugins/plugin-conductor/dist/lib/node-esm/react-surface-WZFA32UY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1763},"packages/plugins/plugin-conductor/dist/lib/node-esm/react-surface-WZFA32UY.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-conductor/dist/lib/node-esm/CanvasContainer-XFNPFWLN.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx":{"bytesInOutput":562},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytesInOutput":106}},"bytes":1126},"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1067},"packages/plugins/plugin-conductor/dist/lib/node-esm/chunk-PYF2G3G4.mjs":{"imports":[],"exports":["CONDUCTOR_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytesInOutput":590}},"bytes":816}}}
|
|
@@ -11,7 +11,7 @@ import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
|
|
|
11
11
|
|
|
12
12
|
// packages/plugins/plugin-conductor/src/components/index.ts
|
|
13
13
|
import { lazy } from "react";
|
|
14
|
-
var CanvasContainer = lazy(() => import("./CanvasContainer-
|
|
14
|
+
var CanvasContainer = lazy(() => import("./CanvasContainer-XFNPFWLN.mjs"));
|
|
15
15
|
|
|
16
16
|
// packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx
|
|
17
17
|
var react_surface_default = () => contributes(Capabilities.ReactSurface, createSurface({
|
|
@@ -29,4 +29,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, createS
|
|
|
29
29
|
export {
|
|
30
30
|
react_surface_default as default
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=react-surface-
|
|
32
|
+
//# sourceMappingURL=react-surface-WZFA32UY.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CanvasContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAiB1D,OAAO,EACL,KAAK,eAAe,EAMrB,MAAM,8BAA8B,CAAC;AAuCtC,eAAO,MAAM,eAAe,GAAI,kBAAkB;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,kCAsC1F,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
import { CanvasBoardType } from '@dxos/react-ui-canvas-editor';
|
|
2
1
|
declare const _default: {
|
|
3
2
|
'en-US': {
|
|
4
|
-
[
|
|
3
|
+
[x: string]: {
|
|
5
4
|
'typename label': string;
|
|
5
|
+
'typename label_zero': string;
|
|
6
|
+
'typename label_one': string;
|
|
7
|
+
'typename label_other': string;
|
|
6
8
|
'object name placeholder': string;
|
|
9
|
+
'plugin name'?: undefined;
|
|
10
|
+
'content placeholder'?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
'plugin name': string;
|
|
13
|
+
'content placeholder': string;
|
|
14
|
+
'typename label'?: undefined;
|
|
15
|
+
'typename label_zero'?: undefined;
|
|
16
|
+
'typename label_one'?: undefined;
|
|
17
|
+
'typename label_other'?: undefined;
|
|
18
|
+
'object name placeholder'?: undefined;
|
|
7
19
|
};
|
|
8
20
|
"dxos.org/plugin/conductor": {
|
|
9
21
|
'plugin name': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBAgBE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-conductor",
|
|
3
|
-
"version": "0.8.3
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "Composer plugin for conductor.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@preact-signals/safe-react": "^0.9.0",
|
|
37
37
|
"effect": "3.14.21",
|
|
38
|
-
"@dxos/ai": "0.8.3
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/echo": "0.8.3
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/log": "0.8.3
|
|
47
|
-
"@dxos/plugin-client": "0.8.3
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/plugin-space": "0.8.3
|
|
50
|
-
"@dxos/react-
|
|
51
|
-
"@dxos/react-
|
|
52
|
-
"@dxos/react-ui-canvas-editor": "0.8.3
|
|
53
|
-
"@dxos/react-ui-stack": "0.8.3
|
|
38
|
+
"@dxos/ai": "0.8.3",
|
|
39
|
+
"@dxos/app-framework": "0.8.3",
|
|
40
|
+
"@dxos/assistant": "0.8.3",
|
|
41
|
+
"@dxos/conductor": "0.8.3",
|
|
42
|
+
"@dxos/echo": "0.8.3",
|
|
43
|
+
"@dxos/edge-client": "0.8.3",
|
|
44
|
+
"@dxos/functions": "0.8.3",
|
|
45
|
+
"@dxos/live-object": "0.8.3",
|
|
46
|
+
"@dxos/log": "0.8.3",
|
|
47
|
+
"@dxos/plugin-client": "0.8.3",
|
|
48
|
+
"@dxos/echo-schema": "0.8.3",
|
|
49
|
+
"@dxos/plugin-space": "0.8.3",
|
|
50
|
+
"@dxos/react-ui-canvas-compute": "0.8.3",
|
|
51
|
+
"@dxos/react-client": "0.8.3",
|
|
52
|
+
"@dxos/react-ui-canvas-editor": "0.8.3",
|
|
53
|
+
"@dxos/react-ui-stack": "0.8.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/react": "~18.2.0",
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"react": "~18.2.0",
|
|
59
59
|
"react-dom": "~18.2.0",
|
|
60
60
|
"vite": "5.4.7",
|
|
61
|
-
"@dxos/react-ui": "0.8.3
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
61
|
+
"@dxos/react-ui": "0.8.3",
|
|
62
|
+
"@dxos/react-ui-theme": "0.8.3",
|
|
63
|
+
"@dxos/storybook-utils": "0.8.3"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"effect": "^3.13.3",
|
|
67
67
|
"react": "~18.2.0",
|
|
68
68
|
"react-dom": "~18.2.0",
|
|
69
|
-
"@dxos/react-ui": "0.8.3
|
|
70
|
-
"@dxos/react-ui-theme": "0.8.3
|
|
69
|
+
"@dxos/react-ui": "0.8.3",
|
|
70
|
+
"@dxos/react-ui-theme": "0.8.3"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import React, { useEffect, useMemo, useRef } from 'react';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { EdgeAiServiceClient } from '@dxos/ai';
|
|
8
8
|
import { type Config } from '@dxos/client';
|
|
9
|
-
import { ComputeGraphModel
|
|
10
|
-
import {
|
|
9
|
+
import { ComputeGraphModel } from '@dxos/conductor';
|
|
10
|
+
import { AiService, DatabaseService, QueueService, ServiceContainer } from '@dxos/functions';
|
|
11
11
|
import { useConfig } from '@dxos/react-client';
|
|
12
12
|
import { fullyQualifiedId, getSpace, type Space } from '@dxos/react-client/echo';
|
|
13
13
|
import {
|
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
ComputeGraphController,
|
|
16
16
|
type ComputeShape,
|
|
17
17
|
ComputeShapeLayout,
|
|
18
|
-
type Services,
|
|
19
18
|
computeShapes,
|
|
20
19
|
useComputeGraphController,
|
|
21
20
|
useGraphMonitor,
|
|
@@ -30,28 +29,15 @@ import {
|
|
|
30
29
|
} from '@dxos/react-ui-canvas-editor';
|
|
31
30
|
import { StackItem } from '@dxos/react-ui-stack';
|
|
32
31
|
|
|
33
|
-
const createServices = (config: Config, space?: Space):
|
|
34
|
-
return {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
: {
|
|
39
|
-
spaceId: space.id,
|
|
40
|
-
db: space.db,
|
|
41
|
-
},
|
|
42
|
-
gpt:
|
|
32
|
+
const createServices = (config: Config, space?: Space): ServiceContainer => {
|
|
33
|
+
return new ServiceContainer().setServices({
|
|
34
|
+
database: space == null ? undefined : DatabaseService.make(space.db),
|
|
35
|
+
queues: space == null ? undefined : QueueService.make(space.queues, undefined),
|
|
36
|
+
ai:
|
|
43
37
|
config.values.runtime?.services?.ai?.server == null
|
|
44
38
|
? undefined
|
|
45
|
-
:
|
|
46
|
-
|
|
47
|
-
config.values.runtime?.services?.edge?.url == null
|
|
48
|
-
? undefined
|
|
49
|
-
: new EdgeClient(createStubEdgeIdentity(), { socketEndpoint: config.values.runtime?.services?.edge?.url }),
|
|
50
|
-
edgeHttpClient:
|
|
51
|
-
config.values.runtime?.services?.edge?.url == null
|
|
52
|
-
? undefined
|
|
53
|
-
: new EdgeHttpClient(config.values.runtime?.services?.edge?.url),
|
|
54
|
-
};
|
|
39
|
+
: AiService.make(new EdgeAiServiceClient({ endpoint: config.values.runtime?.services?.ai?.server })),
|
|
40
|
+
});
|
|
55
41
|
};
|
|
56
42
|
|
|
57
43
|
const useGraphController = (canvas: CanvasBoardType) => {
|
|
@@ -62,8 +48,7 @@ const useGraphController = (canvas: CanvasBoardType) => {
|
|
|
62
48
|
return null;
|
|
63
49
|
}
|
|
64
50
|
const model = new ComputeGraphModel(canvas.computeGraph?.target);
|
|
65
|
-
const controller = new ComputeGraphController(model);
|
|
66
|
-
controller.setServices(createServices(config, space));
|
|
51
|
+
const controller = new ComputeGraphController(createServices(config, space), model);
|
|
67
52
|
return controller;
|
|
68
53
|
}, [canvas.computeGraph?.target, space]);
|
|
69
54
|
|
package/src/translations.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { Type } from '@dxos/echo';
|
|
5
6
|
import { CanvasBoardType } from '@dxos/react-ui-canvas-editor';
|
|
6
7
|
|
|
7
8
|
import { CONDUCTOR_PLUGIN } from './meta';
|
|
@@ -9,8 +10,11 @@ import { CONDUCTOR_PLUGIN } from './meta';
|
|
|
9
10
|
export default [
|
|
10
11
|
{
|
|
11
12
|
'en-US': {
|
|
12
|
-
[CanvasBoardType
|
|
13
|
+
[Type.getTypename(CanvasBoardType)]: {
|
|
13
14
|
'typename label': 'Circuit',
|
|
15
|
+
'typename label_zero': 'Circuits',
|
|
16
|
+
'typename label_one': 'Circuit',
|
|
17
|
+
'typename label_other': 'Circuits',
|
|
14
18
|
'object name placeholder': 'New circuit',
|
|
15
19
|
},
|
|
16
20
|
[CONDUCTOR_PLUGIN]: {
|
|
@@ -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 { AIServiceEdgeClient } from '@dxos/ai';\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 type Services,\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): 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 AIServiceEdgeClient({ 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 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,2BAA2B;AAEpC,SAASC,mBAAmBC,eAAe;AAC3C,SAASC,wBAAwBC,YAAYC,sBAAsB;AACnE,SAASC,iBAAiB;AAC1B,SAASC,kBAAkBC,gBAA4B;AACvD,SACEC,gBACAC,wBAEAC,oBAEAC,eACAC,2BACAC,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,SAASC,UAAUO,MAAMC,OAAO,OAC1Cf,SACA,IAAIoB,eAAevB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC,GAAAA;EAClE;AACF;AAEA,IAAMM,qBAAqB,CAACC,WAAAA;AAC1B,QAAMzB,SAAS0B,UAAAA;AACf,QAAMzB,QAAQ0B,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,uBAAuBF,KAAAA;AAC9CJ,IAAAA,YAAWO,YAAYpC,eAAeC,QAAQC,KAAAA,CAAAA;AAC9C,WAAO2B;EACT,GAAG;IAACH,OAAOK,cAAcC;IAAQ9B;GAAM;AAEvCmC,YAAU,MAAA;AACR,QAAI,CAACR,YAAY;AACf;IACF;AACA,SAAKA,WAAWS,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,UAAMnC,KAAKoC,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,IAAY7C,QAC/E;MAACyB;MAAYoB;KAAS;AAGxB,QAAI,CAACpB,YAAY;AACf;IACF;AAEA,WACE,sBAAA,cAAC2B,eAAeC,UAAQ;MAACC,OAAO;QAAE7B;MAAW;OAC3C,sBAAA,cAAC8B,UAAUC,SAAO;MAACC,MAAMpB,SAAS,YAAY,WAAW;OACvD,sBAAA,cAACqB,mBAAAA;MAAkBxD;OACjB,sBAAA,cAACyD,OAAOC,MAAI;MACV1D;MACA2D,KAAKb;MACLT;MACAI;MACAE;MACAH;OAEA,sBAAA,cAACiB,OAAOG,QAAM,IAAA,GACd,sBAAA,cAACH,OAAOI,IAAE;MAACC,WAAAA;;;;;AAMvB;AAEA,IAAA,0BAAe5B;",
|
|
6
|
-
"names": ["React", "useEffect", "useMemo", "useRef", "AIServiceEdgeClient", "ComputeGraphModel", "EdgeGpt", "createStubEdgeIdentity", "EdgeClient", "EdgeHttpClient", "useConfig", "fullyQualifiedId", "getSpace", "ComputeContext", "ComputeGraphController", "ComputeShapeLayout", "computeShapes", "useComputeGraphController", "useGraphMonitor", "CanvasGraphModel", "Editor", "KeyboardContainer", "ShapeRegistry", "StackItem", "createServices", "config", "space", "spaceService", "undefined", "spaceId", "id", "db", "gpt", "values", "runtime", "services", "ai", "server", "EdgeGpt", "AIServiceEdgeClient", "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", "useComputeGraphController", "ComputeShapeLayout", "ComputeContext", "Provider", "value", "StackItem", "Content", "size", "KeyboardContainer", "Editor", "Root", "ref", "Canvas", "UI", "showTools"]
|
|
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 { AIServiceEdgeClient } from '@dxos/ai';\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 type Services,\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): 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 AIServiceEdgeClient({ 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 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,mBAAkD;AAElD,gBAAoC;AAEpC,uBAA2C;AAC3C,yBAAmE;AACnE,0BAA0B;AAC1B,kBAAuD;AACvD,qCASO;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,8BAAoB;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,OAAOK,cAAcC,QAAQ;AAChC,aAAO;IACT;AACA,UAAMC,QAAQ,IAAIC,mCAAkBR,OAAOK,cAAcC,MAAAA;AACzD,UAAMH,cAAa,IAAIM,sDAAuBF,KAAAA;AAC9CJ,gBAAWO,YAAYpC,eAAeC,QAAQC,KAAAA,CAAAA;AAC9C,WAAO2B;EACT,GAAG;IAACH,OAAOK,cAAcC;IAAQ9B;GAAM;AAEvCmC,8BAAU,MAAA;AACR,QAAI,CAACR,YAAY;AACf;IACF;AACA,SAAKA,WAAWS,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,UAAMnC,SAAKoC,8BAAiBhB,MAAAA;AAC5B,UAAMiB,YAAQb,sBAAQ,MAAMc,+CAAiBC,OAAqBnB,OAAOoB,MAAM,GAAG;MAACpB,OAAOoB;KAAO;AACjG,UAAMjB,aAAaJ,mBAAmBC,MAAAA;AACtC,UAAMqB,mBAAeC,gDAAgBnB,YAAYc,KAAAA;AACjD,UAAMM,eAAWnB,sBAAQ,MAAM,IAAIoB,4CAAcC,4CAAAA,GAAgB,CAAA,CAAE;AACnE,UAAMC,gBAAYC,qBAAyB,IAAA;AAC3CC,kEAA0B;MAAEzB;MAAYc;MAAOS;IAAU,CAAA;AAGzD,UAAMN,aAAShB,sBACb,MAAOD,cAAcoB,WAAW,IAAIM,kDAAmB1B,YAAYoB,QAAAA,IAAY7C,QAC/E;MAACyB;MAAYoB;KAAS;AAGxB,QAAI,CAACpB,YAAY;AACf;IACF;AAEA,WACE,6BAAA2B,QAAA,cAACC,8CAAeC,UAAQ;MAACC,OAAO;QAAE9B;MAAW;OAC3C,6BAAA2B,QAAA,cAACI,gCAAUC,SAAO;MAACC,MAAMrB,SAAS,YAAY,WAAW;OACvD,6BAAAe,QAAA,cAACO,iDAAAA;MAAkBzD;OACjB,6BAAAkD,QAAA,cAACQ,qCAAOC,MAAI;MACV3D;MACA4D,KAAKd;MACLT;MACAI;MACAE;MACAH;OAEA,6BAAAU,QAAA,cAACQ,qCAAOG,QAAM,IAAA,GACd,6BAAAX,QAAA,cAACQ,qCAAOI,IAAE;MAACC,WAAAA;;;;;AAMvB;AAEA,IAAA,0BAAe7B;",
|
|
6
|
-
"names": ["createServices", "config", "space", "spaceService", "undefined", "spaceId", "id", "db", "gpt", "values", "runtime", "services", "ai", "server", "EdgeGpt", "AIServiceEdgeClient", "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", "useComputeGraphController", "ComputeShapeLayout", "React", "ComputeContext", "Provider", "value", "StackItem", "Content", "size", "KeyboardContainer", "Editor", "Root", "ref", "Canvas", "UI", "showTools"]
|
|
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 { AIServiceEdgeClient } from '@dxos/ai';\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 type Services,\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): 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 AIServiceEdgeClient({ 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 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,2BAA2B;AAEpC,SAASC,mBAAmBC,eAAe;AAC3C,SAASC,wBAAwBC,YAAYC,sBAAsB;AACnE,SAASC,iBAAiB;AAC1B,SAASC,kBAAkBC,gBAA4B;AACvD,SACEC,gBACAC,wBAEAC,oBAEAC,eACAC,2BACAC,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,SAASC,UAAUO,MAAMC,OAAO,OAC1Cf,SACA,IAAIoB,eAAevB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC,GAAAA;EAClE;AACF;AAEA,IAAMM,qBAAqB,CAACC,WAAAA;AAC1B,QAAMzB,SAAS0B,UAAAA;AACf,QAAMzB,QAAQ0B,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,uBAAuBF,KAAAA;AAC9CJ,IAAAA,YAAWO,YAAYpC,eAAeC,QAAQC,KAAAA,CAAAA;AAC9C,WAAO2B;EACT,GAAG;IAACH,OAAOK,cAAcC;IAAQ9B;GAAM;AAEvCmC,YAAU,MAAA;AACR,QAAI,CAACR,YAAY;AACf;IACF;AACA,SAAKA,WAAWS,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,UAAMnC,KAAKoC,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,IAAY7C,QAC/E;MAACyB;MAAYoB;KAAS;AAGxB,QAAI,CAACpB,YAAY;AACf;IACF;AAEA,WACE,sBAAA,cAAC2B,eAAeC,UAAQ;MAACC,OAAO;QAAE7B;MAAW;OAC3C,sBAAA,cAAC8B,UAAUC,SAAO;MAACC,MAAMpB,SAAS,YAAY,WAAW;OACvD,sBAAA,cAACqB,mBAAAA;MAAkBxD;OACjB,sBAAA,cAACyD,OAAOC,MAAI;MACV1D;MACA2D,KAAKb;MACLT;MACAI;MACAE;MACAH;OAEA,sBAAA,cAACiB,OAAOG,QAAM,IAAA,GACd,sBAAA,cAACH,OAAOI,IAAE;MAACC,WAAAA;;;;;AAMvB;AAEA,IAAA,0BAAe5B;",
|
|
6
|
-
"names": ["React", "useEffect", "useMemo", "useRef", "AIServiceEdgeClient", "ComputeGraphModel", "EdgeGpt", "createStubEdgeIdentity", "EdgeClient", "EdgeHttpClient", "useConfig", "fullyQualifiedId", "getSpace", "ComputeContext", "ComputeGraphController", "ComputeShapeLayout", "computeShapes", "useComputeGraphController", "useGraphMonitor", "CanvasGraphModel", "Editor", "KeyboardContainer", "ShapeRegistry", "StackItem", "createServices", "config", "space", "spaceService", "undefined", "spaceId", "id", "db", "gpt", "values", "runtime", "services", "ai", "server", "EdgeGpt", "AIServiceEdgeClient", "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", "useComputeGraphController", "ComputeShapeLayout", "ComputeContext", "Provider", "value", "StackItem", "Content", "size", "KeyboardContainer", "Editor", "Root", "ref", "Canvas", "UI", "showTools"]
|
|
7
|
-
}
|
|
File without changes
|
|
File without changes
|
/package/dist/lib/node-esm/{react-surface-J5XANJ2Q.mjs.map → react-surface-WZFA32UY.mjs.map}
RENAMED
|
File without changes
|