fix: isolate minimax m3 backend migration

This commit is contained in:
Codex
2026-06-02 08:11:15 +08:00
parent ab40d86dde
commit 4b9dc79b67
4 changed files with 28 additions and 5 deletions
+9 -2
View File
@@ -102,8 +102,15 @@ export function backendCapabilities(): JsonRecord[] {
return backendProfileSpecs.map(backendCapability);
}
export function backendCapabilitiesSqlValues(): string {
return backendProfileSpecs.map((spec) => {
export function backendCapabilitiesSqlValues(profiles?: readonly BackendProfile[]): string {
const specs = profiles
? profiles.map((profile) => {
const spec = backendProfileSpec(profile);
if (!spec) throw new Error(`unknown backend profile for SQL seed: ${profile}`);
return spec;
})
: backendProfileSpecs;
return specs.map((spec) => {
const capabilities = JSON.stringify({
backendKind: spec.backendKind,
protocol: spec.protocol,