@haakco/hostingctl 1.0.403 → 1.0.407
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 +25 -5
- package/dist/main.js.map +1 -1
- package/package.json +6 -6
package/dist/main.js
CHANGED
|
@@ -25020,7 +25020,18 @@ var confirmHostingApplicationRecoveryRequestSchema = object({
|
|
|
25020
25020
|
archiveSha256: string().min(64).max(64).nullish(),
|
|
25021
25021
|
recordedSha256: string().min(64).max(64).nullish(),
|
|
25022
25022
|
inputTreeSha256: string().min(64).max(64).nullish(),
|
|
25023
|
-
importUuid: uuid().nullish().describe("The staged client import the review was made against. Only its reference travels: every\ninput fact — object key, hashes, prefix, version — is resolved from the platform's own\nrecord of the upload, so the field is a reference rather than an input.")
|
|
25023
|
+
importUuid: uuid().nullish().describe("The staged client import the review was made against. Only its reference travels: every\ninput fact — object key, hashes, prefix, version — is resolved from the platform's own\nrecord of the upload, so the field is a reference rather than an input."),
|
|
25024
|
+
currentDataInnoDb: object({
|
|
25025
|
+
removePlugins: array(string().max(255).regex(/~^[A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.-]+)*$~D/)).max(16).optional(),
|
|
25026
|
+
preserveFiles: array(_enum([
|
|
25027
|
+
".hosting-admin-password-version",
|
|
25028
|
+
".hosting-db-password-version",
|
|
25029
|
+
"hosting-stats.php",
|
|
25030
|
+
".well-known"
|
|
25031
|
+
])).max(32).optional(),
|
|
25032
|
+
excludedUploads: array(string().max(255).regex(/~^[A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.-]+)*$~D/)).max(32).optional(),
|
|
25033
|
+
replacedUploads: array(string().max(255).regex(/~^[A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.-]+)*$~D/)).max(32).optional()
|
|
25034
|
+
}).optional()
|
|
25024
25035
|
})
|
|
25025
25036
|
}).describe("Confirming one application's reset or restore against the inventory that was reviewed.\n\n`confirmation` is the digest the review returned, and it is required rather than optional: it is\nwhat makes the confirmation an approval of an exact inventory instead of an approval of a label.\n`desiredGeneration` is the same idea at the environment level, so a request composed before\nanother change is a conflict rather than a reset of something else.\n\nThe reviewed figures travel as one typed `intake` object rather than flat fields, so the HTTP\nboundary and the domain contract cannot drift into two shapes with the same names. The intake\nitself is validated by the DTO's own types when it is hydrated.");
|
|
25026
25037
|
object({
|
|
@@ -26612,6 +26623,12 @@ var hostingApplicationRecoveryDataSchema = object({
|
|
|
26612
26623
|
completedAt: string().nullable(),
|
|
26613
26624
|
urlRepair: union([hostingWordpressUrlRepairDataSchema, _null()])
|
|
26614
26625
|
});
|
|
26626
|
+
var hostingRecoveryCurrentDataDataSchema = object({
|
|
26627
|
+
removePlugins: array(string()),
|
|
26628
|
+
preserveFiles: array(string()),
|
|
26629
|
+
excludedUploads: array(string()),
|
|
26630
|
+
replacedUploads: array(string())
|
|
26631
|
+
});
|
|
26615
26632
|
var hostingRestoreIntakeRequestDataSchema = object({
|
|
26616
26633
|
companyName: string(),
|
|
26617
26634
|
environmentUuid: string(),
|
|
@@ -26657,7 +26674,8 @@ var hostingRestoreIntakeRequestDataSchema = object({
|
|
|
26657
26674
|
toolsPeakMib: int().nullable(),
|
|
26658
26675
|
toolsLimitMib: int(),
|
|
26659
26676
|
activeRestores: int(),
|
|
26660
|
-
importUuid: string().nullable()
|
|
26677
|
+
importUuid: string().nullable(),
|
|
26678
|
+
currentDataInnoDb: union([hostingRecoveryCurrentDataDataSchema, _null()])
|
|
26661
26679
|
});
|
|
26662
26680
|
var hostingRestoreCheckOutcomeEnumSchema = _enum([
|
|
26663
26681
|
"ok",
|
|
@@ -30362,6 +30380,8 @@ string().optional().describe("When the retained data stops being recoverable.");
|
|
|
30362
30380
|
string().optional().describe("The private object key of the reviewed bundle on the platform backup storage.");
|
|
30363
30381
|
string().optional().describe("The hash the reviewed archive must match before extraction.");
|
|
30364
30382
|
string().optional().describe("The hash the expanded tree must match after extraction.");
|
|
30383
|
+
int().optional().describe("Maximum bytes for each held-current SQL export; required for currentDataInnoDb.");
|
|
30384
|
+
string().optional().describe("JSON policy for held-current WordPress data and private InnoDB conversion.");
|
|
30365
30385
|
string().optional().describe("The staged client import this review is about, when the input was uploaded rather than staged by staff.");
|
|
30366
30386
|
union([
|
|
30367
30387
|
object({ message: string().describe("Error overview.") }),
|
|
@@ -37021,7 +37041,7 @@ function writeUpdateState(state, env = process.env) {
|
|
|
37021
37041
|
}
|
|
37022
37042
|
//#endregion
|
|
37023
37043
|
//#region src/version.ts
|
|
37024
|
-
var VERSION = "1.0.
|
|
37044
|
+
var VERSION = "1.0.407";
|
|
37025
37045
|
//#endregion
|
|
37026
37046
|
//#region src/commands/update.ts
|
|
37027
37047
|
/**
|
|
@@ -37096,7 +37116,7 @@ var update = {
|
|
|
37096
37116
|
}, process.env);
|
|
37097
37117
|
return {
|
|
37098
37118
|
...known,
|
|
37099
|
-
current: after ?? "1.0.
|
|
37119
|
+
current: after ?? "1.0.407",
|
|
37100
37120
|
latest: after ?? latest,
|
|
37101
37121
|
upToDate: after !== null && (latest === null || !isNewerVersion(latest, after)),
|
|
37102
37122
|
action: "run",
|
|
@@ -37371,7 +37391,7 @@ async function printUpdateNotice(options) {
|
|
|
37371
37391
|
}, env, { waitMs: NOTICE_LOCK_WAIT_MS });
|
|
37372
37392
|
} catch {}
|
|
37373
37393
|
if (latest === null) return;
|
|
37374
|
-
if (!isNewerVersion(latest, "1.0.
|
|
37394
|
+
if (!isNewerVersion(latest, "1.0.407")) return;
|
|
37375
37395
|
process.stderr.write(`A newer hostingctl is published: ${latest} (this copy is ${VERSION}). Run \`hostingctl update\` to update.\n`);
|
|
37376
37396
|
}
|
|
37377
37397
|
/** Whether an environment variable is set to something, which is how CI and the opt-out are read. */
|