aidevops 2.52.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/.agent/AGENTS.md +614 -0
- package/.agent/accounts.md +65 -0
- package/.agent/aidevops/add-new-mcp-to-aidevops.md +456 -0
- package/.agent/aidevops/api-integrations.md +335 -0
- package/.agent/aidevops/architecture.md +510 -0
- package/.agent/aidevops/configs.md +274 -0
- package/.agent/aidevops/docs.md +244 -0
- package/.agent/aidevops/extension.md +311 -0
- package/.agent/aidevops/mcp-integrations.md +340 -0
- package/.agent/aidevops/mcp-troubleshooting.md +162 -0
- package/.agent/aidevops/memory-patterns.md +172 -0
- package/.agent/aidevops/providers.md +217 -0
- package/.agent/aidevops/recommendations.md +321 -0
- package/.agent/aidevops/requirements.md +301 -0
- package/.agent/aidevops/resources.md +214 -0
- package/.agent/aidevops/security-requirements.md +174 -0
- package/.agent/aidevops/security.md +350 -0
- package/.agent/aidevops/service-links.md +400 -0
- package/.agent/aidevops/services.md +357 -0
- package/.agent/aidevops/setup.md +153 -0
- package/.agent/aidevops/troubleshooting.md +389 -0
- package/.agent/aidevops.md +124 -0
- package/.agent/build-plus.md +244 -0
- package/.agent/content/guidelines.md +109 -0
- package/.agent/content.md +87 -0
- package/.agent/health.md +59 -0
- package/.agent/legal.md +59 -0
- package/.agent/loop-state/full-loop.local.md +16 -0
- package/.agent/loop-state/ralph-loop.local.md +10 -0
- package/.agent/marketing.md +440 -0
- package/.agent/memory/README.md +260 -0
- package/.agent/onboarding.md +796 -0
- package/.agent/plan-plus.md +245 -0
- package/.agent/research.md +100 -0
- package/.agent/sales.md +333 -0
- package/.agent/scripts/101domains-helper.sh +701 -0
- package/.agent/scripts/add-missing-returns.sh +140 -0
- package/.agent/scripts/agent-browser-helper.sh +311 -0
- package/.agent/scripts/agno-setup.sh +712 -0
- package/.agent/scripts/ahrefs-mcp-wrapper.js +168 -0
- package/.agent/scripts/aidevops-update-check.sh +71 -0
- package/.agent/scripts/ampcode-cli.sh +522 -0
- package/.agent/scripts/auto-version-bump.sh +156 -0
- package/.agent/scripts/autogen-helper.sh +512 -0
- package/.agent/scripts/beads-sync-helper.sh +596 -0
- package/.agent/scripts/closte-helper.sh +5 -0
- package/.agent/scripts/cloudron-helper.sh +321 -0
- package/.agent/scripts/codacy-cli-chunked.sh +581 -0
- package/.agent/scripts/codacy-cli.sh +442 -0
- package/.agent/scripts/code-audit-helper.sh +5 -0
- package/.agent/scripts/coderabbit-cli.sh +417 -0
- package/.agent/scripts/coderabbit-pro-analysis.sh +238 -0
- package/.agent/scripts/commands/code-simplifier.md +86 -0
- package/.agent/scripts/commands/full-loop.md +246 -0
- package/.agent/scripts/commands/postflight-loop.md +103 -0
- package/.agent/scripts/commands/recall.md +182 -0
- package/.agent/scripts/commands/remember.md +132 -0
- package/.agent/scripts/commands/save-todo.md +175 -0
- package/.agent/scripts/commands/session-review.md +154 -0
- package/.agent/scripts/comprehensive-quality-fix.sh +106 -0
- package/.agent/scripts/context-builder-helper.sh +522 -0
- package/.agent/scripts/coolify-cli-helper.sh +674 -0
- package/.agent/scripts/coolify-helper.sh +380 -0
- package/.agent/scripts/crawl4ai-examples.sh +401 -0
- package/.agent/scripts/crawl4ai-helper.sh +1078 -0
- package/.agent/scripts/crewai-helper.sh +681 -0
- package/.agent/scripts/dev-browser-helper.sh +513 -0
- package/.agent/scripts/dns-helper.sh +396 -0
- package/.agent/scripts/domain-research-helper.sh +917 -0
- package/.agent/scripts/dspy-helper.sh +285 -0
- package/.agent/scripts/dspyground-helper.sh +291 -0
- package/.agent/scripts/eeat-score-helper.sh +1242 -0
- package/.agent/scripts/efficient-return-fix.sh +92 -0
- package/.agent/scripts/extract-opencode-prompts.sh +128 -0
- package/.agent/scripts/find-missing-returns.sh +113 -0
- package/.agent/scripts/fix-auth-headers.sh +104 -0
- package/.agent/scripts/fix-common-strings.sh +254 -0
- package/.agent/scripts/fix-content-type.sh +100 -0
- package/.agent/scripts/fix-error-messages.sh +130 -0
- package/.agent/scripts/fix-misplaced-returns.sh +74 -0
- package/.agent/scripts/fix-remaining-literals.sh +152 -0
- package/.agent/scripts/fix-return-statements.sh +41 -0
- package/.agent/scripts/fix-s131-default-cases.sh +249 -0
- package/.agent/scripts/fix-sc2155-simple.sh +102 -0
- package/.agent/scripts/fix-shellcheck-critical.sh +187 -0
- package/.agent/scripts/fix-string-literals.sh +273 -0
- package/.agent/scripts/full-loop-helper.sh +773 -0
- package/.agent/scripts/generate-opencode-agents.sh +497 -0
- package/.agent/scripts/generate-opencode-commands.sh +1629 -0
- package/.agent/scripts/generate-skills.sh +366 -0
- package/.agent/scripts/git-platforms-helper.sh +640 -0
- package/.agent/scripts/gitea-cli-helper.sh +743 -0
- package/.agent/scripts/github-cli-helper.sh +702 -0
- package/.agent/scripts/gitlab-cli-helper.sh +682 -0
- package/.agent/scripts/gsc-add-user-helper.sh +325 -0
- package/.agent/scripts/gsc-sitemap-helper.sh +678 -0
- package/.agent/scripts/hetzner-helper.sh +485 -0
- package/.agent/scripts/hostinger-helper.sh +229 -0
- package/.agent/scripts/keyword-research-helper.sh +1815 -0
- package/.agent/scripts/langflow-helper.sh +544 -0
- package/.agent/scripts/linkedin-automation.py +241 -0
- package/.agent/scripts/linter-manager.sh +599 -0
- package/.agent/scripts/linters-local.sh +434 -0
- package/.agent/scripts/list-keys-helper.sh +488 -0
- package/.agent/scripts/local-browser-automation.py +339 -0
- package/.agent/scripts/localhost-helper.sh +744 -0
- package/.agent/scripts/loop-common.sh +806 -0
- package/.agent/scripts/mainwp-helper.sh +728 -0
- package/.agent/scripts/markdown-formatter.sh +338 -0
- package/.agent/scripts/markdown-lint-fix.sh +311 -0
- package/.agent/scripts/mass-fix-returns.sh +58 -0
- package/.agent/scripts/mcp-diagnose.sh +167 -0
- package/.agent/scripts/mcp-inspector-helper.sh +449 -0
- package/.agent/scripts/memory-helper.sh +650 -0
- package/.agent/scripts/monitor-code-review.sh +255 -0
- package/.agent/scripts/onboarding-helper.sh +706 -0
- package/.agent/scripts/opencode-github-setup-helper.sh +797 -0
- package/.agent/scripts/opencode-test-helper.sh +213 -0
- package/.agent/scripts/pagespeed-helper.sh +464 -0
- package/.agent/scripts/pandoc-helper.sh +362 -0
- package/.agent/scripts/postflight-check.sh +555 -0
- package/.agent/scripts/pre-commit-hook.sh +259 -0
- package/.agent/scripts/pre-edit-check.sh +169 -0
- package/.agent/scripts/qlty-cli.sh +356 -0
- package/.agent/scripts/quality-cli-manager.sh +525 -0
- package/.agent/scripts/quality-feedback-helper.sh +462 -0
- package/.agent/scripts/quality-fix.sh +263 -0
- package/.agent/scripts/quality-loop-helper.sh +1108 -0
- package/.agent/scripts/ralph-loop-helper.sh +836 -0
- package/.agent/scripts/ralph-upstream-check.sh +341 -0
- package/.agent/scripts/secretlint-helper.sh +847 -0
- package/.agent/scripts/servers-helper.sh +241 -0
- package/.agent/scripts/ses-helper.sh +619 -0
- package/.agent/scripts/session-review-helper.sh +404 -0
- package/.agent/scripts/setup-linters-wizard.sh +379 -0
- package/.agent/scripts/setup-local-api-keys.sh +330 -0
- package/.agent/scripts/setup-mcp-integrations.sh +472 -0
- package/.agent/scripts/shared-constants.sh +246 -0
- package/.agent/scripts/site-crawler-helper.sh +1487 -0
- package/.agent/scripts/snyk-helper.sh +940 -0
- package/.agent/scripts/sonarcloud-autofix.sh +193 -0
- package/.agent/scripts/sonarcloud-cli.sh +191 -0
- package/.agent/scripts/sonarscanner-cli.sh +455 -0
- package/.agent/scripts/spaceship-helper.sh +747 -0
- package/.agent/scripts/stagehand-helper.sh +321 -0
- package/.agent/scripts/stagehand-python-helper.sh +321 -0
- package/.agent/scripts/stagehand-python-setup.sh +441 -0
- package/.agent/scripts/stagehand-setup.sh +439 -0
- package/.agent/scripts/system-cleanup.sh +340 -0
- package/.agent/scripts/terminal-title-helper.sh +388 -0
- package/.agent/scripts/terminal-title-setup.sh +549 -0
- package/.agent/scripts/test-stagehand-both-integration.sh +317 -0
- package/.agent/scripts/test-stagehand-integration.sh +309 -0
- package/.agent/scripts/test-stagehand-python-integration.sh +341 -0
- package/.agent/scripts/todo-ready.sh +263 -0
- package/.agent/scripts/tool-version-check.sh +362 -0
- package/.agent/scripts/toon-helper.sh +469 -0
- package/.agent/scripts/twilio-helper.sh +917 -0
- package/.agent/scripts/updown-helper.sh +279 -0
- package/.agent/scripts/validate-mcp-integrations.sh +250 -0
- package/.agent/scripts/validate-version-consistency.sh +131 -0
- package/.agent/scripts/vaultwarden-helper.sh +597 -0
- package/.agent/scripts/vercel-cli-helper.sh +816 -0
- package/.agent/scripts/verify-mirrors.sh +169 -0
- package/.agent/scripts/version-manager.sh +831 -0
- package/.agent/scripts/webhosting-helper.sh +471 -0
- package/.agent/scripts/webhosting-verify.sh +238 -0
- package/.agent/scripts/wordpress-mcp-helper.sh +508 -0
- package/.agent/scripts/worktree-helper.sh +595 -0
- package/.agent/scripts/worktree-sessions.sh +577 -0
- package/.agent/seo/dataforseo.md +215 -0
- package/.agent/seo/domain-research.md +532 -0
- package/.agent/seo/eeat-score.md +659 -0
- package/.agent/seo/google-search-console.md +366 -0
- package/.agent/seo/gsc-sitemaps.md +282 -0
- package/.agent/seo/keyword-research.md +521 -0
- package/.agent/seo/serper.md +278 -0
- package/.agent/seo/site-crawler.md +387 -0
- package/.agent/seo.md +236 -0
- package/.agent/services/accounting/quickfile.md +159 -0
- package/.agent/services/communications/telfon.md +470 -0
- package/.agent/services/communications/twilio.md +569 -0
- package/.agent/services/crm/fluentcrm.md +449 -0
- package/.agent/services/email/ses.md +399 -0
- package/.agent/services/hosting/101domains.md +378 -0
- package/.agent/services/hosting/closte.md +177 -0
- package/.agent/services/hosting/cloudflare.md +251 -0
- package/.agent/services/hosting/cloudron.md +478 -0
- package/.agent/services/hosting/dns-providers.md +335 -0
- package/.agent/services/hosting/domain-purchasing.md +344 -0
- package/.agent/services/hosting/hetzner.md +327 -0
- package/.agent/services/hosting/hostinger.md +287 -0
- package/.agent/services/hosting/localhost.md +419 -0
- package/.agent/services/hosting/spaceship.md +353 -0
- package/.agent/services/hosting/webhosting.md +330 -0
- package/.agent/social-media.md +69 -0
- package/.agent/templates/plans-template.md +114 -0
- package/.agent/templates/prd-template.md +129 -0
- package/.agent/templates/tasks-template.md +108 -0
- package/.agent/templates/todo-template.md +89 -0
- package/.agent/tools/ai-assistants/agno.md +471 -0
- package/.agent/tools/ai-assistants/capsolver.md +326 -0
- package/.agent/tools/ai-assistants/configuration.md +221 -0
- package/.agent/tools/ai-assistants/overview.md +209 -0
- package/.agent/tools/ai-assistants/status.md +171 -0
- package/.agent/tools/ai-assistants/windsurf.md +193 -0
- package/.agent/tools/ai-orchestration/autogen.md +406 -0
- package/.agent/tools/ai-orchestration/crewai.md +445 -0
- package/.agent/tools/ai-orchestration/langflow.md +405 -0
- package/.agent/tools/ai-orchestration/openprose.md +487 -0
- package/.agent/tools/ai-orchestration/overview.md +362 -0
- package/.agent/tools/ai-orchestration/packaging.md +647 -0
- package/.agent/tools/browser/agent-browser.md +464 -0
- package/.agent/tools/browser/browser-automation.md +400 -0
- package/.agent/tools/browser/chrome-devtools.md +282 -0
- package/.agent/tools/browser/crawl4ai-integration.md +422 -0
- package/.agent/tools/browser/crawl4ai-resources.md +277 -0
- package/.agent/tools/browser/crawl4ai-usage.md +416 -0
- package/.agent/tools/browser/crawl4ai.md +585 -0
- package/.agent/tools/browser/dev-browser.md +341 -0
- package/.agent/tools/browser/pagespeed.md +260 -0
- package/.agent/tools/browser/playwright.md +266 -0
- package/.agent/tools/browser/playwriter.md +310 -0
- package/.agent/tools/browser/stagehand-examples.md +456 -0
- package/.agent/tools/browser/stagehand-python.md +483 -0
- package/.agent/tools/browser/stagehand.md +421 -0
- package/.agent/tools/build-agent/agent-review.md +224 -0
- package/.agent/tools/build-agent/build-agent.md +784 -0
- package/.agent/tools/build-mcp/aidevops-plugin.md +476 -0
- package/.agent/tools/build-mcp/api-wrapper.md +445 -0
- package/.agent/tools/build-mcp/build-mcp.md +240 -0
- package/.agent/tools/build-mcp/deployment.md +401 -0
- package/.agent/tools/build-mcp/server-patterns.md +632 -0
- package/.agent/tools/build-mcp/transports.md +366 -0
- package/.agent/tools/code-review/auditing.md +383 -0
- package/.agent/tools/code-review/automation.md +219 -0
- package/.agent/tools/code-review/best-practices.md +203 -0
- package/.agent/tools/code-review/codacy.md +151 -0
- package/.agent/tools/code-review/code-simplifier.md +174 -0
- package/.agent/tools/code-review/code-standards.md +309 -0
- package/.agent/tools/code-review/coderabbit.md +101 -0
- package/.agent/tools/code-review/management.md +155 -0
- package/.agent/tools/code-review/qlty.md +248 -0
- package/.agent/tools/code-review/secretlint.md +565 -0
- package/.agent/tools/code-review/setup.md +250 -0
- package/.agent/tools/code-review/snyk.md +563 -0
- package/.agent/tools/code-review/tools.md +230 -0
- package/.agent/tools/content/summarize.md +353 -0
- package/.agent/tools/context/augment-context-engine.md +468 -0
- package/.agent/tools/context/context-builder-agent.md +76 -0
- package/.agent/tools/context/context-builder.md +375 -0
- package/.agent/tools/context/context7.md +371 -0
- package/.agent/tools/context/dspy.md +302 -0
- package/.agent/tools/context/dspyground.md +374 -0
- package/.agent/tools/context/llm-tldr.md +219 -0
- package/.agent/tools/context/osgrep.md +488 -0
- package/.agent/tools/context/prompt-optimization.md +338 -0
- package/.agent/tools/context/toon.md +292 -0
- package/.agent/tools/conversion/pandoc.md +304 -0
- package/.agent/tools/credentials/api-key-management.md +154 -0
- package/.agent/tools/credentials/api-key-setup.md +224 -0
- package/.agent/tools/credentials/environment-variables.md +180 -0
- package/.agent/tools/credentials/vaultwarden.md +382 -0
- package/.agent/tools/data-extraction/outscraper.md +974 -0
- package/.agent/tools/deployment/coolify-cli.md +388 -0
- package/.agent/tools/deployment/coolify-setup.md +353 -0
- package/.agent/tools/deployment/coolify.md +345 -0
- package/.agent/tools/deployment/vercel.md +390 -0
- package/.agent/tools/git/authentication.md +132 -0
- package/.agent/tools/git/gitea-cli.md +193 -0
- package/.agent/tools/git/github-actions.md +207 -0
- package/.agent/tools/git/github-cli.md +223 -0
- package/.agent/tools/git/gitlab-cli.md +190 -0
- package/.agent/tools/git/opencode-github-security.md +350 -0
- package/.agent/tools/git/opencode-github.md +328 -0
- package/.agent/tools/git/opencode-gitlab.md +252 -0
- package/.agent/tools/git/security.md +196 -0
- package/.agent/tools/git.md +207 -0
- package/.agent/tools/opencode/oh-my-opencode.md +375 -0
- package/.agent/tools/opencode/opencode-anthropic-auth.md +446 -0
- package/.agent/tools/opencode/opencode.md +651 -0
- package/.agent/tools/social-media/bird.md +437 -0
- package/.agent/tools/task-management/beads.md +336 -0
- package/.agent/tools/terminal/terminal-title.md +251 -0
- package/.agent/tools/ui/shadcn.md +196 -0
- package/.agent/tools/ui/ui-skills.md +115 -0
- package/.agent/tools/wordpress/localwp.md +311 -0
- package/.agent/tools/wordpress/mainwp.md +391 -0
- package/.agent/tools/wordpress/scf.md +527 -0
- package/.agent/tools/wordpress/wp-admin.md +729 -0
- package/.agent/tools/wordpress/wp-dev.md +940 -0
- package/.agent/tools/wordpress/wp-preferred.md +398 -0
- package/.agent/tools/wordpress.md +95 -0
- package/.agent/workflows/branch/bugfix.md +63 -0
- package/.agent/workflows/branch/chore.md +95 -0
- package/.agent/workflows/branch/experiment.md +115 -0
- package/.agent/workflows/branch/feature.md +59 -0
- package/.agent/workflows/branch/hotfix.md +98 -0
- package/.agent/workflows/branch/refactor.md +92 -0
- package/.agent/workflows/branch/release.md +96 -0
- package/.agent/workflows/branch.md +347 -0
- package/.agent/workflows/bug-fixing.md +267 -0
- package/.agent/workflows/changelog.md +129 -0
- package/.agent/workflows/code-audit-remote.md +279 -0
- package/.agent/workflows/conversation-starter.md +69 -0
- package/.agent/workflows/error-feedback.md +578 -0
- package/.agent/workflows/feature-development.md +355 -0
- package/.agent/workflows/git-workflow.md +702 -0
- package/.agent/workflows/multi-repo-workspace.md +268 -0
- package/.agent/workflows/plans.md +709 -0
- package/.agent/workflows/postflight.md +604 -0
- package/.agent/workflows/pr.md +571 -0
- package/.agent/workflows/preflight.md +278 -0
- package/.agent/workflows/ralph-loop.md +773 -0
- package/.agent/workflows/release.md +498 -0
- package/.agent/workflows/session-manager.md +254 -0
- package/.agent/workflows/session-review.md +311 -0
- package/.agent/workflows/sql-migrations.md +631 -0
- package/.agent/workflows/version-bump.md +283 -0
- package/.agent/workflows/wiki-update.md +333 -0
- package/.agent/workflows/worktree.md +477 -0
- package/LICENSE +21 -0
- package/README.md +1446 -0
- package/VERSION +1 -0
- package/aidevops.sh +1746 -0
- package/bin/aidevops +21 -0
- package/package.json +75 -0
- package/scripts/npm-postinstall.js +60 -0
- package/setup.sh +2366 -0
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Langflow visual AI workflow builder - setup, usage, and integration
|
|
3
|
+
mode: subagent
|
|
4
|
+
tools:
|
|
5
|
+
read: true
|
|
6
|
+
write: true
|
|
7
|
+
edit: true
|
|
8
|
+
bash: true
|
|
9
|
+
glob: true
|
|
10
|
+
grep: true
|
|
11
|
+
webfetch: true
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Langflow - Visual AI Workflow Builder
|
|
15
|
+
|
|
16
|
+
<!-- AI-CONTEXT-START -->
|
|
17
|
+
|
|
18
|
+
## Quick Reference
|
|
19
|
+
|
|
20
|
+
- **Purpose**: Visual drag-and-drop builder for AI-powered agents and workflows
|
|
21
|
+
- **License**: MIT (fully open-source, commercial use permitted)
|
|
22
|
+
- **Setup**: `bash .agent/scripts/langflow-helper.sh setup`
|
|
23
|
+
- **Start**: `~/.aidevops/scripts/start-langflow.sh`
|
|
24
|
+
- **Stop**: `~/.aidevops/scripts/stop-langflow.sh`
|
|
25
|
+
- **Status**: `~/.aidevops/scripts/langflow-status.sh`
|
|
26
|
+
- **URL**: http://localhost:7860
|
|
27
|
+
- **Config**: `~/.aidevops/langflow/.env`
|
|
28
|
+
- **Install**: `pip install langflow` in venv at `~/.aidevops/langflow/venv/`
|
|
29
|
+
- **Privacy**: Flows stored locally, optional cloud sync
|
|
30
|
+
|
|
31
|
+
**Key Features**:
|
|
32
|
+
|
|
33
|
+
- Drag-and-drop visual flow builder
|
|
34
|
+
- Export flows to Python code
|
|
35
|
+
- Built-in MCP server support
|
|
36
|
+
- LangChain ecosystem integration
|
|
37
|
+
- Local LLM support (Ollama)
|
|
38
|
+
|
|
39
|
+
<!-- AI-CONTEXT-END -->
|
|
40
|
+
|
|
41
|
+
## Overview
|
|
42
|
+
|
|
43
|
+
Langflow is a powerful visual tool for building and deploying AI-powered agents and workflows. It provides developers with both a visual authoring experience and built-in API/MCP servers that turn every workflow into a tool.
|
|
44
|
+
|
|
45
|
+
## Installation
|
|
46
|
+
|
|
47
|
+
### Automated Setup (Recommended)
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Run the setup script
|
|
51
|
+
bash .agent/scripts/langflow-helper.sh setup
|
|
52
|
+
|
|
53
|
+
# Configure API keys
|
|
54
|
+
nano ~/.aidevops/langflow/.env
|
|
55
|
+
|
|
56
|
+
# Start Langflow
|
|
57
|
+
~/.aidevops/scripts/start-langflow.sh
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Manual Installation
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Create directory and virtual environment
|
|
64
|
+
mkdir -p ~/.aidevops/langflow
|
|
65
|
+
cd ~/.aidevops/langflow
|
|
66
|
+
python3 -m venv venv
|
|
67
|
+
source venv/bin/activate
|
|
68
|
+
|
|
69
|
+
# Install Langflow
|
|
70
|
+
pip install langflow
|
|
71
|
+
|
|
72
|
+
# Run Langflow
|
|
73
|
+
langflow run
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Docker Installation
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Run with Docker
|
|
80
|
+
docker run -p 7860:7860 langflowai/langflow:latest
|
|
81
|
+
|
|
82
|
+
# With persistent storage
|
|
83
|
+
docker run -p 7860:7860 -v langflow_data:/app/langflow langflowai/langflow:latest
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Desktop App
|
|
87
|
+
|
|
88
|
+
Download Langflow Desktop from https://www.langflow.org/desktop for Windows/macOS.
|
|
89
|
+
|
|
90
|
+
## Configuration
|
|
91
|
+
|
|
92
|
+
### Environment Variables
|
|
93
|
+
|
|
94
|
+
Create `~/.aidevops/langflow/.env`:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# OpenAI Configuration
|
|
98
|
+
OPENAI_API_KEY=your_openai_api_key_here
|
|
99
|
+
|
|
100
|
+
# Anthropic Configuration (optional)
|
|
101
|
+
ANTHROPIC_API_KEY=your_anthropic_key_here
|
|
102
|
+
|
|
103
|
+
# Langflow Configuration
|
|
104
|
+
LANGFLOW_HOST=0.0.0.0
|
|
105
|
+
LANGFLOW_PORT=7860
|
|
106
|
+
LANGFLOW_WORKERS=1
|
|
107
|
+
|
|
108
|
+
# Database (default: SQLite)
|
|
109
|
+
LANGFLOW_DATABASE_URL=sqlite:///./langflow.db
|
|
110
|
+
|
|
111
|
+
# Local LLM (Ollama)
|
|
112
|
+
OLLAMA_BASE_URL=http://localhost:11434
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Custom Components
|
|
116
|
+
|
|
117
|
+
Create custom components in Python:
|
|
118
|
+
|
|
119
|
+
```python
|
|
120
|
+
# ~/.aidevops/langflow/components/my_component.py
|
|
121
|
+
from langflow.custom import CustomComponent
|
|
122
|
+
from langflow.schema import Data
|
|
123
|
+
|
|
124
|
+
class MyCustomComponent(CustomComponent):
|
|
125
|
+
display_name = "My Custom Component"
|
|
126
|
+
description = "A custom component for aidevops"
|
|
127
|
+
|
|
128
|
+
def build(self, input_text: str) -> Data:
|
|
129
|
+
# Your custom logic here
|
|
130
|
+
result = input_text.upper()
|
|
131
|
+
return Data(text=result)
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Load custom components:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
langflow run --components-path ~/.aidevops/langflow/components/
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Usage
|
|
141
|
+
|
|
142
|
+
### Starting Services
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# Start Langflow
|
|
146
|
+
~/.aidevops/scripts/start-langflow.sh
|
|
147
|
+
|
|
148
|
+
# Check status
|
|
149
|
+
~/.aidevops/scripts/langflow-status.sh
|
|
150
|
+
|
|
151
|
+
# Stop Langflow
|
|
152
|
+
~/.aidevops/scripts/stop-langflow.sh
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Accessing the Interface
|
|
156
|
+
|
|
157
|
+
- **Web UI**: http://localhost:7860
|
|
158
|
+
- **API Docs**: http://localhost:7860/docs
|
|
159
|
+
- **Health Check**: http://localhost:7860/health
|
|
160
|
+
|
|
161
|
+
### Building Your First Flow
|
|
162
|
+
|
|
163
|
+
1. Open http://localhost:7860
|
|
164
|
+
2. Click "New Flow" or use a template
|
|
165
|
+
3. Drag components from the sidebar
|
|
166
|
+
4. Connect components by dragging edges
|
|
167
|
+
5. Configure each component's parameters
|
|
168
|
+
6. Click "Run" to test the flow
|
|
169
|
+
|
|
170
|
+
### Common Flow Patterns
|
|
171
|
+
|
|
172
|
+
**RAG Pipeline**:
|
|
173
|
+
|
|
174
|
+
```text
|
|
175
|
+
[Document Loader] → [Text Splitter] → [Embeddings] → [Vector Store]
|
|
176
|
+
↓
|
|
177
|
+
[User Input] → [Retriever] → [LLM] → [Output]
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**Multi-Agent Chat**:
|
|
181
|
+
|
|
182
|
+
```text
|
|
183
|
+
[User Input] → [Router Agent] → [Specialist Agent 1]
|
|
184
|
+
→ [Specialist Agent 2]
|
|
185
|
+
→ [Aggregator] → [Output]
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
## API Integration
|
|
189
|
+
|
|
190
|
+
### REST API
|
|
191
|
+
|
|
192
|
+
```python
|
|
193
|
+
import requests
|
|
194
|
+
|
|
195
|
+
# Run a flow
|
|
196
|
+
response = requests.post(
|
|
197
|
+
"http://localhost:7860/api/v1/run/<flow-id>",
|
|
198
|
+
json={
|
|
199
|
+
"input_value": "Hello, world!",
|
|
200
|
+
"output_type": "chat",
|
|
201
|
+
"input_type": "chat"
|
|
202
|
+
}
|
|
203
|
+
)
|
|
204
|
+
print(response.json())
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### MCP Server
|
|
208
|
+
|
|
209
|
+
Langflow can expose flows as MCP tools:
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
# Start with MCP server enabled
|
|
213
|
+
langflow run --mcp
|
|
214
|
+
|
|
215
|
+
# Or configure in .env
|
|
216
|
+
LANGFLOW_MCP_ENABLED=true
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Then connect from AI assistants that support MCP.
|
|
220
|
+
|
|
221
|
+
## Git Integration
|
|
222
|
+
|
|
223
|
+
### Exporting Flows
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
# Export a flow to JSON
|
|
227
|
+
langflow export --flow-id <flow-id> --output flows/my-flow.json
|
|
228
|
+
|
|
229
|
+
# Export all flows
|
|
230
|
+
langflow export --all --output flows/
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Importing Flows
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
# Import a flow from JSON
|
|
237
|
+
langflow import --file flows/my-flow.json
|
|
238
|
+
|
|
239
|
+
# Import all flows from directory
|
|
240
|
+
langflow import --directory flows/
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### Version Control Best Practices
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
# .gitignore additions
|
|
247
|
+
langflow.db
|
|
248
|
+
*.log
|
|
249
|
+
__pycache__/
|
|
250
|
+
.env
|
|
251
|
+
|
|
252
|
+
# Track these
|
|
253
|
+
flows/*.json
|
|
254
|
+
components/*.py
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### Bi-directional Sync
|
|
258
|
+
|
|
259
|
+
Use file watchers for automatic sync:
|
|
260
|
+
|
|
261
|
+
```python
|
|
262
|
+
# sync_flows.py
|
|
263
|
+
from watchdog.observers import Observer
|
|
264
|
+
from watchdog.events import FileSystemEventHandler
|
|
265
|
+
import subprocess
|
|
266
|
+
|
|
267
|
+
class FlowSyncHandler(FileSystemEventHandler):
|
|
268
|
+
def on_modified(self, event):
|
|
269
|
+
if event.src_path.endswith('.json'):
|
|
270
|
+
subprocess.run(['langflow', 'import', '--file', event.src_path])
|
|
271
|
+
|
|
272
|
+
# Run with: python sync_flows.py
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
## Local LLM Support
|
|
276
|
+
|
|
277
|
+
### Using Ollama
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
# Install Ollama
|
|
281
|
+
curl -fsSL https://ollama.com/install.sh | sh
|
|
282
|
+
|
|
283
|
+
# Pull a model
|
|
284
|
+
ollama pull llama3.2
|
|
285
|
+
ollama pull codellama
|
|
286
|
+
|
|
287
|
+
# Configure in Langflow
|
|
288
|
+
# Add Ollama component and set base URL to http://localhost:11434
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
### Using LM Studio
|
|
292
|
+
|
|
293
|
+
1. Download LM Studio from https://lmstudio.ai
|
|
294
|
+
2. Load a model and start the local server
|
|
295
|
+
3. In Langflow, use OpenAI-compatible endpoint: http://localhost:1234/v1
|
|
296
|
+
|
|
297
|
+
## Deployment
|
|
298
|
+
|
|
299
|
+
### Docker Compose
|
|
300
|
+
|
|
301
|
+
```yaml
|
|
302
|
+
# docker-compose.yml
|
|
303
|
+
version: '3.8'
|
|
304
|
+
services:
|
|
305
|
+
langflow:
|
|
306
|
+
image: langflowai/langflow:latest
|
|
307
|
+
ports:
|
|
308
|
+
- "7860:7860"
|
|
309
|
+
volumes:
|
|
310
|
+
- langflow_data:/app/langflow
|
|
311
|
+
- ./flows:/app/flows
|
|
312
|
+
environment:
|
|
313
|
+
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
314
|
+
restart: unless-stopped
|
|
315
|
+
|
|
316
|
+
volumes:
|
|
317
|
+
langflow_data:
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### Production Considerations
|
|
321
|
+
|
|
322
|
+
- Use PostgreSQL instead of SQLite for production
|
|
323
|
+
- Enable authentication for multi-user deployments
|
|
324
|
+
- Use reverse proxy (nginx/traefik) for HTTPS
|
|
325
|
+
- Set up monitoring and logging
|
|
326
|
+
|
|
327
|
+
## Troubleshooting
|
|
328
|
+
|
|
329
|
+
### Common Issues
|
|
330
|
+
|
|
331
|
+
**Port already in use**:
|
|
332
|
+
|
|
333
|
+
```bash
|
|
334
|
+
# Find and kill process
|
|
335
|
+
lsof -i :7860
|
|
336
|
+
kill -9 <PID>
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
**Database errors**:
|
|
340
|
+
|
|
341
|
+
```bash
|
|
342
|
+
# Reset database
|
|
343
|
+
rm ~/.aidevops/langflow/langflow.db
|
|
344
|
+
langflow run
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
**Component not loading**:
|
|
348
|
+
|
|
349
|
+
```bash
|
|
350
|
+
# Check component syntax
|
|
351
|
+
python -c "from components.my_component import MyCustomComponent"
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
### Logs
|
|
355
|
+
|
|
356
|
+
```bash
|
|
357
|
+
# View logs
|
|
358
|
+
tail -f ~/.aidevops/langflow/langflow.log
|
|
359
|
+
|
|
360
|
+
# Debug mode
|
|
361
|
+
LANGFLOW_LOG_LEVEL=DEBUG langflow run
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
## Integration Examples
|
|
365
|
+
|
|
366
|
+
### With aidevops Workflows
|
|
367
|
+
|
|
368
|
+
```bash
|
|
369
|
+
# Export flow for version control
|
|
370
|
+
langflow export --flow-id <id> --output flows/devops-automation.json
|
|
371
|
+
|
|
372
|
+
# Commit to git
|
|
373
|
+
git add flows/devops-automation.json
|
|
374
|
+
git commit -m "feat: add DevOps automation flow"
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### With CrewAI
|
|
378
|
+
|
|
379
|
+
Langflow can orchestrate CrewAI agents:
|
|
380
|
+
|
|
381
|
+
1. Create a custom component that imports CrewAI
|
|
382
|
+
2. Define agents and tasks in the component
|
|
383
|
+
3. Connect to other Langflow components
|
|
384
|
+
|
|
385
|
+
### With OpenCode
|
|
386
|
+
|
|
387
|
+
Use Langflow flows as tools in OpenCode via MCP:
|
|
388
|
+
|
|
389
|
+
```json
|
|
390
|
+
{
|
|
391
|
+
"mcpServers": {
|
|
392
|
+
"langflow": {
|
|
393
|
+
"command": "langflow",
|
|
394
|
+
"args": ["run", "--mcp"]
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
## Resources
|
|
401
|
+
|
|
402
|
+
- **Documentation**: https://docs.langflow.org
|
|
403
|
+
- **GitHub**: https://github.com/langflow-ai/langflow
|
|
404
|
+
- **Discord**: https://discord.gg/EqksyE2EX9
|
|
405
|
+
- **Templates**: https://www.langflow.org/templates
|