@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.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +20 -0
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -1
- package/dist/index.mjs.map +1 -1
- package/example/CHANGELOG.md +18 -0
- package/example/package.json +1 -1
- package/package.json +2 -2
- package/src/flow-step-types.ts +1 -0
- package/src/utils/adapter.ts +14 -0
package/example/CHANGELOG.md
CHANGED
|
@@ -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
|
package/example/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/react-flow",
|
|
3
|
-
"version": "0.1
|
|
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.
|
|
19
|
+
"@runtypelabs/sdk": "1.9.1"
|
|
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
|
@@ -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,
|