first commit

This commit is contained in:
npc0-hue
2026-07-11 14:56:10 +08:00
commit 7e05d0a4e7
660 changed files with 78119 additions and 0 deletions
@@ -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
}
]
}
@@ -0,0 +1,8 @@
{
"command": ["true"],
"env": {
"GAME_ID": "scum",
"SERVER_TEMPLATE": "scum-local-proof"
},
"timeoutMs": 30000
}
@@ -0,0 +1,8 @@
{
"command": ["true"],
"env": {
"GAME_ID": "scum",
"SERVER_ACTION": "restart"
},
"timeoutMs": 30000
}
@@ -0,0 +1,8 @@
{
"command": ["true"],
"env": {
"GAME_ID": "scum",
"SERVER_ACTION": "start"
},
"timeoutMs": 30000
}
@@ -0,0 +1,8 @@
{
"command": ["true"],
"env": {
"GAME_ID": "scum",
"SERVER_ACTION": "status"
},
"timeoutMs": 30000
}
@@ -0,0 +1,8 @@
{
"command": ["true"],
"env": {
"GAME_ID": "scum",
"SERVER_ACTION": "stop"
},
"timeoutMs": 30000
}
@@ -0,0 +1,83 @@
{
"$schema": "../../manifests/game-plugin.manifest.schema.json",
"id": "game.scum",
"name": "SCUM Server",
"description": "First-party local SCUM game server management plugin for platform-mediated lifecycle proof.",
"version": "0.1.0",
"kind": "game-plugin",
"tags": ["scum", "survival", "dedicated-server", "local-proof"],
"server": {
"type": "scum",
"displayName": "SCUM Dedicated Server",
"supportedOS": ["windows", "linux"],
"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": "SCUM 概览",
"path": "/overview",
"permissions": ["server.read", "server.lifecycle"],
"bridgeActions": ["server.instances.read", "jobs.dispatch"]
},
{
"key": "config",
"title": "SCUM 配置",
"path": "/config",
"permissions": ["server.files.read", "server.files.write", "ai.invoke"],
"bridgeActions": ["files.request", "ai.invoke"]
},
{
"key": "logs",
"title": "SCUM 日志",
"path": "/logs",
"permissions": ["server.logs.read", "server.artifacts.read", "ai.invoke"],
"bridgeActions": ["logs.query", "artifacts.open", "ai.invoke"]
}
],
"ai": {
"purposes": ["config.suggest", "logs.diagnose"]
}
}
@@ -0,0 +1,31 @@
{
"fields": [
{
"key": "serverName",
"label": "SCUM 服务器名称",
"type": "text",
"required": true
},
{
"key": "gamePort",
"label": "游戏端口",
"type": "port",
"required": true,
"default": 7777
},
{
"key": "queryPort",
"label": "查询端口",
"type": "port",
"required": true,
"default": 27015
},
{
"key": "maxPlayers",
"label": "最大玩家数",
"type": "number",
"required": true,
"default": 64
}
]
}