@dxos/plugin-conductor 0.8.2-main.fbd8ed0 → 0.8.2-staging.42af850

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.
Files changed (46) hide show
  1. package/dist/lib/browser/{CanvasContainer-KJ3Y2QRX.mjs → CanvasContainer-7DXW45ZA.mjs} +45 -39
  2. package/dist/lib/browser/CanvasContainer-7DXW45ZA.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-VSTYUXGI.mjs → chunk-4EJT5EIW.mjs} +3 -3
  4. package/dist/lib/{node-esm/chunk-44LPGIKR.mjs.map → browser/chunk-4EJT5EIW.mjs.map} +1 -1
  5. package/dist/lib/browser/{chunk-O3LU2RKB.mjs → chunk-B4FDW7Y7.mjs} +3 -3
  6. package/dist/lib/browser/{chunk-O3LU2RKB.mjs.map → chunk-B4FDW7Y7.mjs.map} +1 -1
  7. package/dist/lib/browser/index.mjs +4 -4
  8. package/dist/lib/browser/{intent-resolver-YHUDYVNX.mjs → intent-resolver-35HKT5XG.mjs} +3 -3
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/{react-surface-7OKWJOIW.mjs → react-surface-A7LHKDE5.mjs} +3 -3
  11. package/dist/lib/browser/types.mjs +2 -2
  12. package/dist/lib/node/{CanvasContainer-BNGQERH6.cjs → CanvasContainer-OINWTW67.cjs} +49 -43
  13. package/dist/lib/node/CanvasContainer-OINWTW67.cjs.map +7 -0
  14. package/dist/lib/node/{chunk-KU5RXEFZ.cjs → chunk-QBA2VGYG.cjs} +7 -7
  15. package/dist/lib/node/{chunk-KU5RXEFZ.cjs.map → chunk-QBA2VGYG.cjs.map} +1 -1
  16. package/dist/lib/node/{chunk-EDRUCA3G.cjs → chunk-V22Y2ZJE.cjs} +6 -6
  17. package/dist/lib/node/{chunk-EDRUCA3G.cjs.map → chunk-V22Y2ZJE.cjs.map} +1 -1
  18. package/dist/lib/node/index.cjs +15 -15
  19. package/dist/lib/node/{intent-resolver-WLVMTXPH.cjs → intent-resolver-PHADGRJ2.cjs} +7 -7
  20. package/dist/lib/node/meta.json +1 -1
  21. package/dist/lib/node/{react-surface-MSYCREGI.cjs → react-surface-6L4K6LHA.cjs} +7 -7
  22. package/dist/lib/node/types.cjs +3 -3
  23. package/dist/lib/node/types.cjs.map +1 -1
  24. package/dist/lib/node-esm/{CanvasContainer-E2DRQKOP.mjs → CanvasContainer-BTAYISKF.mjs} +45 -39
  25. package/dist/lib/node-esm/CanvasContainer-BTAYISKF.mjs.map +7 -0
  26. package/dist/lib/node-esm/{chunk-44LPGIKR.mjs → chunk-7644E2YF.mjs} +3 -3
  27. package/dist/lib/{browser/chunk-VSTYUXGI.mjs.map → node-esm/chunk-7644E2YF.mjs.map} +1 -1
  28. package/dist/lib/node-esm/{chunk-CBKKOZWC.mjs → chunk-PYF2G3G4.mjs} +3 -3
  29. package/dist/lib/node-esm/{chunk-CBKKOZWC.mjs.map → chunk-PYF2G3G4.mjs.map} +1 -1
  30. package/dist/lib/node-esm/index.mjs +4 -4
  31. package/dist/lib/node-esm/{intent-resolver-GQYZ3WOY.mjs → intent-resolver-LKN6FO2X.mjs} +3 -3
  32. package/dist/lib/node-esm/meta.json +1 -1
  33. package/dist/lib/node-esm/{react-surface-2QW7VUYO.mjs → react-surface-ETZG4CR6.mjs} +3 -3
  34. package/dist/lib/node-esm/types.mjs +2 -2
  35. package/package.json +23 -21
  36. package/src/components/CanvasContainer.tsx +2 -2
  37. package/src/meta.ts +2 -2
  38. package/dist/lib/browser/CanvasContainer-KJ3Y2QRX.mjs.map +0 -7
  39. package/dist/lib/node/CanvasContainer-BNGQERH6.cjs.map +0 -7
  40. package/dist/lib/node-esm/CanvasContainer-E2DRQKOP.mjs.map +0 -7
  41. /package/dist/lib/browser/{intent-resolver-YHUDYVNX.mjs.map → intent-resolver-35HKT5XG.mjs.map} +0 -0
  42. /package/dist/lib/browser/{react-surface-7OKWJOIW.mjs.map → react-surface-A7LHKDE5.mjs.map} +0 -0
  43. /package/dist/lib/node/{intent-resolver-WLVMTXPH.cjs.map → intent-resolver-PHADGRJ2.cjs.map} +0 -0
  44. /package/dist/lib/node/{react-surface-MSYCREGI.cjs.map → react-surface-6L4K6LHA.cjs.map} +0 -0
  45. /package/dist/lib/node-esm/{intent-resolver-GQYZ3WOY.mjs.map → intent-resolver-LKN6FO2X.mjs.map} +0 -0
  46. /package/dist/lib/node-esm/{react-surface-2QW7VUYO.mjs.map → react-surface-ETZG4CR6.mjs.map} +0 -0
