@dxos/react-ui-canvas-compute 0.7.5-labs.071a3e2
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/LICENSE +8 -0
- package/README.md +1 -0
- package/dist/lib/browser/index.mjs +2535 -0
- package/dist/lib/browser/index.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -0
- package/dist/lib/node/index.cjs +2627 -0
- package/dist/lib/node/index.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -0
- package/dist/lib/node-esm/index.mjs +2535 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/types/src/components/DiagnosticOverlay.d.ts +7 -0
- package/dist/types/src/components/DiagnosticOverlay.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +2 -0
- package/dist/types/src/components/index.d.ts.map +1 -0
- package/dist/types/src/compute-layout.d.ts +9 -0
- package/dist/types/src/compute-layout.d.ts.map +1 -0
- package/dist/types/src/compute.stories.d.ts +28 -0
- package/dist/types/src/compute.stories.d.ts.map +1 -0
- package/dist/types/src/graph/controller.d.ts +142 -0
- package/dist/types/src/graph/controller.d.ts.map +1 -0
- package/dist/types/src/graph/index.d.ts +3 -0
- package/dist/types/src/graph/index.d.ts.map +1 -0
- package/dist/types/src/graph/node-defs.d.ts +6 -0
- package/dist/types/src/graph/node-defs.d.ts.map +1 -0
- package/dist/types/src/hooks/compute-context.d.ts +7 -0
- package/dist/types/src/hooks/compute-context.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +4 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useComputeNodeState.d.ts +19 -0
- package/dist/types/src/hooks/useComputeNodeState.d.ts.map +1 -0
- package/dist/types/src/hooks/useGraphMonitor.d.ts +14 -0
- package/dist/types/src/hooks/useGraphMonitor.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +6 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/src/json.test.d.ts +21 -0
- package/dist/types/src/json.test.d.ts.map +1 -0
- package/dist/types/src/registry.d.ts +9 -0
- package/dist/types/src/registry.d.ts.map +1 -0
- package/dist/types/src/schema.test.d.ts +2 -0
- package/dist/types/src/schema.test.d.ts.map +1 -0
- package/dist/types/src/shapes/Append.d.ts +54 -0
- package/dist/types/src/shapes/Append.d.ts.map +1 -0
- package/dist/types/src/shapes/Array.d.ts +38 -0
- package/dist/types/src/shapes/Array.d.ts.map +1 -0
- package/dist/types/src/shapes/Audio.d.ts +54 -0
- package/dist/types/src/shapes/Audio.d.ts.map +1 -0
- package/dist/types/src/shapes/Beacon.d.ts +54 -0
- package/dist/types/src/shapes/Beacon.d.ts.map +1 -0
- package/dist/types/src/shapes/Boolean.d.ts +233 -0
- package/dist/types/src/shapes/Boolean.d.ts.map +1 -0
- package/dist/types/src/shapes/Chat.d.ts +57 -0
- package/dist/types/src/shapes/Chat.d.ts.map +1 -0
- package/dist/types/src/shapes/Constant.d.ts +60 -0
- package/dist/types/src/shapes/Constant.d.ts.map +1 -0
- package/dist/types/src/shapes/Database.d.ts +54 -0
- package/dist/types/src/shapes/Database.d.ts.map +1 -0
- package/dist/types/src/shapes/Function.d.ts +54 -0
- package/dist/types/src/shapes/Function.d.ts.map +1 -0
- package/dist/types/src/shapes/Gpt.d.ts +54 -0
- package/dist/types/src/shapes/Gpt.d.ts.map +1 -0
- package/dist/types/src/shapes/GptRealtime.d.ts +54 -0
- package/dist/types/src/shapes/GptRealtime.d.ts.map +1 -0
- package/dist/types/src/shapes/Json.d.ts +107 -0
- package/dist/types/src/shapes/Json.d.ts.map +1 -0
- package/dist/types/src/shapes/Logic.d.ts +109 -0
- package/dist/types/src/shapes/Logic.d.ts.map +1 -0
- package/dist/types/src/shapes/Queue.d.ts +58 -0
- package/dist/types/src/shapes/Queue.d.ts.map +1 -0
- package/dist/types/src/shapes/RNG.d.ts +58 -0
- package/dist/types/src/shapes/RNG.d.ts.map +1 -0
- package/dist/types/src/shapes/Scope.d.ts +54 -0
- package/dist/types/src/shapes/Scope.d.ts.map +1 -0
- package/dist/types/src/shapes/Surface.d.ts +54 -0
- package/dist/types/src/shapes/Surface.d.ts.map +1 -0
- package/dist/types/src/shapes/Switch.d.ts +54 -0
- package/dist/types/src/shapes/Switch.d.ts.map +1 -0
- package/dist/types/src/shapes/Table.d.ts +54 -0
- package/dist/types/src/shapes/Table.d.ts.map +1 -0
- package/dist/types/src/shapes/Template.d.ts +56 -0
- package/dist/types/src/shapes/Template.d.ts.map +1 -0
- package/dist/types/src/shapes/Text.d.ts +54 -0
- package/dist/types/src/shapes/Text.d.ts.map +1 -0
- package/dist/types/src/shapes/TextToImage.d.ts +54 -0
- package/dist/types/src/shapes/TextToImage.d.ts.map +1 -0
- package/dist/types/src/shapes/Thread.d.ts +58 -0
- package/dist/types/src/shapes/Thread.d.ts.map +1 -0
- package/dist/types/src/shapes/Trigger.d.ts +64 -0
- package/dist/types/src/shapes/Trigger.d.ts.map +1 -0
- package/dist/types/src/shapes/common/Box.d.ts +25 -0
- package/dist/types/src/shapes/common/Box.d.ts.map +1 -0
- package/dist/types/src/shapes/common/FunctionBody.d.ts +15 -0
- package/dist/types/src/shapes/common/FunctionBody.d.ts.map +1 -0
- package/dist/types/src/shapes/common/TypeSelect.d.ts +4 -0
- package/dist/types/src/shapes/common/TypeSelect.d.ts.map +1 -0
- package/dist/types/src/shapes/common/index.d.ts +4 -0
- package/dist/types/src/shapes/common/index.d.ts.map +1 -0
- package/dist/types/src/shapes/defs.d.ts +39 -0
- package/dist/types/src/shapes/defs.d.ts.map +1 -0
- package/dist/types/src/shapes/index.d.ts +27 -0
- package/dist/types/src/shapes/index.d.ts.map +1 -0
- package/dist/types/src/testing/circuits.d.ts +193 -0
- package/dist/types/src/testing/circuits.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +85 -0
- package/src/README.md +47 -0
- package/src/components/DiagnosticOverlay.tsx +23 -0
- package/src/components/index.ts +5 -0
- package/src/compute-layout.ts +37 -0
- package/src/compute.stories.tsx +365 -0
- package/src/graph/controller.ts +419 -0
- package/src/graph/index.ts +6 -0
- package/src/graph/node-defs.ts +82 -0
- package/src/hooks/compute-context.ts +19 -0
- package/src/hooks/index.ts +7 -0
- package/src/hooks/useComputeNodeState.ts +83 -0
- package/src/hooks/useGraphMonitor.ts +133 -0
- package/src/index.ts +9 -0
- package/src/json.test.ts +35 -0
- package/src/registry.ts +100 -0
- package/src/schema.test.ts +62 -0
- package/src/shapes/Append.tsx +43 -0
- package/src/shapes/Array.tsx +61 -0
- package/src/shapes/Audio.tsx +55 -0
- package/src/shapes/Beacon.tsx +56 -0
- package/src/shapes/Boolean.tsx +215 -0
- package/src/shapes/Chat.tsx +77 -0
- package/src/shapes/Constant.tsx +125 -0
- package/src/shapes/Database.tsx +39 -0
- package/src/shapes/Function.tsx +40 -0
- package/src/shapes/Gpt.tsx +91 -0
- package/src/shapes/GptRealtime.tsx +175 -0
- package/src/shapes/Json.tsx +103 -0
- package/src/shapes/Logic.tsx +82 -0
- package/src/shapes/Queue.tsx +78 -0
- package/src/shapes/RNG.tsx +84 -0
- package/src/shapes/Scope.tsx +54 -0
- package/src/shapes/Surface.tsx +57 -0
- package/src/shapes/Switch.tsx +53 -0
- package/src/shapes/Table.tsx +45 -0
- package/src/shapes/Template.tsx +98 -0
- package/src/shapes/Text.tsx +56 -0
- package/src/shapes/TextToImage.tsx +39 -0
- package/src/shapes/Thread.tsx +87 -0
- package/src/shapes/Trigger.tsx +152 -0
- package/src/shapes/common/Box.tsx +74 -0
- package/src/shapes/common/FunctionBody.tsx +122 -0
- package/src/shapes/common/TypeSelect.tsx +31 -0
- package/src/shapes/common/index.ts +7 -0
- package/src/shapes/defs.ts +50 -0
- package/src/shapes/index.ts +31 -0
- package/src/testing/circuits.ts +320 -0
- package/src/testing/index.ts +5 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"packages/ui/react-ui-canvas-compute/src/graph/node-defs.ts":{"bytes":10120,"imports":[{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/hooks/compute-context.ts":{"bytes":1661,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/hooks/useComputeNodeState.ts":{"bytes":7603,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/compute-context.ts","kind":"import-statement","original":"./compute-context"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/hooks/useGraphMonitor.ts":{"bytes":15158,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/graph/index.ts","kind":"import-statement","original":"../graph"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/hooks/index.ts":{"bytes":758,"imports":[{"path":"packages/ui/react-ui-canvas-compute/src/hooks/compute-context.ts","kind":"import-statement","original":"./compute-context"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/useComputeNodeState.ts","kind":"import-statement","original":"./useComputeNodeState"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/useGraphMonitor.ts","kind":"import-statement","original":"./useGraphMonitor"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/graph/controller.ts":{"bytes":42319,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/graph/node-defs.ts","kind":"import-statement","original":"./node-defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/graph/index.ts":{"bytes":608,"imports":[{"path":"packages/ui/react-ui-canvas-compute/src/graph/controller.ts","kind":"import-statement","original":"./controller"},{"path":"packages/ui/react-ui-canvas-compute/src/graph/node-defs.ts","kind":"import-statement","original":"./node-defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/common/Box.tsx":{"bytes":8601,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts":{"bytes":5043,"imports":[{"path":"@effect/schema","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/common/FunctionBody.tsx":{"bytes":13553,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"../common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"../defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/common/TypeSelect.tsx":{"bytes":3648,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts":{"bytes":706,"imports":[{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/Box.tsx","kind":"import-statement","original":"./Box"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/FunctionBody.tsx","kind":"import-statement","original":"./FunctionBody"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/TypeSelect.tsx","kind":"import-statement","original":"./TypeSelect"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Array.tsx":{"bytes":5019,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Append.tsx":{"bytes":4265,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Audio.tsx":{"bytes":6265,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Beacon.tsx":{"bytes":6099,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Boolean.tsx":{"bytes":18365,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Chat.tsx":{"bytes":7116,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Constant.tsx":{"bytes":12847,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Database.tsx":{"bytes":4286,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Function.tsx":{"bytes":4654,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Gpt.tsx":{"bytes":9594,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Json.tsx":{"bytes":9884,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Logic.tsx":{"bytes":7704,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Queue.tsx":{"bytes":9041,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/RNG.tsx":{"bytes":9124,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Scope.tsx":{"bytes":6352,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-sfx","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Surface.tsx":{"bytes":6506,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Switch.tsx":{"bytes":6370,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Table.tsx":{"bytes":4818,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Template.tsx":{"bytes":9569,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Text.tsx":{"bytes":6065,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Thread.tsx":{"bytes":9082,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/TextToImage.tsx":{"bytes":4416,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/Trigger.tsx":{"bytes":15984,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/GptRealtime.tsx":{"bytes":20324,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/shapes/index.ts":{"bytes":2635,"imports":[{"path":"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts","kind":"import-statement","original":"./common"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts","kind":"import-statement","original":"./defs"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Array.tsx","kind":"import-statement","original":"./Array"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Append.tsx","kind":"import-statement","original":"./Append"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Audio.tsx","kind":"import-statement","original":"./Audio"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Beacon.tsx","kind":"import-statement","original":"./Beacon"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Boolean.tsx","kind":"import-statement","original":"./Boolean"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Chat.tsx","kind":"import-statement","original":"./Chat"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Constant.tsx","kind":"import-statement","original":"./Constant"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Database.tsx","kind":"import-statement","original":"./Database"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Function.tsx","kind":"import-statement","original":"./Function"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Gpt.tsx","kind":"import-statement","original":"./Gpt"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Json.tsx","kind":"import-statement","original":"./Json"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Logic.tsx","kind":"import-statement","original":"./Logic"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Queue.tsx","kind":"import-statement","original":"./Queue"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/RNG.tsx","kind":"import-statement","original":"./RNG"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Scope.tsx","kind":"import-statement","original":"./Scope"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Surface.tsx","kind":"import-statement","original":"./Surface"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Switch.tsx","kind":"import-statement","original":"./Switch"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Table.tsx","kind":"import-statement","original":"./Table"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Template.tsx","kind":"import-statement","original":"./Template"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Text.tsx","kind":"import-statement","original":"./Text"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Thread.tsx","kind":"import-statement","original":"./Thread"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/TextToImage.tsx","kind":"import-statement","original":"./TextToImage"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/Trigger.tsx","kind":"import-statement","original":"./Trigger"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/GptRealtime.tsx","kind":"import-statement","original":"./GptRealtime"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/registry.ts":{"bytes":5905,"imports":[{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/index.ts","kind":"import-statement","original":"./shapes"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/compute-layout.ts":{"bytes":4900,"imports":[{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/index.ts","kind":"import-statement","original":"./shapes"}],"format":"esm"},"packages/ui/react-ui-canvas-compute/src/index.ts":{"bytes":861,"imports":[{"path":"packages/ui/react-ui-canvas-compute/src/graph/index.ts","kind":"import-statement","original":"./graph"},{"path":"packages/ui/react-ui-canvas-compute/src/hooks/index.ts","kind":"import-statement","original":"./hooks"},{"path":"packages/ui/react-ui-canvas-compute/src/registry.ts","kind":"import-statement","original":"./registry"},{"path":"packages/ui/react-ui-canvas-compute/src/shapes/index.ts","kind":"import-statement","original":"./shapes"},{"path":"packages/ui/react-ui-canvas-compute/src/compute-layout.ts","kind":"import-statement","original":"./compute-layout"}],"format":"esm"}},"outputs":{"packages/ui/react-ui-canvas-compute/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":163749},"packages/ui/react-ui-canvas-compute/dist/lib/node-esm/index.mjs":{"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@effect/schema","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-syntax-highlighter","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-sfx","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["AndShape","AppendComponent","AppendShape","AudioComponent","AudioShape","BeaconComponent","BeaconShape","Box","ChatShape","ComputeContext","ComputeGraphController","ComputeShape","ComputeShapeLayout","ConstantComponent","ConstantShape","DatabaseComponent","DatabaseShape","FunctionBody","FunctionComponent","FunctionShape","GptComponent","GptRealtimeComponent","GptRealtimeShape","GptShape","IfComponent","IfElseComponent","IfElseShape","IfShape","InvalidStateError","JsonComponent","JsonShape","JsonTransformComponent","JsonTransformShape","NotShape","OrShape","QueueComponent","QueueItem","QueueShape","RandomComponent","RandomShape","ReducerComponent","ReducerShape","ScopeComponent","ScopeShape","SurfaceComponent","SurfaceShape","SwitchComponent","SwitchShape","TableComponent","TableShape","TemplateShape","TextComponent","TextInputComponent","TextShape","TextToImageComponent","TextToImageShape","ThreadComponent","ThreadItem","ThreadShape","TriggerComponent","TriggerShape","TypeSelect","andShape","appendShape","audioShape","beaconShape","chatShape","computeShapes","constantShape","createAnchorId","createAnd","createAppend","createAudio","createBeacon","createChat","createComputeGraph","createComputeGraphController","createComputeNode","createConstant","createDatabase","createFunction","createFunctionAnchors","createGpt","createGptRealtime","createIf","createIfElse","createJson","createJsonTransform","createNot","createOr","createQueue","createRandom","createReducer","createScope","createShape","createSurface","createSwitch","createTable","createTemplate","createText","createTextToImage","createThread","createTrigger","databaseShape","footerHeight","functionShape","getHeight","getProperties","gptRealtimeShape","gptShape","headerHeight","ifElseShape","ifShape","isValidComputeNode","jsonShape","jsonTransformShape","mapEdge","notShape","orShape","parseAnchorId","queueShape","randomShape","reducerShape","resolveComputeNode","scopeShape","surfaceShape","switchShape","tableShape","templateShape","textShape","textToImageShape","threadShape","triggerShape","useComputeContext","useComputeNodeState","useGraphMonitor"],"entryPoint":"packages/ui/react-ui-canvas-compute/src/index.ts","inputs":{"packages/ui/react-ui-canvas-compute/src/graph/controller.ts":{"bytesInOutput":9454},"packages/ui/react-ui-canvas-compute/src/graph/node-defs.ts":{"bytesInOutput":2510},"packages/ui/react-ui-canvas-compute/src/hooks/compute-context.ts":{"bytesInOutput":259},"packages/ui/react-ui-canvas-compute/src/hooks/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-canvas-compute/src/hooks/useComputeNodeState.ts":{"bytesInOutput":1798},"packages/ui/react-ui-canvas-compute/src/hooks/useGraphMonitor.ts":{"bytesInOutput":3615},"packages/ui/react-ui-canvas-compute/src/graph/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-canvas-compute/src/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-canvas-compute/src/registry.ts":{"bytesInOutput":910},"packages/ui/react-ui-canvas-compute/src/shapes/common/Box.tsx":{"bytesInOutput":2429},"packages/ui/react-ui-canvas-compute/src/shapes/common/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-canvas-compute/src/shapes/common/FunctionBody.tsx":{"bytesInOutput":3142},"packages/ui/react-ui-canvas-compute/src/shapes/defs.ts":{"bytesInOutput":966},"packages/ui/react-ui-canvas-compute/src/shapes/common/TypeSelect.tsx":{"bytesInOutput":901},"packages/ui/react-ui-canvas-compute/src/shapes/index.ts":{"bytesInOutput":0},"packages/ui/react-ui-canvas-compute/src/shapes/Array.tsx":{"bytesInOutput":860},"packages/ui/react-ui-canvas-compute/src/shapes/Append.tsx":{"bytesInOutput":720},"packages/ui/react-ui-canvas-compute/src/shapes/Audio.tsx":{"bytesInOutput":1329},"packages/ui/react-ui-canvas-compute/src/shapes/Beacon.tsx":{"bytesInOutput":1335},"packages/ui/react-ui-canvas-compute/src/shapes/Boolean.tsx":{"bytesInOutput":3936},"packages/ui/react-ui-canvas-compute/src/shapes/Chat.tsx":{"bytesInOutput":1434},"packages/ui/react-ui-canvas-compute/src/shapes/Constant.tsx":{"bytesInOutput":2990},"packages/ui/react-ui-canvas-compute/src/shapes/Database.tsx":{"bytesInOutput":771},"packages/ui/react-ui-canvas-compute/src/shapes/Function.tsx":{"bytesInOutput":843},"packages/ui/react-ui-canvas-compute/src/shapes/Gpt.tsx":{"bytesInOutput":1947},"packages/ui/react-ui-canvas-compute/src/shapes/Json.tsx":{"bytesInOutput":2068},"packages/ui/react-ui-canvas-compute/src/shapes/Logic.tsx":{"bytesInOutput":1539},"packages/ui/react-ui-canvas-compute/src/shapes/Queue.tsx":{"bytesInOutput":2062},"packages/ui/react-ui-canvas-compute/src/shapes/RNG.tsx":{"bytesInOutput":2109},"packages/ui/react-ui-canvas-compute/src/shapes/Scope.tsx":{"bytesInOutput":1370},"packages/ui/react-ui-canvas-compute/src/shapes/Surface.tsx":{"bytesInOutput":1339},"packages/ui/react-ui-canvas-compute/src/shapes/Switch.tsx":{"bytesInOutput":1398},"packages/ui/react-ui-canvas-compute/src/shapes/Table.tsx":{"bytesInOutput":849},"packages/ui/react-ui-canvas-compute/src/shapes/Template.tsx":{"bytesInOutput":2362},"packages/ui/react-ui-canvas-compute/src/shapes/Text.tsx":{"bytesInOutput":1247},"packages/ui/react-ui-canvas-compute/src/shapes/Thread.tsx":{"bytesInOutput":2127},"packages/ui/react-ui-canvas-compute/src/shapes/TextToImage.tsx":{"bytesInOutput":804},"packages/ui/react-ui-canvas-compute/src/shapes/Trigger.tsx":{"bytesInOutput":3841},"packages/ui/react-ui-canvas-compute/src/shapes/GptRealtime.tsx":{"bytesInOutput":4102},"packages/ui/react-ui-canvas-compute/src/compute-layout.ts":{"bytesInOutput":970}},"bytes":75164}}}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GraphDiagnostic } from '@dxos/conductor';
|
|
3
|
+
export type DiagnosticOverlayProps = {
|
|
4
|
+
diagnostics: GraphDiagnostic[];
|
|
5
|
+
};
|
|
6
|
+
export declare const DiagnosticOverlay: ({ diagnostics }: DiagnosticOverlayProps) => React.JSX.Element;
|
|
7
|
+
//# sourceMappingURL=DiagnosticOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiagnosticOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/DiagnosticOverlay.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,eAAe,EAAE,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,iBAAiB,oBAAqB,sBAAsB,sBAUxE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Anchor, ShapeLayout, type ShapeRegistry } from '@dxos/react-ui-canvas-editor';
|
|
2
|
+
import { type ComputeGraphController } from './graph';
|
|
3
|
+
import { type ComputeShape } from './shapes';
|
|
4
|
+
export declare class ComputeShapeLayout extends ShapeLayout {
|
|
5
|
+
private _controller;
|
|
6
|
+
constructor(_controller: ComputeGraphController, registry: ShapeRegistry);
|
|
7
|
+
getAnchors(shape: ComputeShape): Record<string, Anchor>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=compute-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-layout.d.ts","sourceRoot":"","sources":["../../../src/compute-layout.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,MAAM,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE5F,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,KAAK,YAAY,EAAyB,MAAM,UAAU,CAAC;AAGpE,qBAAa,kBAAmB,SAAQ,WAAW;IAE/C,OAAO,CAAC,WAAW;gBAAX,WAAW,EAAE,sBAAsB,EAC3C,QAAQ,EAAE,aAAa;IAMhB,UAAU,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAejE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import { type PropsWithChildren } from 'react';
|
|
4
|
+
import { type ComputeGraphModel } from '@dxos/conductor';
|
|
5
|
+
import { type EditorRootProps } from '@dxos/react-ui-canvas-editor';
|
|
6
|
+
import { type ComputeGraphController } from './graph';
|
|
7
|
+
import { type ComputeShape } from './shapes';
|
|
8
|
+
type RenderProps = EditorRootProps<ComputeShape> & PropsWithChildren<{
|
|
9
|
+
init?: boolean;
|
|
10
|
+
sidebar?: 'canvas' | 'compute' | 'controller' | 'selected';
|
|
11
|
+
computeGraph?: ComputeGraphModel;
|
|
12
|
+
controller?: ComputeGraphController;
|
|
13
|
+
}>;
|
|
14
|
+
declare const meta: Meta<RenderProps>;
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<RenderProps>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const Beacon: Story;
|
|
19
|
+
export declare const Transform: Story;
|
|
20
|
+
export declare const Logic: Story;
|
|
21
|
+
export declare const Control: Story;
|
|
22
|
+
export declare const Template: Story;
|
|
23
|
+
export declare const GPT: Story;
|
|
24
|
+
export declare const Plugins: Story;
|
|
25
|
+
export declare const Artifact: Story;
|
|
26
|
+
export declare const Audio: Story;
|
|
27
|
+
export declare const Voice: Story;
|
|
28
|
+
//# sourceMappingURL=compute.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute.stories.d.ts","sourceRoot":"","sources":["../../../src/compute.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAc,EAAE,KAAK,iBAAiB,EAAwC,MAAM,OAAO,CAAC;AAK5F,OAAO,EAAE,KAAK,iBAAiB,EAA0C,MAAM,iBAAiB,CAAC;AAIjG,OAAO,EAAiC,KAAK,eAAe,EAAiB,MAAM,8BAA8B,CAAC;AAOlH,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAGtD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AA2B7C,KAAK,WAAW,GAAG,eAAe,CAAC,YAAY,CAAC,GAC9C,iBAAiB,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;IAC3D,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACrC,CAAC,CAAC;AA6JL,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,WAAW,CAW3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KASpB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KASvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KASnB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAYF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAUjB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KASnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAQnB,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { type Context } from 'effect';
|
|
2
|
+
import { type ImageContentBlock } from '@dxos/artifact';
|
|
3
|
+
import { Event } from '@dxos/async';
|
|
4
|
+
import { type ComputeEdge, type ComputeEvent, type ComputeGraphModel, type ComputeMeta, type ComputeNode, type GptInput, type GptOutput, GptService, SpaceService, type GraphDiagnostic } from '@dxos/conductor';
|
|
5
|
+
import { Resource } from '@dxos/context';
|
|
6
|
+
import type { EdgeClient, EdgeHttpClient } from '@dxos/edge-client';
|
|
7
|
+
import { type CanvasGraphModel } from '@dxos/react-ui-canvas-editor';
|
|
8
|
+
import { type ComputeShape } from '../shapes';
|
|
9
|
+
export declare const InvalidStateError: ErrorConstructor;
|
|
10
|
+
export type FunctionCallback<INPUT, OUTPUT> = (input: INPUT) => Promise<OUTPUT>;
|
|
11
|
+
/**
|
|
12
|
+
* Callback to notify the controller of a scheduled update.
|
|
13
|
+
*/
|
|
14
|
+
export type AsyncUpdate<T> = (value: T) => void;
|
|
15
|
+
export interface GptExecutor {
|
|
16
|
+
invoke: FunctionCallback<GptInput, GptOutput>;
|
|
17
|
+
imageCache: Map<string, ImageContentBlock>;
|
|
18
|
+
}
|
|
19
|
+
export type RuntimeValue = {
|
|
20
|
+
type: 'not-executed';
|
|
21
|
+
} | {
|
|
22
|
+
type: 'executed';
|
|
23
|
+
value: any;
|
|
24
|
+
} | {
|
|
25
|
+
type: 'pending';
|
|
26
|
+
} | {
|
|
27
|
+
type: 'error';
|
|
28
|
+
error: string;
|
|
29
|
+
};
|
|
30
|
+
export type Services = {
|
|
31
|
+
gpt: Context.Tag.Service<GptService>;
|
|
32
|
+
edgeClient?: EdgeClient;
|
|
33
|
+
edgeHttpClient?: EdgeHttpClient;
|
|
34
|
+
spaceService?: Context.Tag.Service<SpaceService>;
|
|
35
|
+
};
|
|
36
|
+
type ComputeOutputEvent = {
|
|
37
|
+
nodeId: string;
|
|
38
|
+
property: string;
|
|
39
|
+
value: RuntimeValue;
|
|
40
|
+
};
|
|
41
|
+
export declare const createComputeGraphController: (graph: CanvasGraphModel<ComputeShape>, services?: Partial<Services>) => {
|
|
42
|
+
controller: ComputeGraphController;
|
|
43
|
+
graph: CanvasGraphModel<{
|
|
44
|
+
id: string;
|
|
45
|
+
data?: any;
|
|
46
|
+
type: string;
|
|
47
|
+
text?: string | undefined;
|
|
48
|
+
guide?: boolean | undefined;
|
|
49
|
+
classNames?: string | undefined;
|
|
50
|
+
center: {
|
|
51
|
+
readonly x: number;
|
|
52
|
+
readonly y: number;
|
|
53
|
+
};
|
|
54
|
+
size: {
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
};
|
|
58
|
+
} & {
|
|
59
|
+
node?: string | undefined;
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Controller that manages compute graph state, execution, and service coordination.
|
|
64
|
+
*/
|
|
65
|
+
export declare class ComputeGraphController extends Resource {
|
|
66
|
+
/** Persistent compute graph. */
|
|
67
|
+
private readonly _graph;
|
|
68
|
+
private readonly _executor;
|
|
69
|
+
private _diagnostics;
|
|
70
|
+
private _services;
|
|
71
|
+
/**
|
|
72
|
+
* Canvas force-sets outputs of those nodes.
|
|
73
|
+
*/
|
|
74
|
+
private _forcedOutputs;
|
|
75
|
+
/**
|
|
76
|
+
* Runtime state of the execution graph.
|
|
77
|
+
*/
|
|
78
|
+
private _runtimeStateInputs;
|
|
79
|
+
private _runtimeStateOutputs;
|
|
80
|
+
readonly update: Event<void>;
|
|
81
|
+
/** Computed result. */
|
|
82
|
+
readonly output: Event<ComputeOutputEvent>;
|
|
83
|
+
readonly events: Event<ComputeEvent>;
|
|
84
|
+
constructor(
|
|
85
|
+
/** Persistent compute graph. */
|
|
86
|
+
_graph: ComputeGraphModel);
|
|
87
|
+
toJSON(): {
|
|
88
|
+
graph: ComputeGraphModel;
|
|
89
|
+
state: {
|
|
90
|
+
inputs: Record<string, Record<string, RuntimeValue>>;
|
|
91
|
+
outputs: Record<string, Record<string, RuntimeValue>>;
|
|
92
|
+
};
|
|
93
|
+
forcedOutputs: Record<string, Record<string, unknown>>;
|
|
94
|
+
};
|
|
95
|
+
setServices(services: Partial<Services>): void;
|
|
96
|
+
get graph(): ComputeGraphModel;
|
|
97
|
+
get diagnostics(): GraphDiagnostic[];
|
|
98
|
+
get userState(): Record<string, Record<string, unknown>>;
|
|
99
|
+
get inputStates(): Record<string, Record<string, RuntimeValue>>;
|
|
100
|
+
get outputStates(): Record<string, Record<string, RuntimeValue>>;
|
|
101
|
+
/**
|
|
102
|
+
* Inputs and outputs for all nodes.
|
|
103
|
+
*/
|
|
104
|
+
get state(): {
|
|
105
|
+
[k: string]: {
|
|
106
|
+
node: {
|
|
107
|
+
type?: string | undefined;
|
|
108
|
+
id: string;
|
|
109
|
+
data?: any;
|
|
110
|
+
value?: any;
|
|
111
|
+
inputSchema?: import("packages/core/echo/echo-schema/dist/types/src").JsonSchemaType | undefined;
|
|
112
|
+
outputSchema?: import("packages/core/echo/echo-schema/dist/types/src").JsonSchemaType | undefined;
|
|
113
|
+
subgraph?: import("packages/core/echo/echo-schema/dist/types/src").Ref<import("@dxos/conductor").ComputeGraph> | undefined;
|
|
114
|
+
valueType?: "string" | "number" | "boolean" | "object" | undefined;
|
|
115
|
+
enabled?: boolean | undefined;
|
|
116
|
+
};
|
|
117
|
+
input: Record<string, RuntimeValue>;
|
|
118
|
+
output: Record<string, RuntimeValue>;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
addNode(node: ComputeNode): void;
|
|
122
|
+
addEdge(edge: ComputeEdge): void;
|
|
123
|
+
getComputeNode(nodeId: string): ComputeNode;
|
|
124
|
+
getInputs(nodeId: string): Record<string, RuntimeValue>;
|
|
125
|
+
getOutputs(nodeId: string): Record<string, RuntimeValue>;
|
|
126
|
+
setOutput(nodeId: string, property: string, value: any): void;
|
|
127
|
+
getMeta(node: ComputeNode): Promise<ComputeMeta>;
|
|
128
|
+
checkGraph(): Promise<void>;
|
|
129
|
+
evalNode(nodeId: string): Promise<void>;
|
|
130
|
+
/**
|
|
131
|
+
* Executes the graph.
|
|
132
|
+
* @param startFromNode - Node to start from, otherwise all {@link AUTO_TRIGGER_NODES} are executed.
|
|
133
|
+
*/
|
|
134
|
+
exec(startFromNode?: string): Promise<void>;
|
|
135
|
+
private _createServiceLayer;
|
|
136
|
+
private _createLogger;
|
|
137
|
+
private _handleEvent;
|
|
138
|
+
private _onInputComputed;
|
|
139
|
+
private _onOutputComputed;
|
|
140
|
+
}
|
|
141
|
+
export {};
|
|
142
|
+
//# sourceMappingURL=controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../src/graph/controller.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAsC,MAAM,QAAQ,CAAC;AAE1E,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAgB,MAAM,aAAa,CAAC;AAClD,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAGhB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,UAAU,EAIV,YAAY,EAEZ,KAAK,eAAe,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAIrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C,eAAO,MAAM,iBAAiB,kBAAQ,CAAC;AAEvC,MAAM,MAAM,gBAAgB,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;AAEhD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAG9C,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CAC5C;AAED,MAAM,MAAM,YAAY,GACpB;IACE,IAAI,EAAE,cAAc,CAAC;CACtB,GACD;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,GAAG,CAAC;CACZ,GACD;IACE,IAAI,EAAE,SAAS,CAAC;CACjB,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEN,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;CAClD,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,YAAY,CAAC;CACrB,CAAC;AAOF,eAAO,MAAM,4BAA4B,UAAW,gBAAgB,CAAC,YAAY,CAAC,aAAa,OAAO,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;CAK/G,CAAC;AAEF;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,QAAQ;IA8BhD,gCAAgC;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM;IA9BzB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAEvB;IAEH,OAAO,CAAC,YAAY,CAAyB;IAE7C,OAAO,CAAC,SAAS,CAAyB;IAE1C;;OAEG;IACH,OAAO,CAAC,cAAc,CAA+C;IAErE;;OAEG;IACH,OAAO,CAAC,mBAAmB,CAAoD;IAE/E,OAAO,CAAC,oBAAoB,CAAoD;IAGhF,SAAgB,MAAM,cAAe;IAErC,uBAAuB;IACvB,SAAgB,MAAM,4BAAmC;IAEzD,SAAgB,MAAM,sBAA6B;;IAGjD,gCAAgC;IACf,MAAM,EAAE,iBAAiB;IAK5C,MAAM;;;;;;;;IAWN,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC;IAIvC,IAAI,KAAK,sBAER;IAED,IAAI,WAAW,sBAEd;IAED,IAAI,SAAS,4CAEZ;IAED,IAAI,WAAW,iDAEd;IAED,IAAI,YAAY,iDAEf;IAED;;OAEG;IACH,IAAI,KAAK;;;;;;;;;;;;;;;;MAYR;IAED,OAAO,CAAC,IAAI,EAAE,WAAW;IAIzB,OAAO,CAAC,IAAI,EAAE,WAAW;IAIzB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW;IAI3C,SAAS,CAAC,MAAM,EAAE,MAAM;IAIxB,UAAU,CAAC,MAAM,EAAE,MAAM;IAIzB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG;IAahD,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAMhD,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAM3B,QAAQ,CAAC,MAAM,EAAE,MAAM;IA4C7B;;;OAGG;IAEG,IAAI,CAAC,aAAa,CAAC,EAAE,MAAM;IA6DjC,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,iBAAiB;CAO1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/graph/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ComputeNode, type Executable } from '@dxos/conductor';
|
|
2
|
+
import { type ComputeShape } from '../shapes';
|
|
3
|
+
export declare const resolveComputeNode: (node: ComputeNode) => Promise<Executable>;
|
|
4
|
+
export declare const isValidComputeNode: (type: string) => boolean;
|
|
5
|
+
export declare const createComputeNode: (shape: ComputeShape) => ComputeNode;
|
|
6
|
+
//# sourceMappingURL=node-defs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-defs.d.ts","sourceRoot":"","sources":["../../../../src/graph/node-defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,UAAU,EAIhB,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EAAE,KAAK,YAAY,EAA0C,MAAM,WAAW,CAAC;AAEtF,eAAO,MAAM,kBAAkB,SAAgB,WAAW,KAAG,OAAO,CAAC,UAAU,CAI9E,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,OAEjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,YAAY,KAAG,WAIvD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComputeGraphController } from '../graph';
|
|
2
|
+
export type ComputeContextType = {
|
|
3
|
+
controller: ComputeGraphController;
|
|
4
|
+
};
|
|
5
|
+
export declare const ComputeContext: import("react").Context<ComputeContextType | null>;
|
|
6
|
+
export declare const useComputeContext: () => ComputeContextType;
|
|
7
|
+
//# sourceMappingURL=compute-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-context.d.ts","sourceRoot":"","sources":["../../../../src/hooks/compute-context.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,sBAAsB,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,cAAc,oDAAiD,CAAC;AAE7E,eAAO,MAAM,iBAAiB,0BAE7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ComputeNode, ComputeMeta, ComputeEvent } from '@dxos/conductor';
|
|
2
|
+
import { type RuntimeValue } from '../graph';
|
|
3
|
+
import { type ComputeShape } from '../shapes';
|
|
4
|
+
export type ComputeNodeState = {
|
|
5
|
+
node: ComputeNode;
|
|
6
|
+
meta: ComputeMeta;
|
|
7
|
+
runtime: {
|
|
8
|
+
inputs: Record<string, RuntimeValue>;
|
|
9
|
+
outputs: Record<string, RuntimeValue>;
|
|
10
|
+
setOutput: (property: string, value: any) => void;
|
|
11
|
+
evalNode: () => void;
|
|
12
|
+
subscribeToEventLog: (cb: (event: ComputeEvent) => void) => void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Runtime state of a compute node.
|
|
17
|
+
*/
|
|
18
|
+
export declare const useComputeNodeState: (shape: ComputeShape) => ComputeNodeState;
|
|
19
|
+
//# sourceMappingURL=useComputeNodeState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useComputeNodeState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useComputeNodeState.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAK9E,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;QACtC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;QAClD,QAAQ,EAAE,MAAM,IAAI,CAAC;QACrB,mBAAmB,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,KAAK,IAAI,CAAC;KAClE,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,UAAW,YAAY,KAAG,gBAqDzD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ComputeEdge, ComputeGraphModel } from '@dxos/conductor';
|
|
2
|
+
import { type GraphMonitor, type CanvasGraphModel, type Connection } from '@dxos/react-ui-canvas-editor';
|
|
3
|
+
import { type ComputeShape } from '../shapes';
|
|
4
|
+
/**
|
|
5
|
+
* Map canvas edge to compute edge.
|
|
6
|
+
*/
|
|
7
|
+
export declare const mapEdge: (graph: CanvasGraphModel, { source, target, output, input }: Connection) => ComputeEdge;
|
|
8
|
+
/**
|
|
9
|
+
* Listens for changes to the graph and updates the compute graph.
|
|
10
|
+
* @param model Compute graph to update on change.
|
|
11
|
+
*/
|
|
12
|
+
export declare const useGraphMonitor: (model?: ComputeGraphModel) => GraphMonitor<ComputeShape>;
|
|
13
|
+
export declare const createComputeGraph: (graph?: CanvasGraphModel<ComputeShape>) => ComputeGraphModel;
|
|
14
|
+
//# sourceMappingURL=useGraphMonitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGraphMonitor.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useGraphMonitor.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,WAAW,EAAE,iBAAiB,EAAmD,MAAM,iBAAiB,CAAC;AAKvH,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAIzG,OAAO,EAAE,KAAK,YAAY,EAAqB,MAAM,WAAW,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,OAAO,UACX,gBAAgB,qCAC6C,UAAU,KAC7E,WAaF,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,eAAe,WAAY,iBAAiB,KAAG,YAAY,CAAC,YAAY,CAgDpF,CAAC;AAEF,eAAO,MAAM,kBAAkB,WAAY,gBAAgB,CAAC,YAAY,CAAC,sBAkBxE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { S } from '@dxos/echo-schema';
|
|
2
|
+
export declare const Shape: S.extend<S.Struct<{
|
|
3
|
+
id: typeof S.String;
|
|
4
|
+
type: S.optional<typeof S.String>;
|
|
5
|
+
data: S.optional<typeof S.Any>;
|
|
6
|
+
}>, S.Struct<{
|
|
7
|
+
text: S.optional<typeof S.String>;
|
|
8
|
+
guide: S.optional<typeof S.Boolean>;
|
|
9
|
+
classNames: S.optional<typeof S.String>;
|
|
10
|
+
}>>;
|
|
11
|
+
export declare const Connection: S.extend<S.Struct<{
|
|
12
|
+
id: typeof S.String;
|
|
13
|
+
type: S.optional<typeof S.String>;
|
|
14
|
+
data: S.optional<typeof S.Any>;
|
|
15
|
+
source: typeof S.String;
|
|
16
|
+
target: typeof S.String;
|
|
17
|
+
}>, S.Struct<{
|
|
18
|
+
input: S.optional<typeof S.String>;
|
|
19
|
+
output: S.optional<typeof S.String>;
|
|
20
|
+
}>>;
|
|
21
|
+
//# sourceMappingURL=json.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json.test.d.ts","sourceRoot":"","sources":["../../../src/json.test.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAKtC,eAAO,MAAM,KAAK;eAJa,EAAG,MAAM;UAAW,EAAG,QAErD,QAAQ,EAAE,MAAM;UAAY,EAAI,QAAO,QAExC,EAAG,GAAG;;;;;GAOL,CAAC;AAEF,eAAO,MAAM,UAAU;eAUL,EAAE,MAAM;UAAW,EAAI,QAAO,QAAO,EAAG,MAAM;UAC5D,EAAA,QAAM,QAAO,EAAG,GAAG;mBAAsB,EAAE,MAAM;mBACnC,EAAG,MACrB;;;;GAPC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAiC7D;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,QAAQ,EAAE,CAAA;CAAE,EA2DhE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.test.d.ts","sourceRoot":"","sources":["../../../src/schema.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { S } from '@dxos/echo-schema';
|
|
3
|
+
import { type ShapeComponentProps, type ShapeDef } from '@dxos/react-ui-canvas-editor';
|
|
4
|
+
import { type CreateShapeProps } from './defs';
|
|
5
|
+
export declare const AppendShape: S.extend<S.extend<S.mutable<S.extend<S.extend<S.SchemaClass<{
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly data?: any;
|
|
8
|
+
}, {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly data?: any;
|
|
11
|
+
}, never>, S.Struct<{
|
|
12
|
+
type: typeof S.String;
|
|
13
|
+
text: S.optional<typeof S.String>;
|
|
14
|
+
guide: S.optional<typeof S.Boolean>;
|
|
15
|
+
classNames: S.optional<typeof S.String>;
|
|
16
|
+
}>>, S.Struct<{
|
|
17
|
+
center: S.Struct<{
|
|
18
|
+
x: typeof S.Number;
|
|
19
|
+
y: typeof S.Number;
|
|
20
|
+
}>;
|
|
21
|
+
size: S.mutable<S.Struct<{
|
|
22
|
+
width: typeof S.Number;
|
|
23
|
+
height: typeof S.Number;
|
|
24
|
+
}>>;
|
|
25
|
+
}>>>, S.mutable<S.Struct<{
|
|
26
|
+
node: S.optional<S.SchemaClass<string, string, never>>;
|
|
27
|
+
}>>>, S.Struct<{
|
|
28
|
+
type: S.Literal<["append"]>;
|
|
29
|
+
}>>;
|
|
30
|
+
export type AppendShape = S.Schema.Type<typeof AppendShape>;
|
|
31
|
+
export type CreateAppendProps = CreateShapeProps<AppendShape>;
|
|
32
|
+
export declare const createAppend: (props: CreateAppendProps) => {
|
|
33
|
+
id: string;
|
|
34
|
+
data?: any;
|
|
35
|
+
type: string;
|
|
36
|
+
text?: string | undefined;
|
|
37
|
+
guide?: boolean | undefined;
|
|
38
|
+
classNames?: string | undefined;
|
|
39
|
+
center: {
|
|
40
|
+
readonly x: number;
|
|
41
|
+
readonly y: number;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
};
|
|
47
|
+
} & {
|
|
48
|
+
node?: string | undefined;
|
|
49
|
+
} & {
|
|
50
|
+
readonly type: "append";
|
|
51
|
+
};
|
|
52
|
+
export declare const AppendComponent: ({ shape }: ShapeComponentProps<AppendShape>) => React.JSX.Element;
|
|
53
|
+
export declare const appendShape: ShapeDef<AppendShape>;
|
|
54
|
+
//# sourceMappingURL=Append.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Append.d.ts","sourceRoot":"","sources":["../../../../src/shapes/Append.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,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;AAE1E,eAAO,MAAM,WAAW;;;;;;;iBA8B8G,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;;;;;;GAzBld,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;;;;;;;;;;;;;;;;;;;CAKjD,CAAC;AAEL,eAAO,MAAM,eAAe,cAAe,mBAAmB,CAAC,WAAW,CAAC,sBAE1E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAO7C,CAAC"}
|