feat: 운영 안정성과 세션 음성 경험 개선
This commit is contained in:
parent
facc4ad2d9
commit
c788343467
95 changed files with 8431 additions and 1785 deletions
|
|
@ -16,14 +16,20 @@
|
|||
vite 웹 서버를 띄우지 않는다(API만 필요할 때).
|
||||
.PARAMETER NoDb
|
||||
Docker Postgres 보장을 건너뛰고 in-memory degraded 기동을 허용한다.
|
||||
.PARAMETER UseHiggsVoice
|
||||
로컬 synthetic seed 전용 Higgs TTS 서버를 준비하고 dev API의 P1 음성 공급자로 연결한다.
|
||||
.EXAMPLE
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\dev-up.ps1
|
||||
.EXAMPLE
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\dev-up.ps1 -UseHiggsVoice
|
||||
#>
|
||||
param(
|
||||
[int]$ApiPort = 8000,
|
||||
[switch]$NoGateway,
|
||||
[switch]$NoWeb,
|
||||
[switch]$NoDb
|
||||
[switch]$NoDb,
|
||||
[switch]$UseHiggsVoice,
|
||||
[int]$HiggsPort = 9881
|
||||
)
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$repo = Split-Path -Parent $PSScriptRoot
|
||||
|
|
@ -245,6 +251,14 @@ if (-not $NoDb) {
|
|||
Ensure-DevDb
|
||||
}
|
||||
|
||||
if ($UseHiggsVoice) {
|
||||
Write-Host '[voice] 로컬 Higgs TTS 준비 (synthetic seed only)...'
|
||||
$higgsLauncher = Join-Path $PSScriptRoot 'start-higgs-tts.ps1'
|
||||
& $higgsLauncher -Port $HiggsPort -WaitReadySeconds 180
|
||||
$env:VIGNETTE_VOICE_TTS_PROVIDER = 'higgs'
|
||||
$env:VIGNETTE_HIGGS_TTS_URL = "http://127.0.0.1:$HiggsPort"
|
||||
}
|
||||
|
||||
if (-not $NoGateway) {
|
||||
Write-Host '[2/4] 엔진 게이트웨이 :9099 (claude_cli)...'
|
||||
$gatewayArgs = @($PyPre) + @('-m', 'uvicorn', 'engine_gateway.gateway:app', '--host', '127.0.0.1', '--port', '9099')
|
||||
|
|
@ -256,6 +270,7 @@ if (-not $NoGateway) {
|
|||
Write-Host ('[3/4] API :{0} (단일 프로세스, degraded in-memory OK, seed 페르소나)...' -f $ApiPort)
|
||||
$env:AUTO_SEED_PERSONAS = 'true'
|
||||
$env:ALLOW_SEED_PERSONA_FALLBACK = 'true'
|
||||
$env:VIGNETTE_LIVE_CLIENT_PROVIDER = 'claude_cli'
|
||||
$env:VITE_API_PROXY_TARGET = "http://127.0.0.1:$ApiPort"
|
||||
$apiArgs = @($PyPre) + @('-m', 'uvicorn', 'app.main:app', '--host', '127.0.0.1', '--port', "$ApiPort")
|
||||
Start-Process -FilePath $Python -ArgumentList $apiArgs -WorkingDirectory $api -WindowStyle Hidden -RedirectStandardOutput (Join-Path $logs 'api.out.log') -RedirectStandardError (Join-Path $logs 'api.err.log')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue