@haakco/hostingctl 1.0.377 → 1.0.384

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/main.js CHANGED
@@ -27514,6 +27514,22 @@ var hostingToolDataSchema = object({
27514
27514
  url: string(),
27515
27515
  permitted: boolean()
27516
27516
  });
27517
+ var hostingServiceIncidentDataSchema = object({
27518
+ kind: _enum(["application_database_connection"]),
27519
+ reason: union([_enum([
27520
+ "credential_refused",
27521
+ "server_unreachable",
27522
+ "query_failed",
27523
+ "server_error",
27524
+ "probe_failed",
27525
+ "no_database_declared",
27526
+ "extension_missing",
27527
+ "unanswered"
27528
+ ]).describe("The closed set of safe reason codes an application observation can carry. These are the codes the application's own stats reading reports, and the only vocabulary an observer or a client message may name. They deliberately describe what was seen rather than why: `credential_refused` means a server evaluated the credential and refused it, while `server_unreachable` means no server answered — two different repairs, and only the first is about a password. A driver message, a host, a database name or a password never becomes one of these. {@see self::outcome()} owns the one decision each code makes, so the confirmation rule cannot drift between the observer that records a fact and the presentation that explains it.\n| |\n|---|\n| `credential_refused` <br/> MySQL error 1044/1045: a server answered and rejected the credential or the grant. |\n| `server_unreachable` <br/> A client-library code (2000+): the connection never reached a database server. |\n| `query_failed` <br/> The connection and the credential were accepted but the probe query did not answer. |\n| `server_error` <br/> A server answered and could not evaluate the question, for example at its connection ceiling. |\n| `probe_failed` <br/> The probe inside the application could not run at all, so acceptance is unknown. |\n| `no_database_declared` <br/> The application tree declares no database, so there is nothing for it to connect to. |\n| `extension_missing` <br/> The runtime has no MySQL client, so the probe could not be made. |\n| `unanswered` <br/> The application did not answer the reading at all. |"), _null()]),
27529
+ summary: string().describe("The impact in plain language, safe to show a client."),
27530
+ openedAt: string().describe("ISO-8601 UTC instant the outage was confirmed."),
27531
+ lastObservedAt: string().describe("ISO-8601 UTC instant the platform last looked at the resource.")
27532
+ });
27517
27533
  var hostingLastReconcileDataSchema = object({
27518
27534
  status: string(),
27519
27535
  generation: int(),
@@ -27578,6 +27594,7 @@ var hostingEnvironmentDataSchema = object({
27578
27594
  databases: array(hostingDatabaseDataSchema),
27579
27595
  tools: array(hostingToolDataSchema),
27580
27596
  status: hostingEnvironmentStatusDataSchema,
27597
+ serviceIncidents: array(hostingServiceIncidentDataSchema),
27581
27598
  lastReconcile: union([hostingLastReconcileDataSchema, _null()]),
27582
27599
  allocation: hostingAllocationDataSchema,
27583
27600
  namespaceAllocation: hostingAllocationDataSchema,
@@ -36939,7 +36956,7 @@ function writeUpdateState(state, env = process.env) {
36939
36956
  }
36940
36957
  //#endregion
36941
36958
  //#region src/version.ts
36942
- var VERSION = "1.0.377";
36959
+ var VERSION = "1.0.384";
36943
36960
  //#endregion
36944
36961
  //#region src/commands/update.ts
36945
36962
  /**
@@ -37014,7 +37031,7 @@ var update = {
37014
37031
  }, process.env);
37015
37032
  return {
37016
37033
  ...known,
37017
- current: after ?? "1.0.377",
37034
+ current: after ?? "1.0.384",
37018
37035
  latest: after ?? latest,
37019
37036
  upToDate: after !== null && (latest === null || !isNewerVersion(latest, after)),
37020
37037
  action: "run",
@@ -37289,7 +37306,7 @@ async function printUpdateNotice(options) {
37289
37306
  }, env, { waitMs: NOTICE_LOCK_WAIT_MS });
37290
37307
  } catch {}
37291
37308
  if (latest === null) return;
37292
- if (!isNewerVersion(latest, "1.0.377")) return;
37309
+ if (!isNewerVersion(latest, "1.0.384")) return;
37293
37310
  process.stderr.write(`A newer hostingctl is published: ${latest} (this copy is ${VERSION}). Run \`hostingctl update\` to update.\n`);
37294
37311
  }
37295
37312
  /** Whether an environment variable is set to something, which is how CI and the opt-out are read. */