@@ -1,6 +1,7 @@
1
1
  // packages/plugins/plugin-conductor/src/components/CanvasContainer.tsx
2
+ import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
2
3
  import React, { useEffect, useMemo, useRef } from "react";
3
- import { AIServiceEdgeClient } from "@dxos/assistant";
4
+ import { AIServiceEdgeClient } from "@dxos/ai";
4
5
  import { ComputeGraphModel, EdgeGpt } from "@dxos/conductor";
5
6
  import { createStubEdgeIdentity, EdgeClient, EdgeHttpClient } from "@dxos/edge-client";
6
7
  import { useConfig } from "@dxos/react-client";
@@ -52,48 +53,53 @@ var useGraphController = (canvas) => {
52
53
  return controller;
53
54
  };
54
55
  var CanvasContainer = ({ canvas, role }) => {
55
- const id = fullyQualifiedId(canvas);
56
- const graph = useMemo(() => CanvasGraphModel.create(canvas.layout), [
57
- canvas.layout
58
- ]);
59
- const controller = useGraphController(canvas);
60
- const graphMonitor = useGraphMonitor(controller?.graph);
61
- const registry = useMemo(() => new ShapeRegistry(computeShapes), []);
62
- const editorRef = useRef(null);
63
- useComputeGraphController({
64
- controller,
65
- graph,
66
- editorRef
67
- });
68
- const layout = useMemo(() => controller && registry ? new ComputeShapeLayout(controller, registry) : void 0, [
69
- controller,
70
- registry
71
- ]);
72
- if (!controller) {
73
- return;
74
- }
75
- return /* @__PURE__ */ React.createElement(ComputeContext.Provider, {
76
- value: {
77
- controller
56
+ var _effect = _useSignals();
57
+ try {
58
+ const id = fullyQualifiedId(canvas);
59
+ const graph = useMemo(() => CanvasGraphModel.create(canvas.layout), [
60
+ canvas.layout
61
+ ]);
62
+ const controller = useGraphController(canvas);
63
+ const graphMonitor = useGraphMonitor(controller?.graph);
64
+ const registry = useMemo(() => new ShapeRegistry(computeShapes), []);
65
+ const editorRef = useRef(null);
66
+ useComputeGraphController({
67
+ controller,
68
+ graph,
69
+ editorRef
70
+ });
71
+ const layout = useMemo(() => controller && registry ? new ComputeShapeLayout(controller, registry) : void 0, [
72
+ controller,
73
+ registry
74
+ ]);
75
+ if (!controller) {
76
+ return;
78
77
  }
79
- }, /* @__PURE__ */ React.createElement(StackItem.Content, {
80
- size: role === "section" ? "square" : "intrinsic"
81
- }, /* @__PURE__ */ React.createElement(KeyboardContainer, {
82
- id
83
- }, /* @__PURE__ */ React.createElement(Editor.Root, {
84
- id,
85
- ref: editorRef,
86
- graph,
87
- graphMonitor,
88
- registry,
89
- layout
90
- }, /* @__PURE__ */ React.createElement(Editor.Canvas, null), /* @__PURE__ */ React.createElement(Editor.UI, {
91
- showTools: true
92
- })))));
78
+ return /* @__PURE__ */ React.createElement(ComputeContext.Provider, {
79
+ value: {
80
+ controller
81
+ }
82
+ }, /* @__PURE__ */ React.createElement(StackItem.Content, {
83
+ size: role === "section" ? "square" : "intrinsic"
84
+ }, /* @__PURE__ */ React.createElement(KeyboardContainer, {
85
+ id
86
+ }, /* @__PURE__ */ React.createElement(Editor.Root, {
87
+ id,
88
+ ref: editorRef,
89
+ graph,
90
+ graphMonitor,
91
+ registry,
92
+ layout
93
+ }, /* @__PURE__ */ React.createElement(Editor.Canvas, null), /* @__PURE__ */ React.createElement(Editor.UI, {
94
+ showTools: true
95
+ })))));
96
+ } finally {
97
+ _effect.f();
98
+ }
93
99
  };
94
100
  var CanvasContainer_default = CanvasContainer;
95
101
  export {
96
102
  CanvasContainer,
97
103
  CanvasContainer_default as default
98
104
  };
99
- //# sourceMappingURL=CanvasContainer-KJ3Y2QRX.mjs.map
105
+ //# sourceMappingURL=CanvasContainer-7DXW45ZA.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 { 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": "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",
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,11 +1,10 @@
1
1
  import {
2
2
  CONDUCTOR_PLUGIN
3
- } from "./chunk-O3LU2RKB.mjs";
3
+ } from "./chunk-B4FDW7Y7.mjs";
4
4
 
