* 🐛 (dataframe_operations.py): Fix bug in DataFrameOperationsComponent where "not contains" filter option was missing, causing incorrect filtering behavior. * [autofix.ci] apply automated fixes * Update pyproject versions * fix: Avoid namespace collision for Astra (#9544) * fix: Avoid namespace collision for Astra * [autofix.ci] apply automated fixes * Update Vector Store RAG.json * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * fix: Revert to a working composio release for module import (#9569) fix: revert to stable composio version * fix: Knowledge base component refactor (#9543) * fix: Knowledge base component refactor * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * Update styleUtils.ts * Update ingestion.py * [autofix.ci] apply automated fixes * Fix ingestion of df * [autofix.ci] apply automated fixes * Update Knowledge Ingestion.json * Fix one failing test * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * Revert composio versions for CI * Revert "Revert composio versions for CI" This reverts commit 9bcb694ea1e20d544cf5e17fed2f9f4c0a3c192b. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Edwin Jose <edwin.jose@datastax.com> Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com> * fix: Fix env file handling in Windows build scripts (#9414) fix .env load on windows script Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com> * fix: update agent_llm display name to "Model Provider" in AgentComponent (#9564) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * 📝 (test_mcp_util.py): add a check to skip test if DeepWiki server is rate limiting requests to avoid false test failures * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com> Co-authored-by: Eric Hare <ericrhare@gmail.com> Co-authored-by: Edwin Jose <edwin.jose@datastax.com> Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com> Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
101 lines
No EOL
3.2 KiB
PowerShell
101 lines
No EOL
3.2 KiB
PowerShell
#!/usr/bin/env pwsh
|
|
|
|
Write-Host "Starting Langflow build and run process..." -ForegroundColor Green
|
|
|
|
# Check if .env file exists and set env file parameter
|
|
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
|
|
$projectRoot = Resolve-Path (Join-Path $scriptDir "..\..")
|
|
$envPath = Join-Path $projectRoot ".env"
|
|
$useEnvFile = $false
|
|
if (Test-Path $envPath) {
|
|
Write-Host "Found .env file at: $envPath" -ForegroundColor Cyan
|
|
$useEnvFile = $true
|
|
} else {
|
|
Write-Host ".env file not found at: $envPath" -ForegroundColor Yellow
|
|
Write-Host "Langflow will use default configuration" -ForegroundColor Yellow
|
|
}
|
|
|
|
# Step 1: Install frontend dependencies
|
|
Write-Host "`nStep 1: Installing frontend dependencies..." -ForegroundColor Yellow
|
|
try {
|
|
Set-Location "..\..\src\frontend"
|
|
Write-Host "Running npm install..."
|
|
npm install
|
|
if ($LASTEXITCODE -ne 0) {
|
|
throw "npm install failed"
|
|
}
|
|
} catch {
|
|
Write-Host "Error in frontend dependency installation: $_" -ForegroundColor Red
|
|
Read-Host "Press Enter to exit"
|
|
exit 1
|
|
}
|
|
|
|
# Step 2: Build frontend
|
|
Write-Host "`nStep 2: Building frontend..." -ForegroundColor Yellow
|
|
try {
|
|
Write-Host "Running npm run build..."
|
|
npm run build
|
|
if ($LASTEXITCODE -ne 0) {
|
|
throw "npm run build failed"
|
|
}
|
|
} catch {
|
|
Write-Host "Error in frontend build: $_" -ForegroundColor Red
|
|
Read-Host "Press Enter to exit"
|
|
exit 1
|
|
}
|
|
|
|
# Step 3: Copy build files
|
|
Write-Host "`nStep 3: Copying build files to backend..." -ForegroundColor Yellow
|
|
try {
|
|
Set-Location "..\.."
|
|
|
|
# Determine build directory
|
|
$buildDir = if (Test-Path "src\frontend\build") {
|
|
"src\frontend\build"
|
|
} elseif (Test-Path "src\frontend\dist") {
|
|
"src\frontend\dist"
|
|
} else {
|
|
throw "Neither build nor dist directory found in src\frontend"
|
|
}
|
|
|
|
$targetDir = "src\backend\base\langflow\frontend"
|
|
Write-Host "Copying from $buildDir to $targetDir"
|
|
|
|
# Create target directory if it doesn't exist
|
|
if (-not (Test-Path $targetDir)) {
|
|
New-Item -Path $targetDir -ItemType Directory -Force | Out-Null
|
|
}
|
|
|
|
# Remove existing files in target directory (FORCES CLEAN REPLACEMENT)
|
|
Write-Host "Removing existing files from target directory..." -ForegroundColor Cyan
|
|
if (Test-Path "$targetDir\*") {
|
|
Remove-Item "$targetDir\*" -Recurse -Force
|
|
}
|
|
|
|
# Copy all files from build directory
|
|
Copy-Item "$buildDir\*" -Destination $targetDir -Recurse -Force
|
|
Write-Host "Build files copied successfully!" -ForegroundColor Green
|
|
|
|
} catch {
|
|
Write-Host "Error copying files: $_" -ForegroundColor Red
|
|
Read-Host "Press Enter to exit"
|
|
exit 1
|
|
}
|
|
|
|
# Step 4: Run Langflow
|
|
Write-Host "`nStep 4: Running Langflow..." -ForegroundColor Yellow
|
|
Write-Host "`nAttention: Wait until uvicorn is running before opening the browser" -ForegroundColor Red
|
|
try {
|
|
if ($useEnvFile) {
|
|
& uv run --env-file $envPath langflow run
|
|
} else {
|
|
& uv run langflow run
|
|
}
|
|
} catch {
|
|
Write-Host "Error running langflow: $_" -ForegroundColor Red
|
|
Read-Host "Press Enter to exit"
|
|
exit 1
|
|
}
|
|
|
|
Write-Host "`nLangflow build and run process completed!" -ForegroundColor Green
|
|
Read-Host "Press Enter to exit" |