first commit
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"$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"]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"key": "serverName",
|
||||
"label": "服务器名称",
|
||||
"type": "text",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"key": "gamePort",
|
||||
"label": "游戏端口",
|
||||
"type": "port",
|
||||
"required": true,
|
||||
"default": 27015
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user