5
5
  // packages/plugins/plugin-conductor/src/types.ts
6
6
  import { Schema } from "effect";
7
7
  import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
8
- var ConductorAction;
9
8
  (function(ConductorAction2) {
10
9
  const CONDUCTOR_ACTION = `${CONDUCTOR_PLUGIN}/action`;
11
10
  class Create extends Schema.TaggedClass()(`${CONDUCTOR_ACTION}/create`, {
@@ -19,8 +18,9 @@ var ConductorAction;
19
18
  }
20
19
  ConductorAction2.Create = Create;
21
20
  })(ConductorAction || (ConductorAction = {}));
21
+ var ConductorAction;
22
22
 
23
23
  export {
24
24
  ConductorAction
25
25
  };
26
- //# sourceMappingURL=chunk-VSTYUXGI.mjs.map
26
+ //# sourceMappingURL=chunk-4EJT5EIW.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/types.ts"],
4
4
  "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CONDUCTOR_PLUGIN } from './meta';\n\nexport namespace ConductorAction {\n const CONDUCTOR_ACTION = `${CONDUCTOR_PLUGIN}/action`;\n\n export class Create extends Schema.TaggedClass<Create>()(`${CONDUCTOR_ACTION}/create`, {\n input: Schema.Struct({\n name: Schema.optional(Schema.String),\n }),\n output: Schema.Struct({\n object: CanvasBoardType,\n }),\n }) {}\n}\n"],
