@mks2508/coolify-mks-cli-mcp 0.3.1 → 0.3.2

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/index.js CHANGED
@@ -28068,7 +28068,12 @@ var CoolifyService = class {
28068
28068
  };
28069
28069
  }
28070
28070
  if (!response.ok) {
28071
- const errorMessage = data?.message || `HTTP ${response.status}`;
28071
+ const parsed = data;
28072
+ let errorMessage = parsed?.message || `HTTP ${response.status}`;
28073
+ if (parsed?.errors) {
28074
+ const details = Object.entries(parsed.errors).map(([field, reasons]) => `${field}: ${reasons.join(", ")}`).join("; ");
28075
+ errorMessage += ` — ${details}`;
28076
+ }
28072
28077
  return {
28073
28078
  error: errorMessage,
28074
28079
  status: response.status,
@@ -28175,6 +28180,8 @@ var CoolifyService = class {
28175
28180
  if (options.baseDirectory) body.base_directory = options.baseDirectory;
28176
28181
  } else if (appType === "docker-image" && options.dockerImage) body.docker_image = options.dockerImage;
28177
28182
  else if (appType === "docker-compose" && options.dockerCompose) body.docker_compose = options.dockerCompose;
28183
+ log.debug(`Create application body: ${JSON.stringify(body, null, 2)}`);
28184
+ log.debug(`Endpoint: POST ${endpoint}`);
28178
28185
  const result = await this.request(endpoint, {
28179
28186
  method: "POST",
28180
28187
  body: JSON.stringify(body)