feat: Langflow SDK and Flow DevOps API Toolkit#12245
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is ❌ Your project status has failed because the head coverage (47.86%) is below the target coverage (60.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## release-1.9.0 #12245 +/- ##
=================================================
+ Coverage 48.91% 49.33% +0.42%
=================================================
Files 1896 1923 +27
Lines 167650 170364 +2714
Branches 23125 24829 +1704
=================================================
+ Hits 81998 84046 +2048
- Misses 84729 85313 +584
- Partials 923 1005 +82
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Items Fixed (Confirmed) ✅Click to expand — 20 items verified as resolved
Still Open — Must Fix1. 🟠 S3: LIKE Wildcard Injection —
|
| Category | Before | After | Remaining |
|---|---|---|---|
| CRITICAL (file sizes, DRY extractions) | 12 violations | 4 remaining | D3, D4-D5 (sync/async duplication) |
| IMPORTANT (error handling, security, SOLID) | 18 violations | 4 remaining | S3, E7, CQ10, Zip Slip |
| RECOMMENDED | 8 items | 3 remaining | RC1, TS6 |
| TESTING | Pass with notes | Same | TS6 pending |
Priority order for remaining fixes:
- S3 — one-line fix, security issue
- E7 — one-line fix, add debug log in
_write_flow - Zip Slip — small fix, security hardening
- CQ10 — thread-safety concern
- D3/D4-D5 — discuss whether to fix now or track as follow-up
- RC1/TS6 — polish items
Flow DevOps Toolkit (
lfxCLI)This PR expands the capabilities of
lfx, a command-line toolkit for managing Langflow flows as code — enabling a proper dev → version control → deploy lifecycle outside the UI.What's included
New
lfxCLI (src/lfx) with the following commands, grouped by lifecycle stage:Key capabilities:
lfx init— scaffolds a local project with aflows/directory and configlfx create— creates a new flow from a template (e.g.hello-world)lfx validate— validates one or all flows inflows/against the Langflow schemalfx push/pull— syncs flows between local disk and a running Langflow serverlfx status— shows ahead/behind state per flow, using both hash and timestamp so local-vs-remote modifications are correctly distinguished (not just "changed")lfx run/serve— runs a flow directly or starts a local dev serverSupporting infrastructure:
langflow-sdk(src/sdk) — a thin Python client wrapping the Langflow REST API, used by bothlfxand backend componentsbuild_and_push.Dockerfileandbuild_and_push_backend.Dockerfilenow correctly includesrc/sdksolfx's dependency onlangflow-sdkresolves at build timeinit,login,create,push,pull,status, andexportcommands