@dxos/react-ui-canvas-compute 0.8.4-main.5ea62a8 → 0.8.4-main.a4bbb77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-canvas-compute",
3
- "version": "0.8.4-main.5ea62a8",
3
+ "version": "0.8.4-main.a4bbb77",
4
4
  "description": "A compute graph extension for the canvas editor component.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -26,64 +26,65 @@
26
26
  "dependencies": {
27
27
  "@antv/graphlib": "^2.0.4",
28
28
  "@antv/layout": "^1.2.13",
29
- "@effect/platform": "0.90.2",
29
+ "@effect/platform": "0.92.1",
30
30
  "@preact-signals/safe-react": "^0.9.0",
31
31
  "chess.js": "^1.0.0",
32
- "@dxos/app-framework": "0.8.4-main.5ea62a8",
33
- "@dxos/assistant": "0.8.4-main.5ea62a8",
34
- "@dxos/blueprints": "0.8.4-main.5ea62a8",
35
- "@dxos/conductor": "0.8.4-main.5ea62a8",
36
- "@dxos/context": "0.8.4-main.5ea62a8",
37
- "@dxos/debug": "0.8.4-main.5ea62a8",
38
- "@dxos/echo": "0.8.4-main.5ea62a8",
39
- "@dxos/echo-schema": "0.8.4-main.5ea62a8",
40
- "@dxos/async": "0.8.4-main.5ea62a8",
41
- "@dxos/edge-client": "0.8.4-main.5ea62a8",
42
- "@dxos/functions": "0.8.4-main.5ea62a8",
43
- "@dxos/graph": "0.8.4-main.5ea62a8",
44
- "@dxos/invariant": "0.8.4-main.5ea62a8",
45
- "@dxos/keys": "0.8.4-main.5ea62a8",
46
- "@dxos/live-object": "0.8.4-main.5ea62a8",
47
- "@dxos/log": "0.8.4-main.5ea62a8",
48
- "@dxos/react-client": "0.8.4-main.5ea62a8",
49
- "@dxos/react-edge-client": "0.8.4-main.5ea62a8",
50
- "@dxos/react-ui-attention": "0.8.4-main.5ea62a8",
51
- "@dxos/react-ui-canvas": "0.8.4-main.5ea62a8",
52
- "@dxos/react-ui-canvas-editor": "0.8.4-main.5ea62a8",
53
- "@dxos/react-ui-form": "0.8.4-main.5ea62a8",
54
- "@dxos/react-ui-sfx": "0.8.4-main.5ea62a8",
55
- "@dxos/react-ui-stack": "0.8.4-main.5ea62a8",
56
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.5ea62a8",
57
- "@dxos/schema": "0.8.4-main.5ea62a8",
58
- "@dxos/react-ui-editor": "0.8.4-main.5ea62a8",
59
- "@dxos/util": "0.8.4-main.5ea62a8",
60
- "@dxos/ai": "0.8.4-main.5ea62a8"
32
+ "@dxos/ai": "0.8.4-main.a4bbb77",
33
+ "@dxos/app-framework": "0.8.4-main.a4bbb77",
34
+ "@dxos/assistant": "0.8.4-main.a4bbb77",
35
+ "@dxos/async": "0.8.4-main.a4bbb77",
36
+ "@dxos/blueprints": "0.8.4-main.a4bbb77",
37
+ "@dxos/conductor": "0.8.4-main.a4bbb77",
38
+ "@dxos/context": "0.8.4-main.a4bbb77",
39
+ "@dxos/echo": "0.8.4-main.a4bbb77",
40
+ "@dxos/echo-schema": "0.8.4-main.a4bbb77",
41
+ "@dxos/edge-client": "0.8.4-main.a4bbb77",
42
+ "@dxos/functions": "0.8.4-main.a4bbb77",
43
+ "@dxos/graph": "0.8.4-main.a4bbb77",
44
+ "@dxos/debug": "0.8.4-main.a4bbb77",
45
+ "@dxos/invariant": "0.8.4-main.a4bbb77",
46
+ "@dxos/keys": "0.8.4-main.a4bbb77",
47
+ "@dxos/react-edge-client": "0.8.4-main.a4bbb77",
48
+ "@dxos/log": "0.8.4-main.a4bbb77",
49
+ "@dxos/react-client": "0.8.4-main.a4bbb77",
50
+ "@dxos/react-ui-attention": "0.8.4-main.a4bbb77",
51
+ "@dxos/react-ui-canvas-editor": "0.8.4-main.a4bbb77",
52
+ "@dxos/react-ui-canvas": "0.8.4-main.a4bbb77",
53
+ "@dxos/react-ui-editor": "0.8.4-main.a4bbb77",
54
+ "@dxos/react-ui-form": "0.8.4-main.a4bbb77",
55
+ "@dxos/react-ui-sfx": "0.8.4-main.a4bbb77",
56
+ "@dxos/react-ui-stack": "0.8.4-main.a4bbb77",
57
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.a4bbb77",
58
+ "@dxos/schema": "0.8.4-main.a4bbb77",
59
+ "@dxos/util": "0.8.4-main.a4bbb77",
60
+ "@dxos/live-object": "0.8.4-main.a4bbb77"
61
61
  },
