fix: show published models and support multi-model key selection
This commit is contained in:
1 parent
1a57de5bf9
commit
0a44a0802b
14 files changed
+360
-60
No files matched your search
@@ -19,8 +19,8 @@ try {
|
||||
$env:VITE_AUTH_MODE = 'remote'
|
||||
& node node_modules/vue-tsc/bin/vue-tsc.js --noEmit
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Vue type check failed.' }
|
||||
& node --experimental-strip-types --test tests/chat-stream.test.mjs
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Frontend stream verification failed.' }
|
||||
& node --experimental-strip-types --test tests/chat-stream.test.mjs tests/model-catalog.test.mjs
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Frontend verification failed.' }
|
||||
& node build-release.mjs
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Vue build failed.' }
|
||||
} finally { Pop-Location }
|
||||
@@ -30,7 +30,7 @@ New-Item -ItemType Directory -Force -Path $artifactRoot | Out-Null
|
||||
$staging = Join-Path $artifactRoot ('moyi-test-' + $releaseId)
|
||||
New-Item -ItemType Directory -Path $staging | Out-Null
|
||||
# Copy tracked deployment files only, never .env, certificates or .git.
|
||||
$tracked = @(git ls-files infra/moyi docs/11-server-test-deployment.md docs/13-model-groups-registration-credit.md docs/14-lifecycle-usage-credit-adjustments.md docs/15-relay-onboarding.md docs/16-streaming-chat-billing.md)
|
||||
$tracked = @(git ls-files infra/moyi docs/11-server-test-deployment.md docs/13-model-groups-registration-credit.md docs/14-lifecycle-usage-credit-adjustments.md docs/15-relay-onboarding.md docs/16-streaming-chat-billing.md docs/17-catalog-and-key-selection.md)
|
||||
foreach ($relative in $tracked) {
|
||||
if ($relative -match '(^|/)(\.env\.cloud|\.deploy-mode|certs)(/|$)') { throw 'Sensitive path in release allowlist.' }
|
||||
$destination = Join-Path $staging $relative
|
||||
@@ -60,7 +60,7 @@ $manifest = [ordered]@{
|
||||
javaRelease = 21
|
||||
database = 'PostgreSQL 15'
|
||||
redis = 'Tair standard'
|
||||
checks = @('maven-clean-verify', 'vue-tsc', 'frontend-stream-tests', 'vite-build')
|
||||
checks = @('maven-clean-verify', 'vue-tsc', 'frontend-stream-tests', 'frontend-catalog-tests', 'vite-build')
|
||||
sha256 = $hashes
|
||||
}
|
||||
[IO.File]::WriteAllText((Join-Path $staging 'release-manifest.json'), ($manifest | ConvertTo-Json -Depth 5), [Text.UTF8Encoding]::new($false))
|
||||
|
||||
Reference in new issue
Block a user