@dxos/plugin-debug 0.8.2-main.36232bc → 0.8.2-main.5ca3450

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 (47) hide show
  1. package/dist/lib/browser/{SpaceGenerator-HR7R3RTE.mjs → SpaceGenerator-KFYI4ASS.mjs} +27 -26
  2. package/dist/lib/browser/SpaceGenerator-KFYI4ASS.mjs.map +7 -0
  3. package/dist/lib/browser/{app-graph-builder-RTKWOHHT.mjs → app-graph-builder-45VXMVPN.mjs} +16 -2
  4. package/dist/lib/browser/app-graph-builder-45VXMVPN.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-TCEHALD4.mjs → chunk-ZJTKMYOG.mjs} +5 -4
  6. package/dist/lib/browser/chunk-ZJTKMYOG.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +4 -3
  8. package/dist/lib/browser/index.mjs.map +2 -2
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/{react-surface-NEMNEAAI.mjs → react-surface-LKBK4BBA.mjs} +16 -5
  11. package/dist/lib/browser/react-surface-LKBK4BBA.mjs.map +7 -0
  12. package/dist/lib/browser/{settings-BIRIGKTH.mjs → settings-6SG54GZO.mjs} +2 -2
  13. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  14. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  15. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  16. package/dist/types/src/components/Container.d.ts.map +1 -1
  17. package/dist/types/src/components/DebugApp/Tree.d.ts.map +1 -1
  18. package/dist/types/src/components/DebugObjectPanel.d.ts +2 -2
  19. package/dist/types/src/components/DebugObjectPanel.d.ts.map +1 -1
  20. package/dist/types/src/components/DebugSettings.d.ts.map +1 -1
  21. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  22. package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +1 -1
  23. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
  24. package/dist/types/src/components/SpaceGenerator/draw-util.d.ts.map +1 -1
  25. package/dist/types/src/components/SpaceGenerator/presets.d.ts +1 -1
  26. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
  27. package/dist/types/src/components/Wireframe.d.ts +2 -2
  28. package/dist/types/src/components/Wireframe.d.ts.map +1 -1
  29. package/dist/types/src/translations.d.ts +1 -0
  30. package/dist/types/src/translations.d.ts.map +1 -1
  31. package/dist/types/src/types.d.ts +5 -4
  32. package/dist/types/src/types.d.ts.map +1 -1
  33. package/dist/types/tsconfig.tsbuildinfo +1 -1
  34. package/package.json +54 -52
  35. package/src/capabilities/app-graph-builder.ts +11 -2
  36. package/src/capabilities/react-surface.tsx +13 -3
  37. package/src/components/DebugObjectPanel.tsx +2 -2
  38. package/src/components/SpaceGenerator/ObjectGenerator.tsx +2 -2
  39. package/src/components/SpaceGenerator/presets.ts +14 -12
  40. package/src/components/Wireframe.tsx +2 -2
  41. package/src/translations.ts +1 -0
  42. package/src/types.ts +6 -5
  43. package/dist/lib/browser/SpaceGenerator-HR7R3RTE.mjs.map +0 -7
  44. package/dist/lib/browser/app-graph-builder-RTKWOHHT.mjs.map +0 -7
  45. package/dist/lib/browser/chunk-TCEHALD4.mjs.map +0 -7
  46. package/dist/lib/browser/react-surface-NEMNEAAI.mjs.map +0 -7
  47. /package/dist/lib/browser/{settings-BIRIGKTH.mjs.map → settings-6SG54GZO.mjs.map} +0 -0
@@ -1,16 +1,16 @@
1
+ import { Schema } from 'effect';
1
2
  import { type Context } from 'react';
2
3
  import type { TimerCallback, TimerOptions } from '@dxos/async';
3
- import { S } from '@dxos/echo-schema';
4
4
  export type DebugContextType = {
5
5
  running: boolean;
6
6
  start: (cb: TimerCallback, options: TimerOptions) => void;
7
7
  stop: () => void;
8
8
  };
