feat: declare and execute SCUM guided installs

This commit is contained in:
npc0-hue
2026-07-27 20:09:14 +08:00
parent 08fa5488f2
commit 2ae27bb746
21 changed files with 185 additions and 9 deletions
@@ -0,0 +1,10 @@
import { describe, expect, it } from "vitest";
import { jobCapabilityLabel } from "./jobPresentation";
describe("jobCapabilityLabel", () => {
it("keeps Run routing identifiers out of operator task titles", () => {
expect(jobCapabilityLabel("process.install")).toBe("安装服务端");
expect(jobCapabilityLabel("dependencies.install")).toBe("安装运行依赖");
});
});
+11
View File
@@ -0,0 +1,11 @@
export function jobCapabilityLabel(capability: string): string {
switch (capability) {
case "process.install": return "安装服务端";
case "process.start": return "启动服务器";
case "process.stop": return "停止服务器";
case "process.status": return "检查服务器状态";
case "dependencies.check": return "检查运行依赖";
case "dependencies.install": return "安装运行依赖";
default: return capability;
}
}