5
- "mappings": ";;;;;;AAIA,SAASA,cAAc;AAEvB,SAASC,uBAAuB;;UAIfC,kBAAAA;AACf,QAAMC,mBAAmB,GAAGC,gBAAAA;EAErB,MAAMC,eAAeC,OAAOC,YAAW,EAAW,GAAGJ,gBAAAA,WAA2B;IACrFK,OAAOF,OAAOG,OAAO;MACnBC,MAAMJ,OAAOK,SAASL,OAAOM,MAAM;IACrC,CAAA;IACAC,QAAQP,OAAOG,OAAO;MACpBK,QAAQC;IACV,CAAA;EACF,CAAA,EAAA;EAAI;mBAPSV,SAAAA;AAQf,GAXiBH,oBAAAA,kBAAAA,CAAAA,EAAAA;",
5
+ "mappings": ";;;;;AAIA,SAASA,cAAc;AAEvB,SAASC,uBAAuB;UAIfC,kBAAAA;AACf,QAAMC,mBAAmB,GAAGC,gBAAAA;EAErB,MAAMC,eAAeC,OAAOC,YAAW,EAAW,GAAGJ,gBAAAA,WAA2B;IACrFK,OAAOF,OAAOG,OAAO;MACnBC,MAAMJ,OAAOK,SAASL,OAAOM,MAAM;IACrC,CAAA;IACAC,QAAQP,OAAOG,OAAO;MACpBK,QAAQC;IACV,CAAA;EACF,CAAA,EAAA;EAAI;mBAPSV,SAAAA;AAQf,GAXiBH,oBAAAA,kBAAAA,CAAAA,EAAAA;;",
6
6
  "names": ["Schema", "CanvasBoardType", "ConductorAction", "CONDUCTOR_ACTION", "CONDUCTOR_PLUGIN", "Create", "Schema", "TaggedClass", "input", "Struct", "name", "optional", "String", "output", "object", "CanvasBoardType"]
7
7
  }
@@ -5,9 +5,9 @@ var meta = {
5
5
  name: "Conductor",
6
6
  description: "Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.",
7
7
  icon: "ph--infinity--regular",
8
- source: "https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-conductor",
8
+ source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-conductor",
9
9
  tags: [
10
- "experimental"
10
+ "labs"
11
11
  ],
12
12
  screenshots: [
13
13
  "https://dxos.network/plugin-details-canvas-dark.png"
@@ -18,4 +18,4 @@ export {
18
18
  CONDUCTOR_PLUGIN,
19
19
  meta
20
20
  };
21
- //# sourceMappingURL=chunk-O3LU2RKB.mjs.map
21
+ //# sourceMappingURL=chunk-B4FDW7Y7.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CONDUCTOR_PLUGIN = 'dxos.org/plugin/conductor';\n\nexport const meta: PluginMeta = {\n id: CONDUCTOR_PLUGIN,\n name: 'Conductor',\n description:\n 'Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.',\n icon: 'ph--infinity--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-conductor',\n tags: ['experimental'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n};\n"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CONDUCTOR_PLUGIN = 'dxos.org/plugin/conductor';\n\nexport const meta: PluginMeta = {\n id: CONDUCTOR_PLUGIN,\n name: 'Conductor',\n description:\n 'Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.',\n icon: 'ph--infinity--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-conductor',\n tags: ['labs'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n};\n"],
5
5
  "mappings": ";AAMO,IAAMA,mBAAmB;AAEzB,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
6
6
  "names": ["CONDUCTOR_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "screenshots"]
7
7
  }
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  ConductorAction
3
- } from "./chunk-VSTYUXGI.mjs";
3
+ } from "./chunk-4EJT5EIW.mjs";
4
4
  import {
5
5
  CONDUCTOR_PLUGIN,
6
6
  meta
7
- } from "./chunk-O3LU2RKB.mjs";
7
+ } from "./chunk-B4FDW7Y7.mjs";
8
8
 
9
9
  // packages/plugins/plugin-conductor/src/ConductorPlugin.tsx
10
10
  import { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from "@dxos/app-framework";
@@ -17,8 +17,8 @@ import { CanvasBoardType as CanvasBoardType2 } from "@dxos/react-ui-canvas-edito
17
17
 
18
18
  // packages/plugins/plugin-conductor/src/capabilities/index.ts
19
19
  import { lazy } from "@dxos/app-framework";
20
- var IntentResolver = lazy(() => import("./intent-resolver-YHUDYVNX.mjs"));
21
- var ReactSurface = lazy(() => import("./react-surface-7OKWJOIW.mjs"));
20
+ var IntentResolver = lazy(() => import("./intent-resolver-35HKT5XG.mjs"));
21
+ var ReactSurface = lazy(() => import("./react-surface-A7LHKDE5.mjs"));
22
22
 
23
23
  // packages/plugins/plugin-conductor/src/translations.ts
24
24
  import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ConductorAction
3
- } from "./chunk-VSTYUXGI.mjs";
4
- import "./chunk-O3LU2RKB.mjs";
3
+ } from "./chunk-4EJT5EIW.mjs";
4
+ import "./chunk-B4FDW7Y7.mjs";
5
5
 