62
62
  "devDependencies": {
63
- "@effect/ai": "0.25.2",
63
+ "@effect/ai": "0.29.1",
64
+ "@effect/experimental": "0.56.0",
64
65
  "@types/lodash.defaultsdeep": "^4.6.6",
65
- "@types/react": "~18.2.0",
66
- "@types/react-dom": "~18.2.0",
67
- "effect": "3.17.7",
66
+ "@types/react": "~19.2.0",
67
+ "@types/react-dom": "~19.2.0",
68
+ "effect": "3.18.3",
68
69
  "lodash.defaultsdeep": "^4.6.1",
69
- "react": "~18.2.0",
70
- "react-dom": "~18.2.0",
71
- "vite": "7.1.1",
72
- "@dxos/compute": "0.8.4-main.5ea62a8",
73
- "@dxos/echo-signals": "0.8.4-main.5ea62a8",
74
- "@dxos/random": "0.8.4-main.5ea62a8",
75
- "@dxos/app-framework": "0.8.4-main.5ea62a8",
76
- "@dxos/react-ui": "0.8.4-main.5ea62a8",
77
- "@dxos/assistant-testing": "0.8.4-main.5ea62a8",
78
- "@dxos/react-ui-theme": "0.8.4-main.5ea62a8",
79
- "@dxos/storybook-utils": "0.8.4-main.5ea62a8"
70
+ "react": "~19.2.0",
71
+ "react-dom": "~19.2.0",
72
+ "vite": "7.1.9",
73
+ "@dxos/app-framework": "0.8.4-main.a4bbb77",
74
+ "@dxos/assistant-testing": "0.8.4-main.a4bbb77",
75
+ "@dxos/compute": "0.8.4-main.a4bbb77",
76
+ "@dxos/random": "0.8.4-main.a4bbb77",
77
+ "@dxos/react-ui": "0.8.4-main.a4bbb77",
78
+ "@dxos/echo-signals": "0.8.4-main.a4bbb77",
79
+ "@dxos/react-ui-theme": "0.8.4-main.a4bbb77",
80
+ "@dxos/storybook-utils": "0.8.4-main.a4bbb77"
80
81
  },
81
82
  "peerDependencies": {
82
83
  "effect": "^3.13.3",
83
- "react": "~18.2.0",
84
- "react-dom": "~18.2.0",
85
- "@dxos/react-ui": "0.8.4-main.5ea62a8",
86
- "@dxos/react-ui-theme": "0.8.4-main.5ea62a8"
84
+ "react": "^19.0.0",
85
+ "react-dom": "^19.0.0",
86
+ "@dxos/react-ui": "0.8.4-main.a4bbb77",
87
+ "@dxos/react-ui-theme": "0.8.4-main.a4bbb77"
87
88
  },
