refactor(cli): separate json payload output from logging

This commit is contained in:
Peter Steinberger
2026-03-22 23:19:14 +00:00
parent 274af0486a
commit 4ee41cc6f3
89 changed files with 710 additions and 693 deletions

View File

@@ -21,7 +21,7 @@ export type DaemonActionResponse = {
};
export function emitDaemonActionJson(payload: DaemonActionResponse) {
defaultRuntime.log(JSON.stringify(payload, null, 2));
defaultRuntime.writeJson(payload);
}
export function buildDaemonServiceSnapshot(service: GatewayService, loaded: boolean) {