6
6
  // packages/plugins/plugin-conductor/src/capabilities/intent-resolver.ts
7
7
  import { Capabilities, contributes, createResolver } from "@dxos/app-framework";
@@ -31,4 +31,4 @@ var intent_resolver_default = () => contributes(Capabilities.IntentResolver, cre
31
31
  export {
32
32
  intent_resolver_default as default
33
33
  };
34
- //# sourceMappingURL=intent-resolver-YHUDYVNX.mjs.map
34
+ //# sourceMappingURL=intent-resolver-35HKT5XG.mjs.map
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytes":2359,"imports":[],"format":"esm"},"packages/plugins/plugin-conductor/src/types.ts":{"bytes":2425,"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":3459,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/live-object","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":13528,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/assistant","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":808,"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":2995,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","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":1084,"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":1866,"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":8190,"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":604,"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-VSTYUXGI.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-O3LU2RKB.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-YHUDYVNX.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/react-surface-7OKWJOIW.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-VSTYUXGI.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-O3LU2RKB.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-YHUDYVNX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1683},"packages/plugins/plugin-conductor/dist/lib/browser/intent-resolver-YHUDYVNX.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-VSTYUXGI.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-O3LU2RKB.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/live-object","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":698}},"bytes":964},"packages/plugins/plugin-conductor/dist/lib/browser/chunk-VSTYUXGI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1192},"packages/plugins/plugin-conductor/dist/lib/browser/chunk-VSTYUXGI.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-O3LU2RKB.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-KJ3Y2QRX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7462},"packages/plugins/plugin-conductor/dist/lib/browser/CanvasContainer-KJ3Y2QRX.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/assistant","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":3335}},"bytes":3529},"packages/plugins/plugin-conductor/dist/lib/browser/react-surface-7OKWJOIW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1776},"packages/plugins/plugin-conductor/dist/lib/browser/react-surface-7OKWJOIW.mjs":{"imports":[{"path":"packages/plugins/plugin-conductor/dist/lib/browser/chunk-O3LU2RKB.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","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-KJ3Y2QRX.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":576},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytesInOutput":106}},"bytes":1048},"packages/plugins/plugin-conductor/dist/lib/browser/chunk-O3LU2RKB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1086},"packages/plugins/plugin-conductor/dist/lib/browser/chunk-O3LU2RKB.mjs":{"imports":[],"exports":["CONDUCTOR_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-conductor/src/meta.ts":{"bytesInOutput":611}},"bytes":744}}}
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":3399,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/live-object","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":2939,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","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-35HKT5XG.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-conductor/dist/lib/browser/react-surface-A7LHKDE5.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-35HKT5XG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1683},"packages/plugins/plugin-conductor/dist/lib/browser/intent-resolver-35HKT5XG.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/live-object","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":698}},"bytes":964},"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-A7LHKDE5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1776},"packages/plugins/plugin-conductor/dist/lib/browser/react-surface-A7LHKDE5.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-schema","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":576},"packages/plugins/plugin-conductor/src/components/index.ts":{"bytesInOutput":106}},"bytes":1048},"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,6 +1,6 @@
1
1
  import {
2
2
  CONDUCTOR_PLUGIN
3
- } from "./chunk-O3LU2RKB.mjs";
3
+ } from "./chunk-B4FDW7Y7.mjs";
4
4
 
5
5
  // packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx
6
6
  import React from "react";
@@ -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-KJ3Y2QRX.mjs"));
13
+ var CanvasContainer = lazy(() => import("./CanvasContainer-7DXW45ZA.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-7OKWJOIW.mjs.map
31
+ //# sourceMappingURL=react-surface-A7LHKDE5.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ConductorAction
3
- } from "./chunk-VSTYUXGI.mjs";
4
- import "./chunk-O3LU2RKB.mjs";
3
+ } from "./chunk-4EJT5EIW.mjs";
4
+ import "./chunk-B4FDW7Y7.mjs";
5
5
  export {
6
6
  ConductorAction
7
7
  };
