chore: update startup scripts and .env.example for LLM profile feature

This commit is contained in:
2026-06-16 17:03:25 +08:00
parent 719c3b4ca4
commit d68399d39b
3 changed files with 39 additions and 6 deletions

View File

@@ -58,7 +58,17 @@ if ($LASTEXITCODE -ne 0) {
}
# ----------------------------------------------------------------
# 4. Seed demo data if missing
# 4. Ensure configs/ directory exists for LLM profile storage
# ----------------------------------------------------------------
if (-not (Test-Path "configs")) {
New-Item -ItemType Directory "configs" | Out-Null
Write-Host "[OK] Created configs/ directory for LLM profile storage." -ForegroundColor Green
} else {
Write-Host "[OK] configs/ directory ready." -ForegroundColor Green
}
# ----------------------------------------------------------------
# 5. Seed demo data if missing
# ----------------------------------------------------------------
if (-not (Test-Path "outputs\kba-knowledge-base-offline-baseline")) {
Write-Host "[INFO] No run data found. Generating demo data..." -ForegroundColor Yellow
@@ -73,7 +83,7 @@ if (-not (Test-Path "outputs\kba-knowledge-base-offline-baseline")) {
}
# ----------------------------------------------------------------
# 5. Pick an available port
# 6. Pick an available port
# ----------------------------------------------------------------
$PORT = 8800
$inUse = netstat -ano 2>$null | Select-String ":$PORT\s" | Select-String "LISTENING"