// src/platform/ai-services/internal/health-checkers/messages.ts
var createHealthCheckMessage = (service, status, context) => {
  const binary = context?.binaryName ?? service;
  const pkg = context?.packageName ?? service;
  switch (status) {
    case "ready":
      return `[${service}] \uC11C\uBE44\uC2A4\uAC00 \uC815\uC0C1 \uC0C1\uD0DC\uC785\uB2C8\uB2E4.`;
    case "not-installed":
      return [
        `[${service}] CLI\uAC00 \uC124\uCE58\uB418\uC5B4 \uC788\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`,
        "\uC790\uB3D9 \uC124\uCE58\uB97C \uC2DC\uB3C4\uD569\uB2C8\uB2E4..."
      ].join("\n");
    case "install-failed":
      return [
        `[${service}] CLI \uC124\uCE58\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.`,
        "",
        "\uB2E4\uC74C \uBA85\uB839\uC5B4\uB85C \uC218\uB3D9 \uC124\uCE58\uD574 \uC8FC\uC138\uC694:",
        `  $ npm install -g ${pkg}`,
        "",
        "\uC124\uCE58 \uD6C4 \uB2E4\uC2DC \uC2E4\uD589\uD574 \uC8FC\uC138\uC694."
      ].join("\n");
    case "needs-setup":
      return [
        `[${service}] CLI \uC124\uCE58\uAC00 \uC644\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.`,
        "",
        `${binary} \uB97C \uC9C1\uC811 \uC2E4\uD589\uD558\uC5EC \uCD08\uAE30 \uC124\uC815(\uB85C\uADF8\uC778 \uB4F1)\uC744 \uC644\uB8CC\uD574 \uC8FC\uC138\uC694:`,
        `  $ ${binary}`,
        "",
        "\uCD08\uAE30 \uC124\uC815 \uC644\uB8CC \uD6C4 \uB2E4\uC2DC \uC2E4\uD589\uD574 \uC8FC\uC138\uC694."
      ].join("\n");
    case "unknown-error":
    default:
      return [
        `[${service}] \uC11C\uBE44\uC2A4 \uC0C1\uD0DC\uB97C \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.`,
        "",
        "\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC744 \uD655\uC778\uD558\uACE0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
        `\uBB38\uC81C\uAC00 \uC9C0\uC18D\uB418\uBA74 '${binary} --version' \uBA85\uB839\uC5B4\uB85C CLI \uC0C1\uD0DC\uB97C \uD655\uC778\uD574 \uC8FC\uC138\uC694.`
      ].join("\n");
  }
};
var createStepMessage = (step, service, detail) => {
  const suffix = detail ? ` (${detail})` : "";
  switch (step) {
    case "start":
      return `[${service}] \uC11C\uBE44\uC2A4 \uC0C1\uD0DC\uB97C \uC810\uAC80\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4...`;
    case "install-attempt":
      return `  ! ${service} CLI\uAC00 \uC124\uCE58\uB418\uC5B4 \uC788\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC790\uB3D9 \uC124\uCE58\uB97C \uC2DC\uB3C4\uD569\uB2C8\uB2E4...`;
    case "install-ok":
      return `  + CLI \uC124\uCE58 \uD655\uC778${suffix}`;
    case "version-current":
      return `  + \uD604\uC7AC \uBC84\uC804 \uD655\uC778${suffix}`;
    case "version-latest-unavailable":
      return `  ! \uCD5C\uC2E0 \uBC84\uC804 \uD655\uC778\uC5D0 \uC2E4\uD328\uD574 \uD604\uC7AC \uBC84\uC804\uC73C\uB85C \uC9C4\uD589\uD569\uB2C8\uB2E4.${suffix}`;
    case "version-ok":
      return `  + \uCD5C\uC2E0 \uBC84\uC804\uC785\uB2C8\uB2E4${suffix}`;
    case "version-updating":
      return `  ~ \uC5C5\uB370\uC774\uD2B8 \uC911...${suffix}`;
    case "version-update-ok":
      return `  + \uC5C5\uB370\uC774\uD2B8 \uC644\uB8CC${suffix}`;
    case "version-update-failed":
      return `  ! \uC5C5\uB370\uC774\uD2B8\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uD604\uC7AC \uBC84\uC804\uC73C\uB85C \uACC4\uC18D \uC9C4\uD589\uD569\uB2C8\uB2E4.${suffix}`;
    default:
      return "";
  }
};

export { createHealthCheckMessage, createStepMessage };
