feat: support custom server deployment drafts

This commit is contained in:
npc0-hue
2026-07-24 16:56:28 +08:00
parent 292b380f3c
commit 220ef91a8e
36 changed files with 1520 additions and 85 deletions
@@ -26,7 +26,12 @@
"type": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]*$", "maxLength": 80 },
"displayName": { "type": "string", "minLength": 1, "maxLength": 80 },
"supportedOS": { "type": "array", "items": { "enum": ["windows", "linux", "darwin"] } },
"createFormSchema": { "$ref": "#/$defs/relativeJsonRef" }
"createFormSchema": { "$ref": "#/$defs/relativeJsonRef" },
"createFields": {
"type": "array",
"maxItems": 32,
"items": { "$ref": "#/$defs/pluginCreateField" }
}
}
},
"bridge": {
@@ -191,6 +196,20 @@
}
},
"$defs": {
"pluginCreateField": {
"type": "object",
"required": ["key", "label", "type"],
"additionalProperties": false,
"properties": {
"key": { "type": "string", "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$", "maxLength": 80 },
"label": { "type": "string", "minLength": 1, "maxLength": 60 },
"type": { "enum": ["text", "number", "boolean", "select", "port"] },
"required": { "type": "boolean" },
"defaultValue": { "type": "string", "maxLength": 256 },
"options": { "type": "array", "maxItems": 32, "uniqueItems": true, "items": { "type": "string", "minLength": 1, "maxLength": 120 } },
"configKey": { "type": "string", "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$", "maxLength": 80 }
}
},
"gameClientBridgeManifest": {
"type": "object",
"required": ["commands", "snapshots", "commandRetentionSeconds", "maxCommands"],