@runtypelabs/react-flow 0.4.2 → 1.0.6

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.
@@ -7,7 +7,7 @@ $ tsup
7
7
  CLI Cleaning output folder
8
8
  CJS Build start
9
9
  ESM Build start
10
- CJS dist/index.js 105.62 KB
11
- CJS ⚡️ Build success in 296ms
12
- ESM dist/index.mjs 101.56 KB
13
- ESM ⚡️ Build success in 404ms
10
+ ESM dist/index.mjs 101.48 KB
11
+ ESM ⚡️ Build success in 432ms
12
+ CJS dist/index.js 105.53 KB
13
+ CJS ⚡️ Build success in 433ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,153 @@
1
1
  # @runtypelabs/react-flow
2
2
 
3
+ ## 1.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [1acada7]
8
+ - Updated dependencies [db2cf06]
9
+ - @runtypelabs/sdk@6.1.3
10
+
11
+ ## 1.0.5
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [158223e]
16
+ - Updated dependencies [3abba4d]
17
+ - @runtypelabs/sdk@6.1.2
18
+
19
+ ## 1.0.4
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [40cb003]
24
+ - @runtypelabs/sdk@6.1.1
25
+
26
+ ## 1.0.3
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [c26556c]
31
+ - Updated dependencies [cfacf11]
32
+ - Updated dependencies [2c315c5]
33
+ - Updated dependencies [644e057]
34
+ - Updated dependencies [cd1133f]
35
+ - @runtypelabs/sdk@6.1.0
36
+
37
+ ## 1.0.2
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies [a948051]
42
+ - @runtypelabs/sdk@6.0.2
43
+
44
+ ## 1.0.1
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies [4b4bbe9]
49
+ - Updated dependencies [9a3dd1a]
50
+ - Updated dependencies [aab02e1]
51
+ - Updated dependencies [ebb401b]
52
+ - @runtypelabs/sdk@6.0.1
53
+
54
+ ## 1.0.0
55
+
56
+ ### Major Changes
57
+
58
+ - 51ab2d1: Remove the `fetch-github` flow step from validation, execution, SDKs, generated schemas, and dashboard surfaces. The step was never surfaced in the UI, ignored half of its own config fields, and depended on an external repomix ingestor service. Use `api-call` for single GitHub API requests, `transform-data` with a container sandbox (`daytona` / `runtype-sandbox`) to clone and work on repositories, or the GitHub MCP server for agent-driven GitHub work.
59
+ - a27eea9: Remove the non-functional `send-text` flow step from validation, SDKs, generated schemas, and dashboard surfaces.
60
+
61
+ ### Patch Changes
62
+
63
+ - 5cff576: Enforce full-workspace ESLint coverage for published TypeScript packages.
64
+ - Updated dependencies [5cff576]
65
+ - Updated dependencies [51ab2d1]
66
+ - Updated dependencies [a27eea9]
67
+ - Updated dependencies [5f08625]
68
+ - Updated dependencies [9ab9197]
69
+ - @runtypelabs/sdk@6.0.0
70
+
71
+ ## 0.4.12
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies [6aac451]
76
+ - @runtypelabs/sdk@5.15.0
77
+
78
+ ## 0.4.11
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [29ce53f]
83
+ - Updated dependencies [5d828d9]
84
+ - @runtypelabs/sdk@5.14.3
85
+
86
+ ## 0.4.10
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [b00dea7]
91
+ - @runtypelabs/sdk@5.14.2
92
+
93
+ ## 0.4.9
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies [0d4b1b8]
98
+ - @runtypelabs/sdk@5.14.1
99
+
100
+ ## 0.4.8
101
+
102
+ ### Patch Changes
103
+
104
+ - Updated dependencies [facb5d9]
105
+ - @runtypelabs/sdk@5.14.0
106
+
107
+ ## 0.4.7
108
+
109
+ ### Patch Changes
110
+
111
+ - Updated dependencies [89dbb72]
112
+ - @runtypelabs/sdk@5.13.0
113
+
114
+ ## 0.4.6
115
+
116
+ ### Patch Changes
117
+
118
+ - Updated dependencies [b2badd2]
119
+ - @runtypelabs/sdk@5.12.1
120
+
121
+ ## 0.4.5
122
+
123
+ ### Patch Changes
124
+
125
+ - Updated dependencies [2821ddb]
126
+ - Updated dependencies [9a527cd]
127
+ - Updated dependencies [ec895c9]
128
+ - @runtypelabs/sdk@5.12.0
129
+
130
+ ## 0.4.4
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies [8f998e7]
135
+ - Updated dependencies [e6b97e1]
136
+ - Updated dependencies [e88000e]
137
+ - Updated dependencies [3ac490c]
138
+ - Updated dependencies [9a47ef1]
139
+ - Updated dependencies [d7780b7]
140
+ - @runtypelabs/sdk@5.11.0
141
+
142
+ ## 0.4.3
143
+
144
+ ### Patch Changes
145
+
146
+ - Updated dependencies [36d84c1]
147
+ - Updated dependencies [e769fbf]
148
+ - Updated dependencies [5d07273]
149
+ - @runtypelabs/sdk@5.10.0
150
+
3
151
  ## 0.4.2
