@haakco/hostingctl 1.0.669 → 1.0.677

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
@@ -44002,7 +44002,7 @@ async function scheduleAction(context, action, path, extra) {
44002
44002
  function imageScanText(image) {
44003
44003
  const counts = `${String(image.scan.critical)} critical, ${String(image.scan.high)} high`;
44004
44004
  if (image.scan.status === "pending") return "pending — deployment unaffected";
44005
- if (image.scan.status === "clean") return `completed — ${counts}`;
44005
+ if (image.scan.status === "clean" || image.scan.status === "findings") return `completed — ${counts}`;
44006
44006
  return "unavailable — deployment unaffected";
44007
44007
  }
44008
44008
  /** The provenance lines for one imported image release, or none for a release built from source. */
@@ -61454,7 +61454,7 @@ var createHostingAccessUserRequestSchema = object({
61454
61454
  key: object({
61455
61455
  name: string().max(100).optional(),
61456
61456
  publicKey: string().max(4096).optional()
61457
- }).optional(),
61457
+ }).nullish(),
61458
61458
  password_confirmation: string().max(1024).nullish()
61459
61459
  }).describe("Creating one environment access user.\n\nThe submitted generation must match the stored one, which the service checks\nagain under its row lock. At least one way to authenticate is required for an\nenabled user, and the service enforces that too: it is the rule that stops a\nrow existing that nobody can log in with.\n\n`username` is validated against the same grammar the database CHECK enforces,\nso a malformed name is a field error rather than a constraint violation.\n\n`readOnly` is optional here and required on update, deliberately: creating a\nlogin without mentioning it produces the read-write credential that existed\nbefore the flag, while changing one must state which access is wanted rather\nthan resetting a read-only login by omission.");
61460
61460
  var createHostingApplicationRequestSchema = object({
@@ -61601,7 +61601,7 @@ var createHostingEnvironmentRequestSchema = object({
61601
61601
  application: string().max(100),
61602
61602
  server: string().max(100)
61603
61603
  })).optional(),
61604
- postgresRestoreSource: object({ sourceEnvironmentUuid: uuid().optional() }).optional(),
61604
+ postgresRestoreSource: object({ sourceEnvironmentUuid: uuid().optional() }).nullish(),
61605
61605
  configuration: string().max(65536).optional()
61606
61606
  }).describe("The submitted desired state of a new environment.\n\nField-level rules live here: shape, type, range, catalog membership and the\nname uniqueness within the company that the database also enforces through a\npartial unique index on active rows. Everything that needs to compare one\nsubmitted value with another, or with stored rows, belongs to\n`HostingResourceService`.\n\nA submitted `budget` is an echo of the chosen package for every company but one holding an agreed pool, where it\nis that environment's slice (plan 181). Which of the two it is belongs to creation, so this request only makes\nsure the package fills what the caller left unsaid instead of overwriting what they said.");
61607
61607
  var createHostingExternalSecretConnectionRequestSchema = object({
@@ -61648,13 +61648,13 @@ var createHostingServiceRequestSchema = object({
61648
61648
  persistence: hostingValkeyPersistenceEnumSchema.optional().describe("Whether the store keeps its own copy of the data on disk. `none` is a cache: losing the process loses the contents, which is what a cache promises. `aof` appends every write, which is what a client chooses when the store holds sessions or queues rather than only rendered pages.\n"),
61649
61649
  auth: hostingValkeyAuthEnumSchema.optional().describe("Whether the store requires a credential. `required` is the client's choice and never the platform's: a store reachable only inside the environment's own network can reasonably run without one, and a store whose address leaves that network cannot. Which is why the transport choice and this one are recorded separately rather than as a single \"secure\" switch.\n"),
61650
61650
  tls: hostingValkeyTransportEnumSchema.optional().describe("Whether the store speaks TLS, and whether it also speaks plaintext. `required` means the plaintext port is not composed at all, so no client can fall back to it by accident. `optional` keeps both listeners and is the only choice a client can make while the TLS listener is not yet composed — which the settings owner refuses rather than accepting a choice it cannot deliver.\n")
61651
- }).optional().describe("A Valkey service's choices. Optional: omitted means the type's preset, which is what a client who\ndid not choose gets, and what every service created before these settings existed holds."),
61651
+ }).nullish().describe("A Valkey service's choices. Optional: omitted means the type's preset, which is what a client who\ndid not choose gets, and what every service created before these settings existed holds."),
61652
61652
  resources: object({
61653
61653
  cpuRequestMillicores: int().min(1).optional(),
61654
61654
  cpuLimitMillicores: int().min(1).optional(),
61655
61655
  memoryRequestMib: int().min(1).optional(),
61656
61656
  memoryLimitMib: int().min(1).optional()
61657
- }).optional().describe("Optional on purpose: a browser holds no resource constants, so an omitted size means\nthe platform's own default envelope for this type, which the resource editor changes\nafterwards. A size that IS submitted must be complete, because a half-specified one\nwould be silently completed with platform numbers the customer never reviewed."),
61657
+ }).nullish().describe("Optional on purpose: a browser holds no resource constants, so an omitted size means\nthe platform's own default envelope for this type, which the resource editor changes\nafterwards. A size that IS submitted must be complete, because a half-specified one\nwould be silently completed with platform numbers the customer never reviewed."),
61658
61658
  desiredGeneration: int().min(0)
