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
@@ -0,0 +1,27 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://browser.local/schemas/lifecycle-action.schema.json",
"title": "PluginLifecycleActionDeclaration",
"type": "object",
"required": ["version", "action", "mode"],
"additionalProperties": false,
"properties": {
"version": { "const": 1 },
"action": { "enum": ["install", "start", "stop", "restart", "status"] },
"mode": { "enum": ["oneshot", "supervised", "control"] },
"executableKey": { "$ref": "game-plugin.manifest.schema.json#/$defs/relativePathRef" },
"arguments": {
"type": "array",
"items": { "type": "string", "minLength": 1, "maxLength": 240 },
"maxItems": 64
},
"environment": {
"type": "object",
"propertyNames": { "pattern": "^(GAME|SERVER|RUN)_[A-Z0-9_]{1,59}$" },
"additionalProperties": { "type": "string", "maxLength": 512 },
"maxProperties": 32
},
"timeoutMs": { "type": "integer", "minimum": 1, "maximum": 300000 },
"stopTimeoutMs": { "type": "integer", "minimum": 1, "maximum": 60000 }
}
}