88
89
  "publishConfig": {
89
90
  "access": "public"
@@ -2,8 +2,6 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import '@dxos-theme';
6
-
7
5
  import { type Meta, type StoryObj } from '@storybook/react-vite';
8
6
  import React, { type PropsWithChildren, useEffect, useMemo, useRef, useState } from 'react';
9
7
 
@@ -13,6 +11,7 @@ import { type ComputeGraphModel, type ComputeNode, type GraphDiagnostic } from '
13
11
  import { ServiceContainer } from '@dxos/functions';
14
12
  import { withClientProvider } from '@dxos/react-client/testing';
15
13
  import { Select, Toolbar } from '@dxos/react-ui';
14
+ import { withTheme } from '@dxos/react-ui/testing';
16
15
  import { withAttention } from '@dxos/react-ui-attention/testing';
17
16
  import {
18
17
  CanvasGraphModel,
@@ -23,7 +22,6 @@ import {
23
22
  } from '@dxos/react-ui-canvas-editor';
24
23
  import { Container, useSelection } from '@dxos/react-ui-canvas-editor/testing';
25
24
  import { JsonFilter } from '@dxos/react-ui-syntax-highlighter';
26
- import { withLayout, withTheme } from '@dxos/storybook-utils';
27
25
 
28
26
  import { DiagnosticOverlay } from './components';
29
27
  import { ComputeShapeLayout } from './compute-layout';
@@ -184,9 +182,11 @@ const meta = {
184
182
  withTheme,
185
183
  withAttention,
186
184
  withClientProvider({ createIdentity: true, createSpace: true }),
187
- withLayout({ fullscreen: true }),
188
185
  withPluginManager({ capabilities }),
189
186
  ],
187
+ parameters: {
188
+ layout: 'fullscreen',
189
+ },
190
190
  } satisfies Meta<typeof DefaultStory>;
191
191
 
192
192
  export default meta;
@@ -290,7 +290,7 @@ export const Plugins: Story = {
290
290
  ...createComputeGraphController(
291
291
  createGptCircuit({ history: true, image: true, artifact: true }),
292
292
  new ServiceContainer().setServices({
293
- // ai: AiService.make(new Edge AiServiceClient({ endpoint: localServiceEndpoints.ai })),
293
+ // ai: AiService.make(new Edge AiServiceClient({ endpoint: SERVICES_CONFIG.local.ai.server })),
294
294
  }),
295
295
  ),
296
296
  },
@@ -306,7 +306,7 @@ export const Artifact: Story = {
306
306
  ...createComputeGraphController(
307
307
  createArtifactCircuit(),
308
308
  new ServiceContainer().setServices({
309
- // ai: AiService.make(new Edge AiServiceClient({ endpoint: localServiceEndpoints.ai })),
309
+ // ai: AiService.make(new Edge AiServiceClient({ endpoint: SERVICES_CONFIG.local.ai.server })),
310
310
  }),
311
311
  ),
312
312
  },
@@ -21,7 +21,7 @@ const combine = (...cbs: CleanupFn[]) => {
21
21
 
22
22
  export type UseComputeGraphControllerOptions = Pick<EditorRootProps<ComputeShape>, 'graph'> & {
23
23
  controller: ComputeGraphController | null;
24
- editorRef: RefObject<EditorController>;
24
+ editorRef: RefObject<EditorController | null>;
25
25
  };
26
26
 
27
27
  export const useComputeGraphController = ({ controller, graph, editorRef }: UseComputeGraphControllerOptions) => {
@@ -6,7 +6,7 @@ import { Schema } from 'effect';
6
6
  import React, { useEffect } from 'react';
7
7
 
8
8
  import { VoidInput } from '@dxos/conductor';
9
- import { Obj } from '@dxos/echo';
9
+ import { Filter, Obj, Query } from '@dxos/echo';
10
10
  import { ObjectId, Ref } from '@dxos/echo-schema';
11
11
  import {
12
12
  type EmailTrigger,
@@ -128,7 +128,7 @@ const createTriggerSpec = (props: { triggerKind?: TriggerKind; spaceId?: SpaceId
128
128
  case 'webhook':
129
129
  return { kind: 'webhook', method: 'POST' } satisfies WebhookTrigger;
130
130
  case 'subscription':
131
- return { kind: 'subscription', filter: {} } satisfies SubscriptionTrigger;
131
+ return { kind: 'subscription', query: Query.select(Filter.nothing()).ast } satisfies SubscriptionTrigger;
132
132
  case 'email':
133
133
  return { kind: 'email' } satisfies EmailTrigger;
134
134
  case 'queue': {