witnora 0.13.4 → 0.13.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -39,7 +39,7 @@ import { runOnboard } from "./onboard.js";
39
39
  import { inspectRepository } from "./onboard.js";
40
40
  import { renderReleaseEvaluation, runReleaseEvaluation } from "./release-evaluation.js";
41
41
  import { runPrivateCapabilityDiscovery } from "./private-discovery.js";
42
- import { doctorCustomerGateway, initializeCustomerGateway, readManagedCustomerGatewayLogs, renderGatewayDoctor, renderManagedGatewayStatus, restartManagedCustomerGateway, runCustomerGateway, startManagedCustomerGateway, statusManagedCustomerGateway, stopManagedCustomerGateway, } from "./gateway.js";
42
+ import { doctorCustomerGateway, initializeCustomerGateway, isGatewayDoctorReady, readManagedCustomerGatewayLogs, renderGatewayDoctor, renderManagedGatewayStatus, restartManagedCustomerGateway, runCustomerGateway, startManagedCustomerGateway, statusManagedCustomerGateway, stopManagedCustomerGateway, } from "./gateway.js";
43
43
  import { verifyEvidencePacketV02 } from "./evidence-v02.js";
44
44
  process.on("uncaughtException", reportFatalError);
45
45
  process.on("unhandledRejection", reportFatalError);
@@ -201,7 +201,7 @@ else if (command === "gateway") {
201
201
  else if (action === "doctor") {
202
202
  const result = await doctorCustomerGateway({ repository: readFlag("--repo") ?? process.cwd(), dir: readFlag("--dir") });
203
203
  process.stdout.write(readBoolFlag("--json") ? `${JSON.stringify(result, null, 2)}\n` : renderGatewayDoctor(result));
204
- if (result.overall !== "READY_TO_RECORD")
204
+ if (!isGatewayDoctorReady(result))
205
205
  process.exitCode = 1;
206
206
  }
207
207
  else if (action === "start") {