@runtypelabs/react-flow 0.1.26 → 0.2.1

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.
@@ -1,5 +1,23 @@
1
1
  # @runtypelabs/react-flow-example
2
2
 
3
+ ## 0.0.26
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [8494865]
8
+ - Updated dependencies [f49d2d6]
9
+ - @runtypelabs/sdk@1.9.1
10
+ - @runtypelabs/react-flow@0.2.1
11
+
12
+ ## 0.0.25
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [152019b]
17
+ - Updated dependencies [b6d2ceb]
18
+ - @runtypelabs/sdk@1.9.0
19
+ - @runtypelabs/react-flow@0.2.0
20
+
3
21
  ## 0.0.24
4
22
 
5
23
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/react-flow-example",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/react-flow",
3
- "version": "0.1.26",
3
+ "version": "0.2.1",
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": "1.8.2"
19
+ "@runtypelabs/sdk": "1.9.1"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@xyflow/react": "^12.0.0",
@@ -6,6 +6,7 @@
6
6
  */
7
7
 
8
8
  export type ContextStepType =
9
+ | 'crawl'
9
10
  | 'fetch-url'
10
11
  | 'retrieve-record'
11
12
  | 'fetch-github'
@@ -431,6 +431,7 @@ export function createEdgesFromNodes(nodes: RuntypeNode[]): RuntypeEdge[] {
431
431
  export function getDefaultStepName(type: FlowStepType): string {
432
432
  const names: Record<FlowStepType, string> = {
433
433
  prompt: 'AI Prompt',
434
+ crawl: 'Crawl Website',
434
435
  'fetch-url': 'Fetch URL',
435
436
  'retrieve-record': 'Retrieve Record',
436
437
  'fetch-github': 'Fetch GitHub',
@@ -449,6 +450,8 @@ export function getDefaultStepName(type: FlowStepType): string {
449
450
  'vector-search': 'Vector Search',
450
451
  'tool-call': 'Tool Call',
451
452
  'wait-until': 'Wait Until',
453
+ 'paginate-api': 'Paginate API',
454
+ 'store-vector': 'Store Vector',
452
455
  }
453
456
 
454
457
  return names[type] || type
@@ -481,6 +484,17 @@ export function createDefaultStep(type: FlowStepType, order: number = 0): FlowSt
481
484
  },
482
485
  }
483
486
 
487
+ case 'crawl':
488
+ return {
489
+ ...baseStep,
490
+ config: {
491
+ url: '',
492
+ formats: ['markdown'],
493
+ render: false,
494
+ outputVariable: 'crawl_result',
495
+ },
496
+ }
497
+
484
498
  case 'fetch-url':
485
499
  return {
486
500
  ...baseStep,