@dxos/react-ui-canvas-compute 0.7.5-labs.ff2ff30 → 0.7.5-staging.2ff1350
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 +102 -39
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +131 -69
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +102 -39
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/DiagnosticOverlay.d.ts +1 -2
- package/dist/types/src/components/DiagnosticOverlay.d.ts.map +1 -1
- package/dist/types/src/graph/controller.d.ts +16 -0
- package/dist/types/src/graph/controller.d.ts.map +1 -1
- package/dist/types/src/shapes/Append.d.ts +1 -2
- package/dist/types/src/shapes/Append.d.ts.map +1 -1
- package/dist/types/src/shapes/Array.d.ts +1 -2
- package/dist/types/src/shapes/Array.d.ts.map +1 -1
- package/dist/types/src/shapes/Audio.d.ts +1 -2
- package/dist/types/src/shapes/Audio.d.ts.map +1 -1
- package/dist/types/src/shapes/Beacon.d.ts +1 -2
- package/dist/types/src/shapes/Beacon.d.ts.map +1 -1
- package/dist/types/src/shapes/Chat.d.ts +1 -2
- package/dist/types/src/shapes/Chat.d.ts.map +1 -1
- package/dist/types/src/shapes/Constant.d.ts +1 -2
- package/dist/types/src/shapes/Constant.d.ts.map +1 -1
- package/dist/types/src/shapes/Database.d.ts +1 -2
- package/dist/types/src/shapes/Database.d.ts.map +1 -1
- package/dist/types/src/shapes/Function.d.ts +1 -3
- package/dist/types/src/shapes/Function.d.ts.map +1 -1
- package/dist/types/src/shapes/Gpt.d.ts +1 -2
- package/dist/types/src/shapes/Gpt.d.ts.map +1 -1
- package/dist/types/src/shapes/GptRealtime.d.ts +1 -2
- package/dist/types/src/shapes/GptRealtime.d.ts.map +1 -1
- package/dist/types/src/shapes/Json.d.ts +2 -3
- package/dist/types/src/shapes/Json.d.ts.map +1 -1
- package/dist/types/src/shapes/Logic.d.ts +2 -3
- package/dist/types/src/shapes/Logic.d.ts.map +1 -1
- package/dist/types/src/shapes/Queue.d.ts +2 -3
- package/dist/types/src/shapes/Queue.d.ts.map +1 -1
- package/dist/types/src/shapes/RNG.d.ts +1 -2
- package/dist/types/src/shapes/RNG.d.ts.map +1 -1
- package/dist/types/src/shapes/Scope.d.ts +1 -2
- package/dist/types/src/shapes/Scope.d.ts.map +1 -1
- package/dist/types/src/shapes/Surface.d.ts +1 -2
- package/dist/types/src/shapes/Surface.d.ts.map +1 -1
- package/dist/types/src/shapes/Switch.d.ts +1 -2
- package/dist/types/src/shapes/Switch.d.ts.map +1 -1
- package/dist/types/src/shapes/Table.d.ts +1 -2
- package/dist/types/src/shapes/Table.d.ts.map +1 -1
- package/dist/types/src/shapes/Text.d.ts +1 -2
- package/dist/types/src/shapes/Text.d.ts.map +1 -1
- package/dist/types/src/shapes/TextToImage.d.ts +1 -2
- package/dist/types/src/shapes/TextToImage.d.ts.map +1 -1
- package/dist/types/src/shapes/Thread.d.ts +2 -3
- package/dist/types/src/shapes/Thread.d.ts.map +1 -1
- package/dist/types/src/shapes/Trigger.d.ts +3 -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/common/TypeSelect.d.ts +1 -2
- package/dist/types/src/shapes/common/TypeSelect.d.ts.map +1 -1
- package/package.json +41 -40
- package/src/graph/controller.ts +14 -3
- package/src/hooks/useGraphMonitor.ts +2 -2
- package/src/shapes/Function.tsx +83 -9
- package/src/shapes/Trigger.tsx +11 -8
- package/src/shapes/common/FunctionBody.tsx +1 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
3
|
import { type CreateShapeProps } from './defs';
|
|
@@ -49,6 +48,6 @@ export declare const createGpt: (props: CreateGptProps) => {
|
|
|
49
48
|
} & {
|
|
50
49
|
readonly type: "gpt";
|
|
51
50
|
};
|
|
52
|
-
export declare const GptComponent: ({ shape }: ShapeComponentProps<GptShape>) =>
|
|
51
|
+
export declare const GptComponent: ({ shape }: ShapeComponentProps<GptShape>) => import("react/jsx-runtime").JSX.Element;
|
|
53
52
|
export declare const gptShape: ShapeDef<GptShape>;
|
|
54
53
|
//# sourceMappingURL=Gpt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gpt.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Gpt.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Gpt.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Gpt.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGvF,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1E,eAAO,MAAM,QAAQ;;;;;;;iBA8Bb,EAAA,MAAM;UACJ,EAAA,QAAC,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QACzC,EAAA,OAAC;gBAAmB,EAClB,QAAJ,QAAO,EAAG,MAAM;;YACV,EAAG,MAAM;kBACP,EAAA,MAAN;kBAAmB,EAAG,MAC/B;;UAAmB,EAAI,OAAM,CAAE,EAAC,MAAM;sBACrB,EAAA,MAAI;uBACF,EAAA,MAAH;;;;;;GAjChB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AAExD,eAAO,MAAM,SAAS,UAAW,cAAc;;;;;;;;;;;;;;;;;;;CAK3C,CAAC;AAEL,eAAO,MAAM,YAAY,cAAe,mBAAmB,CAAC,QAAQ,CAAC,4CA+CpE,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAQvC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
3
|
import { type CreateShapeProps } from './defs';
|
|
@@ -49,6 +48,6 @@ export declare const createGptRealtime: (props: CreateGptRealtimeProps) => {
|
|
|
49
48
|
} & {
|
|
50
49
|
readonly type: "gpt-realtime";
|
|
51
50
|
};
|
|
52
|
-
export declare const GptRealtimeComponent: ({ shape }: ShapeComponentProps<GptRealtimeShape>) =>
|
|
51
|
+
export declare const GptRealtimeComponent: ({ shape }: ShapeComponentProps<GptRealtimeShape>) => import("react/jsx-runtime").JSX.Element;
|
|
53
52
|
export declare const gptRealtimeShape: ShapeDef<GptRealtimeShape>;
|
|
54
53
|
//# sourceMappingURL=GptRealtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GptRealtime.d.ts","sourceRoot":"","sources":["../../../../src/shapes/GptRealtime.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GptRealtime.d.ts","sourceRoot":"","sources":["../../../../src/shapes/GptRealtime.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAItC,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGvF,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1E,eAAO,MAAM,gBAAgB;;;;;;;iBA4Bf,EAAG,MAAM;UAAW,EAAG,QAAQ,QAAO,EAAG,MAAM;WACjD,EAAG,QAAQ,QAAQ,EAAE,OAAO;gBAChC,EAAE,QAAQ,QAAO,EAAG,MAAM;;YACR,EAAI,MAAK;kBACnB,EAAG,MAAM;kBACjB,EAAA,MAAA;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBACzB,EAAG,MACpB;uBAEc,EAAG,MAAM;;;;;;GAhC1B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEtE,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB,UAAW,sBAAsB;;;;;;;;;;;;;;;;;;;CACuC,CAAC;AAEvG,eAAO,MAAM,oBAAoB,cAAe,mBAAmB,CAAC,gBAAgB,CAAC,4CA6HpF,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,CAgBvD,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
3
|
import { type CreateShapeProps } from './defs';
|
|
@@ -55,9 +54,9 @@ export declare const JsonTransformShape: S.extend<S.extend<S.mutable<S.extend<S.
|
|
|
55
54
|
}>>;
|
|
56
55
|
export type JsonTransformShape = S.Schema.Type<typeof JsonTransformShape>;
|
|
57
56
|
export type JsonComponentProps = ShapeComponentProps<JsonShape>;
|
|
58
|
-
export declare const JsonComponent: ({ shape, ...props }: JsonComponentProps) =>
|
|
57
|
+
export declare const JsonComponent: ({ shape, ...props }: JsonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
58
|
export type JsonTransformComponentProps = ShapeComponentProps<JsonTransformShape>;
|
|
60
|
-
export declare const JsonTransformComponent: ({ shape, ...props }: JsonTransformComponentProps) =>
|
|
59
|
+
export declare const JsonTransformComponent: ({ shape, ...props }: JsonTransformComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
61
60
|
export type CreateJsonProps = CreateShapeProps<JsonShape>;
|
|
62
61
|
export declare const createJson: (props: CreateJsonProps) => {
|
|
63
62
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Json.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Json.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Json.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Json.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAKvF,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAO1F,eAAO,MAAM,SAAS;;;;;;;iBA+BhB,EAAA,MAAE;UAAW,EAAG,QAAQ,QAAO,EAAG,MAAM;WAC1C,EAAG,QACH,QAGF,EAAG,OAAO;gBAAkB,EAAG,QAAQ,QAAO,EAAG,MAAM;;YAEtD,EAAI,MAAK;kBAAoB,EAAI,MAAK;kBAAmB,EAAG,MAAM;;UAAoB,EAAG,OACxF,CAAC,EAAE,MAAM;sBAGZ,EACA,MAAM;uBAGY,EAAG,MAAM;;;;;;GAzC3B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAExD,eAAO,MAAM,kBAAkB;;;;;;;iBAsBzB,EAAA,MAAE;UAAW,EAAG,QAAQ,QAAO,EAAG,MAAM;WAC1C,EAAG,QACH,QAGF,EAAG,OAAO;gBAAkB,EAAG,QAAQ,QAAO,EAAG,MAAM;;YAEtD,EAAI,MAAK;kBAAoB,EAAI,MAAK;kBAAmB,EAAG,MAAM;;UAAoB,EAAG,OACxF,CAAC,EAAE,MAAM;sBAGZ,EACA,MAAM;uBAGY,EAAG,MAAM;;;;;;GAhC3B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM1E,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,wBAAyB,kBAAkB,4CAUpE,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;AAElF,eAAO,MAAM,sBAAsB,wBAAyB,2BAA2B,4CAEtF,CAAC;AAMF,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAE1D,eAAO,MAAM,UAAU,UAAW,eAAe;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAExF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,SAAS,CAYzC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,CAAC,kBAAkB,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtG,eAAO,MAAM,mBAAmB,UAAW,wBAAwB;;;;;;;;;;;;;;;;;;;CAK/D,CAAC;AAEL,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,kBAAkB,CAQ3D,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
3
|
import { type CreateShapeProps } from './defs';
|
|
@@ -55,9 +54,9 @@ export declare const IfElseShape: S.extend<S.extend<S.mutable<S.extend<S.extend<
|
|
|
55
54
|
}>>;
|
|
56
55
|
export type IfElseShape = S.Schema.Type<typeof IfElseShape>;
|
|
57
56
|
export type IfComponentProps = ShapeComponentProps<IfShape>;
|
|
58
|
-
export declare const IfComponent: ({ shape, ...props }: IfComponentProps) =>
|
|
57
|
+
export declare const IfComponent: ({ shape, ...props }: IfComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
58
|
export type IfElseComponentProps = ShapeComponentProps<IfElseShape>;
|
|
60
|
-
export declare const IfElseComponent: ({ shape, ...props }: IfElseComponentProps) =>
|
|
59
|
+
export declare const IfElseComponent: ({ shape, ...props }: IfElseComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
61
60
|
export type CreateIfProps = CreateShapeProps<IfShape> & {
|
|
62
61
|
if?: string;
|
|
63
62
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logic.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Logic.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Logic.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Logic.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGvF,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAM1E,eAAO,MAAM,OAAO;;;;;;;iBAwCjB,EAAI,MAAK;UAAY,EAAE,QAAQ,QAAO,EAAG,MAC5C;WAAa,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAkB,EAAG,QAAQ,QAAO,EAAG,MAAM;;YAEvE,EAAG,MAAM;kBACtB,EAAC,MAAM;kBAEP,EAAC,MAAM;;UAAmB,EAAG,OAC9B,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAC5B,EAAG,MAAM;;;;;;GA3CvB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,WAAW;;;;;;;iBA+BrB,EAAI,MAAK;UAAY,EAAE,QAAQ,QAAO,EAAG,MAC5C;WAAa,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAkB,EAAG,QAAQ,QAAO,EAAG,MAAM;;YAEvE,EAAG,MAAM;kBACtB,EAAC,MAAM;kBAEP,EAAC,MAAM;;UAAmB,EAAG,OAC9B,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAC5B,EAAG,MAAM;;;;;;GAlCvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAM5D,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW,wBAAyB,gBAAgB,4CAEhE,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAEpE,eAAO,MAAM,eAAe,wBAAyB,oBAAoB,4CAExE,CAAC;AAMF,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAExE,eAAO,MAAM,QAAQ,UAAW,aAAa;;;;;;;;;;;;;;;;;;;CACqD,CAAC;AAEnG,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,CAOrC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5E,eAAO,MAAM,YAAY,UAAW,iBAAiB;;;;;;;;;;;;;;;;;;;CAC0D,CAAC;AAEhH,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAO7C,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
4
3
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
@@ -50,9 +49,9 @@ export declare const createQueue: (props: CreateQueueProps) => {
|
|
|
50
49
|
} & {
|
|
51
50
|
readonly type: "queue";
|
|
52
51
|
};
|
|
53
|
-
export declare const QueueComponent: ({ shape }: ShapeComponentProps<QueueShape>) =>
|
|
52
|
+
export declare const QueueComponent: ({ shape }: ShapeComponentProps<QueueShape>) => import("react/jsx-runtime").JSX.Element;
|
|
54
53
|
export declare const QueueItem: ({ classNames, item }: ThemedClassName<{
|
|
55
54
|
item: any;
|
|
56
|
-
}>) =>
|
|
55
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
57
56
|
export declare const queueShape: ShapeDef<QueueShape>;
|
|
58
57
|
//# sourceMappingURL=Queue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Queue.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Queue.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Queue.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Queue.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAKvF,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1E,eAAO,MAAM,UAAU;;;;;;;iBAwBrB,EAAA,MAAK;UACA,EAAG,QAAQ,QAAO,EAAG,MAAM;WAAc,EAAE,QAAQ,QAAO,EAAG,OAAO;gBAC/D,EAAG,QAAQ,QAAO,EAAG,MAAM;;YAA+B,EAAE,MAAM;kBACrE,EAAG,MAAM;kBAAmB,EAC3B,MAAH;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBACrC,EAAA,MACR;uBAEE,EAAC,MAGH;;;;;;GA9BC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW,UAAW,gBAAgB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAE1F,eAAO,MAAM,cAAc,cAAe,mBAAmB,CAAC,UAAU,CAAC,4CAmBxE,CAAC;AAEF,eAAO,MAAM,SAAS,yBAA0B,eAAe,CAAC;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,4CAe7E,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,UAAU,CAQ3C,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
3
|
import { type CreateShapeProps } from './defs';
|
|
@@ -53,6 +52,6 @@ export declare const createRandom: (props: CreateRandomProps) => {
|
|
|
53
52
|
readonly max?: number | undefined;
|
|
54
53
|
readonly min?: number | undefined;
|
|
55
54
|
};
|
|
56
|
-
export declare const RandomComponent: ({ shape }: ShapeComponentProps<RandomShape>) =>
|
|
55
|
+
export declare const RandomComponent: ({ shape }: ShapeComponentProps<RandomShape>) => import("react/jsx-runtime").JSX.Element;
|
|
57
56
|
export declare const randomShape: ShapeDef<RandomShape>;
|
|
58
57
|
//# sourceMappingURL=RNG.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNG.d.ts","sourceRoot":"","sources":["../../../../src/shapes/RNG.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RNG.d.ts","sourceRoot":"","sources":["../../../../src/shapes/RNG.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAmB,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGxG,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1F,eAAO,MAAM,WAAW;;;;;;;iBA6BX,EAAG,MAAM;UAAW,EAAG,QAAQ,QAE1C,EAAC,MAAM;WAAa,EAAI,QAAO,QAAO,EACtC,OAAK;gBAAmB,EAAE,QAAQ,QAAO,EAAG,MAC1C;;YACW,EACT,MAAA;kBAGD,EAAG,MAAM;kBAAmB,EAAG,MAAM;;UACtC,EAAC,OAAO,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAChC,EAAG,MAAM;;;;;;;;GAjC9B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;AAE9D,eAAO,MAAM,YAAY,UAAW,iBAAiB;;;;;;;;;;;;;;;;;;;;;CACiC,CAAC;AAcvF,eAAO,MAAM,eAAe,cAAe,mBAAmB,CAAC,WAAW,CAAC,4CA+B1E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAO7C,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
3
|
import { type CreateShapeProps } from './defs';
|
|
@@ -49,6 +48,6 @@ export declare const createScope: (props: CreateScopeProps) => {
|
|
|
49
48
|
} & {
|
|
50
49
|
readonly type: "scope";
|
|
51
50
|
};
|
|
52
|
-
export declare const ScopeComponent: ({ shape }: ShapeComponentProps<ScopeShape>) =>
|
|
51
|
+
export declare const ScopeComponent: ({ shape }: ShapeComponentProps<ScopeShape>) => import("react/jsx-runtime").JSX.Element;
|
|
53
52
|
export declare const scopeShape: ShapeDef<ScopeShape>;
|
|
54
53
|
//# sourceMappingURL=Scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Scope.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Scope.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAmB,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGxG,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1F,eAAO,MAAM,UAAU;;;;;;;iBA2BmC,EAAI,MAAK;UAAW,EAAG,QAAQ,QAAO,EAAG,MACnG;WACE,EACF,QAEI,QAAO,EAAG,OAAO;gBAAkB,EAAG,QAC1C,QAAQ,EAAE,MAAM;;YAEJ,EAAG,MAAM;kBACb,EAAG,MAAM;kBACV,EAAG,MAAM;;UACT,EAAG,OAAO,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAAwB,EAAG,MAAM;;;;;;GAjC3F,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW,UAAW,gBAAgB;;;;;;;;;;;;;;;;;;;CAM/C,CAAC;AAEL,eAAO,MAAM,cAAc,cAAe,mBAAmB,CAAC,UAAU,CAAC,4CAWxE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,UAAU,CAO3C,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
3
|
import { type CreateShapeProps } from './defs';
|
|
@@ -49,6 +48,6 @@ export declare const createSurface: (props: CreateSurfaceProps) => {
|
|
|
49
48
|
} & {
|
|
50
49
|
readonly type: "surface";
|
|
51
50
|
};
|
|
52
|
-
export declare const SurfaceComponent: ({ shape }: ShapeComponentProps<SurfaceShape>) =>
|
|
51
|
+
export declare const SurfaceComponent: ({ shape }: ShapeComponentProps<SurfaceShape>) => import("react/jsx-runtime").JSX.Element;
|
|
53
52
|
export declare const surfaceShape: ShapeDef<SurfaceShape>;
|
|
54
53
|
//# sourceMappingURL=Surface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Surface.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Surface.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1F,eAAO,MAAM,YAAY;;;;;;;iBA0BE,EAAG,MAAM;UAC9B,EAAA,QAAI,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QAAO,EAAI,OAAM;gBAC/D,EAAA,QACH,QAGD,EAAE,MAAM;;YAA8B,EAAG,MAAM;kBAClC,EAAG,MACb;kBACA,EAAG,MAAM;;UAAmB,EAAG,OAC/B,CAAC,EAAE,MAAM;sBACP,EAAG,MAAM;uBACN,EAAG,MAAM;;;;;;GAjChB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa,UAAW,kBAAkB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAE9F,eAAO,MAAM,gBAAgB,cAAe,mBAAmB,CAAC,YAAY,CAAC,4CAgB5E,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,YAAY,CAQ/C,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
3
|
import { type CreateShapeProps } from './defs';
|
|
@@ -49,6 +48,6 @@ export declare const createSwitch: (props: CreateSwitchProps) => {
|
|
|
49
48
|
} & {
|
|
50
49
|
readonly type: "switch";
|
|
51
50
|
};
|
|
52
|
-
export declare const SwitchComponent: ({ shape }: ShapeComponentProps<SwitchShape>) =>
|
|
51
|
+
export declare const SwitchComponent: ({ shape }: ShapeComponentProps<SwitchShape>) => import("react/jsx-runtime").JSX.Element;
|
|
53
52
|
export declare const switchShape: ShapeDef<SwitchShape>;
|
|
54
53
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Switch.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Switch.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAmB,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExG,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1F,eAAO,MAAM,WAAW;;;;;;;iBAyB0C,EAAG,MAAM;UACrE,EAAA,QAAK,QAAO,EACd,MAAG;WAIP,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAkB,EAAI,QAC7C,QAAO,EAAG,MACZ;;YACY,EAAG,MAAM;kBAChB,EAAG,MAAM;kBACX,EAAG,MAAM;;UACV,EAAG,OAAO,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAAwB,EAAG,MAAM;;;;;;GAhCzF,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;AAE9D,eAAO,MAAM,YAAY,UAAW,iBAAiB;;;;;;;;;;;;;;;;;;;CACoC,CAAC;AAG1F,eAAO,MAAM,eAAe,cAAe,mBAAmB,CAAC,WAAW,CAAC,4CAc1E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAO7C,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
3
|
import { type CreateShapeProps } from './defs';
|
|
@@ -49,6 +48,6 @@ export declare const createTable: (props: CreateTableProps) => {
|
|
|
49
48
|
} & {
|
|
50
49
|
readonly type: "table";
|
|
51
50
|
};
|
|
52
|
-
export declare const TableComponent: ({ shape }: ShapeComponentProps<TableShape>) =>
|
|
51
|
+
export declare const TableComponent: ({ shape }: ShapeComponentProps<TableShape>) => import("react/jsx-runtime").JSX.Element;
|
|
53
52
|
export declare const tableShape: ShapeDef<TableShape>;
|
|
54
53
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Table.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Table.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGvF,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAK1E,eAAO,MAAM,UAAU;;;;;;;iBA6BtB,EAAG,MAAM;UAAW,EAAG,QAAQ,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAkB,EAAG,QAAQ,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAAoB,EAAG,MAAM;kBAAmB,EAAG,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAAwB,EAAG,MAAM;;;;;;GAxB7U,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAE5D,eAAO,MAAM,WAAW,UAAW,gBAAgB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAE1F,eAAO,MAAM,cAAc,cAAe,mBAAmB,CAAC,UAAU,CAAC,4CAIxE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,UAAU,CAQ3C,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
3
|
import { type CreateShapeProps } from './defs';
|
|
@@ -49,6 +48,6 @@ export declare const createText: (props: CreateTextProps) => {
|
|
|
49
48
|
} & {
|
|
50
49
|
readonly type: "text";
|
|
51
50
|
};
|
|
52
|
-
export declare const TextComponent: ({ shape }: ShapeComponentProps<TextShape>) =>
|
|
51
|
+
export declare const TextComponent: ({ shape }: ShapeComponentProps<TextShape>) => import("react/jsx-runtime").JSX.Element;
|
|
53
52
|
export declare const textShape: ShapeDef<TextShape>;
|
|
54
53
|
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Text.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Text.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAW,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIhG,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAG1F,eAAO,MAAM,SAAS;;;;;;;iBAgClB,EAAG,MAAM;UAAW,EAAG,QAAQ,QAAO,EAAI,MAC3C;WACD,EAAC,QAAQ,QACT,EAAG,OAAO;gBAAkB,EAC5B,QAAO,QAAO,EAAG,MAAM;;YAEvB,EAAC,MAAM;kBAAoB,EAAG,MAAM;kBAAmB,EAAG,MAAM;;UAAoB,EAAG,OAAM,CAC7F,EAAA,MAAK;sBAEE,EAAG,MAAM;uBAAwB,EAAG,MAAM;;;;;;GApClD,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAE1D,eAAO,MAAM,UAAU,UAAW,eAAe;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAExF,eAAO,MAAM,aAAa,cAAe,mBAAmB,CAAC,SAAS,CAAC,4CAgBtE,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,SAAS,CAQzC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
3
|
import { type CreateShapeProps } from './defs';
|
|
@@ -49,6 +48,6 @@ export declare const createTextToImage: (props: CreateTextToImageProps) => {
|
|
|
49
48
|
} & {
|
|
50
49
|
readonly type: "text-to-image";
|
|
51
50
|
};
|
|
52
|
-
export declare const TextToImageComponent: ({ shape }: ShapeComponentProps<TextToImageShape>) =>
|
|
51
|
+
export declare const TextToImageComponent: ({ shape }: ShapeComponentProps<TextToImageShape>) => import("react/jsx-runtime").JSX.Element;
|
|
53
52
|
export declare const textToImageShape: ShapeDef<TextToImageShape>;
|
|
54
53
|
//# sourceMappingURL=TextToImage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextToImage.d.ts","sourceRoot":"","sources":["../../../../src/shapes/TextToImage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextToImage.d.ts","sourceRoot":"","sources":["../../../../src/shapes/TextToImage.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAA6C,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1F,eAAO,MAAM,gBAAgB;;;;;;;iBA0BsE,EAAG,MAAM;UAAW,EAAG,QAAQ,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAkB,EAAG,QAAQ,QAAO,EAAG,MAAM;;YAA8B,EAAG,MAAM;kBAAoB,EAAG,MAAM;kBAAmB,EAAG,MAAM;;UAAmB,EAAG,OAAO,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAAwB,EAAG,MAAM;;;;;;GArB/a,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEtE,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB,UAAW,sBAAsB;;;;;;;;;;;;;;;;;;;CACuC,CAAC;AAEvG,eAAO,MAAM,oBAAoB,cAAe,mBAAmB,CAAC,gBAAgB,CAAC,4CAEpF,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,CAOvD,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
4
3
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
@@ -50,9 +49,9 @@ export declare const createThread: (props: CreateThreadProps) => {
|
|
|
50
49
|
} & {
|
|
51
50
|
readonly type: "thread";
|
|
52
51
|
};
|
|
53
|
-
export declare const ThreadComponent: ({ shape }: ShapeComponentProps<ThreadShape>) =>
|
|
52
|
+
export declare const ThreadComponent: ({ shape }: ShapeComponentProps<ThreadShape>) => import("react/jsx-runtime").JSX.Element;
|
|
54
53
|
export declare const ThreadItem: ({ classNames, item }: ThemedClassName<{
|
|
55
54
|
item: any;
|
|
56
|
-
}>) =>
|
|
55
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
57
56
|
export declare const threadShape: ShapeDef<ThreadShape>;
|
|
58
57
|
//# sourceMappingURL=Thread.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Thread.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Thread.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIvF,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAK1E,eAAO,MAAM,WAAW;;;;;;;iBAwBpB,EAAA,MAAK;UAAW,EACd,QAAC,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAmB,EAAE,QACjF,QAAO,EAAG,MAAM;;YACT,EAAG,MAAM;kBAAoB,EAAG,MACvC;kBACO,EACP,MAAG;;UAIA,EAAE,OAAO,CAAC,EAAE,MAAM;sBAAwB,EAAG,MAAM;uBAAwB,EAChF,MAAG;;;;;;GA9BJ,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;AAE9D,eAAO,MAAM,YAAY,UAAW,iBAAiB;;;;;;;;;;;;;;;;;;;CACsC,CAAC;AAE5F,eAAO,MAAM,eAAe,cAAe,mBAAmB,CAAC,WAAW,CAAC,4CAkB1E,CAAC;AAEF,eAAO,MAAM,UAAU,yBAA0B,eAAe,CAAC;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,4CAwB9E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAQ7C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { S } from '@dxos/echo-schema';
|
|
3
2
|
import { TriggerKind } from '@dxos/functions';
|
|
3
|
+
import { SpaceId } from '@dxos/keys';
|
|
4
4
|
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
5
5
|
import { type CreateShapeProps } from './defs';
|
|
6
6
|
export declare const TriggerShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
|
|
@@ -58,10 +58,11 @@ export declare const TriggerShape: S.extend<S.extend<S.mutable<S.extend<S.extend
|
|
|
58
58
|
}>>;
|
|
59
59
|
export type TriggerShape = S.Schema.Type<typeof TriggerShape>;
|
|
60
60
|
export type CreateTriggerProps = CreateShapeProps<Omit<TriggerShape, 'functionTrigger'>> & {
|
|
61
|
+
spaceId?: SpaceId;
|
|
61
62
|
triggerKind?: TriggerKind;
|
|
62
63
|
};
|
|
63
64
|
export declare const createTrigger: (props: CreateTriggerProps) => TriggerShape;
|
|
64
65
|
export type TriggerComponentProps = ShapeComponentProps<TriggerShape>;
|
|
65
|
-
export declare const TriggerComponent: ({ shape }: TriggerComponentProps) =>
|
|
66
|
+
export declare const TriggerComponent: ({ shape }: TriggerComponentProps) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
66
67
|
export declare const triggerShape: ShapeDef<TriggerShape>;
|
|
67
68
|
//# sourceMappingURL=Trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Trigger.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Trigger.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Trigger.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Trigger.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAiB,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAML,WAAW,EAGZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAO,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGvF,OAAO,EAA6B,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1E,eAAO,MAAM,YAAY;;;;;;;iBAc+B,EAAG,MAAM;UAC/D,EAAC,QAAQ,QAAO,EAAG,MAAM;WAAa,EAAG,QAAQ,QAC7C,EAAG,OAAO;gBACD,EAAG,QAAQ,QAAO,EAC/B,MACF;;YAA8B,EAAG,MAC/B;kBACE,EAAA,MAAM;kBAAmB,EAAG,MAAM;;UAC5B,EAAG,OAAO,CAAC,EAAG,MAAK;sBAAwB,EAAG,MAAM;uBAG7D,EAED,MAAM;;;;;;;2BAkFkC,EAAG,QAAQ,CAAC,EAAE,WAChD;0BACE,EAAG,QAAQ,CAAC,EAAE,WAAW;uBACH,EAAG,QAAQ,CAAC,EACxC,KAAE,EACF,EAAC,OAAO,CAAC,EAAE,MAAM;kBAGjB,EAAG,OAAO,EAAE,YAAa,KAAI;kBAAiB,EAAI,WAC5C;aAEL,EAAG,OAAO,CAAC,EAAE,MAAM;kBAClB,EAAG,OAAO,EAAE,YAAY,OACxB;oBAAmB,EAAG,QACtB,CAAC,EAAE,WAAW;kBAEZ,EAAE,QACL,CAAG,EAAA,WACN;aAAkC,EAAG,OAAO,CAAC,EAAE,MAAM;kBAAgB,EAAG,OAAO,EAAE,YAEjF,YACQ;oBAAmB,EAAG,MAAM;sBAAoB,EAAG,QAAQ,CAAC,EAAE,WAAW;uBAA4C,EAAG,QAAQ,CAAC,EAAE,OAAO,QAAO,EAAG,MAAM,SAAQ,EAAG,GAAG;;qBAAgC,EAAG,QAAQ,CAAC,EAAE,MAAM;sBAAoB,EAAG,QAAQ,CAAC,EAAE,WAAW;uBAA8C,EAAG,QAAQ,CAAC,EAAE,WAAW;;aAA+C,EAAG,OAAO,CAAC,EAAE,MAAM;kBAAgB,EAAG,OAAO,EAAE,YAAY,KAAK;aAAY,EAAG,OAAO,CAAC,EAAE,MAAM;kBAAgB,EAAG,OAAO,EAAE,YAAY,KAAK;mBAAkB,EAAG,MAAM,SAAQ,EAAG,MAAM;;uBAAwD,EAAG,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,QAAO,EAAG,MAAM,SAAQ,EAAG,GAAG;;GA5HnrB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,IAAI,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC,GAAG;IACzF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,kBAAkB,KAAG,YAWzD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;AAEtE,eAAO,MAAM,gBAAgB,cAAe,qBAAqB,wDAkChE,CAAC;AAsDF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,YAAY,CAY/C,CAAC"}
|
|
@@ -9,7 +9,7 @@ export type FunctionBodyProps = {
|
|
|
9
9
|
inputSchema?: S.Schema.Any;
|
|
10
10
|
outputSchema?: S.Schema.Any;
|
|
11
11
|
} & Pick<BoxProps, 'status'>;
|
|
12
|
-
export declare const FunctionBody: ({ shape, name, content, inputSchema, outputSchema, ...props }: FunctionBodyProps) => JSX.Element;
|
|
12
|
+
export declare const FunctionBody: ({ shape, name, content, inputSchema, outputSchema, ...props }: FunctionBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export declare const getHeight: (input: S.Schema<any>) => number;
|
|
14
14
|
export declare const createFunctionAnchors: (shape: Polygon, input?: S.Schema<any>, output?: S.Schema<any>) => Record<string, import("@dxos/react-ui-canvas-editor").Anchor>;
|
|
15
15
|
//# sourceMappingURL=FunctionBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionBody.d.ts","sourceRoot":"","sources":["../../../../../src/shapes/common/FunctionBody.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,GAAG,EAAoB,MAAM,OAAO,CAAC;AAG1D,OAAO,EAAO,KAAK,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAO,KAAK,QAAQ,EAA8B,MAAM,WAAW,CAAC;AAM3E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;CAC7B,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"FunctionBody.d.ts","sourceRoot":"","sources":["../../../../../src/shapes/common/FunctionBody.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,GAAG,EAAoB,MAAM,OAAO,CAAC;AAG1D,OAAO,EAAO,KAAK,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,EAAO,KAAK,QAAQ,EAA8B,MAAM,WAAW,CAAC;AAM3E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;CAC7B,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAG7B,eAAO,MAAM,YAAY,kEAOtB,iBAAiB,4CAwEnB,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WAG7C,CAAC;AAEF,eAAO,MAAM,qBAAqB,UACzB,OAAO,UACP,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WACZ,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,kEAMtB,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type SelectRootProps } from '@dxos/react-ui';
|
|
3
|
-
export declare const TypeSelect: ({ value, onValueChange }: Pick<SelectRootProps, "value" | "onValueChange">) =>
|
|
2
|
+
export declare const TypeSelect: ({ value, onValueChange }: Pick<SelectRootProps, "value" | "onValueChange">) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=TypeSelect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeSelect.d.ts","sourceRoot":"","sources":["../../../../../src/shapes/common/TypeSelect.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TypeSelect.d.ts","sourceRoot":"","sources":["../../../../../src/shapes/common/TypeSelect.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAG9D,eAAO,MAAM,UAAU,6BAA8B,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,eAAe,CAAC,4CAoBpG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-canvas-compute",
|
|
3
|
-
"version": "0.7.5-
|
|
3
|
+
"version": "0.7.5-staging.2ff1350",
|
|
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",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "DXOS.org",
|
|
9
|
+
"type": "module",
|
|
9
10
|
"exports": {
|
|
10
11
|
".": {
|
|
11
12
|
"types": "./dist/types/src/index.d.ts",
|
|
@@ -21,38 +22,38 @@
|
|
|
21
22
|
"dependencies": {
|
|
22
23
|
"@antv/graphlib": "^2.0.4",
|
|
23
24
|
"@antv/layout": "^1.2.13",
|
|
25
|
+
"@effect/platform": "0.75.1",
|
|
24
26
|
"chess.js": "^1.0.0",
|
|
25
|
-
"@dxos/app-framework": "0.7.5-
|
|
26
|
-
"@dxos/artifact": "0.7.5-
|
|
27
|
-
"@dxos/assistant": "0.7.5-
|
|
28
|
-
"@dxos/
|
|
29
|
-
"@dxos/
|
|
30
|
-
"@dxos/
|
|
31
|
-
"@dxos/
|
|
32
|
-
"@dxos/echo-schema": "0.7.5-
|
|
33
|
-
"@dxos/edge-client": "0.7.5-
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/react-client": "0.7.5-
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/react-ui-canvas": "0.7.5-
|
|
44
|
-
"@dxos/react-ui-canvas-editor": "0.7.5-
|
|
45
|
-
"@dxos/react-ui-
|
|
46
|
-
"@dxos/react-ui-
|
|
47
|
-
"@dxos/react-ui-
|
|
48
|
-
"@dxos/react-ui-sfx": "0.7.5-
|
|
49
|
-
"@dxos/react-ui-
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/util": "0.7.5-
|
|
52
|
-
"@dxos/schema": "0.7.5-labs.ff2ff30"
|
|
27
|
+
"@dxos/app-framework": "0.7.5-staging.2ff1350",
|
|
28
|
+
"@dxos/artifact": "0.7.5-staging.2ff1350",
|
|
29
|
+
"@dxos/assistant": "0.7.5-staging.2ff1350",
|
|
30
|
+
"@dxos/context": "0.7.5-staging.2ff1350",
|
|
31
|
+
"@dxos/async": "0.7.5-staging.2ff1350",
|
|
32
|
+
"@dxos/debug": "0.7.5-staging.2ff1350",
|
|
33
|
+
"@dxos/conductor": "0.7.5-staging.2ff1350",
|
|
34
|
+
"@dxos/echo-schema": "0.7.5-staging.2ff1350",
|
|
35
|
+
"@dxos/edge-client": "0.7.5-staging.2ff1350",
|
|
36
|
+
"@dxos/graph": "0.7.5-staging.2ff1350",
|
|
37
|
+
"@dxos/functions": "0.7.5-staging.2ff1350",
|
|
38
|
+
"@dxos/invariant": "0.7.5-staging.2ff1350",
|
|
39
|
+
"@dxos/keys": "0.7.5-staging.2ff1350",
|
|
40
|
+
"@dxos/live-object": "0.7.5-staging.2ff1350",
|
|
41
|
+
"@dxos/react-edge-client": "0.7.5-staging.2ff1350",
|
|
42
|
+
"@dxos/react-client": "0.7.5-staging.2ff1350",
|
|
43
|
+
"@dxos/log": "0.7.5-staging.2ff1350",
|
|
44
|
+
"@dxos/react-ui-attention": "0.7.5-staging.2ff1350",
|
|
45
|
+
"@dxos/react-ui-canvas": "0.7.5-staging.2ff1350",
|
|
46
|
+
"@dxos/react-ui-canvas-editor": "0.7.5-staging.2ff1350",
|
|
47
|
+
"@dxos/react-ui-form": "0.7.5-staging.2ff1350",
|
|
48
|
+
"@dxos/react-ui-editor": "0.7.5-staging.2ff1350",
|
|
49
|
+
"@dxos/react-ui-stack": "0.7.5-staging.2ff1350",
|
|
50
|
+
"@dxos/react-ui-sfx": "0.7.5-staging.2ff1350",
|
|
51
|
+
"@dxos/react-ui-syntax-highlighter": "0.7.5-staging.2ff1350",
|
|
52
|
+
"@dxos/schema": "0.7.5-staging.2ff1350",
|
|
53
|
+
"@dxos/util": "0.7.5-staging.2ff1350"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
|
-
"@effect/ai": "
|
|
56
|
+
"@effect/ai": "0.8.0",
|
|
56
57
|
"@effect/platform": "^0.72.1",
|
|
57
58
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
58
59
|
"@types/react": "~18.2.0",
|
|
@@ -62,22 +63,22 @@
|
|
|
62
63
|
"react": "~18.2.0",
|
|
63
64
|
"react-dom": "~18.2.0",
|
|
64
65
|
"vite": "5.4.7",
|
|
65
|
-
"@dxos/app-framework": "0.7.5-
|
|
66
|
-
"@dxos/artifact-testing": "0.7.5-
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/react-ui": "0.7.5-
|
|
71
|
-
"@dxos/react-ui-theme": "0.7.5-
|
|
72
|
-
"@dxos/storybook-utils": "0.7.5-
|
|
66
|
+
"@dxos/app-framework": "0.7.5-staging.2ff1350",
|
|
67
|
+
"@dxos/artifact-testing": "0.7.5-staging.2ff1350",
|
|
68
|
+
"@dxos/compute": "0.7.5-staging.2ff1350",
|
|
69
|
+
"@dxos/echo-signals": "0.7.5-staging.2ff1350",
|
|
70
|
+
"@dxos/random": "0.7.5-staging.2ff1350",
|
|
71
|
+
"@dxos/react-ui": "0.7.5-staging.2ff1350",
|
|
72
|
+
"@dxos/react-ui-theme": "0.7.5-staging.2ff1350",
|
|
73
|
+
"@dxos/storybook-utils": "0.7.5-staging.2ff1350"
|
|
73
74
|
},
|
|
74
75
|
"peerDependencies": {
|
|
75
76
|
"@effect/schema": "^0.75.5",
|
|
76
77
|
"effect": "^3.12.3",
|
|
77
78
|
"react": "~18.2.0",
|
|
78
79
|
"react-dom": "~18.2.0",
|
|
79
|
-
"@dxos/react-ui": "0.7.5-
|
|
80
|
-
"@dxos/react-ui-theme": "0.7.5-
|
|
80
|
+
"@dxos/react-ui": "0.7.5-staging.2ff1350",
|
|
81
|
+
"@dxos/react-ui-theme": "0.7.5-staging.2ff1350"
|
|
81
82
|
},
|
|
82
83
|
"publishConfig": {
|
|
83
84
|
"access": "public"
|
package/src/graph/controller.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { FetchHttpClient } from '@effect/platform';
|
|
5
6
|
import { type Context, Effect, Either, Exit, Layer, Scope } from 'effect';
|
|
6
7
|
|
|
7
8
|
import { type ImageContentBlock } from '@dxos/artifact';
|
|
@@ -25,6 +26,7 @@ import {
|
|
|
25
26
|
SpaceService,
|
|
26
27
|
type ValueBag,
|
|
27
28
|
type GraphDiagnostic,
|
|
29
|
+
FunctionCallService,
|
|
28
30
|
} from '@dxos/conductor';
|
|
29
31
|
import { Resource } from '@dxos/context';
|
|
30
32
|
import type { EdgeClient, EdgeHttpClient } from '@dxos/edge-client';
|
|
@@ -144,6 +146,7 @@ export class ComputeGraphController extends Resource {
|
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
setServices(services: Partial<Services>) {
|
|
149
|
+
log.info('setServices', { services });
|
|
147
150
|
Object.assign(this._services, services);
|
|
148
151
|
}
|
|
149
152
|
|
|
@@ -248,10 +251,10 @@ export class ComputeGraphController extends Resource {
|
|
|
248
251
|
// TODO(dmaretskyi): Check if the node has a compute function and run computeOutputs if it does.
|
|
249
252
|
const effect = (computingOutputs ? executor.computeOutputs(nodeId) : executor.computeInputs(nodeId)).pipe(
|
|
250
253
|
Effect.withSpan('runGraph'),
|
|
251
|
-
Effect.provide(services),
|
|
252
254
|
Scope.extend(scope),
|
|
253
255
|
|
|
254
256
|
Effect.flatMap(computeValueBag),
|
|
257
|
+
Effect.provide(services),
|
|
255
258
|
Effect.withSpan('test'),
|
|
256
259
|
Effect.tap((values) => {
|
|
257
260
|
for (const [key, value] of Object.entries(values)) {
|
|
@@ -310,9 +313,9 @@ export class ComputeGraphController extends Resource {
|
|
|
310
313
|
// TODO(dmaretskyi): Check if the node has a compute function and run computeOutputs if it does.
|
|
311
314
|
const effect = (computingOutputs ? executor.computeOutputs(node) : executor.computeInputs(node)).pipe(
|
|
312
315
|
Effect.withSpan('runGraph'),
|
|
313
|
-
Effect.provide(services),
|
|
314
316
|
Scope.extend(scope),
|
|
315
317
|
Effect.flatMap(computeValueBag),
|
|
318
|
+
Effect.provide(services),
|
|
316
319
|
Effect.withSpan('test'),
|
|
317
320
|
Effect.tap((values) => {
|
|
318
321
|
for (const [key, value] of Object.entries(values)) {
|
|
@@ -349,7 +352,15 @@ export class ComputeGraphController extends Resource {
|
|
|
349
352
|
const spaceLayer =
|
|
350
353
|
services.spaceService != null ? Layer.succeed(SpaceService, services.spaceService) : SpaceService.empty;
|
|
351
354
|
|
|
352
|
-
|
|
355
|
+
const functionCallServiceLayer =
|
|
356
|
+
services.edgeHttpClient != null && services.spaceService != null
|
|
357
|
+
? Layer.succeed(
|
|
358
|
+
FunctionCallService,
|
|
359
|
+
FunctionCallService.fromClient(services.edgeHttpClient.baseUrl, services.spaceService.spaceId),
|
|
360
|
+
)
|
|
361
|
+
: Layer.succeed(FunctionCallService, FunctionCallService.mock());
|
|
362
|
+
|
|
363
|
+
return Layer.mergeAll(logLayer, gptLayer, queueLayer, spaceLayer, functionCallServiceLayer, FetchHttpClient.layer);
|
|
353
364
|
}
|
|
354
365
|
|
|
355
366
|
private _createLogger(): Context.Tag.Service<EventLogger> {
|
|
@@ -10,7 +10,7 @@ import { invariant } from '@dxos/invariant';
|
|
|
10
10
|
import { DXN } from '@dxos/keys';
|
|
11
11
|
import { getSpace } from '@dxos/react-client/echo';
|
|
12
12
|
import { type GraphMonitor, type CanvasGraphModel, type Connection } from '@dxos/react-ui-canvas-editor';
|
|
13
|
-
import {
|
|
13
|
+
import { isNonNullable } from '@dxos/util';
|
|
14
14
|
|
|
15
15
|
import { createComputeNode, isValidComputeNode } from '../graph';
|
|
16
16
|
import { type ComputeShape, type TriggerShape } from '../shapes';
|
|
@@ -79,7 +79,7 @@ export const useGraphMonitor = (model?: ComputeGraphModel): GraphMonitor<Compute
|
|
|
79
79
|
return model.edges.find((computeEdge) => computeEdge.input === input && computeEdge.output === output)
|
|
80
80
|
?.id;
|
|
81
81
|
})
|
|
82
|
-
.filter(
|
|
82
|
+
.filter(isNonNullable);
|
|
83
83
|
|
|
84
84
|
model.removeNodes(nodeIds);
|
|
85
85
|
model.removeEdges(edgeIds);
|