@dxos/plugin-conductor 0.8.1-main.ae460ac → 0.8.1-staging.31c3ee1

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 (68) hide show
  1. package/dist/lib/browser/{CanvasContainer-VX22HKUC.mjs → CanvasContainer-KJ3Y2QRX.mjs} +8 -4
  2. package/dist/lib/browser/CanvasContainer-KJ3Y2QRX.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-DUUJXCVO.mjs → chunk-O3LU2RKB.mjs} +2 -2
  4. package/dist/lib/browser/chunk-O3LU2RKB.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-KTJBLHAY.mjs → chunk-PGGKZ5EA.mjs} +3 -3
  6. package/dist/lib/browser/index.mjs +10 -17
  7. package/dist/lib/browser/index.mjs.map +3 -3
  8. package/dist/lib/browser/{intent-resolver-IKITW45C.mjs → intent-resolver-DDFGBYHL.mjs} +4 -4
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/{react-surface-MMUOCFNP.mjs → react-surface-7OKWJOIW.mjs} +8 -7
  11. package/dist/lib/browser/react-surface-7OKWJOIW.mjs.map +7 -0
  12. package/dist/lib/browser/types.mjs +2 -2
  13. package/dist/lib/node/{CanvasContainer-JEFCWTOZ.cjs → CanvasContainer-BNGQERH6.cjs} +9 -5
  14. package/dist/lib/node/CanvasContainer-BNGQERH6.cjs.map +7 -0
  15. package/dist/lib/node/{chunk-Y3VOCBBO.cjs → chunk-EDRUCA3G.cjs} +4 -4
  16. package/dist/lib/node/chunk-EDRUCA3G.cjs.map +7 -0
  17. package/dist/lib/node/{chunk-3WWLHGNO.cjs → chunk-UQDNLG4Q.cjs} +6 -6
  18. package/dist/lib/node/index.cjs +17 -24
  19. package/dist/lib/node/index.cjs.map +3 -3
  20. package/dist/lib/node/{intent-resolver-P6OSOKYW.cjs → intent-resolver-P333QUAU.cjs} +7 -7
  21. package/dist/lib/node/meta.json +1 -1
  22. package/dist/lib/node/{react-surface-HLZ5MFR6.cjs → react-surface-MSYCREGI.cjs} +9 -8
  23. package/dist/lib/node/react-surface-MSYCREGI.cjs.map +7 -0
  24. package/dist/lib/node/types.cjs +3 -3
  25. package/dist/lib/node/types.cjs.map +1 -1
  26. package/dist/lib/node-esm/{CanvasContainer-2V5SAEOZ.mjs → CanvasContainer-E2DRQKOP.mjs} +8 -4
  27. package/dist/lib/node-esm/CanvasContainer-E2DRQKOP.mjs.map +7 -0
  28. package/dist/lib/node-esm/{chunk-ZJLM74FY.mjs → chunk-4GHYXS23.mjs} +3 -3
  29. package/dist/lib/node-esm/{chunk-ML7CFPFL.mjs → chunk-CBKKOZWC.mjs} +2 -2
  30. package/dist/lib/node-esm/chunk-CBKKOZWC.mjs.map +7 -0
  31. package/dist/lib/node-esm/index.mjs +10 -17
  32. package/dist/lib/node-esm/index.mjs.map +3 -3
  33. package/dist/lib/node-esm/{intent-resolver-LUU6EZQI.mjs → intent-resolver-NCS4NHXA.mjs} +4 -4
  34. package/dist/lib/node-esm/meta.json +1 -1
  35. package/dist/lib/node-esm/{react-surface-Z6I5YUEN.mjs → react-surface-2QW7VUYO.mjs} +8 -7
  36. package/dist/lib/node-esm/react-surface-2QW7VUYO.mjs.map +7 -0
  37. package/dist/lib/node-esm/types.mjs +2 -2
  38. package/dist/types/src/ConductorPlugin.d.ts.map +1 -1
  39. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  40. package/dist/types/src/components/CanvasContainer.d.ts +2 -1
  41. package/dist/types/src/components/CanvasContainer.d.ts.map +1 -1
  42. package/dist/types/src/components/index.d.ts +1 -1
  43. package/dist/types/src/components/index.d.ts.map +1 -1
  44. package/dist/types/src/meta.d.ts +2 -9
  45. package/dist/types/src/meta.d.ts.map +1 -1
  46. package/dist/types/src/translations.d.ts +2 -6
  47. package/dist/types/src/translations.d.ts.map +1 -1
  48. package/package.json +20 -20
  49. package/src/ConductorPlugin.tsx +1 -2
  50. package/src/capabilities/react-surface.tsx +2 -1
  51. package/src/components/CanvasContainer.tsx +3 -1
  52. package/src/meta.ts +2 -2
  53. package/src/translations.ts +1 -2
  54. package/dist/lib/browser/CanvasContainer-VX22HKUC.mjs.map +0 -7
  55. package/dist/lib/browser/chunk-DUUJXCVO.mjs.map +0 -7
  56. package/dist/lib/browser/react-surface-MMUOCFNP.mjs.map +0 -7
  57. package/dist/lib/node/CanvasContainer-JEFCWTOZ.cjs.map +0 -7
  58. package/dist/lib/node/chunk-Y3VOCBBO.cjs.map +0 -7
  59. package/dist/lib/node/react-surface-HLZ5MFR6.cjs.map +0 -7
  60. package/dist/lib/node-esm/CanvasContainer-2V5SAEOZ.mjs.map +0 -7
  61. package/dist/lib/node-esm/chunk-ML7CFPFL.mjs.map +0 -7
  62. package/dist/lib/node-esm/react-surface-Z6I5YUEN.mjs.map +0 -7
  63. /package/dist/lib/browser/{chunk-KTJBLHAY.mjs.map → chunk-PGGKZ5EA.mjs.map} +0 -0
  64. /package/dist/lib/browser/{intent-resolver-IKITW45C.mjs.map → intent-resolver-DDFGBYHL.mjs.map} +0 -0
  65. /package/dist/lib/node/{chunk-3WWLHGNO.cjs.map → chunk-UQDNLG4Q.cjs.map} +0 -0
  66. /package/dist/lib/node/{intent-resolver-P6OSOKYW.cjs.map → intent-resolver-P333QUAU.cjs.map} +0 -0
  67. /package/dist/lib/node-esm/{chunk-ZJLM74FY.mjs.map → chunk-4GHYXS23.mjs.map} +0 -0
  68. /package/dist/lib/node-esm/{intent-resolver-LUU6EZQI.mjs.map → intent-resolver-NCS4NHXA.mjs.map} +0 -0
