84 lines
2.0 KiB
JSON
84 lines
2.0 KiB
JSON
{
|
|
"$schema": "../../manifests/game-plugin.manifest.schema.json",
|
|
"id": "game.example",
|
|
"name": "Example Server",
|
|
"description": "Development game management plugin for local registry and lifecycle testing.",
|
|
"version": "0.1.0",
|
|
"kind": "game-plugin",
|
|
"tags": ["example", "development"],
|
|
"server": {
|
|
"type": "example",
|
|
"displayName": "Example Server",
|
|
"supportedOS": ["windows", "linux", "darwin"],
|
|
"createFormSchema": "schemas/create-form.schema.json"
|
|
},
|
|
"capabilities": [
|
|
"process.install",
|
|
"process.start",
|
|
"process.stop",
|
|
"process.restart",
|
|
"process.status",
|
|
"files.list",
|
|
"files.read",
|
|
"files.patch",
|
|
"logs.read",
|
|
"artifacts.read",
|
|
"artifacts.write",
|
|
"ai.invoke"
|
|
],
|
|
"bridge": {
|
|
"actions": [
|
|
"server.instances.read",
|
|
"jobs.dispatch",
|
|
"logs.query",
|
|
"artifacts.open",
|
|
"files.request",
|
|
"ai.invoke"
|
|
]
|
|
},
|
|
"permissions": [
|
|
"server.create",
|
|
"server.read",
|
|
"server.lifecycle",
|
|
"server.files.read",
|
|
"server.files.write",
|
|
"server.logs.read",
|
|
"server.artifacts.read",
|
|
"server.artifacts.write",
|
|
"ai.invoke"
|
|
],
|
|
"actions": {
|
|
"install": "actions/install.json",
|
|
"start": "actions/start.json",
|
|
"stop": "actions/stop.json",
|
|
"restart": "actions/restart.json",
|
|
"status": "actions/status.json"
|
|
},
|
|
"pages": [
|
|
{
|
|
"key": "overview",
|
|
"title": "概览",
|
|
"path": "/overview",
|
|
"permissions": ["server.read"],
|
|
"bridgeActions": ["server.instances.read"]
|
|
},
|
|
{
|
|
"key": "config",
|
|
"title": "配置",
|
|
"path": "/config",
|
|
"permissions": ["server.files.read", "server.files.write", "ai.invoke"],
|
|
"bridgeActions": ["files.request", "ai.invoke"]
|
|
},
|
|
{
|
|
"key": "logs",
|
|
"title": "日志",
|
|
"path": "/logs",
|
|
"permissions": ["server.logs.read", "ai.invoke"],
|
|
"bridgeActions": ["logs.query", "ai.invoke"]
|
|
}
|
|
],
|
|
"ai": {
|
|
"purposes": ["config.suggest", "logs.diagnose"]
|
|
}
|
|
}
|