@@ -26,14 +26,15 @@ 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 CanvasContainer_BNGQERH6_exports = {};
30
- __export(CanvasContainer_BNGQERH6_exports, {
29
+ var CanvasContainer_OINWTW67_exports = {};
30
+ __export(CanvasContainer_OINWTW67_exports, {
31
31
  CanvasContainer: () => CanvasContainer,
32
32
  default: () => CanvasContainer_default
33
33
  });
34
- module.exports = __toCommonJS(CanvasContainer_BNGQERH6_exports);
34
+ module.exports = __toCommonJS(CanvasContainer_OINWTW67_exports);
35
+ var import_tracking = require("@preact-signals/safe-react/tracking");
35
36
  var import_react = __toESM(require("react"));
36
- var import_assistant = require("@dxos/assistant");
37
+ var import_ai = require("@dxos/ai");
37
38
  var import_conductor = require("@dxos/conductor");
38
39
  var import_edge_client = require("@dxos/edge-client");
39
40
  var import_react_client = require("@dxos/react-client");
@@ -47,7 +48,7 @@ var createServices = (config, space) => {
47
48
  spaceId: space.id,
48
49
  db: space.db
49
50
  },
50
- gpt: config.values.runtime?.services?.ai?.server == null ? void 0 : new import_conductor.EdgeGpt(new import_assistant.AIServiceEdgeClient({
51
+ gpt: config.values.runtime?.services?.ai?.server == null ? void 0 : new import_conductor.EdgeGpt(new import_ai.AIServiceEdgeClient({
51
52
  endpoint: config.values.runtime?.services?.ai?.server
52
53
  })),
53
54
  edgeClient: config.values.runtime?.services?.edge?.url == null ? void 0 : new import_edge_client.EdgeClient((0, import_edge_client.createStubEdgeIdentity)(), {
@@ -85,48 +86,53 @@ var useGraphController = (canvas) => {
85
86
  return controller;
86
87
  };
87
88
  var CanvasContainer = ({ canvas, role }) => {
88
- const id = (0, import_echo.fullyQualifiedId)(canvas);
89
- const graph = (0, import_react.useMemo)(() => import_react_ui_canvas_editor.CanvasGraphModel.create(canvas.layout), [
90
- canvas.layout
91
- ]);
92
- const controller = useGraphController(canvas);
93
- const graphMonitor = (0, import_react_ui_canvas_compute.useGraphMonitor)(controller?.graph);
94
- const registry = (0, import_react.useMemo)(() => new import_react_ui_canvas_editor.ShapeRegistry(import_react_ui_canvas_compute.computeShapes), []);
95
- const editorRef = (0, import_react.useRef)(null);
96
- (0, import_react_ui_canvas_compute.useComputeGraphController)({
97
- controller,
98
- graph,
99
- editorRef
100
- });
101
- const layout = (0, import_react.useMemo)(() => controller && registry ? new import_react_ui_canvas_compute.ComputeShapeLayout(controller, registry) : void 0, [
102
- controller,
103
- registry
104
- ]);
105
- if (!controller) {
106
- return;
107
- }
108
- return /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_compute.ComputeContext.Provider, {
109
- value: {
110
- controller
89
+ var _effect = (0, import_tracking.useSignals)();
90
+ try {
91
+ const id = (0, import_echo.fullyQualifiedId)(canvas);
92
+ const graph = (0, import_react.useMemo)(() => import_react_ui_canvas_editor.CanvasGraphModel.create(canvas.layout), [
93
+ canvas.layout
94
+ ]);
95
+ const controller = useGraphController(canvas);
96
+ const graphMonitor = (0, import_react_ui_canvas_compute.useGraphMonitor)(controller?.graph);
97
+ const registry = (0, import_react.useMemo)(() => new import_react_ui_canvas_editor.ShapeRegistry(import_react_ui_canvas_compute.computeShapes), []);
98
+ const editorRef = (0, import_react.useRef)(null);
99
+ (0, import_react_ui_canvas_compute.useComputeGraphController)({
100
+ controller,
101
+ graph,
102
+ editorRef
103
+ });
104
+ const layout = (0, import_react.useMemo)(() => controller && registry ? new import_react_ui_canvas_compute.ComputeShapeLayout(controller, registry) : void 0, [
105
+ controller,
106
+ registry
107
+ ]);
108
+ if (!controller) {
109
+ return;
111
110
  }
112
- }, /* @__PURE__ */ import_react.default.createElement(import_react_ui_stack.StackItem.Content, {
113
- size: role === "section" ? "square" : "intrinsic"
114
- }, /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_editor.KeyboardContainer, {
115
- id
116
- }, /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_editor.Editor.Root, {
117
- id,
118
- ref: editorRef,
119
- graph,
120
- graphMonitor,
121
- registry,
122
- layout
123
- }, /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_editor.Editor.Canvas, null), /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_editor.Editor.UI, {
124
- showTools: true
125
- })))));
111
+ return /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_compute.ComputeContext.Provider, {
112
+ value: {
113
+ controller
114
+ }
115
+ }, /* @__PURE__ */ import_react.default.createElement(import_react_ui_stack.StackItem.Content, {
116
+ size: role === "section" ? "square" : "intrinsic"
117
+ }, /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_editor.KeyboardContainer, {
118
+ id
119
+ }, /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_editor.Editor.Root, {
120
+ id,
121
+ ref: editorRef,
122
+ graph,
123
+ graphMonitor,
124
+ registry,
125
+ layout
126
+ }, /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_editor.Editor.Canvas, null), /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_editor.Editor.UI, {
127
+ showTools: true
128
+ })))));
129
+ } finally {
130
+ _effect.f();
131
+ }
126
132
  };