4
152
 
5
153
  ### Patch Changes
package/dist/index.js CHANGED
@@ -302,14 +302,12 @@ function getDefaultStepName(type) {
302
302
  "retrieve-record": "Retrieve Record",
303
303
  "get-record": "Get Record",
304
304
  "list-records": "List Records",
305
- "fetch-github": "Fetch GitHub",
306
305
  "api-call": "API Call",
307
306
  "transform-data": "Transform Data",
308
307
  conditional: "Conditional",
309
308
  "set-variable": "Set Variable",
310
309
  "upsert-record": "Upsert Record",
311
310
  "send-email": "Send Email",
312
- "send-text": "Send Text",
313
311
  "send-event": "Send Event",
314
312
  "send-stream": "Send Stream",
315
313
  "update-record": "Update Record",
@@ -1249,7 +1247,7 @@ var BaseNode = react.memo(function BaseNode2({
1249
1247
  additionalSourceHandles,
1250
1248
  children
1251
1249
  }) {
1252
- const { step, onChange, onDelete } = data;
1250
+ const { step, onDelete } = data;
1253
1251
  const color = headerColor || NODE_HEADER_COLORS[step.type] || NODE_HEADER_COLORS.default;
1254
1252
  const handleDelete = (e) => {
1255
1253
  e.stopPropagation();
@@ -3027,7 +3025,7 @@ function RuntypeFlowEditor({
3027
3025
  className
3028
3026
  }) {
3029
3027
  const [showAddMenu, setShowAddMenu] = react.useState(false);
3030
- const [selectedNode, setSelectedNode] = react.useState(null);
3028
+ const [, setSelectedNode] = react.useState(null);
3031
3029
  const {
3032
3030
  nodes,
3033
3031
  edges,
package/dist/index.mjs CHANGED
@@ -300,14 +300,12 @@ function getDefaultStepName(type) {
300
300
  "retrieve-record": "Retrieve Record",
301
301
  "get-record": "Get Record",
302
302
  "list-records": "List Records",
303
- "fetch-github": "Fetch GitHub",
304
303
  "api-call": "API Call",
305
304
  "transform-data": "Transform Data",
306
305
  conditional: "Conditional",
307
306
  "set-variable": "Set Variable",
308
307
  "upsert-record": "Upsert Record",
309
308
  "send-email": "Send Email",
310
- "send-text": "Send Text",
311
309
  "send-event": "Send Event",
312
310
  "send-stream": "Send Stream",
313
311
  "update-record": "Update Record",
@@ -1247,7 +1245,7 @@ var BaseNode = memo(function BaseNode2({
1247
1245
  additionalSourceHandles,
1248
1246
  children
1249
1247
  }) {
1250
- const { step, onChange, onDelete } = data;
1248
+ const { step, onDelete } = data;
1251
1249
  const color = headerColor || NODE_HEADER_COLORS[step.type] || NODE_HEADER_COLORS.default;
1252
1250
  const handleDelete = (e) => {
1253
1251
  e.stopPropagation();
@@ -3025,7 +3023,7 @@ function RuntypeFlowEditor({
3025
3023
  className
3026
3024
  }) {
3027
3025
  const [showAddMenu, setShowAddMenu] = useState(false);
3028
- const [selectedNode, setSelectedNode] = useState(null);
3026
+ const [, setSelectedNode] = useState(null);
3029
3027
  const {
3030
3028
  nodes,
3031
3029
  edges,
@@ -1,5 +1,170 @@
1
1
  # @runtypelabs/react-flow-example
2
2
 
3
+ ## 0.0.132
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [1acada7]
8
+ - Updated dependencies [db2cf06]
9
+ - @runtypelabs/sdk@6.1.3
10
+ - @runtypelabs/react-flow@1.0.6
11
+
12
+ ## 0.0.131
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [158223e]
17
+ - Updated dependencies [3abba4d]
18
+ - @runtypelabs/sdk@6.1.2
19
+ - @runtypelabs/react-flow@1.0.5
20
+
21
+ ## 0.0.130
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [40cb003]
26
+ - @runtypelabs/sdk@6.1.1
27
+ - @runtypelabs/react-flow@1.0.4
28
+
29
+ ## 0.0.129
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [c26556c]
34
+ - Updated dependencies [cfacf11]
35
+ - Updated dependencies [2c315c5]
36
+ - Updated dependencies [644e057]
37
+ - Updated dependencies [cd1133f]
38
+ - @runtypelabs/sdk@6.1.0
39
+ - @runtypelabs/react-flow@1.0.3
40
+
41
+ ## 0.0.128
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [a948051]
46
+ - @runtypelabs/sdk@6.0.2
47
+ - @runtypelabs/react-flow@1.0.2
48
+
49
+ ## 0.0.127
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [4b4bbe9]
54
+ - Updated dependencies [9a3dd1a]
55
+ - Updated dependencies [aab02e1]
56
+ - Updated dependencies [ebb401b]
57
+ - @runtypelabs/sdk@6.0.1
58
+ - @runtypelabs/react-flow@1.0.1
59
+
60
+ ## 0.0.126
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [5cff576]
65
+ - Updated dependencies [51ab2d1]
66
+ - Updated dependencies [a27eea9]
67
+ - Updated dependencies [5f08625]
68
+ - Updated dependencies [9ab9197]
69
+ - @runtypelabs/sdk@6.0.0
70
+ - @runtypelabs/react-flow@1.0.0
71
+
72
+ ## 0.0.125
73
+
74
+ ### Patch Changes
75
+
76
+ - Updated dependencies [6aac451]
77
+ - @runtypelabs/sdk@5.15.0
78
+ - @runtypelabs/react-flow@0.4.12
79
+
80
+ ## 0.0.124
81
+
82
+ ### Patch Changes
83
+
84
+ - a446883: Upgrade internal Vite apps (admin-portal, starting-gun, usage-stats, react-flow example) to Vite 8.1 (Rolldown), renaming `build.rollupOptions` to `build.rolldownOptions` and bumping `@vitejs/plugin-react` to v6 in the react-flow example.
85
+
86
+ ## 0.0.123
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [29ce53f]
91
+ - Updated dependencies [5d828d9]
92
+ - @runtypelabs/sdk@5.14.3
93
+ - @runtypelabs/react-flow@0.4.11
94
+
95
+ ## 0.0.122
96
+
97
+ ### Patch Changes
98
+
99
+ - Updated dependencies [b00dea7]
100
+ - @runtypelabs/sdk@5.14.2
101
+ - @runtypelabs/react-flow@0.4.10
102
+
103
+ ## 0.0.121
104
+
105
+ ### Patch Changes
106
+
107
+ - Updated dependencies [0d4b1b8]
108
+ - @runtypelabs/sdk@5.14.1
109
+ - @runtypelabs/react-flow@0.4.9
110
+
111
+ ## 0.0.120
112
+
113
+ ### Patch Changes
114
+
115
+ - Updated dependencies [facb5d9]
116
+ - @runtypelabs/sdk@5.14.0
117
+ - @runtypelabs/react-flow@0.4.8
118
+
119
+ ## 0.0.119
120
+
121
+ ### Patch Changes
122
+
123
+ - Updated dependencies [89dbb72]
124
+ - @runtypelabs/sdk@5.13.0
125
+ - @runtypelabs/react-flow@0.4.7
126
+
127
+ ## 0.0.118
128
+
129
+ ### Patch Changes
130
+
131
+ - Updated dependencies [b2badd2]
132
+ - @runtypelabs/sdk@5.12.1
133
+ - @runtypelabs/react-flow@0.4.6
134
+
135
+ ## 0.0.117
136
+
137
+ ### Patch Changes
138
+
139
+ - Updated dependencies [2821ddb]
140
+ - Updated dependencies [9a527cd]
141
+ - Updated dependencies [ec895c9]
142
+ - @runtypelabs/sdk@5.12.0
143
+ - @runtypelabs/react-flow@0.4.5
144
+
145
+ ## 0.0.116
146
+
147
+ ### Patch Changes
148
+
149
+ - Updated dependencies [8f998e7]
150
+ - Updated dependencies [e6b97e1]
151
+ - Updated dependencies [e88000e]
152
+ - Updated dependencies [3ac490c]
153
+ - Updated dependencies [9a47ef1]
154
+ - Updated dependencies [d7780b7]
155
+ - @runtypelabs/sdk@5.11.0
156
+ - @runtypelabs/react-flow@0.4.4
157
+
158
+ ## 0.0.115
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies [36d84c1]
163
+ - Updated dependencies [e769fbf]
164
+ - Updated dependencies [5d07273]
165
+ - @runtypelabs/sdk@5.10.0
166
+ - @runtypelabs/react-flow@0.4.3
167
+
3
168
  ## 0.0.114
4
169
 
5
170
  ### Patch Changes
@@ -25,9 +25,9 @@ case `uname -a` in
25
25
  esac
26
26
 
27
27
  if [ -z "$NODE_PATH" ]; then
28
- 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"
28
+ export NODE_PATH="/home/runner/_work/core/core/node_modules/.pnpm/vite@8.1.4_@types+node@26.1.1_esbuild@0.28.1_jiti@2.7.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@8.1.4_@types+node@26.1.1_esbuild@0.28.1_jiti@2.7.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"
29
29
  else
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"
30
+ export NODE_PATH="/home/runner/_work/core/core/node_modules/.pnpm/vite@8.1.4_@types+node@26.1.1_esbuild@0.28.1_jiti@2.7.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@8.1.4_@types+node@26.1.1_esbuild@0.28.1_jiti@2.7.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"
31
31
  fi
32
32
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
33
33
  exec "$basedir/node.exe" "$basedir_win/../vite/bin/vite.js" "$@"
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@runtypelabs/react-flow-example",
3
- "version": "0.0.114",
3
+ "version": "0.0.132",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
8
8
  "build": "vite build",
9
- "preview": "vite preview"
9
+ "preview": "vite preview",
10
+ "lint": "eslint ."
10
11
  },
11
12
  "dependencies": {
12
13
  "@runtypelabs/sdk": "workspace:*",
@@ -18,8 +19,8 @@
18
19
  "devDependencies": {
19
20
  "@types/react": "^19.2.14",
20
21
  "@types/react-dom": "^18.3.0",
21
- "@vitejs/plugin-react": "^5.2.0",
22
+ "@vitejs/plugin-react": "^6.0.3",
22
23
  "typescript": "^6.0.3",
23
- "vite": "^6.4.3"
24
+ "vite": "^8.1.4"
24
25
  }
25
26
  }
@@ -1,4 +1,4 @@
1
- import React, { useState, useCallback, useMemo, useRef } from 'react'
1
+ import React, { useState, useCallback, useMemo } from 'react'
2
2
  import {
3
3
  ReactFlow,
4
4
  Controls,
@@ -52,6 +52,12 @@ interface FlowWithSteps extends Flow {
52
52
  steps: FlowStep[]
53
53
  }
54
54
 
55
+ interface FlowApiData extends Partial<Flow> {
56
+ flow_steps?: FlowStep[]
57
+ flowSteps?: FlowStep[]
58
+ [key: string]: unknown
59
+ }
60
+
55
61
  // ============================================================================
56
62
  // Flow Execution Types
57
63
  // ============================================================================
@@ -62,11 +68,28 @@ interface StepProgress {
62
68
  index: number
63
69
  status: 'pending' | 'running' | 'completed' | 'failed'
64
70
  streamingText?: string
65
- result?: any
71
+ result?: unknown
66
72
  error?: string
67
73
  executionTime?: number
68
74
  }
69
75
 
76
+ interface FlowSSEEvent {
77
+ type: string
78
+ flowId?: string
79
+ totalSteps?: number
80
+ index?: number
81
+ id?: string
82
+ name?: string
83
+ text?: string
84
+ content?: string
85
+ output?: { message?: string; [key: string]: unknown }
86
+ result?: unknown
87
+ executionTime?: number
88
+ error?: string
89
+ success?: boolean
90
+ duration?: number
91
+ }
92
+
70
93
  interface FlowProgress {
71
94
  flowId: string
72
95
  flowName: string
@@ -336,7 +359,7 @@ console.log(response)`}</pre>
336
359
  ) : (
337
360
  <>
338
361
  <p style={descriptionStyle}>Individual step configurations in the flow:</p>
339
- {steps.map((step, index) => (
362
+ {steps.map((step) => (
340
363
  <div key={step.id} style={stepCardStyle}>
341
364
  <div style={stepHeaderStyle}>
342
365
  <span style={stepBadgeStyle(step.type)}>{step.type}</span>
@@ -484,7 +507,7 @@ function ExecutionPanel({
484
507
 
485
508
  {/* Steps List */}
486
509
  <div style={{ marginTop: '16px' }}>
487
- {flowProgress?.steps.map((step, index) => (
510
+ {flowProgress?.steps.map((step) => (
488
511
  <div key={step.id} style={executionStepStyle}>
489
512
  <div style={executionStepHeaderStyle}>
490
513
  <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
@@ -598,11 +621,11 @@ function FlowBrowserPanel({ isOpen, onClose, onLoadFlow }: FlowBrowserPanelProps
598
621
  if (!flowResponse.ok) {
599
622
  throw new Error(`Failed to fetch flow: ${flowResponse.status}`)
600
623
  }
601
- const flowData = await flowResponse.json()
624
+ const flowData = (await flowResponse.json()) as FlowApiData
602
625
 
603
626
  // Use flow steps from the flow response (consolidated endpoint)
604
627
  const stepsArray = flowData.flow_steps || flowData.flowSteps || []
605
- const steps: FlowStep[] = stepsArray.map((step: any) => ({
628
+ const steps: FlowStep[] = stepsArray.map((step) => ({
606
629
  id: step.id,
607
630
  type: step.type,
608
631
  name: step.name,
@@ -1038,7 +1061,7 @@ export default function App() {
1038
1061
  }, [currentSteps, flowName])
1039
1062
 
1040
1063
  // Handle SSE events from the streaming response
1041
- const handleSSEEvent = useCallback((data: any) => {
1064
+ const handleSSEEvent = useCallback((data: FlowSSEEvent) => {
1042
1065
  switch (data.type) {
1043
1066
  case 'flow_start':
1044
1067
  setFlowProgress((prev) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/react-flow",
3
- "version": "0.4.2",
3
+ "version": "1.0.6",
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.9.0"
19
+ "@runtypelabs/sdk": "6.1.3"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@xyflow/react": "^12.0.0",
@@ -59,6 +59,7 @@
59
59
  "build": "tsup",
60
60
  "dev": "tsup --watch",
61
61
  "clean": "rm -rf dist",
62
- "typecheck": "tsgo --noEmit --skipLibCheck"
62
+ "typecheck": "tsgo --noEmit --skipLibCheck",
63
+ "lint": "eslint ."
63
64
  }
64
65
  }
@@ -1,4 +1,4 @@
1
- import React, { useCallback, useMemo, useState } from 'react'
1
+ import React, { useCallback, useState } from 'react'
2
2
  import {
3
3
  ReactFlow,
4
4
  Controls,
@@ -10,7 +10,13 @@ import {
10
10
  ConnectionLineType,
11
11
  } from '@xyflow/react'
12
12
 
13
- import type { RuntypeFlowEditorProps, RuntypeNode, FlowStep, SupportedNodeType } from '../types'
13
+ import type {
14
+ RuntypeFlowEditorProps,
15
+ RuntypeNode,
16
+ RuntypeNodeData,
17
+ FlowStep,
18
+ SupportedNodeType,
19
+ } from '../types'
14
20
  import { useRuntypeFlow } from '../hooks/useRuntypeFlow'
15
21
  import { useFlowValidation } from '../hooks/useFlowValidation'
16
22
  import { PromptNode } from './nodes/PromptNode'
@@ -163,7 +169,7 @@ function DefaultNode(props: {
163
169
 
164
170
  return (
165
171
  <BaseNode
166
- data={data as any}
172
+ data={data as unknown as RuntypeNodeData}
167
173
  selected={selected}
168
174
  id={id}
169
175
  typeLabel={data.step.type}
@@ -237,7 +243,7 @@ export function RuntypeFlowEditor({
237
243
  className,
238
244
  }: RuntypeFlowEditorProps) {
239
245
  const [showAddMenu, setShowAddMenu] = useState(false)
240
- const [selectedNode, setSelectedNode] = useState<RuntypeNode | null>(null)
246
+ const [, setSelectedNode] = useState<RuntypeNode | null>(null)
241
247
 
242
248
  // Initialize flow hook
243
249
  const {
@@ -1,6 +1,6 @@
1
1
  import React, { memo } from 'react'
2
2
  import { Handle, Position } from '@xyflow/react'
3
- import type { RuntypeNodeData, FlowStep } from '../../types'
3
+ import type { RuntypeNodeData } from '../../types'
4
4
 
5
5
  // ============================================================================
6
6
  // Types
@@ -158,7 +158,7 @@ export const BaseNode = memo(function BaseNode({
158
158
  additionalSourceHandles,
159
159
  children,
160
160
  }: BaseNodeProps) {
161
- const { step, onChange, onDelete } = data
161
+ const { step, onDelete } = data
162
162
  const color = headerColor || NODE_HEADER_COLORS[step.type] || NODE_HEADER_COLORS.default
163
163
 
164
164
  const handleDelete = (e: React.MouseEvent) => {
@@ -11,14 +11,12 @@ export type ContextStepType =
11
11
  | 'retrieve-record'
12
12
  | 'get-record'
13
13
  | 'list-records'
14
- | 'fetch-github'
15
14
  | 'api-call'
16
15
  | 'transform-data'
17
16
  | 'conditional'
18
17
  | 'set-variable'
19
18
  | 'upsert-record'
20
19
  | 'send-email'
21
- | 'send-text'
22
20
  | 'send-event'
23
21
  | 'send-stream'
24
22
  | 'update-record'
@@ -436,14 +436,12 @@ export function getDefaultStepName(type: FlowStepType): string {
436
436
  'retrieve-record': 'Retrieve Record',
437
437
  'get-record': 'Get Record',
438
438
  'list-records': 'List Records',
439
- 'fetch-github': 'Fetch GitHub',
440
439
  'api-call': 'API Call',
441
440
  'transform-data': 'Transform Data',
442
441
  conditional: 'Conditional',
443
442
  'set-variable': 'Set Variable',
444
443
  'upsert-record': 'Upsert Record',
445
444
  'send-email': 'Send Email',
446
- 'send-text': 'Send Text',
447
445
  'send-event': 'Send Event',
448
446
  'send-stream': 'Send Stream',
449
447
  'update-record': 'Update Record',