@@ -1,25 +1,26 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  CONDUCTOR_PLUGIN
4
- } from "./chunk-ML7CFPFL.mjs";
4
+ } from "./chunk-CBKKOZWC.mjs";
5
5
 
6
- // packages/plugins/experimental/plugin-conductor/src/capabilities/react-surface.tsx
6
+ // packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx
7
7
  import React from "react";
8
8
  import { Capabilities, contributes, createSurface } from "@dxos/app-framework";
9
+ import { isInstanceOf } from "@dxos/echo-schema";
9
10
  import { CanvasBoardType } from "@dxos/react-ui-canvas-editor";
10
11
 
11
- // packages/plugins/experimental/plugin-conductor/src/components/index.ts
12
+ // packages/plugins/plugin-conductor/src/components/index.ts
12
13
  import { lazy } from "react";
13
- var CanvasContainer = lazy(() => import("./CanvasContainer-2V5SAEOZ.mjs"));
14
+ var CanvasContainer = lazy(() => import("./CanvasContainer-E2DRQKOP.mjs"));
14
15
 
15
- // packages/plugins/experimental/plugin-conductor/src/capabilities/react-surface.tsx
16
+ // packages/plugins/plugin-conductor/src/capabilities/react-surface.tsx
16
17
  var react_surface_default = () => contributes(Capabilities.ReactSurface, createSurface({
17
18
  id: CONDUCTOR_PLUGIN,
18
19
  role: [
19
20
  "article",
20
21
  "section"
21
22
  ],
22
- filter: (data) => data.subject instanceof CanvasBoardType,
23
+ filter: (data) => isInstanceOf(CanvasBoardType, data.subject),
23
24
  component: ({ data, role }) => /* @__PURE__ */ React.createElement(CanvasContainer, {
24
25
  canvas: data.subject,
25
26
  role
@@ -28,4 +29,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, createS
28
29
  export {
29
30
  react_surface_default as default
30
31
  };
31
- //# sourceMappingURL=react-surface-Z6I5YUEN.mjs.map
32
+ //# sourceMappingURL=react-surface-2QW7VUYO.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/components/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { isInstanceOf } from '@dxos/echo-schema';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CanvasContainer } from '../components';\nimport { CONDUCTOR_PLUGIN } from '../meta';\n\nexport default () =>\n contributes(\n Capabilities.ReactSurface,\n createSurface({\n id: CONDUCTOR_PLUGIN,\n role: ['article', 'section'],\n filter: (data): data is { subject: CanvasBoardType } => isInstanceOf(CanvasBoardType, data.subject),\n component: ({ data, role }) => <CanvasContainer canvas={data.subject} role={role} />,\n }),\n );\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport const CanvasContainer = lazy(() => import('./CanvasContainer'));\n"],
5
+ "mappings": ";;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AACzD,SAASC,oBAAoB;AAC7B,SAASC,uBAAuB;;;ACJhC,SAASC,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,gCAAA,CAAA;;;ADOjD,IAAA,wBAAe,MACbC,YACEC,aAAaC,cACbC,cAAc;EACZC,IAAIC;EACJC,MAAM;IAAC;IAAW;;EAClBC,QAAQ,CAACC,SAA+CC,aAAaC,iBAAiBF,KAAKG,OAAO;EAClGC,WAAW,CAAC,EAAEJ,MAAMF,KAAI,MAAO,sBAAA,cAACO,iBAAAA;IAAgBC,QAAQN,KAAKG;IAASL;;AACxE,CAAA,CAAA;",
6
+ "names": ["React", "Capabilities", "contributes", "createSurface", "isInstanceOf", "CanvasBoardType", "lazy", "CanvasContainer", "lazy", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "CONDUCTOR_PLUGIN", "role", "filter", "data", "isInstanceOf", "CanvasBoardType", "subject", "component", "CanvasContainer", "canvas"]
7
+ }
@@ -1,8 +1,8 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  ConductorAction
4
- } from "./chunk-ZJLM74FY.mjs";
5
- import "./chunk-ML7CFPFL.mjs";
4
+ } from "./chunk-4GHYXS23.mjs";
5
+ import "./chunk-CBKKOZWC.mjs";
6
6
  export {
7
7
  ConductorAction
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ConductorPlugin.d.ts","sourceRoot":"","sources":["../../../src/ConductorPlugin.tsx"],"names":[],"mappings":"AAiBA,eAAO,MAAM,eAAe,4CA8CxB,CAAC"}
1
+ {"version":3,"file":"ConductorPlugin.d.ts","sourceRoot":"","sources":["../../../src/ConductorPlugin.tsx"],"names":[],"mappings":"AAiBA,eAAO,MAAM,eAAe,4CA6CxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;;AAM/E,wBASI"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;;AAO/E,wBASI"}
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { type CanvasBoardType } from '@dxos/react-ui-canvas-editor';
2
3
  export declare const CanvasContainer: ({ canvas, role }: {
3
4
  canvas: CanvasBoardType;
4
5
  role: string;
5
- }) => import("react/jsx-runtime").JSX.Element | undefined;
6
+ }) => React.JSX.Element | undefined;
6
7
  export default CanvasContainer;
7
8
  //# sourceMappingURL=CanvasContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CanvasContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasContainer.tsx"],"names":[],"mappings":"AAqBA,OAAO,EACL,KAAK,eAAe,EAMrB,MAAM,8BAA8B,CAAC;AAqDtC,eAAO,MAAM,eAAe,qBAAsB;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,wDAqC1F,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"CanvasContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAkB1D,OAAO,EACL,KAAK,eAAe,EAMrB,MAAM,8BAA8B,CAAC;AAqDtC,eAAO,MAAM,eAAe,qBAAsB;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,kCAsC1F,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export declare const CanvasContainer: import("react").LazyExoticComponent<({ canvas, role }: {
2
2
  canvas: import("@dxos/react-ui-canvas-editor").CanvasBoardType;
3
3
  role: string;
4
- }) => import("react/jsx-runtime").JSX.Element | undefined>;
4
+ }) => import("react").JSX.Element | undefined>;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;0DAA0C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;;8CAA0C,CAAC"}
@@ -1,11 +1,4 @@
1
+ import { type PluginMeta } from '@dxos/app-framework';
1
2
  export declare const CONDUCTOR_PLUGIN = "dxos.org/plugin/conductor";
