fix: 降级 D601 host compose status 入口

This commit is contained in:
AgentRun Artificer
2026-06-10 19:42:49 +00:00
parent 9e2dd375d7
commit 4fe6008ff0
4 changed files with 237 additions and 24 deletions
+8 -2
View File
@@ -374,7 +374,10 @@ async function main(): Promise<void> {
return;
}
if (sub === "start") {
emitJson(commandName, startStack(config));
const result = startStack(config);
const ok = (result as { ok?: unknown }).ok !== false;
emitJson(commandName, result, ok);
if (!ok) process.exitCode = 1;
return;
}
if (sub === "stop") {
@@ -382,7 +385,10 @@ async function main(): Promise<void> {
return;
}
if (sub === "status") {
emitJson(commandName, await stackStatus(config));
const result = await stackStatus(config);
const ok = (result as { ok?: unknown }).ok !== false;
emitJson(commandName, result, ok);
if (!ok) process.exitCode = 1;
return;
}
if (sub === "swap") {