9
9
  export declare const DebugContext: Context<DebugContextType>;
10
- export declare const DebugSettingsSchema: S.mutable<S.Struct<{
11
- wireframe: S.optional<typeof S.Boolean>;
10
+ export declare const DebugSettingsSchema: Schema.mutable<Schema.Struct<{
11
+ wireframe: Schema.optional<typeof Schema.Boolean>;
12
12
  }>>;
13
- export interface DebugSettingsProps extends S.Schema.Type<typeof DebugSettingsSchema> {
13
+ export interface DebugSettingsProps extends Schema.Schema.Type<typeof DebugSettingsSchema> {
14
14
  }
15
15
  export declare namespace Devtools {
16
16
  const id = "dxos.org.plugin.debug.devtools";
@@ -35,6 +35,7 @@ export declare namespace Devtools {
35
35
  const Space = "dxos.org.plugin.debug.devtools.echo.space";
36
36
  const Feeds = "dxos.org.plugin.debug.devtools.echo.feeds";
37
37
  const Objects = "dxos.org.plugin.debug.devtools.echo.objects";
38
+ const Schema = "dxos.org.plugin.debug.devtools.echo.schema";
38
39
  const Automerge = "dxos.org.plugin.debug.devtools.echo.automerge";
39
40
  const Queues = "dxos.org.plugin.debug.devtools.echo.queues";
40
41
  const Members = "dxos.org.plugin.debug.devtools.echo.members";
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,OAAO,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,CAAC,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;IAC1D,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,gBAAgB,CAIjD,CAAC;AAEH,eAAO,MAAM,mBAAmB;;GAI/B,CAAC;AAEF,MAAM,WAAW,kBAAmB,SAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OA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,IAAI,CAAC;QACb,MAAM,EAAE,wCAAwB,CAAC;QACjC,MAAM,MAAM,+CAA+B,CAAC;QAC5C,MAAM,KAAK,8CAA8B,CAAC;QAC1C,MAAM,KAAK,8CAA8B,CAAC;QAC1C,MAAM,OAAO,gDAAgC,CAAC;QAC9C,MAAM,MAAM,+CAA+B,CAAC;QAC5C,MAAM,SAAS,kDAAkC,CAAC;QAClD,MAAM,MAAM,+CAA+B,CAAC;QAC5C,MAAM,OAAO,gDAAgC,CAAC;QAC9C,MAAM,QAAQ,iDAAiC,CAAC;KACxD;IAED,UAAiB,IAAI,CAAC;QACb,MAAM,EAAE,wCAAwB,CAAC;QACjC,MAAM,MAAM,+CAA+B,CAAC;QAC5C,MAAM,KAAK,8CAA8B,CAAC;QAC1C,MAAM,OAAO,gDAAgC,CAAC;KACtD;IAED,UAAiB,KAAK,CAAC;QACd,MAAM,EAAE,yCAAyB,CAAC;QAClC,MAAM,SAAS,mDAAmC,CAAC;QACnD,MAAM,MAAM,gDAAgC,CAAC;KACrD;IAED,UAAiB,IAAI,CAAC;QACb,MAAM,EAAE,wCAAwB,CAAC;QACjC,MAAM,SAAS,kDAAkC,CAAC;QAClD,MAAM,SAAS,kDAAkC,CAAC;QAClD,MAAM,MAAM,+CAA+B,CAAC;QAC5C,MAAM,OAAO,gDAAgC,CAAC;KACtD;CACF"}
@@ -1 +1 @@
1
- {"version":"5.7.3"}
1
+ {"version":"5.8.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-debug",
3
- "version": "0.8.2-main.36232bc",
3
+ "version": "0.8.2-main.5ca3450",
4
4
  "description": "DXOS Surface plugin for testing.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -28,55 +28,56 @@
28
28
  "@preact/signals-core": "^1.6.0",
29
29
  "@tldraw/tldraw": "^3.0.0",
30
30
  "date-fns": "^3.3.1",
31
- "effect": "3.13.3",
31
+ "effect": "3.14.21",
32
32
  "lodash.get": "^4.4.2",
33
33
  "react-json-tree": "^0.18.0",
34
34
  "react-resize-detector": "^11.0.1",
35
35
  "workerize-loader": "^2.0.2",
36
- "@dxos/app-framework": "0.8.2-main.36232bc",
37
- "@dxos/async": "0.8.2-main.36232bc",
38
- "@dxos/automerge": "0.8.2-main.36232bc",
39
- "@dxos/client-services": "0.8.2-main.36232bc",
40
- "@dxos/conductor": "0.8.2-main.36232bc",
41
- "@dxos/compute": "0.8.2-main.36232bc",
42
- "@dxos/context": "0.8.2-main.36232bc",
43
- "@dxos/echo-generator": "0.8.2-main.36232bc",
44
- "@dxos/config": "0.8.2-main.36232bc",
45
- "@dxos/devtools": "0.8.2-main.36232bc",
46
- "@dxos/echo-pipeline": "0.8.2-main.36232bc",
47
- "@dxos/functions": "0.8.2-main.36232bc",
48
- "@dxos/echo-schema": "0.8.2-main.36232bc",
49
- "@dxos/invariant": "0.8.2-main.36232bc",
50
- "@dxos/keys": "0.8.2-main.36232bc",
51
- "@dxos/live-object": "0.8.2-main.36232bc",
52
- "@dxos/local-storage": "0.8.2-main.36232bc",
53
- "@dxos/plugin-client": "0.8.2-main.36232bc",
54
- "@dxos/plugin-deck": "0.8.2-main.36232bc",
55
- "@dxos/plugin-graph": "0.8.2-main.36232bc",
56
- "@dxos/log": "0.8.2-main.36232bc",
57
- "@dxos/plugin-meeting": "0.8.2-main.36232bc",
58
- "@dxos/plugin-markdown": "0.8.2-main.36232bc",
59
- "@dxos/plugin-sheet": "0.8.2-main.36232bc",
60
- "@dxos/plugin-sketch": "0.8.2-main.36232bc",
61
- "@dxos/plugin-script": "0.8.2-main.36232bc",
62
- "@dxos/plugin-space": "0.8.2-main.36232bc",
63
- "@dxos/plugin-status-bar": "0.8.2-main.36232bc",
64
- "@dxos/protocols": "0.8.2-main.36232bc",
65
- "@dxos/random": "0.8.2-main.36232bc",
66
- "@dxos/plugin-table": "0.8.2-main.36232bc",
67
- "@dxos/react-client": "0.8.2-main.36232bc",
68
- "@dxos/react-hooks": "0.8.2-main.36232bc",
69
- "@dxos/plugin-theme": "0.8.2-main.36232bc",
70
- "@dxos/react-ui-form": "0.8.2-main.36232bc",
71
- "@dxos/react-ui-canvas-compute": "0.8.2-main.36232bc",
72
- "@dxos/react-ui-canvas-editor": "0.8.2-main.36232bc",
73
- "@dxos/react-ui-kanban": "0.8.2-main.36232bc",
74
- "@dxos/react-ui-stack": "0.8.2-main.36232bc",
75
- "@dxos/react-ui-syntax-highlighter": "0.8.2-main.36232bc",
76
- "@dxos/react-ui-attention": "0.8.2-main.36232bc",
77
- "@dxos/react-ui-table": "0.8.2-main.36232bc",
78
- "@dxos/schema": "0.8.2-main.36232bc",
79
- "@dxos/util": "0.8.2-main.36232bc"
36
+ "@dxos/app-framework": "0.8.2-main.5ca3450",
37
+ "@dxos/async": "0.8.2-main.5ca3450",
38
+ "@dxos/conductor": "0.8.2-main.5ca3450",
39
+ "@dxos/automerge": "0.8.2-main.5ca3450",
40
+ "@dxos/client-services": "0.8.2-main.5ca3450",
41
+ "@dxos/config": "0.8.2-main.5ca3450",
42
+ "@dxos/context": "0.8.2-main.5ca3450",
43
+ "@dxos/compute": "0.8.2-main.5ca3450",
44
+ "@dxos/echo": "0.8.2-main.5ca3450",
45
+ "@dxos/devtools": "0.8.2-main.5ca3450",
46
+ "@dxos/echo-generator": "0.8.2-main.5ca3450",
47
+ "@dxos/echo-pipeline": "0.8.2-main.5ca3450",
48
+ "@dxos/echo-schema": "0.8.2-main.5ca3450",
49
+ "@dxos/invariant": "0.8.2-main.5ca3450",
50
+ "@dxos/keys": "0.8.2-main.5ca3450",
51
+ "@dxos/functions": "0.8.2-main.5ca3450",
52
+ "@dxos/live-object": "0.8.2-main.5ca3450",
53
+ "@dxos/log": "0.8.2-main.5ca3450",
54
+ "@dxos/local-storage": "0.8.2-main.5ca3450",
55
+ "@dxos/plugin-client": "0.8.2-main.5ca3450",
56
+ "@dxos/plugin-deck": "0.8.2-main.5ca3450",
57
+ "@dxos/plugin-graph": "0.8.2-main.5ca3450",
58
+ "@dxos/plugin-markdown": "0.8.2-main.5ca3450",
59
+ "@dxos/plugin-meeting": "0.8.2-main.5ca3450",
60
+ "@dxos/plugin-script": "0.8.2-main.5ca3450",
61
+ "@dxos/plugin-sheet": "0.8.2-main.5ca3450",
62
+ "@dxos/plugin-sketch": "0.8.2-main.5ca3450",
63
+ "@dxos/plugin-status-bar": "0.8.2-main.5ca3450",
64
+ "@dxos/plugin-table": "0.8.2-main.5ca3450",
65
+ "@dxos/plugin-space": "0.8.2-main.5ca3450",
66
+ "@dxos/plugin-theme": "0.8.2-main.5ca3450",
67
+ "@dxos/protocols": "0.8.2-main.5ca3450",
68
+ "@dxos/random": "0.8.2-main.5ca3450",
69
+ "@dxos/react-client": "0.8.2-main.5ca3450",
70
+ "@dxos/react-ui-attention": "0.8.2-main.5ca3450",
71
+ "@dxos/react-hooks": "0.8.2-main.5ca3450",
72
+ "@dxos/react-ui-canvas-editor": "0.8.2-main.5ca3450",
73
+ "@dxos/react-ui-canvas-compute": "0.8.2-main.5ca3450",
74
+ "@dxos/react-ui-form": "0.8.2-main.5ca3450",
75
+ "@dxos/react-ui-kanban": "0.8.2-main.5ca3450",
76
+ "@dxos/react-ui-stack": "0.8.2-main.5ca3450",
77
+ "@dxos/react-ui-syntax-highlighter": "0.8.2-main.5ca3450",
78
+ "@dxos/react-ui-table": "0.8.2-main.5ca3450",
79
+ "@dxos/schema": "0.8.2-main.5ca3450",
80
+ "@dxos/util": "0.8.2-main.5ca3450"
80
81
  },
81
82
  "devDependencies": {
82
83
  "@phosphor-icons/react": "^2.1.5",
@@ -86,17 +87,18 @@
86
87
  "react": "~18.2.0",
87
88
  "react-dom": "~18.2.0",
88
89
  "vite": "5.4.7",
89
- "@dxos/react-ui": "0.8.2-main.36232bc",
90
- "@dxos/storybook-utils": "0.8.2-main.36232bc",
91
- "@dxos/react-ui-theme": "0.8.2-main.36232bc"
90
+ "@dxos/react-ui-theme": "0.8.2-main.5ca3450",
91
+ "@dxos/react-ui": "0.8.2-main.5ca3450",
92
+ "@dxos/storybook-utils": "0.8.2-main.5ca3450"
92
93
  },
93
94
  "peerDependencies": {
94
95
  "@phosphor-icons/react": "^2.1.5",
96
+ "effect": "^3.13.3",
95
97
  "react": "~18.2.0",
96
98
  "react-dom": "~18.2.0",
97
- "@dxos/random": "0.8.2-main.36232bc",
98
- "@dxos/react-ui-theme": "0.8.2-main.36232bc",
99
- "@dxos/react-ui": "0.8.2-main.36232bc"
99
+ "@dxos/react-ui": "0.8.2-main.5ca3450",
100
+ "@dxos/random": "0.8.2-main.5ca3450",
101
+ "@dxos/react-ui-theme": "0.8.2-main.5ca3450"
100
102
  },
101
103
  "publishConfig": {
102
104
  "access": "public"
@@ -7,7 +7,7 @@ import { ClientCapabilities } from '@dxos/plugin-client';
7
7
  import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
8
8
  import { createExtension, type Node } from '@dxos/plugin-graph';
9
9
  import { SPACE_PLUGIN } from '@dxos/plugin-space';
10
- import { isEchoObject, type ReactiveEchoObject, parseId } from '@dxos/react-client/echo';
10
+ import { isEchoObject, type AnyLiveObject, parseId } from '@dxos/react-client/echo';
11
11
 
12
12
  import { DEBUG_PLUGIN } from '../meta';
13
13
  import { Devtools } from '../types';
@@ -196,6 +196,15 @@ export default (context: PluginsContext) =>
196
196
  type: DEVTOOLS_TYPE,
197
197
  properties: {
198
198
  label: ['objects label', { ns: DEBUG_PLUGIN }],
199
+ icon: 'ph--cube--regular',
200
+ },
201
+ },
202
+ {
203
+ id: `${Devtools.Echo.Schema}-${node.id}`,
204
+ data: Devtools.Echo.Schema,
205
+ type: DEVTOOLS_TYPE,
206
+ properties: {
207
+ label: ['schema label', { ns: DEBUG_PLUGIN }],
199
208
  icon: 'ph--database--regular',
200
209
  },
201
210
  },
@@ -384,7 +393,7 @@ export default (context: PluginsContext) =>
384
393
  // Debug object companion.
385
394
  createExtension({
386
395
  id: `${DEBUG_PLUGIN}/debug-object`,
387
- filter: (node): node is Node<ReactiveEchoObject<any>> => isEchoObject(node.data),
396
+ filter: (node): node is Node<AnyLiveObject<any>> => isEchoObject(node.data),
388
397
  connector: ({ node }) => [
389
398
  {
390
399
  id: [node.id, 'debug'].join(ATTENDABLE_PATH_SEPARATOR),
@@ -32,6 +32,7 @@ import {
32
32
  NetworkPanel,
33
33
  ObjectsPanel,
34
34
  QueuesPanel,
35
+ SchemaPanel,
35
36
  SignalPanel,
36
37
  SpaceInfoPanel,
37
38
  SpaceListPanel,
@@ -51,7 +52,7 @@ import {
51
52
  SpaceState,
52
53
  isSpace,
53
54
  isEchoObject,
54
- type ReactiveEchoObject,
55
+ type AnyLiveObject,
55
56
  type Live,
56
57
  type Space,
57
58
  parseId,
@@ -138,7 +139,7 @@ export default (context: PluginsContext) =>
138
139
  id: `${DEBUG_PLUGIN}/wireframe`,
139
140
  role: ['article', 'section'],
140
141
  position: 'hoist',
141
- filter: (data): data is { subject: ReactiveEchoObject<any> } => {
142
+ filter: (data): data is { subject: AnyLiveObject<any> } => {
142
143
  const settings = context
143
144
  .requestCapability(Capabilities.SettingsStore)
144
145
  .getStore<DebugSettingsProps>(DEBUG_PLUGIN)!.value;
@@ -151,7 +152,7 @@ export default (context: PluginsContext) =>
151
152
  createSurface({
152
153
  id: `${DEBUG_PLUGIN}/object-debug`,
153
154
  role: 'article',
154
- filter: (data): data is { companionTo: ReactiveEchoObject<any> } =>
155
+ filter: (data): data is { companionTo: AnyLiveObject<any> } =>
155
156
  data.subject === 'debug' && isEchoObject(data.companionTo),
156
157
  component: ({ data }) => <DebugObjectPanel object={data.companionTo} />,
157
158
  }),
@@ -272,6 +273,15 @@ export default (context: PluginsContext) =>
272
273
  return <ObjectsPanel space={space} />;
273
274
  },
274
275
  }),
276
+ createSurface({
277
+ id: `${DEBUG_PLUGIN}/echo/schema`,
278
+ role: 'article',
279
+ filter: (data): data is any => data.subject === Devtools.Echo.Schema,
280
+ component: () => {
281
+ const space = useCurrentSpace();
282
+ return <SchemaPanel space={space} />;
283
+ },
284
+ }),
275
285
  createSurface({
276
286
  id: `${DEBUG_PLUGIN}/echo/automerge`,
277
287
  role: 'article',
@@ -4,12 +4,12 @@
4
4
 
5
5
  import React from 'react';
6
6
 
7
- import { type ReactiveEchoObject } from '@dxos/client/echo';
7
+ import { type AnyLiveObject } from '@dxos/client/echo';
8
8
  import { Clipboard, Input } from '@dxos/react-ui';
9
9
  import { SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';
10
10
 
11
11
  export type DebugObjectPanelProps = {
12
- object: ReactiveEchoObject<any>;
12
+ object: AnyLiveObject<any>;
13
13
  };
14
14
 
15
15
  // TODO(burdon): Get schema and traverse references.
@@ -14,7 +14,7 @@ import { CanvasType, DiagramType } from '@dxos/plugin-sketch/types';
14
14
  import { faker } from '@dxos/random';
15
15
  import { Filter, type Space } from '@dxos/react-client/echo';
16
16
  import { TableType } from '@dxos/react-ui-table';
17
- import { createView, TextType } from '@dxos/schema';
17
+ import { createView, DataType } from '@dxos/schema';
18
18
  import { createAsyncGenerator, type ValueGenerator } from '@dxos/schema/testing';
19
19
  import { range } from '@dxos/util';
20
20
 
@@ -42,7 +42,7 @@ export const staticGenerators = new Map<string, ObjectGenerator<any>>([
42
42
  return space.db.add(
43
43
  live(DocumentType, {
44
44
  name: faker.commerce.productName(),
45
- content: makeRef(live(TextType, { content: faker.lorem.sentences(5) })),
45
+ content: makeRef(live(DataType.Text, { content: faker.lorem.sentences(5) })),
46
46
  threads: [],
47
47
  }),
48
48
  );
@@ -2,9 +2,12 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { type ComputeGraphModel, EmailTriggerOutput, NODE_INPUT } from '@dxos/conductor';
6
- import { AST, ObjectId, S, toJsonSchema } from '@dxos/echo-schema';
7
- import { FunctionTrigger, TriggerKind, type TriggerType } from '@dxos/functions/types';
5
+ import { Schema, SchemaAST } from 'effect';
6
+
7
+ import { type ComputeGraphModel, NODE_INPUT } from '@dxos/conductor';
8
+ import { Type } from '@dxos/echo';
9
+ import { ObjectId, toJsonSchema } from '@dxos/echo-schema';
10
+ import { FunctionTrigger, TriggerKind, EmailTriggerOutput, type TriggerType } from '@dxos/functions';
8
11
  import { invariant } from '@dxos/invariant';
9
12
  import { DXN } from '@dxos/keys';
10
13
  import { live, makeRef } from '@dxos/live-object';
@@ -161,7 +164,7 @@ export const presets = {
161
164
 
162
165
  const appendToTable = canvasModel.createNode(createAppend(position({ x: 10, y: 6 })));
163
166
 
164
- const properties = AST.getPropertySignatures(EmailTriggerOutput.ast);
167
+ const properties = SchemaAST.getPropertySignatures(EmailTriggerOutput.ast);
165
168
  for (let i = 0; i < properties.length; i++) {
166
169
  const propName = properties[i].name.toString();
167
170
  builder.createEdge({ source: trigger.id, target: template.id, input: propName, output: propName });
@@ -280,7 +283,7 @@ export const presets = {
280
283
  templateContent.push(' "category": "{{text}}",');
281
284
  builder.createEdge({ source: gpt.id, target: template.id, input: 'text', output: 'text' });
282
285
 
283
- const properties = AST.getPropertySignatures(EmailTriggerOutput.ast);
286
+ const properties = SchemaAST.getPropertySignatures(EmailTriggerOutput.ast);
284
287
  for (let i = 0; i < properties.length; i++) {
285
288
  const propName = properties[i].name.toString();
286
289
  builder.createEdge({ source: trigger.id, target: template.id, input: propName, output: propName });
@@ -304,7 +307,7 @@ export const presets = {
304
307
  const templateComputeNode = computeModel.nodes.find((n) => n.id === template.node);
305
308
  invariant(templateComputeNode, 'Template compute node was not created.');
306
309
  templateComputeNode.value = templateContent.join('\n');
307
- const extendedSchema = S.extend(EmailTriggerOutput, S.Struct({ text: S.String }));
310
+ const extendedSchema = Schema.extend(EmailTriggerOutput, Schema.Struct({ text: Schema.String }));
308
311
  templateComputeNode.inputSchema = toJsonSchema(extendedSchema);
309
312
 
310
313
  attachTrigger(functionTrigger, computeModel);
@@ -449,7 +452,7 @@ export const presets = {
449
452
  const createQueueSinkPreset = <SpecType extends TriggerKind>(
450
453
  space: Space,
451
454
  triggerKind: SpecType,
452
- initSpec: (spec: Extract<TriggerType, { type: SpecType }>) => void,
455
+ initSpec: (spec: Extract<TriggerType, { kind: SpecType }>) => void,
453
456
  triggerOutputName: string,
454
457
  ) => {
455
458
  const canvasModel = CanvasGraphModel.create<ComputeShape>();
@@ -491,7 +494,7 @@ const createQueueSinkPreset = <SpecType extends TriggerKind>(
491
494
 
492
495
  functionTrigger = triggerShape.functionTrigger!.target!;
493
496
  const triggerSpec = functionTrigger.spec;
494
- invariant(triggerSpec && triggerSpec.type === triggerKind, 'No trigger spec.');
497
+ invariant(triggerSpec && triggerSpec.kind === triggerKind, 'No trigger spec.');
495
498
  initSpec(triggerSpec as any);
496
499
  });
497
500
 
@@ -500,7 +503,7 @@ const createQueueSinkPreset = <SpecType extends TriggerKind>(
500
503
  const templateComputeNode = computeModel.nodes.find((n) => n.id === template.node);
501
504
  invariant(templateComputeNode, 'Template compute node was not created.');
502
505
  templateComputeNode.value = ['{', ' "@type": "{{type}}",', ' "id": "@{{changeId}}"', '}'].join('\n');
503
- templateComputeNode.inputSchema = toJsonSchema(S.Struct({ type: S.String, changeId: S.String }));
506
+ templateComputeNode.inputSchema = toJsonSchema(Schema.Struct({ type: Schema.String, changeId: Schema.String }));
504
507
 
505
508
  attachTrigger(functionTrigger, computeModel);
506
509
 
@@ -539,10 +542,9 @@ const setupQueue = (
539
542
 
540
543
  const attachTrigger = (functionTrigger: FunctionTrigger | undefined, computeModel: ComputeGraphModel) => {
541
544
  invariant(functionTrigger);
542
- functionTrigger.function = DXN.fromLocalObjectId(computeModel.root.id).toString();
543
- functionTrigger.meta ??= {};
545
+ functionTrigger.function = Type.ref(computeModel.root);
544
546
  const inputNode = computeModel.nodes.find((node) => node.type === NODE_INPUT)!;
545
- functionTrigger.meta.computeNodeId = inputNode.id;
547
+ functionTrigger.inputNodeId = inputNode.id;
546
548
  };
547
549
 
548
550
  type RawPositionInput = { centerX: number; centerY: number; width: number; height: number };
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import { useResizeDetector } from 'react-resize-detector';
7
7
 
8
- import { fullyQualifiedId, type ReactiveEchoObject } from '@dxos/react-client/echo';
8
+ import { fullyQualifiedId, type AnyLiveObject } from '@dxos/react-client/echo';
9
9
  import { type ThemedClassName } from '@dxos/react-ui';
10
10
  import { useAttendableAttributes } from '@dxos/react-ui-attention';
11
11
  import { SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';
@@ -14,7 +14,7 @@ import { mx } from '@dxos/react-ui-theme';
14
14
  // TODO(burdon): Create generic container with wireframe mode.
15
15
  export type WireframeProps = ThemedClassName<{
16
16
  label?: string;
17
- object: ReactiveEchoObject<any>;
17
+ object: AnyLiveObject<any>;
18
18
  }>;
19
19
 
20
20
  // TODO(burdon): Make focusable and attendable with input.
@@ -48,6 +48,7 @@ export default [
48
48
  'space label': 'Space',
49
49
  'feeds label': 'Feeds',
50
50
  'objects label': 'Objects',
51
+ 'schema label': 'Schema',
51
52
  'automerge label': 'Automerge',
52
53
  'queues label': 'Queues',
53
54
  'members label': 'Members',
package/src/types.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
+ import { Schema } from 'effect';
5
6
  import { type Context, createContext } from 'react';
6
7
 
7
8
  import type { TimerCallback, TimerOptions } from '@dxos/async';
8
- import { S } from '@dxos/echo-schema';
9
9
 
10
10
  export type DebugContextType = {
11
11
  running: boolean;
@@ -19,13 +19,13 @@ export const DebugContext: Context<DebugContextType> = createContext<DebugContex
19
19
  stop: () => {},
20
20
  });
21
21
 
22
- export const DebugSettingsSchema = S.mutable(
23
- S.Struct({
24
- wireframe: S.optional(S.Boolean),
22
+ export const DebugSettingsSchema = Schema.mutable(
23
+ Schema.Struct({
24
+ wireframe: Schema.optional(Schema.Boolean),
25
25
  }),
26
26
  );
27
27
 
28
- export interface DebugSettingsProps extends S.Schema.Type<typeof DebugSettingsSchema> {}
28
+ export interface DebugSettingsProps extends Schema.Schema.Type<typeof DebugSettingsSchema> {}
29
29
 
30
30
  export namespace Devtools {
31
31
  // TODO(wittjosiah): Cannot use slashes in ids until we have a router which decouples ids from url paths.
@@ -54,6 +54,7 @@ export namespace Devtools {
54
54
  export const Space = `${Devtools.Echo.id}.space`;
55
55
  export const Feeds = `${Devtools.Echo.id}.feeds`;
56
56
  export const Objects = `${Devtools.Echo.id}.objects`;
57
+ export const Schema = `${Devtools.Echo.id}.schema`;
57
58
  export const Automerge = `${Devtools.Echo.id}.automerge`;
58
59
  export const Queues = `${Devtools.Echo.id}.queues`;
59
60
  export const Members = `${Devtools.Echo.id}.members`;