feat: 拆分 HWPOD Temporal 服务与独立 Web

This commit is contained in:
root
2026-07-20 19:58:02 +02:00
parent d2e9e3593d
commit d7709f0a27
18 changed files with 520 additions and 1 deletions
+10
View File
@@ -26,6 +26,16 @@ if (argv[0] === "tasktree") {
console.log(JSON.stringify({ ok: false, operation: "caserun", error: { code: error?.code ?? "caserun_cli_error", message: error?.message ?? String(error) } }, null, 2));
process.exitCode = 1;
}
} else if (argv[0] === "hwpod" && argv[1] === "service") {
const { hwpodNativeServiceCommand } = await import("../../src/hwpod-native-service.ts");
try {
const result = await hwpodNativeServiceCommand({ service: argv[2], action: argv[3] ?? "status", cwd: process.cwd(), env: process.env });
console.log(JSON.stringify(result, null, 2));
process.exitCode = result?.ok === false ? 1 : 0;
} catch (error: any) {
console.log(JSON.stringify({ ok: false, operation: "hwpod", error: { code: error?.code ?? "hwpod_cli_error", message: error?.message ?? String(error) } }, null, 2));
process.exitCode = 1;
}
} else if (argv[0] === "workbench") {
const { runWorkbenchCli } = await import("../../src/workbench-cli.ts");
try {