@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/dist/index.mjs
CHANGED
|
@@ -295,6 +295,7 @@ function createEdgesFromNodes(nodes) {
|
|
|
295
295
|
function getDefaultStepName(type) {
|
|
296
296
|
const names = {
|
|
297
297
|
prompt: "AI Prompt",
|
|
298
|
+
crawl: "Crawl Website",
|
|
298
299
|
"fetch-url": "Fetch URL",
|
|
299
300
|
"retrieve-record": "Retrieve Record",
|
|
300
301
|
"fetch-github": "Fetch GitHub",
|
|
@@ -312,7 +313,9 @@ function getDefaultStepName(type) {
|
|
|
312
313
|
"generate-embedding": "Generate Embedding",
|
|
313
314
|
"vector-search": "Vector Search",
|
|
314
315
|
"tool-call": "Tool Call",
|
|
315
|
-
"wait-until": "Wait Until"
|
|
316
|
+
"wait-until": "Wait Until",
|
|
317
|
+
"paginate-api": "Paginate API",
|
|
318
|
+
"store-vector": "Store Vector"
|
|
316
319
|
};
|
|
317
320
|
return names[type] || type;
|
|
318
321
|
}
|
|
@@ -337,6 +340,16 @@ function createDefaultStep(type, order = 0) {
|
|
|
337
340
|
outputVariable: `${type}_result`
|
|
338
341
|
}
|
|
339
342
|
};
|
|
343
|
+
case "crawl":
|
|
344
|
+
return {
|
|
345
|
+
...baseStep,
|
|
346
|
+
config: {
|
|
347
|
+
url: "",
|
|
348
|
+
formats: ["markdown"],
|
|
349
|
+
render: false,
|
|
350
|
+
outputVariable: "crawl_result"
|
|
351
|
+
}
|
|
352
|
+
};
|
|
340
353
|
case "fetch-url":
|
|
341
354
|
return {
|
|
342
355
|
...baseStep,
|