@runtypelabs/react-flow 0.1.0 → 0.1.3
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/.turbo/turbo-build.log +18 -0
- package/CHANGELOG.md +25 -0
- package/README.md +2 -0
- package/dist/index.js +3249 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3226 -0
- package/dist/index.mjs.map +1 -0
- package/example/node_modules/.bin/tsc +2 -2
- package/example/node_modules/.bin/tsserver +2 -2
- package/example/node_modules/.bin/vite +2 -2
- package/package.json +2 -3
- package/src/flow-step-types.ts +32 -0
- package/src/hooks/useRuntypeFlow.ts +1 -1
- package/src/types/index.ts +1 -1
- package/src/utils/adapter.ts +1 -1
- package/example/node_modules/.bin/browserslist +0 -21
- package/example/node_modules/.bin/terser +0 -21
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/
|
|
13
|
+
export NODE_PATH="/home/runner/work/core/core/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/core/core/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/core/core/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/core/core/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/
|
|
15
|
+
export NODE_PATH="/home/runner/work/core/core/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/home/runner/work/core/core/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/core/core/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/core/core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/
|
|
13
|
+
export NODE_PATH="/home/runner/work/core/core/node_modules/.pnpm/vite@5.4.21_@types+node@25.0.3_lightningcss@1.30.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/core/core/node_modules/.pnpm/vite@5.4.21_@types+node@25.0.3_lightningcss@1.30.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/core/core/node_modules/.pnpm/vite@5.4.21_@types+node@25.0.3_lightningcss@1.30.1_terser@5.44.1/node_modules:/home/runner/work/core/core/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/
|
|
15
|
+
export NODE_PATH="/home/runner/work/core/core/node_modules/.pnpm/vite@5.4.21_@types+node@25.0.3_lightningcss@1.30.1_terser@5.44.1/node_modules/vite/bin/node_modules:/home/runner/work/core/core/node_modules/.pnpm/vite@5.4.21_@types+node@25.0.3_lightningcss@1.30.1_terser@5.44.1/node_modules/vite/node_modules:/home/runner/work/core/core/node_modules/.pnpm/vite@5.4.21_@types+node@25.0.3_lightningcss@1.30.1_terser@5.44.1/node_modules:/home/runner/work/core/core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/react-flow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "React Flow adapter for building visual flow editors with Runtype",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
"*.css"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@
|
|
20
|
-
"@runtypelabs/sdk": "0.1.1"
|
|
19
|
+
"@runtypelabs/sdk": "0.2.1"
|
|
21
20
|
},
|
|
22
21
|
"peerDependencies": {
|
|
23
22
|
"@xyflow/react": "^12.0.0",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flow Step Types
|
|
3
|
+
*
|
|
4
|
+
* Note: These types are inlined from the internal shared package to avoid
|
|
5
|
+
* requiring users to install @runtypelabs/shared.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type ContextStepType =
|
|
9
|
+
| 'fetch-url'
|
|
10
|
+
| 'retrieve-record'
|
|
11
|
+
| 'fetch-github'
|
|
12
|
+
| 'api-call'
|
|
13
|
+
| 'transform-data'
|
|
14
|
+
| 'conditional'
|
|
15
|
+
| 'set-variable'
|
|
16
|
+
| 'upsert-record'
|
|
17
|
+
| 'send-email'
|
|
18
|
+
| 'send-text'
|
|
19
|
+
| 'send-event'
|
|
20
|
+
| 'send-stream'
|
|
21
|
+
| 'update-record'
|
|
22
|
+
| 'search'
|
|
23
|
+
| 'generate-embedding'
|
|
24
|
+
| 'vector-search'
|
|
25
|
+
| 'tool-call'
|
|
26
|
+
| 'wait-until'
|
|
27
|
+
| 'paginate-api'
|
|
28
|
+
| 'store-vector'
|
|
29
|
+
|
|
30
|
+
export type FlowStepType = 'prompt' | ContextStepType
|
|
31
|
+
|
|
32
|
+
export type PromptStepMode = 'task' | 'agent'
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
createDefaultStep,
|
|
24
24
|
} from '../utils/adapter'
|
|
25
25
|
import { autoLayout } from '../utils/layout'
|
|
26
|
-
import type { FlowStepType } from '
|
|
26
|
+
import type { FlowStepType } from '../flow-step-types'
|
|
27
27
|
|
|
28
28
|
// ============================================================================
|
|
29
29
|
// Hook Options
|
package/src/types/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Node, Edge, NodeProps } from '@xyflow/react'
|
|
2
|
-
import type { FlowStepType, PromptStepMode } from '
|
|
2
|
+
import type { FlowStepType, PromptStepMode } from '../flow-step-types'
|
|
3
3
|
import type { RuntypeClient } from '@runtypelabs/sdk'
|
|
4
4
|
|
|
5
5
|
// ============================================================================
|
package/src/utils/adapter.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FlowStep, RuntypeNode, RuntypeEdge, RuntypeNodeData } from '../types'
|
|
2
|
-
import type { FlowStepType } from '
|
|
2
|
+
import type { FlowStepType } from '../flow-step-types'
|
|
3
3
|
|
|
4
4
|
// ============================================================================
|
|
5
5
|
// Constants
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/exedev/GitHub/core/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/browserslist@4.28.1/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/exedev/GitHub/core/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/browserslist@4.28.1/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/exedev/GitHub/core/node_modules/.pnpm/terser@5.44.1/node_modules/terser/bin/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/terser@5.44.1/node_modules/terser/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/terser@5.44.1/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/exedev/GitHub/core/node_modules/.pnpm/terser@5.44.1/node_modules/terser/bin/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/terser@5.44.1/node_modules/terser/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/terser@5.44.1/node_modules:/home/exedev/GitHub/core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/terser@5.44.1/node_modules/terser/bin/terser" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/terser@5.44.1/node_modules/terser/bin/terser" "$@"
|
|
21
|
-
fi
|