127
133
  var CanvasContainer_default = CanvasContainer;
128
134
  // Annotate the CommonJS export names for ESM import in node:
129
135
  0 && (module.exports = {
130
136
  CanvasContainer
131
137
  });
132
- //# sourceMappingURL=CanvasContainer-BNGQERH6.cjs.map
138
+ //# sourceMappingURL=CanvasContainer-OINWTW67.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 { 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": "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",
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
+ }
@@ -16,17 +16,16 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_KU5RXEFZ_exports = {};
20
- __export(chunk_KU5RXEFZ_exports, {
19
+ var chunk_QBA2VGYG_exports = {};
20
+ __export(chunk_QBA2VGYG_exports, {
21
21
  ConductorAction: () => ConductorAction
22
22
  });
23
- module.exports = __toCommonJS(chunk_KU5RXEFZ_exports);
24
- var import_chunk_EDRUCA3G = require("./chunk-EDRUCA3G.cjs");
23
+ module.exports = __toCommonJS(chunk_QBA2VGYG_exports);
24
+ var import_chunk_V22Y2ZJE = require("./chunk-V22Y2ZJE.cjs");
25
25
  var import_effect = require("effect");
26
26
  var import_react_ui_canvas_editor = require("@dxos/react-ui-canvas-editor");
27
- var ConductorAction;
28
27
  (function(ConductorAction2) {
29
- const CONDUCTOR_ACTION = `${import_chunk_EDRUCA3G.CONDUCTOR_PLUGIN}/action`;
28
+ const CONDUCTOR_ACTION = `${import_chunk_V22Y2ZJE.CONDUCTOR_PLUGIN}/action`;
30
29
  class Create extends import_effect.Schema.TaggedClass()(`${CONDUCTOR_ACTION}/create`, {
31
30
  input: import_effect.Schema.Struct({
32
31
  name: import_effect.Schema.optional(import_effect.Schema.String)
@@ -38,8 +37,9 @@ var ConductorAction;
38
37
  }
39
38
  ConductorAction2.Create = Create;
40
39
  })(ConductorAction || (ConductorAction = {}));
40
+ var ConductorAction;
41
41
  // Annotate the CommonJS export names for ESM import in node:
42
42
  0 && (module.exports = {
43
43
  ConductorAction
44
44
  });
45
- //# sourceMappingURL=chunk-KU5RXEFZ.cjs.map
45
+ //# sourceMappingURL=chunk-QBA2VGYG.cjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/types.ts"],
4
4
  "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CONDUCTOR_PLUGIN } from './meta';\n\nexport namespace ConductorAction {\n const CONDUCTOR_ACTION = `${CONDUCTOR_PLUGIN}/action`;\n\n export class Create extends Schema.TaggedClass<Create>()(`${CONDUCTOR_ACTION}/create`, {\n input: Schema.Struct({\n name: Schema.optional(Schema.String),\n }),\n output: Schema.Struct({\n object: CanvasBoardType,\n }),\n }) {}\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAIA,oBAAuB;AAEvB,oCAAgC;;UAIfA,kBAAAA;AACf,QAAMC,mBAAmB,GAAGC,sCAAAA;EAErB,MAAMC,eAAeC,qBAAOC,YAAW,EAAW,GAAGJ,gBAAAA,WAA2B;IACrFK,OAAOF,qBAAOG,OAAO;MACnBC,MAAMJ,qBAAOK,SAASL,qBAAOM,MAAM;IACrC,CAAA;IACAC,QAAQP,qBAAOG,OAAO;MACpBK,QAAQC;IACV,CAAA;EACF,CAAA,EAAA;EAAI;mBAPSV,SAAAA;AAQf,GAXiBH,oBAAAA,kBAAAA,CAAAA,EAAAA;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAIA,oBAAuB;AAEvB,oCAAgC;UAIfA,kBAAAA;AACf,QAAMC,mBAAmB,GAAGC,sCAAAA;EAErB,MAAMC,eAAeC,qBAAOC,YAAW,EAAW,GAAGJ,gBAAAA,WAA2B;IACrFK,OAAOF,qBAAOG,OAAO;MACnBC,MAAMJ,qBAAOK,SAASL,qBAAOM,MAAM;IACrC,CAAA;IACAC,QAAQP,qBAAOG,OAAO;MACpBK,QAAQC;IACV,CAAA;EACF,CAAA,EAAA;EAAI;mBAPSV,SAAAA;AAQf,GAXiBH,oBAAAA,kBAAAA,CAAAA,EAAAA;;",
6
6
  "names": ["ConductorAction", "CONDUCTOR_ACTION", "CONDUCTOR_PLUGIN", "Create", "Schema", "TaggedClass", "input", "Struct", "name", "optional", "String", "output", "object", "CanvasBoardType"]
7
7
  }
@@ -16,21 +16,21 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_EDRUCA3G_exports = {};
20
- __export(chunk_EDRUCA3G_exports, {
19
+ var chunk_V22Y2ZJE_exports = {};
20
+ __export(chunk_V22Y2ZJE_exports, {
21
21
  CONDUCTOR_PLUGIN: () => CONDUCTOR_PLUGIN,
22
22
  meta: () => meta
23
23
  });
24
- module.exports = __toCommonJS(chunk_EDRUCA3G_exports);
24
+ module.exports = __toCommonJS(chunk_V22Y2ZJE_exports);
25
25
  var CONDUCTOR_PLUGIN = "dxos.org/plugin/conductor";
26
26
  var meta = {
27
27
  id: CONDUCTOR_PLUGIN,
28
28
  name: "Conductor",
29
29
  description: "Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.",
30
30
  icon: "ph--infinity--regular",
31
- source: "https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-conductor",
31
+ source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-conductor",
32
32
  tags: [
33
- "experimental"
33
+ "labs"
34
34
  ],
35
35
  screenshots: [
36
36
  "https://dxos.network/plugin-details-canvas-dark.png"
@@ -41,4 +41,4 @@ var meta = {
41
41
  CONDUCTOR_PLUGIN,
42
42
  meta
43
43
  });
44
- //# sourceMappingURL=chunk-EDRUCA3G.cjs.map
44
+ //# sourceMappingURL=chunk-V22Y2ZJE.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CONDUCTOR_PLUGIN = 'dxos.org/plugin/conductor';\n\nexport const meta: PluginMeta = {\n id: CONDUCTOR_PLUGIN,\n name: 'Conductor',\n description:\n 'Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.',\n icon: 'ph--infinity--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-conductor',\n tags: ['experimental'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n};\n"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CONDUCTOR_PLUGIN = 'dxos.org/plugin/conductor';\n\nexport const meta: PluginMeta = {\n id: CONDUCTOR_PLUGIN,\n name: 'Conductor',\n description:\n 'Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.',\n icon: 'ph--infinity--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-conductor',\n tags: ['labs'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n};\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,mBAAmB;AAEzB,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
6
6
  "names": ["CONDUCTOR_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "screenshots"]
7
7
  }