@runtypelabs/react-flow 0.3.63 → 0.4.0
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 +5 -8
- package/CHANGELOG.md +33 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/example/CHANGELOG.md +21 -0
- package/example/node_modules/.bin/tsc +29 -7
- package/example/node_modules/.bin/tsserver +29 -7
- package/example/node_modules/.bin/vite +29 -7
- package/example/package.json +1 -1
- package/package.json +2 -2
- package/src/flow-step-types.ts +2 -0
- package/src/utils/adapter.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
> @runtypelabs/react-flow@0.3.63 build /home/runner/_work/core/core/packages/react-flow
|
|
3
|
-
> tsup
|
|
4
|
-
|
|
1
|
+
$ tsup
|
|
5
2
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
3
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
4
|
[34mCLI[39m tsup v8.5.1
|
|
@@ -10,7 +7,7 @@
|
|
|
10
7
|
[34mCLI[39m Cleaning output folder
|
|
11
8
|
[34mCJS[39m Build start
|
|
12
9
|
[34mESM[39m Build start
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
10
|
+
[32mCJS[39m [1mdist/index.js [22m[32m105.62 KB[39m
|
|
11
|
+
[32mCJS[39m ⚡️ Build success in 514ms
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m101.56 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 515ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @runtypelabs/react-flow
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fa6d18a: feat(flow-steps): add `get-record` and `list-records` step types, deprecate `retrieve-record`
|
|
8
|
+
|
|
9
|
+
`retrieve-record` derives its return shape (single object vs. array) from the lookup method, which is unintuitive and a common source of `{{var.field}}` resolving to `undefined`. Cardinality is now a property of the step **type**: `get-record` always returns a single record object (fails if no match), `list-records` always returns an array (newest-first, `limit` default 50 / max 1000, `onEmpty: 'succeed' | 'fail'`).
|
|
10
|
+
- **Engine (api + runtime)**: `retrieve-record` is resolved to its successor by a single pure alias (`resolveRetrieveRecordAlias`) at the normalizer seam, so both legacy executors are removed and saved / published / inline flows execute through the new `get-record` / `list-records` executors with behavior preserved (query mode → `list-records` with `limit: 1000` + `onEmpty: 'fail'`; id mode → `get-record`). SSE step events emit the resolved type for aliased steps.
|
|
11
|
+
- **Validation**: `validate_flow` emits a non-blocking `DEPRECATED_STEP_TYPE` warning for `retrieve-record` naming the successor its config resolves to, and the array/object-access warning code was renamed `RETRIEVE_RECORD_ARRAY_OBJECT_ACCESS` → `LIST_RECORDS_OBJECT_ACCESS`.
|
|
12
|
+
- **MCP**: `create_flow` / `update_flow` / `validate_flow` step-config guidance now documents both new types and marks `retrieve-record` as deprecated.
|
|
13
|
+
- **Client SDK**: `FlowBuilder`/`RuntypeFlowBuilder` gain `getRecord()` and `listRecords()` methods (plus `GetRecordStepConfig` / `ListRecordsStepConfig` types); `retrieveRecord()` is marked `@deprecated` but continues to work unchanged.
|
|
14
|
+
- **react-flow**: `get-record` and `list-records` are added to `FlowStepType` with display labels ("Get record" / "List records").
|
|
15
|
+
|
|
16
|
+
`retrieve-record` is still accepted everywhere for backward compatibility — this is additive, no breaking changes.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [1422e92]
|
|
21
|
+
- Updated dependencies [d0df6a8]
|
|
22
|
+
- Updated dependencies [de60a30]
|
|
23
|
+
- Updated dependencies [4c17349]
|
|
24
|
+
- Updated dependencies [f89cb41]
|
|
25
|
+
- Updated dependencies [9736850]
|
|
26
|
+
- Updated dependencies [8f13a37]
|
|
27
|
+
- Updated dependencies [fa6d18a]
|
|
28
|
+
- Updated dependencies [9002f51]
|
|
29
|
+
- Updated dependencies [4520c60]
|
|
30
|
+
- Updated dependencies [49d599f]
|
|
31
|
+
- Updated dependencies [9cbdba8]
|
|
32
|
+
- Updated dependencies [b82d8f1]
|
|
33
|
+
- Updated dependencies [edae98b]
|
|
34
|
+
- @runtypelabs/sdk@5.8.0
|
|
35
|
+
|
|
3
36
|
## 0.3.63
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -300,6 +300,8 @@ function getDefaultStepName(type) {
|
|
|
300
300
|
crawl: "Crawl Website",
|
|
301
301
|
"fetch-url": "Fetch URL",
|
|
302
302
|
"retrieve-record": "Retrieve Record",
|
|
303
|
+
"get-record": "Get Record",
|
|
304
|
+
"list-records": "List Records",
|
|
303
305
|
"fetch-github": "Fetch GitHub",
|
|
304
306
|
"api-call": "API Call",
|
|
305
307
|
"transform-data": "Transform Data",
|
package/dist/index.mjs
CHANGED
|
@@ -298,6 +298,8 @@ function getDefaultStepName(type) {
|
|
|
298
298
|
crawl: "Crawl Website",
|
|
299
299
|
"fetch-url": "Fetch URL",
|
|
300
300
|
"retrieve-record": "Retrieve Record",
|
|
301
|
+
"get-record": "Get Record",
|
|
302
|
+
"list-records": "List Records",
|
|
301
303
|
"fetch-github": "Fetch GitHub",
|
|
302
304
|
"api-call": "API Call",
|
|
303
305
|
"transform-data": "Transform Data",
|
package/example/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @runtypelabs/react-flow-example
|
|
2
2
|
|
|
3
|
+
## 0.0.112
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [1422e92]
|
|
8
|
+
- Updated dependencies [d0df6a8]
|
|
9
|
+
- Updated dependencies [de60a30]
|
|
10
|
+
- Updated dependencies [4c17349]
|
|
11
|
+
- Updated dependencies [f89cb41]
|
|
12
|
+
- Updated dependencies [9736850]
|
|
13
|
+
- Updated dependencies [8f13a37]
|
|
14
|
+
- Updated dependencies [fa6d18a]
|
|
15
|
+
- Updated dependencies [9002f51]
|
|
16
|
+
- Updated dependencies [4520c60]
|
|
17
|
+
- Updated dependencies [49d599f]
|
|
18
|
+
- Updated dependencies [9cbdba8]
|
|
19
|
+
- Updated dependencies [b82d8f1]
|
|
20
|
+
- Updated dependencies [edae98b]
|
|
21
|
+
- @runtypelabs/sdk@5.8.0
|
|
22
|
+
- @runtypelabs/react-flow@0.4.0
|
|
23
|
+
|
|
3
24
|
## 0.0.111
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
3
6
|
|
|
4
|
-
case `uname` in
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
10
25
|
esac
|
|
11
26
|
|
|
12
27
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -14,8 +29,15 @@ if [ -z "$NODE_PATH" ]; then
|
|
|
14
29
|
else
|
|
15
30
|
export NODE_PATH="/home/runner/_work/core/core/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/_work/core/core/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/_work/core/core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
31
|
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../typescript/bin/tsc" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
18
35
|
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../typescript/bin/tsc" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../typescript/bin/tsc" "$@"
|
|
19
40
|
else
|
|
20
41
|
exec node "$basedir/../typescript/bin/tsc" "$@"
|
|
21
42
|
fi
|
|
43
|
+
# cmd-shim-target=/home/runner/_work/core/core/packages/react-flow/example/node_modules/typescript/bin/tsc
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
3
6
|
|
|
4
|
-
case `uname` in
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
10
25
|
esac
|
|
11
26
|
|
|
12
27
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -14,8 +29,15 @@ if [ -z "$NODE_PATH" ]; then
|
|
|
14
29
|
else
|
|
15
30
|
export NODE_PATH="/home/runner/_work/core/core/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/_work/core/core/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/_work/core/core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
31
|
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../typescript/bin/tsserver" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
18
35
|
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../typescript/bin/tsserver" "$@"
|
|
19
40
|
else
|
|
20
41
|
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
|
21
42
|
fi
|
|
43
|
+
# cmd-shim-target=/home/runner/_work/core/core/packages/react-flow/example/node_modules/typescript/bin/tsserver
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
3
6
|
|
|
4
|
-
case `uname` in
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
10
25
|
esac
|
|
11
26
|
|
|
12
27
|
if [ -z "$NODE_PATH" ]; then
|
|
@@ -14,8 +29,15 @@ if [ -z "$NODE_PATH" ]; then
|
|
|
14
29
|
else
|
|
15
30
|
export NODE_PATH="/home/runner/_work/core/core/node_modules/.pnpm/vite@6.4.3_@types+node@25.3.3_jiti@2.7.0_lightningcss@1.32.0_terser@5.46.0_tsx@4.21.0_yaml@2.9.0/node_modules/vite/node_modules:/home/runner/_work/core/core/node_modules/.pnpm/vite@6.4.3_@types+node@25.3.3_jiti@2.7.0_lightningcss@1.32.0_terser@5.46.0_tsx@4.21.0_yaml@2.9.0/node_modules:/home/runner/_work/core/core/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
31
|
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../vite/bin/vite.js" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
18
35
|
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../vite/bin/vite.js" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../vite/bin/vite.js" "$@"
|
|
19
40
|
else
|
|
20
41
|
exec node "$basedir/../vite/bin/vite.js" "$@"
|
|
21
42
|
fi
|
|
43
|
+
# cmd-shim-target=/home/runner/_work/core/core/packages/react-flow/example/node_modules/vite/bin/vite.js
|
package/example/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/react-flow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
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,7 +16,7 @@
|
|
|
16
16
|
"*.css"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@runtypelabs/sdk": "5.
|
|
19
|
+
"@runtypelabs/sdk": "5.8.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@xyflow/react": "^12.0.0",
|
package/src/flow-step-types.ts
CHANGED
package/src/utils/adapter.ts
CHANGED
|
@@ -434,6 +434,8 @@ export function getDefaultStepName(type: FlowStepType): string {
|
|
|
434
434
|
crawl: 'Crawl Website',
|
|
435
435
|
'fetch-url': 'Fetch URL',
|
|
436
436
|
'retrieve-record': 'Retrieve Record',
|
|
437
|
+
'get-record': 'Get Record',
|
|
438
|
+
'list-records': 'List Records',
|
|
437
439
|
'fetch-github': 'Fetch GitHub',
|
|
438
440
|
'api-call': 'API Call',
|
|
439
441
|
'transform-data': 'Transform Data',
|