@dxos/react-ui-canvas-compute 0.8.4-main.dedc0f3 → 0.8.4-main.ead640a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/index.mjs +44 -38
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +44 -38
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/compute.stories.d.ts +3 -1
- package/dist/types/src/compute.stories.d.ts.map +1 -1
- package/dist/types/src/graph/controller.d.ts +6 -6
- package/dist/types/src/graph/controller.d.ts.map +1 -1
- package/dist/types/src/hooks/useComputeGraphController.d.ts +1 -1
- package/dist/types/src/hooks/useComputeGraphController.d.ts.map +1 -1
- package/dist/types/src/json.test.d.ts +1 -1
- package/dist/types/src/json.test.d.ts.map +1 -1
- package/dist/types/src/shapes/Append.d.ts +1 -1
- package/dist/types/src/shapes/Append.d.ts.map +1 -1
- package/dist/types/src/shapes/Array.d.ts +1 -1
- package/dist/types/src/shapes/Array.d.ts.map +1 -1
- package/dist/types/src/shapes/Audio.d.ts +1 -1
- package/dist/types/src/shapes/Audio.d.ts.map +1 -1
- package/dist/types/src/shapes/Beacon.d.ts +1 -1
- package/dist/types/src/shapes/Beacon.d.ts.map +1 -1
- package/dist/types/src/shapes/Boolean.d.ts +1 -1
- package/dist/types/src/shapes/Boolean.d.ts.map +1 -1
- package/dist/types/src/shapes/Chat.d.ts +1 -1
- package/dist/types/src/shapes/Chat.d.ts.map +1 -1
- package/dist/types/src/shapes/Constant.d.ts +2 -2
- package/dist/types/src/shapes/Constant.d.ts.map +1 -1
- package/dist/types/src/shapes/Database.d.ts +1 -1
- package/dist/types/src/shapes/Database.d.ts.map +1 -1
- package/dist/types/src/shapes/Function.d.ts +1 -1
- package/dist/types/src/shapes/Function.d.ts.map +1 -1
- package/dist/types/src/shapes/Gpt.d.ts +1 -1
- package/dist/types/src/shapes/Gpt.d.ts.map +1 -1
- package/dist/types/src/shapes/GptRealtime.d.ts +1 -1
- package/dist/types/src/shapes/GptRealtime.d.ts.map +1 -1
- package/dist/types/src/shapes/Json.d.ts +1 -1
- package/dist/types/src/shapes/Json.d.ts.map +1 -1
- package/dist/types/src/shapes/Logic.d.ts +1 -1
- package/dist/types/src/shapes/Logic.d.ts.map +1 -1
- package/dist/types/src/shapes/Queue.d.ts +1 -1
- package/dist/types/src/shapes/Queue.d.ts.map +1 -1
- package/dist/types/src/shapes/RNG.d.ts +1 -1
- package/dist/types/src/shapes/RNG.d.ts.map +1 -1
- package/dist/types/src/shapes/Scope.d.ts +1 -1
- package/dist/types/src/shapes/Scope.d.ts.map +1 -1
- package/dist/types/src/shapes/Surface.d.ts +1 -1
- package/dist/types/src/shapes/Surface.d.ts.map +1 -1
- package/dist/types/src/shapes/Switch.d.ts +1 -1
- package/dist/types/src/shapes/Switch.d.ts.map +1 -1
- package/dist/types/src/shapes/Table.d.ts +1 -1
- package/dist/types/src/shapes/Table.d.ts.map +1 -1
- package/dist/types/src/shapes/Template.d.ts +1 -1
- package/dist/types/src/shapes/Template.d.ts.map +1 -1
- package/dist/types/src/shapes/Text.d.ts +1 -1
- package/dist/types/src/shapes/Text.d.ts.map +1 -1
- package/dist/types/src/shapes/TextToImage.d.ts +1 -1
- package/dist/types/src/shapes/TextToImage.d.ts.map +1 -1
- package/dist/types/src/shapes/Thread.d.ts +1 -1
- package/dist/types/src/shapes/Thread.d.ts.map +1 -1
- package/dist/types/src/shapes/Trigger.d.ts +2 -2
- package/dist/types/src/shapes/Trigger.d.ts.map +1 -1
- package/dist/types/src/shapes/common/FunctionBody.d.ts +1 -1
- package/dist/types/src/shapes/common/FunctionBody.d.ts.map +1 -1
- package/dist/types/src/shapes/defs.d.ts +2 -1
- package/dist/types/src/shapes/defs.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +50 -50
- package/src/compute-layout.ts +1 -1
- package/src/compute.stories.tsx +4 -4
- package/src/graph/controller.ts +5 -1
- package/src/graph/node-defs.ts +1 -1
- package/src/hooks/useComputeGraphController.ts +1 -1
- package/src/hooks/useComputeNodeState.ts +1 -1
- package/src/hooks/useGraphMonitor.ts +1 -1
- package/src/json.test.ts +1 -1
- package/src/schema.test.ts +2 -2
- package/src/shapes/Append.tsx +1 -1
- package/src/shapes/Array.tsx +1 -1
- package/src/shapes/Audio.tsx +1 -1
- package/src/shapes/Beacon.tsx +1 -1
- package/src/shapes/Boolean.tsx +1 -1
- package/src/shapes/Chat.tsx +1 -1
- package/src/shapes/Constant.tsx +1 -1
- package/src/shapes/Database.tsx +1 -1
- package/src/shapes/Function.tsx +2 -2
- package/src/shapes/Gpt.tsx +1 -1
- package/src/shapes/GptRealtime.tsx +1 -1
- package/src/shapes/Json.tsx +1 -1
- package/src/shapes/Logic.tsx +1 -1
- package/src/shapes/Queue.tsx +1 -1
- package/src/shapes/RNG.tsx +1 -1
- package/src/shapes/Scope.tsx +1 -1
- package/src/shapes/Surface.tsx +1 -1
- package/src/shapes/Switch.tsx +1 -1
- package/src/shapes/Table.tsx +1 -1
- package/src/shapes/Template.tsx +2 -2
- package/src/shapes/Text.tsx +1 -1
- package/src/shapes/TextToImage.tsx +1 -1
- package/src/shapes/Thread.tsx +1 -1
- package/src/shapes/Trigger.tsx +8 -3
- package/src/shapes/common/FunctionBody.tsx +2 -1
- package/src/shapes/defs.ts +3 -2
- package/src/testing/circuits.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-canvas-compute",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.ead640a",
|
|
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,64 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@antv/graphlib": "^2.0.4",
|
|
28
28
|
"@antv/layout": "^1.2.13",
|
|
29
|
-
"@effect/platform": "0.
|
|
29
|
+
"@effect/platform": "0.92.1",
|
|
30
30
|
"@preact-signals/safe-react": "^0.9.0",
|
|
31
31
|
"chess.js": "^1.0.0",
|
|
32
|
-
"@dxos/ai": "0.8.4-main.
|
|
33
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
34
|
-
"@dxos/assistant": "0.8.4-main.
|
|
35
|
-
"@dxos/async": "0.8.4-main.
|
|
36
|
-
"@dxos/blueprints": "0.8.4-main.
|
|
37
|
-
"@dxos/conductor": "0.8.4-main.
|
|
38
|
-
"@dxos/context": "0.8.4-main.
|
|
39
|
-
"@dxos/echo": "0.8.4-main.
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/functions": "0.8.4-main.
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/react-
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/react-
|
|
51
|
-
"@dxos/react-ui-
|
|
52
|
-
"@dxos/react-ui-
|
|
53
|
-
"@dxos/react-ui-
|
|
54
|
-
"@dxos/react-ui-
|
|
55
|
-
"@dxos/react-ui-
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/react-ui-editor": "0.8.4-main.dedc0f3"
|
|
32
|
+
"@dxos/ai": "0.8.4-main.ead640a",
|
|
33
|
+
"@dxos/app-framework": "0.8.4-main.ead640a",
|
|
34
|
+
"@dxos/assistant": "0.8.4-main.ead640a",
|
|
35
|
+
"@dxos/async": "0.8.4-main.ead640a",
|
|
36
|
+
"@dxos/blueprints": "0.8.4-main.ead640a",
|
|
37
|
+
"@dxos/conductor": "0.8.4-main.ead640a",
|
|
38
|
+
"@dxos/context": "0.8.4-main.ead640a",
|
|
39
|
+
"@dxos/echo": "0.8.4-main.ead640a",
|
|
40
|
+
"@dxos/edge-client": "0.8.4-main.ead640a",
|
|
41
|
+
"@dxos/debug": "0.8.4-main.ead640a",
|
|
42
|
+
"@dxos/functions": "0.8.4-main.ead640a",
|
|
43
|
+
"@dxos/invariant": "0.8.4-main.ead640a",
|
|
44
|
+
"@dxos/live-object": "0.8.4-main.ead640a",
|
|
45
|
+
"@dxos/log": "0.8.4-main.ead640a",
|
|
46
|
+
"@dxos/react-client": "0.8.4-main.ead640a",
|
|
47
|
+
"@dxos/react-edge-client": "0.8.4-main.ead640a",
|
|
48
|
+
"@dxos/react-ui-attention": "0.8.4-main.ead640a",
|
|
49
|
+
"@dxos/react-ui-canvas": "0.8.4-main.ead640a",
|
|
50
|
+
"@dxos/react-ui-editor": "0.8.4-main.ead640a",
|
|
51
|
+
"@dxos/react-ui-canvas-editor": "0.8.4-main.ead640a",
|
|
52
|
+
"@dxos/react-ui-form": "0.8.4-main.ead640a",
|
|
53
|
+
"@dxos/react-ui-sfx": "0.8.4-main.ead640a",
|
|
54
|
+
"@dxos/react-ui-stack": "0.8.4-main.ead640a",
|
|
55
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.ead640a",
|
|
56
|
+
"@dxos/schema": "0.8.4-main.ead640a",
|
|
57
|
+
"@dxos/util": "0.8.4-main.ead640a",
|
|
58
|
+
"@dxos/keys": "0.8.4-main.ead640a",
|
|
59
|
+
"@dxos/graph": "0.8.4-main.ead640a"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
|
-
"@effect/ai": "0.
|
|
62
|
+
"@effect/ai": "0.29.1",
|
|
63
|
+
"@effect/experimental": "0.56.0",
|
|
64
64
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
65
|
-
"@types/react": "~
|
|
66
|
-
"@types/react-dom": "~
|
|
67
|
-
"effect": "3.
|
|
65
|
+
"@types/react": "~19.2.2",
|
|
66
|
+
"@types/react-dom": "~19.2.1",
|
|
67
|
+
"effect": "3.18.3",
|
|
68
68
|
"lodash.defaultsdeep": "^4.6.1",
|
|
69
|
-
"react": "~
|
|
70
|
-
"react-dom": "~
|
|
71
|
-
"vite": "7.1.
|
|
72
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
73
|
-
"@dxos/assistant-testing": "0.8.4-main.
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/random": "0.8.4-main.
|
|
77
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
78
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
79
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
69
|
+
"react": "~19.2.0",
|
|
70
|
+
"react-dom": "~19.2.0",
|
|
71
|
+
"vite": "7.1.9",
|
|
72
|
+
"@dxos/app-framework": "0.8.4-main.ead640a",
|
|
73
|
+
"@dxos/assistant-testing": "0.8.4-main.ead640a",
|
|
74
|
+
"@dxos/compute": "0.8.4-main.ead640a",
|
|
75
|
+
"@dxos/echo-signals": "0.8.4-main.ead640a",
|
|
76
|
+
"@dxos/random": "0.8.4-main.ead640a",
|
|
77
|
+
"@dxos/react-ui": "0.8.4-main.ead640a",
|
|
78
|
+
"@dxos/react-ui-theme": "0.8.4-main.ead640a",
|
|
79
|
+
"@dxos/storybook-utils": "0.8.4-main.ead640a"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"effect": "^3.13.3",
|
|
83
|
-
"react": "
|
|
84
|
-
"react-dom": "
|
|
85
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
86
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
83
|
+
"react": "^19.0.0",
|
|
84
|
+
"react-dom": "^19.0.0",
|
|
85
|
+
"@dxos/react-ui": "0.8.4-main.ead640a",
|
|
86
|
+
"@dxos/react-ui-theme": "0.8.4-main.ead640a"
|
|
87
87
|
},
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
package/src/compute-layout.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { DefaultInput, DefaultOutput } from '@dxos/conductor';
|
|
6
|
-
import { toEffectSchema } from '@dxos/echo
|
|
6
|
+
import { toEffectSchema } from '@dxos/echo/internal';
|
|
7
7
|
import { type Anchor, ShapeLayout, type ShapeRegistry } from '@dxos/react-ui-canvas-editor';
|
|
8
8
|
|
|
9
9
|
import { type ComputeGraphController } from './graph';
|
package/src/compute.stories.tsx
CHANGED
|
@@ -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;
|
package/src/graph/controller.ts
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import type * as Context from 'effect/Context';
|
|
6
|
+
import * as Effect from 'effect/Effect';
|
|
7
|
+
import * as Either from 'effect/Either';
|
|
8
|
+
import * as Exit from 'effect/Exit';
|
|
9
|
+
import * as Scope from 'effect/Scope';
|
|
6
10
|
|
|
7
11
|
import { Event, synchronized } from '@dxos/async';
|
|
8
12
|
import {
|
package/src/graph/node-defs.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
registry,
|
|
13
13
|
} from '@dxos/conductor';
|
|
14
14
|
import { raise } from '@dxos/debug';
|
|
15
|
-
import { ObjectId, toJsonSchema } from '@dxos/echo
|
|
15
|
+
import { ObjectId, toJsonSchema } from '@dxos/echo/internal';
|
|
16
16
|
import { invariant } from '@dxos/invariant';
|
|
17
17
|
|
|
18
18
|
import { type ComputeShape, type ConstantShape, type TemplateShape } from '../shapes';
|
|
@@ -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) => {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
|
|
7
7
|
import { type ComputeEdge, ComputeGraphModel, type ComputeNode, DEFAULT_INPUT, DEFAULT_OUTPUT } from '@dxos/conductor';
|
|
8
|
-
import { ObjectId, Ref } from '@dxos/echo
|
|
8
|
+
import { ObjectId, Ref } from '@dxos/echo/internal';
|
|
9
9
|
import { invariant } from '@dxos/invariant';
|
|
10
10
|
import { getSpace } from '@dxos/react-client/echo';
|
|
11
11
|
import { type CanvasGraphModel, type Connection, type GraphMonitor } from '@dxos/react-ui-canvas-editor';
|
package/src/json.test.ts
CHANGED
package/src/schema.test.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
6
|
import { describe, test } from 'vitest';
|
|
7
7
|
|
|
8
|
-
import { live } from '@dxos/
|
|
8
|
+
import { live } from '@dxos/echo/internal';
|
|
9
9
|
import { BaseGraphNode, Graph } from '@dxos/graph';
|
|
10
10
|
import {
|
|
11
11
|
Polygon,
|
package/src/shapes/Append.tsx
CHANGED
package/src/shapes/Array.tsx
CHANGED
package/src/shapes/Audio.tsx
CHANGED
package/src/shapes/Beacon.tsx
CHANGED
package/src/shapes/Boolean.tsx
CHANGED
package/src/shapes/Chat.tsx
CHANGED
package/src/shapes/Constant.tsx
CHANGED
package/src/shapes/Database.tsx
CHANGED
package/src/shapes/Function.tsx
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
6
|
import React, { useCallback, useRef } from 'react';
|
|
7
7
|
|
|
8
8
|
import { AnyOutput, FunctionInput } from '@dxos/conductor';
|
|
9
|
-
import { Ref, getSnapshot, isInstanceOf } from '@dxos/echo
|
|
9
|
+
import { Ref, getSnapshot, isInstanceOf } from '@dxos/echo/internal';
|
|
10
10
|
import { FunctionType, ScriptType } from '@dxos/functions';
|
|
11
11
|
import { useClient } from '@dxos/react-client';
|
|
12
12
|
import { Filter, parseId } from '@dxos/react-client/echo';
|
package/src/shapes/Gpt.tsx
CHANGED
package/src/shapes/Json.tsx
CHANGED
package/src/shapes/Logic.tsx
CHANGED
package/src/shapes/Queue.tsx
CHANGED
package/src/shapes/RNG.tsx
CHANGED
package/src/shapes/Scope.tsx
CHANGED
package/src/shapes/Surface.tsx
CHANGED
package/src/shapes/Switch.tsx
CHANGED
package/src/shapes/Table.tsx
CHANGED
package/src/shapes/Template.tsx
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
6
|
import React, { useRef } from 'react';
|
|
7
7
|
|
|
8
8
|
import { ComputeValueType, TemplateOutput, VoidInput, getTemplateInputSchema } from '@dxos/conductor';
|
|
9
|
-
import { toJsonSchema } from '@dxos/echo
|
|
9
|
+
import { toJsonSchema } from '@dxos/echo/internal';
|
|
10
10
|
import { invariant } from '@dxos/invariant';
|
|
11
11
|
import {
|
|
12
12
|
type ShapeComponentProps,
|
package/src/shapes/Text.tsx
CHANGED
package/src/shapes/Thread.tsx
CHANGED
package/src/shapes/Trigger.tsx
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
6
|
import React, { useEffect } from 'react';
|
|
7
7
|
|
|
8
8
|
import { VoidInput } from '@dxos/conductor';
|
|
9
9
|
import { Filter, Obj, Query } from '@dxos/echo';
|
|
10
|
-
import { ObjectId, Ref } from '@dxos/echo
|
|
10
|
+
import { ObjectId, Ref } from '@dxos/echo/internal';
|
|
11
11
|
import {
|
|
12
12
|
type EmailTrigger,
|
|
13
13
|
EmailTriggerOutput,
|
|
@@ -128,7 +128,12 @@ 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 {
|
|
131
|
+
return {
|
|
132
|
+
kind: 'subscription',
|
|
133
|
+
query: {
|
|
134
|
+
ast: Query.select(Filter.nothing()).ast,
|
|
135
|
+
},
|
|
136
|
+
} satisfies SubscriptionTrigger;
|
|
132
137
|
case 'email':
|
|
133
138
|
return { kind: 'email' } satisfies EmailTrigger;
|
|
134
139
|
case 'queue': {
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import type * as Schema from 'effect/Schema';
|
|
6
|
+
import * as SchemaAST from 'effect/SchemaAST';
|
|
6
7
|
import React, { type JSX, useRef, useState } from 'react';
|
|
7
8
|
|
|
8
9
|
import { VoidInput, VoidOutput } from '@dxos/conductor';
|
package/src/shapes/defs.ts
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
|
+
import * as SchemaAST from 'effect/SchemaAST';
|
|
6
7
|
|
|
7
8
|
import { DEFAULT_INPUT, DEFAULT_OUTPUT } from '@dxos/conductor';
|
|
8
|
-
import { ObjectId } from '@dxos/echo
|
|
9
|
+
import { ObjectId } from '@dxos/echo/internal';
|
|
9
10
|
import { Polygon } from '@dxos/react-ui-canvas-editor';
|
|
10
11
|
import { type MakeOptional } from '@dxos/util';
|
|
11
12
|
|
package/src/testing/circuits.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { createSystemPrompt } from '@dxos/assistant';
|
|
6
|
-
import { ObjectId } from '@dxos/echo
|
|
6
|
+
import { ObjectId } from '@dxos/echo/internal';
|
|
7
7
|
import { type ServiceContainer } from '@dxos/functions';
|
|
8
8
|
import { DXN, SpaceId } from '@dxos/keys';
|
|
9
9
|
import { type Dimension, type Point } from '@dxos/react-ui-canvas';
|