2
- export declare const meta: {
3
- id: string;
4
- name: string;
5
- description: string;
6
- icon: string;
7
- source: string;
8
- tags: string[];
9
- screenshots: string[];
10
- };
3
+ export declare const meta: PluginMeta;
11
4
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,8BAA8B,CAAC;AAE5D,eAAO,MAAM,IAAI;;;;;;;;CASK,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,8BAA8B,CAAC;AAE5D,eAAO,MAAM,IAAI,EAAE,UASlB,CAAC"}
@@ -2,21 +2,17 @@ declare const _default: {
2
2
  'en-US': {
3
3
  [x: string]: {
4
4
  'typename label': string;
5
+ 'object name placeholder': string;
5
6
  'plugin name'?: undefined;
6
- 'canvas title placeholder'?: undefined;
7
- 'create canvas label'?: undefined;
8
7
  'content placeholder'?: undefined;
9
8
  } | {
10
9
  'plugin name': string;
11
- 'canvas title placeholder': string;
12
- 'create canvas label': string;
13
10
  'content placeholder': string;
14
11
  'typename label'?: undefined;
12
+ 'object name placeholder'?: undefined;
15
13
  };
16
14
  "dxos.org/plugin/conductor": {
17
15
  'plugin name': string;
18
- 'canvas title placeholder': string;
19
- 'create canvas label': string;
20
16
  'content placeholder': string;
21
17
  };
22
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAcE"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAQA,wBAaE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-conductor",
3
- "version": "0.8.1-main.ae460ac",
3
+ "version": "0.8.1-staging.31c3ee1",
4
4
  "description": "Composer plugin for conductor.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -33,20 +33,20 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@dxos/app-framework": "0.8.1-main.ae460ac",
37
- "@dxos/assistant": "0.8.1-main.ae460ac",
38
- "@dxos/edge-client": "0.8.1-main.ae460ac",
39
- "@dxos/conductor": "0.8.1-main.ae460ac",
40
- "@dxos/functions": "0.8.1-main.ae460ac",
41
- "@dxos/live-object": "0.8.1-main.ae460ac",
42
- "@dxos/echo-schema": "0.8.1-main.ae460ac",
43
- "@dxos/log": "0.8.1-main.ae460ac",
44
- "@dxos/plugin-client": "0.8.1-main.ae460ac",
45
- "@dxos/plugin-space": "0.8.1-main.ae460ac",
46
- "@dxos/react-client": "0.8.1-main.ae460ac",
47
- "@dxos/react-ui-canvas-compute": "0.8.1-main.ae460ac",
48
- "@dxos/react-ui-stack": "0.8.1-main.ae460ac",
49
- "@dxos/react-ui-canvas-editor": "0.8.1-main.ae460ac"
36
+ "@dxos/app-framework": "0.8.1-staging.31c3ee1",
37
+ "@dxos/assistant": "0.8.1-staging.31c3ee1",
38
+ "@dxos/conductor": "0.8.1-staging.31c3ee1",
39
+ "@dxos/echo-schema": "0.8.1-staging.31c3ee1",
40
+ "@dxos/edge-client": "0.8.1-staging.31c3ee1",
41
+ "@dxos/functions": "0.8.1-staging.31c3ee1",
42
+ "@dxos/live-object": "0.8.1-staging.31c3ee1",
43
+ "@dxos/log": "0.8.1-staging.31c3ee1",
44
+ "@dxos/plugin-space": "0.8.1-staging.31c3ee1",
45
+ "@dxos/react-ui-canvas-compute": "0.8.1-staging.31c3ee1",
46
+ "@dxos/react-client": "0.8.1-staging.31c3ee1",
47
+ "@dxos/plugin-client": "0.8.1-staging.31c3ee1",
48
+ "@dxos/react-ui-canvas-editor": "0.8.1-staging.31c3ee1",
49
+ "@dxos/react-ui-stack": "0.8.1-staging.31c3ee1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/react": "~18.2.0",
@@ -54,15 +54,15 @@
54
54
  "react": "~18.2.0",
55
55
  "react-dom": "~18.2.0",
56
56
  "vite": "5.4.7",
57
- "@dxos/react-ui": "0.8.1-main.ae460ac",
58
- "@dxos/react-ui-theme": "0.8.1-main.ae460ac",
59
- "@dxos/storybook-utils": "0.8.1-main.ae460ac"
57
+ "@dxos/react-ui": "0.8.1-staging.31c3ee1",
58
+ "@dxos/storybook-utils": "0.8.1-staging.31c3ee1",
59
+ "@dxos/react-ui-theme": "0.8.1-staging.31c3ee1"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "react": "~18.2.0",
63
63
  "react-dom": "~18.2.0",
64
- "@dxos/react-ui": "0.8.1-main.ae460ac",
65
- "@dxos/react-ui-theme": "0.8.1-main.ae460ac"
64
+ "@dxos/react-ui": "0.8.1-staging.31c3ee1",
65
+ "@dxos/react-ui-theme": "0.8.1-staging.31c3ee1"
66
66
  },
67
67
  "publishConfig": {
68
68
  "access": "public"
@@ -11,7 +11,7 @@ import { defineObjectForm } from '@dxos/plugin-space/types';
11
11
  import { CanvasBoardType } from '@dxos/react-ui-canvas-editor';
12
12
 
13
13
  import { IntentResolver, ReactSurface } from './capabilities';
14
- import { CONDUCTOR_PLUGIN, meta } from './meta';
14
+ import { meta } from './meta';
15
15
  import translations from './translations';
16
16
  import { ConductorAction } from './types';
17
17
 
@@ -29,7 +29,6 @@ export const ConductorPlugin = () =>
29
29
  contributes(Capabilities.Metadata, {
30
30
  id: CanvasBoardType.typename,
31
31
  metadata: {
32
- placeholder: ['canvas title placeholder', { ns: CONDUCTOR_PLUGIN }],
33
32
  icon: 'ph--infinity--regular',
34
33
  },
35
34
  }),
@@ -5,6 +5,7 @@
5
5
  import React from 'react';
6
6
 
7
7
  import { Capabilities, contributes, createSurface } from '@dxos/app-framework';
8
+ import { isInstanceOf } from '@dxos/echo-schema';
8
9
  import { CanvasBoardType } from '@dxos/react-ui-canvas-editor';
9
10
 
10
11
  import { CanvasContainer } from '../components';
@@ -16,7 +17,7 @@ export default () =>
16
17
  createSurface({
17
18
  id: CONDUCTOR_PLUGIN,
18
19
  role: ['article', 'section'],
19
- filter: (data): data is { subject: CanvasBoardType } => data.subject instanceof CanvasBoardType,
20
+ filter: (data): data is { subject: CanvasBoardType } => isInstanceOf(CanvasBoardType, data.subject),
20
21
  component: ({ data, role }) => <CanvasContainer canvas={data.subject} role={role} />,
21
22
  }),
22
23
  );
@@ -17,6 +17,7 @@ import {
17
17
  ComputeShapeLayout,
18
18
  computeShapes,
19
19
  type Services,
20
+ useComputeGraphController,
20
21
  useGraphMonitor,
21
22
  } from '@dxos/react-ui-canvas-compute';
22
23
  import {
@@ -86,6 +87,7 @@ export const CanvasContainer = ({ canvas, role }: { canvas: CanvasBoardType; rol
86
87
  const graphMonitor = useGraphMonitor(controller?.graph);
87
88
  const registry = useMemo(() => new ShapeRegistry(computeShapes), []);
88
89
  const editorRef = useRef<EditorController>(null);
90
+ useComputeGraphController({ controller, graph, editorRef });
89
91
 
90
92
  // Layout.
91
93
  const layout = useMemo(
@@ -99,7 +101,7 @@ export const CanvasContainer = ({ canvas, role }: { canvas: CanvasBoardType; rol
99
101
 
100
102
  return (
101
103
  <ComputeContext.Provider value={{ controller }}>
102
- <StackItem.Content toolbar={false} size={role === 'section' ? 'square' : 'intrinsic'}>
104
+ <StackItem.Content size={role === 'section' ? 'square' : 'intrinsic'}>
103
105
  <KeyboardContainer id={id}>
104
106
  <Editor.Root
105
107
  id={id}
package/src/meta.ts CHANGED
@@ -6,7 +6,7 @@ import { type PluginMeta } from '@dxos/app-framework';
6
6
 
7
7
  export const CONDUCTOR_PLUGIN = 'dxos.org/plugin/conductor';
8
8
 
9
- export const meta = {
9
+ export const meta: PluginMeta = {
10
10
  id: CONDUCTOR_PLUGIN,
11
11
  name: 'Conductor',
12
12
  description:
@@ -15,4 +15,4 @@ export const meta = {
15
15
  source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-conductor',
16
16
  tags: ['experimental'],
17
17
  screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],
18
- } satisfies PluginMeta;
18
+ };
@@ -11,11 +11,10 @@ export default [
11
11
  'en-US': {
12
12
  [CanvasBoardType.typename]: {
13
13
  'typename label': 'Circuit',
14
+ 'object name placeholder': 'New circuit',
14
15
  },
15
16
  [CONDUCTOR_PLUGIN]: {
16
17
  'plugin name': 'Conductor',
17
- 'canvas title placeholder': 'New circuit',
18
- 'create canvas label': 'Create circuit',
19
18
  'content placeholder': 'Enter text...',
20
19
  },
21
20
  },
@@ -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/assistant';\nimport { type Config } from '@dxos/client';\nimport { ComputeGraphModel, EdgeGpt } from '@dxos/conductor';\nimport { createStubEdgeIdentity, EdgeClient, EdgeHttpClient } from '@dxos/edge-client';\nimport { useConfig } from '@dxos/react-client';\nimport { fullyQualifiedId, getSpace, type Space } from '@dxos/react-client/echo';\nimport {\n ComputeContext,\n ComputeGraphController,\n type ComputeShape,\n ComputeShapeLayout,\n computeShapes,\n type Services,\n useGraphMonitor,\n} from '@dxos/react-ui-canvas-compute';\nimport {\n type CanvasBoardType,\n CanvasGraphModel,\n Editor,\n type EditorController,\n KeyboardContainer,\n ShapeRegistry,\n} from '@dxos/react-ui-canvas-editor';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nconst createServices = (config: Config, space?: Space): Partial<Services> => {\n return {\n spaceService:\n space == null\n ? undefined\n : {\n spaceId: space.id,\n db: space.db,\n },\n gpt:\n config.values.runtime?.services?.ai?.server == null\n ? undefined\n : new EdgeGpt(new 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\n // Layout.\n const layout = useMemo(\n () => (controller && registry ? new ComputeShapeLayout(controller, registry) : undefined),\n [controller, registry],\n );\n\n if (!controller) {\n return;\n }\n\n return (\n <ComputeContext.Provider value={{ controller }}>\n <StackItem.Content toolbar={false} size={role === 'section' ? 'square' : 'intrinsic'}>\n <KeyboardContainer id={id}>\n <Editor.Root\n id={id}\n ref={editorRef}\n graph={graph}\n graphMonitor={graphMonitor as any}\n registry={registry}\n layout={layout}\n >\n <Editor.Canvas />\n <Editor.UI showTools />\n </Editor.Root>\n </KeyboardContainer>\n </StackItem.Content>\n </ComputeContext.Provider>\n );\n};\n\nexport default CanvasContainer;\n"],
5
- "mappings": ";AAIA,OAAOA,SAASC,WAAWC,SAASC,cAAc;AAElD,SAASC,2BAA2B;AAEpC,SAASC,mBAAmBC,eAAe;AAC3C,SAASC,wBAAwBC,YAAYC,sBAAsB;AACnE,SAASC,iBAAiB;AAC1B,SAASC,kBAAkBC,gBAA4B;AACvD,SACEC,gBACAC,wBAEAC,oBACAC,eAEAC,uBACK;AACP,SAEEC,kBACAC,QAEAC,mBACAC,qBACK;AACP,SAASC,iBAAiB;AAE1B,IAAMC,iBAAiB,CAACC,QAAgBC,UAAAA;AACtC,SAAO;IACLC,cACED,SAAS,OACLE,SACA;MACEC,SAASH,MAAMI;MACfC,IAAIL,MAAMK;IACZ;IACNC,KACEP,OAAOQ,OAAOC,SAASC,UAAUC,IAAIC,UAAU,OAC3CT,SACA,IAAIU,QAA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MqB,eAAeC,gBAAgBnB,YAAYc,KAAAA;AACjD,QAAMM,WAAWnB,QAAQ,MAAM,IAAIoB,cAAcC,aAAAA,GAAgB,CAAA,CAAE;AACnE,QAAMC,YAAYC,OAAyB,IAAA;AAG3C,QAAMP,SAAShB,QACb,MAAOD,cAAcoB,WAAW,IAAIK,mBAAmBzB,YAAYoB,QAAAA,IAAY7C,QAC/E;IAACyB;IAAYoB;GAAS;AAGxB,MAAI,CAACpB,YAAY;AACf;EACF;AAEA,SACE,sBAAA,cAAC0B,eAAeC,UAAQ;IAACC,OAAO;MAAE5B;IAAW;KAC3C,sBAAA,cAAC6B,UAAUC,SAAO;IAACC,SAAS;IAAOC,MAAMpB,SAAS,YAAY,WAAW;KACvE,sBAAA,cAACqB,mBAAAA;IAAkBxD;KACjB,sBAAA,cAACyD,OAAOC,MAAI;IACV1D;IACA2D,KAAKb;IACLT;IACAI;IACAE;IACAH;KAEA,sBAAA,cAACiB,OAAOG,QAAM,IAAA,GACd,sBAAA,cAACH,OAAOI,IAAE;IAACC,WAAAA;;AAMvB;AAEA,IAAA,0BAAe5B;",
6
- "names": ["React", "useEffect", "useMemo", "useRef", "AIServiceEdgeClient", "ComputeGraphModel", "EdgeGpt", "createStubEdgeIdentity", "EdgeClient", "EdgeHttpClient", "useConfig", "fullyQualifiedId", "getSpace", "ComputeContext", "ComputeGraphController", "ComputeShapeLayout", "computeShapes", "useGraphMonitor", "CanvasGraphModel", "Editor", "KeyboardContainer", "ShapeRegistry", "StackItem", "createServices", "config", "space", "spaceService", "undefined", "spaceId", "id", "db", "gpt", "values", "runtime", "services", "ai", "server", "EdgeGpt", "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", "ComputeShapeLayout", "ComputeContext", "Provider", "value", "StackItem", "Content", "toolbar", "size", "KeyboardContainer", "Editor", "Root", "ref", "Canvas", "UI", "showTools"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CONDUCTOR_PLUGIN = 'dxos.org/plugin/conductor';\n\nexport const meta = {\n id: CONDUCTOR_PLUGIN,\n name: 'Conductor',\n description:\n 'Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.',\n icon: 'ph--infinity--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-conductor',\n tags: ['experimental'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n} satisfies PluginMeta;\n"],
5
- "mappings": ";AAMO,IAAMA,mBAAmB;AAEzB,IAAMC,OAAO;EAClBC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
6
- "names": ["CONDUCTOR_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "screenshots"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/components/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CanvasContainer } from '../components';\nimport { CONDUCTOR_PLUGIN } from '../meta';\n\nexport default () =>\n contributes(\n Capabilities.ReactSurface,\n createSurface({\n id: CONDUCTOR_PLUGIN,\n role: ['article', 'section'],\n filter: (data): data is { subject: CanvasBoardType } => data.subject instanceof CanvasBoardType,\n component: ({ data, role }) => <CanvasContainer canvas={data.subject} role={role} />,\n }),\n );\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport const CanvasContainer = lazy(() => import('./CanvasContainer'));\n"],
5
- "mappings": ";;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AACzD,SAASC,uBAAuB;;;ACHhC,SAASC,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,gCAAA,CAAA;;;ADMjD,IAAA,wBAAe,MACbC,YACEC,aAAaC,cACbC,cAAc;EACZC,IAAIC;EACJC,MAAM;IAAC;IAAW;;EAClBC,QAAQ,CAACC,SAA+CA,KAAKC,mBAAmBC;EAChFC,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAO,sBAAA,cAACM,iBAAAA;IAAgBC,QAAQL,KAAKC;IAASH;;AACxE,CAAA,CAAA;",
6
- "names": ["React", "Capabilities", "contributes", "createSurface", "CanvasBoardType", "lazy", "CanvasContainer", "lazy", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "CONDUCTOR_PLUGIN", "role", "filter", "data", "subject", "CanvasBoardType", "component", "CanvasContainer", "canvas"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/CanvasContainer.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useEffect, useMemo, useRef } from 'react';\n\nimport { AIServiceEdgeClient } from '@dxos/assistant';\nimport { type Config } from '@dxos/client';\nimport { ComputeGraphModel, EdgeGpt } from '@dxos/conductor';\nimport { createStubEdgeIdentity, EdgeClient, EdgeHttpClient } from '@dxos/edge-client';\nimport { useConfig } from '@dxos/react-client';\nimport { fullyQualifiedId, getSpace, type Space } from '@dxos/react-client/echo';\nimport {\n ComputeContext,\n ComputeGraphController,\n type ComputeShape,\n ComputeShapeLayout,\n computeShapes,\n type Services,\n useGraphMonitor,\n} from '@dxos/react-ui-canvas-compute';\nimport {\n type CanvasBoardType,\n CanvasGraphModel,\n Editor,\n type EditorController,\n KeyboardContainer,\n ShapeRegistry,\n} from '@dxos/react-ui-canvas-editor';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nconst createServices = (config: Config, space?: Space): Partial<Services> => {\n return {\n spaceService:\n space == null\n ? undefined\n : {\n spaceId: space.id,\n db: space.db,\n },\n gpt:\n config.values.runtime?.services?.ai?.server == null\n ? undefined\n : new EdgeGpt(new 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\n // Layout.\n const layout = useMemo(\n () => (controller && registry ? new ComputeShapeLayout(controller, registry) : undefined),\n [controller, registry],\n );\n\n if (!controller) {\n return;\n }\n\n return (\n <ComputeContext.Provider value={{ controller }}>\n <StackItem.Content toolbar={false} size={role === 'section' ? 'square' : 'intrinsic'}>\n <KeyboardContainer id={id}>\n <Editor.Root\n id={id}\n ref={editorRef}\n graph={graph}\n graphMonitor={graphMonitor as any}\n registry={registry}\n layout={layout}\n >\n <Editor.Canvas />\n <Editor.UI showTools />\n </Editor.Root>\n </KeyboardContainer>\n </StackItem.Content>\n </ComputeContext.Provider>\n );\n};\n\nexport default CanvasContainer;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkD;AAElD,uBAAoC;AAEpC,uBAA2C;AAC3C,yBAAmE;AACnE,0BAA0B;AAC1B,kBAAuD;AACvD,qCAQO;AACP,oCAOO;AACP,4BAA0B;AAE1B,IAAMA,iBAAiB,CAACC,QAAgBC,UAAAA;AACtC,SAAO;IACLC,cACED,SAAS,OACLE,SACA;MACEC,SAASH,MAAMI;MACfC,IAAIL,MAAMK;IACZ;IACNC,KACEP,OAAOQ,OAAOC,SAASC,UAAUC,IAAIC,UAAU,OAC3CT,SACA,IAAIU,yBAAQ,IAAIC,qCAAoB;MAAEC,UAAUf,OAAOQ,OAAOC,SAASC,UAAUC,IAAIC;IAAO,CAAA,CAAA;IAClGI,YACEhB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC,OAAO,OAC1Cf,SACA,IAAIgB,kCAAWC,2CAAAA,GAA0B;MAAEC,gBAAgBrB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC;IAAI,CAAA;IAC5GI,gBACEtB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC,OAAO,OAC1Cf,SACA,IAAIoB,kCAAevB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC,GAAAA;EAClE;AACF;AAEA,IAAMM,qBAAqB,CAACC,WAAAA;AAC1B,QAAMzB,aAAS0B,+B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AS,YAAY,WAAW;KACvE,6BAAAc,QAAA,cAACQ,iDAAAA;IAAkBzD;KACjB,6BAAAiD,QAAA,cAACS,qCAAOC,MAAI;IACV3D;IACA4D,KAAKd;IACLT;IACAI;IACAE;IACAH;KAEA,6BAAAS,QAAA,cAACS,qCAAOG,QAAM,IAAA,GACd,6BAAAZ,QAAA,cAACS,qCAAOI,IAAE;IAACC,WAAAA;;AAMvB;AAEA,IAAA,0BAAe7B;",
6
- "names": ["createServices", "config", "space", "spaceService", "undefined", "spaceId", "id", "db", "gpt", "values", "runtime", "services", "ai", "server", "EdgeGpt", "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", "ComputeShapeLayout", "React", "ComputeContext", "Provider", "value", "StackItem", "Content", "toolbar", "size", "KeyboardContainer", "Editor", "Root", "ref", "Canvas", "UI", "showTools"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CONDUCTOR_PLUGIN = 'dxos.org/plugin/conductor';\n\nexport const meta = {\n id: CONDUCTOR_PLUGIN,\n name: 'Conductor',\n description:\n 'Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.',\n icon: 'ph--infinity--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-conductor',\n tags: ['experimental'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n} satisfies PluginMeta;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,mBAAmB;AAEzB,IAAMC,OAAO;EAClBC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
6
- "names": ["CONDUCTOR_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "screenshots"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/components/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CanvasContainer } from '../components';\nimport { CONDUCTOR_PLUGIN } from '../meta';\n\nexport default () =>\n contributes(\n Capabilities.ReactSurface,\n createSurface({\n id: CONDUCTOR_PLUGIN,\n role: ['article', 'section'],\n filter: (data): data is { subject: CanvasBoardType } => data.subject instanceof CanvasBoardType,\n component: ({ data, role }) => <CanvasContainer canvas={data.subject} role={role} />,\n }),\n );\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport const CanvasContainer = lazy(() => import('./CanvasContainer'));\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkB;AAElB,2BAAyD;AACzD,oCAAgC;ACHhC,IAAAA,gBAAqB;AAEd,IAAMC,sBAAkBC,oBAAK,MAAM,OAAO,gCAAA,CAAA;ADMjD,IAAA,wBAAe,UACbC,kCACEC,kCAAaC,kBACbC,oCAAc;EACZC,IAAIC;EACJC,MAAM;IAAC;IAAW;;EAClBC,QAAQ,CAACC,SAA+CA,KAAKC,mBAAmBC;EAChFC,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAO,6BAAAM,QAAA,cAACd,iBAAAA;IAAgBe,QAAQL,KAAKC;IAASH;;AACxE,CAAA,CAAA;",
6
- "names": ["import_react", "CanvasContainer", "lazy", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "CONDUCTOR_PLUGIN", "role", "filter", "data", "subject", "CanvasBoardType", "component", "React", "canvas"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/components/CanvasContainer.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useEffect, useMemo, useRef } from 'react';\n\nimport { AIServiceEdgeClient } from '@dxos/assistant';\nimport { type Config } from '@dxos/client';\nimport { ComputeGraphModel, EdgeGpt } from '@dxos/conductor';\nimport { createStubEdgeIdentity, EdgeClient, EdgeHttpClient } from '@dxos/edge-client';\nimport { useConfig } from '@dxos/react-client';\nimport { fullyQualifiedId, getSpace, type Space } from '@dxos/react-client/echo';\nimport {\n ComputeContext,\n ComputeGraphController,\n type ComputeShape,\n ComputeShapeLayout,\n computeShapes,\n type Services,\n useGraphMonitor,\n} from '@dxos/react-ui-canvas-compute';\nimport {\n type CanvasBoardType,\n CanvasGraphModel,\n Editor,\n type EditorController,\n KeyboardContainer,\n ShapeRegistry,\n} from '@dxos/react-ui-canvas-editor';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nconst createServices = (config: Config, space?: Space): Partial<Services> => {\n return {\n spaceService:\n space == null\n ? undefined\n : {\n spaceId: space.id,\n db: space.db,\n },\n gpt:\n config.values.runtime?.services?.ai?.server == null\n ? undefined\n : new EdgeGpt(new 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\n // Layout.\n const layout = useMemo(\n () => (controller && registry ? new ComputeShapeLayout(controller, registry) : undefined),\n [controller, registry],\n );\n\n if (!controller) {\n return;\n }\n\n return (\n <ComputeContext.Provider value={{ controller }}>\n <StackItem.Content toolbar={false} size={role === 'section' ? 'square' : 'intrinsic'}>\n <KeyboardContainer id={id}>\n <Editor.Root\n id={id}\n ref={editorRef}\n graph={graph}\n graphMonitor={graphMonitor as any}\n registry={registry}\n layout={layout}\n >\n <Editor.Canvas />\n <Editor.UI showTools />\n </Editor.Root>\n </KeyboardContainer>\n </StackItem.Content>\n </ComputeContext.Provider>\n );\n};\n\nexport default CanvasContainer;\n"],
5
- "mappings": ";;;AAIA,OAAOA,SAASC,WAAWC,SAASC,cAAc;AAElD,SAASC,2BAA2B;AAEpC,SAASC,mBAAmBC,eAAe;AAC3C,SAASC,wBAAwBC,YAAYC,sBAAsB;AACnE,SAASC,iBAAiB;AAC1B,SAASC,kBAAkBC,gBAA4B;AACvD,SACEC,gBACAC,wBAEAC,oBACAC,eAEAC,uBACK;AACP,SAEEC,kBACAC,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ACT;AAEO,IAAMW,kBAAkB,CAAC,EAAEd,QAAQe,KAAI,MAA6C;AACzF,QAAMnC,KAAKoC,iBAAiBhB,MAAAA;AAC5B,QAAMiB,QAAQb,QAAQ,MAAMc,iBAAiBC,OAAqBnB,OAAOoB,MAAM,GAAG;IAACpB,OAAOoB;GAAO;AACjG,QAAMjB,aAAaJ,mBAAmBC,MAAAA;AACtC,QAAMqB,eAAeC,gBAAgBnB,YAAYc,KAAAA;AACjD,QAAMM,WAAWnB,QAAQ,MAAM,IAAIoB,cAAcC,aAAAA,GAAgB,CAAA,CAAE;AACnE,QAAMC,YAAYC,OAAyB,IAAA;AAG3C,QAAMP,SAAShB,QACb,MAAOD,cAAcoB,WAAW,IAAIK,mBAAmBzB,YAAYoB,QAAAA,IAAY7C,QAC/E;IAACyB;IAAYoB;GAAS;AAGxB,MAAI,CAACpB,YAAY;AACf;EACF;AAEA,SACE,sBAAA,cAAC0B,eAAeC,UAAQ;IAACC,OAAO;MAAE5B;IAAW;KAC3C,sBAAA,cAAC6B,UAAUC,SAAO;IAACC,SAAS;IAAOC,MAAMpB,SAAS,YAAY,WAAW;KACvE,sBAAA,cAACqB,mBAAAA;IAAkBxD;KACjB,sBAAA,cAACyD,OAAOC,MAAI;IACV1D;IACA2D,KAAKb;IACLT;IACAI;IACAE;IACAH;KAEA,sBAAA,cAACiB,OAAOG,QAAM,IAAA,GACd,sBAAA,cAACH,OAAOI,IAAE;IAACC,WAAAA;;AAMvB;AAEA,IAAA,0BAAe5B;",
6
- "names": ["React", "useEffect", "useMemo", "useRef", "AIServiceEdgeClient", "ComputeGraphModel", "EdgeGpt", "createStubEdgeIdentity", "EdgeClient", "EdgeHttpClient", "useConfig", "fullyQualifiedId", "getSpace", "ComputeContext", "ComputeGraphController", "ComputeShapeLayout", "computeShapes", "useGraphMonitor", "CanvasGraphModel", "Editor", "KeyboardContainer", "ShapeRegistry", "StackItem", "createServices", "config", "space", "spaceService", "undefined", "spaceId", "id", "db", "gpt", "values", "runtime", "services", "ai", "server", "EdgeGpt", "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", "ComputeShapeLayout", "ComputeContext", "Provider", "value", "StackItem", "Content", "toolbar", "size", "KeyboardContainer", "Editor", "Root", "ref", "Canvas", "UI", "showTools"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const CONDUCTOR_PLUGIN = 'dxos.org/plugin/conductor';\n\nexport const meta = {\n id: CONDUCTOR_PLUGIN,\n name: 'Conductor',\n description:\n 'Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.',\n icon: 'ph--infinity--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-conductor',\n tags: ['experimental'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n} satisfies PluginMeta;\n"],
5
- "mappings": ";;;AAMO,IAAMA,mBAAmB;AAEzB,IAAMC,OAAO;EAClBC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
6
- "names": ["CONDUCTOR_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "screenshots"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/components/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CanvasContainer } from '../components';\nimport { CONDUCTOR_PLUGIN } from '../meta';\n\nexport default () =>\n contributes(\n Capabilities.ReactSurface,\n createSurface({\n id: CONDUCTOR_PLUGIN,\n role: ['article', 'section'],\n filter: (data): data is { subject: CanvasBoardType } => data.subject instanceof CanvasBoardType,\n component: ({ data, role }) => <CanvasContainer canvas={data.subject} role={role} />,\n }),\n );\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport const CanvasContainer = lazy(() => import('./CanvasContainer'));\n"],
5
- "mappings": ";;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AACzD,SAASC,uBAAuB;;;ACHhC,SAASC,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,gCAAA,CAAA;;;ADMjD,IAAA,wBAAe,MACbC,YACEC,aAAaC,cACbC,cAAc;EACZC,IAAIC;EACJC,MAAM;IAAC;IAAW;;EAClBC,QAAQ,CAACC,SAA+CA,KAAKC,mBAAmBC;EAChFC,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAO,sBAAA,cAACM,iBAAAA;IAAgBC,QAAQL,KAAKC;IAASH;;AACxE,CAAA,CAAA;",
6
- "names": ["React", "Capabilities", "contributes", "createSurface", "CanvasBoardType", "lazy", "CanvasContainer", "lazy", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "CONDUCTOR_PLUGIN", "role", "filter", "data", "subject", "CanvasBoardType", "component", "CanvasContainer", "canvas"]
7
- }