feat: 完整游戏运维功能

This commit is contained in:
npc0-hue
2026-07-18 09:04:01 +08:00
parent f3b14b7945
commit 48b8ad8d6c
187 changed files with 16607 additions and 1140 deletions
+12
View File
@@ -32,4 +32,16 @@ describe("ai provider form schemas", () => {
});
expect(request.models).toEqual(["gpt-oss:20b"]);
});
it("keeps an existing configured secret opaque during edits", () => {
const request = aiProviderUpdateRequestFromForm({
...emptyAiProviderForm(),
id: "ai.openai",
apiKeyRef: "",
apiKeyConfigured: true
});
expect(request.apiKeyRef).toBe("");
expect(JSON.stringify(request)).not.toContain("secret://providers/openai");
});
});