chore: prepare GoodBuddy 0.8.5

This commit is contained in:
lofyer
2026-08-07 10:45:01 +08:00
parent e20cb447af
commit 17e66a3369
54 changed files with 1306 additions and 1640 deletions
+2 -8
View File
@@ -217,16 +217,10 @@ const mcpRemoteUrlSchema = z
.url()
.max(2_048)
.superRefine((value, context) => {
const url = new URL(value)
if (
!['http:', 'https:'].includes(url.protocol) ||
url.username ||
url.password ||
url.hash
) {
if (!['http:', 'https:'].includes(new URL(value).protocol)) {
context.addIssue({
code: 'custom',
message: 'MCP URL 必须是无凭据和片段的 HTTP(S) 地址'
message: 'MCP URL 必须使用 HTTP 或 HTTPS'
})
}
})