61659
61659
  }).describe("Adding one shared service to an environment that already exists.\n\n`type` is checked against the same list the cardinality owner decides, so a request cannot name a\ntype this product would never admit as a service, and the application types are refused here\nrather than travelling to a service that would have to explain why an application is not one.\nEverything that compares the new row with the environment's purchase, its existing rows or its\nvolume set belongs to the admission owners, because a static rule cannot see the environment.\n\n`desiredGeneration` is required: adding a service changes the environment, so the customer states\nwhich version of it they reviewed, and a stale one is a conflict rather than a second server.");
61660
61660
  var creditBillingInvoiceRequestSchema = object({ reason: string().min(3).max(255) }).describe("A full credit note for one issued invoice.\n\nThe reason is required because s21 makes it part of the document: a credit note must say why it\ncorrects the invoice it names, and a later reader has no other way to know. It is bounded to the\ncolumn's own width rather than truncated silently after the number has been spent.");
@@ -63649,7 +63649,8 @@ var hostingConfigurationEnvironmentDataSchema = object({
63649
63649
  field: string().nullable(),
63650
63650
  redis: string().nullable(),
63651
63651
  service: string().nullable(),
63652
- storage: string().nullable()
63652
+ storage: string().nullable(),
63653
+ application: string().optional()
63653
63654
  });
63654
63655
  var hostingConfigurationBuildDataSchema = object({
63655
63656
  install: array(string()),
@@ -63660,7 +63661,8 @@ var hostingConfigurationBuildDataSchema = object({
63660
63661
  var hostingConfigurationRunDataSchema = object({
63661
63662
  command: array(string()),
63662
63663
  port: int(),
63663
- healthPath: string()
63664
+ healthPath: string(),
63665
+ httpProbeContractRecorded: boolean()
63664
63666
  });
63665
63667
  var hostingConfigurationMountDataSchema = object({
63666
63668
  volume: string(),
@@ -64127,6 +64129,18 @@ var hostingReleaseImageScanDataSchema = object({
64127
64129
  scanner: string().nullable(),
64128
64130
  scannerVersion: string().nullable()
64129
64131
  });
64132
+ var hostingReleaseHttpProbeDataSchema = object({
64133
+ port: int(),
64134
+ path: string(),
64135
+ startupInitialDelaySeconds: int(),
64136
+ startupPeriodSeconds: int(),
64137
+ startupTimeoutSeconds: int(),
64138
+ startupFailureThreshold: int(),
64139
+ readinessInitialDelaySeconds: int(),
64140
+ readinessPeriodSeconds: int(),
64141
+ readinessTimeoutSeconds: int(),
64142
+ readinessFailureThreshold: int()
64143
+ });
64130
64144
  var hostingReleaseImageDataSchema = object({
64131
64145
  connectionUuid: string(),
64132
64146
  connectionVersion: int(),
@@ -64142,7 +64156,8 @@ var hostingReleaseImageDataSchema = object({
64142
64156
  workingDirectory: string().nullable(),
64143
64157
  importedAt: datetime().nullable(),
64144
64158
  sourceReference: string(),
64145
- preparedByUserId: int().nullable()
64159
+ preparedByUserId: int().nullable(),
64160
+ httpProbe: union([hostingReleaseHttpProbeDataSchema, _null()])
64146
64161
  });
64147
64162
  var hostingReleaseDataSchema = object({
64148
64163
  uuid: string(),
@@ -66921,7 +66936,7 @@ var storePlatformHostingEnvironmentRequestSchema = object({
66921
66936
  application: string().max(100),
66922
66937
  server: string().max(100)
66923
66938
  })).optional(),
66924
- postgresRestoreSource: object({ sourceEnvironmentUuid: uuid().optional() }).optional(),
66939
+ postgresRestoreSource: object({ sourceEnvironmentUuid: uuid().optional() }).nullish(),
66925
66940
  configuration: string().max(65536).optional()
66926
66941
  }).describe("One client's environment, submitted by a staff operator who holds no membership in that client.\n\nEvery field rule is the customer's own, including the preset merge and the package allowlist: only the source of the\ncompany differs, because this request has no company middleware and names the client in the URL. A rule restated\nhere would be a second definition of what an environment may be.");
66927
66942
  var systemOrphansHolderDataSchema = object({
@@ -79314,7 +79329,7 @@ function writeUpdateState(state, env = process.env) {
79314
79329
  }
79315
79330
  //#endregion
79316
79331
  //#region src/version.ts
79317
- var VERSION = "1.0.669";
79332
+ var VERSION = "1.0.677";
79318
79333
  //#endregion
79319
79334
  //#region src/commands/update.ts
79320
79335
  /**
@@ -79389,7 +79404,7 @@ var update = {
79389
79404
  }, process.env);
79390
79405
  return {
79391
79406
  ...known,
79392
- current: after ?? "1.0.669",
79407
+ current: after ?? "1.0.677",
79393
79408
  latest: after ?? latest,
79394
79409
  upToDate: after !== null && (latest === null || !isNewerVersion(latest, after)),
79395
79410
  action: "run",
@@ -79671,7 +79686,7 @@ async function printUpdateNotice(options) {
79671
79686
  }, env, { waitMs: NOTICE_LOCK_WAIT_MS });
79672
79687
  } catch {}
79673
79688
  if (latest === null) return;
79674
- if (!isNewerVersion(latest, "1.0.669")) return;
79689
+ if (!isNewerVersion(latest, "1.0.677")) return;
79675
79690
  process.stderr.write(`A newer hostingctl is published: ${latest} (this copy is ${VERSION}). Run \`hostingctl update\` to update.\n`);
79676
79691
  }
79677
79692
  /** Whether an environment variable is set to something, which is how CI and the opt-out are read. */