@rakay-technology/kraft 0.7.6 → 0.7.7
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/{chunk-CO6FAYLO.js → chunk-HLF5PMKE.js} +1 -1
- package/dist/{chunk-4UITBYUK.js → chunk-IGTODKUA.js} +2 -2
- package/dist/{chunk-TVURAFJ5.js → chunk-MOSINQAM.js} +15 -1
- package/dist/{chunk-OZUFHE2T.js → chunk-OQ5TBV4T.js} +3 -3
- package/dist/{chunk-GABTH5TU.js → chunk-RU2BVUEV.js} +2 -2
- package/dist/{edge-import-YDPEIQDU.js → edge-import-RZD7MMOE.js} +2 -2
- package/dist/{edge-preflight-TT2777R5.js → edge-preflight-6YO27PPQ.js} +2 -2
- package/dist/{ensure-container-edge-T5WRCJSE.js → ensure-container-edge-ZKEKC47H.js} +1 -1
- package/dist/{host-channel-preflight-Z4QG7Q44.js → host-channel-preflight-QMAF2BQW.js} +3 -3
- package/dist/index.js +20 -20
- package/dist/server/index.js +27 -14
- package/dist/{setup-I3MTOIPW.js → setup-Q6GGIJ4Q.js} +2 -2
- package/dist/{up-IADNO7AY.js → up-IYR35YWW.js} +5 -5
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
rollbackEdgeTakeover,
|
|
20
20
|
scanImportableSites,
|
|
21
21
|
unreachableStaticRoots
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MOSINQAM.js";
|
|
23
23
|
import {
|
|
24
24
|
ourEdgeContainerRunning
|
|
25
25
|
} from "./chunk-PCOTSRS4.js";
|
|
@@ -263,7 +263,7 @@ async function repairEdgeConflict(mode, apiPort, onLog) {
|
|
|
263
263
|
}
|
|
264
264
|
spawnSync("docker", ["restart", "kraft-edge"], { stdio: "ignore" });
|
|
265
265
|
if (mode === "migrate" && scan.sites.length > 0) {
|
|
266
|
-
const { importMigratedSites } = await import("./edge-import-
|
|
266
|
+
const { importMigratedSites } = await import("./edge-import-RZD7MMOE.js");
|
|
267
267
|
const outcome = await importMigratedSites(apiPort, scan.sites, certPems);
|
|
268
268
|
if (outcome.registered.length === 0) {
|
|
269
269
|
return {
|
|
@@ -2639,6 +2639,20 @@ async function installDocker(executor, onLog, config) {
|
|
|
2639
2639
|
return { component: "docker", success: false, error: msg };
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
|
+
function rhelRepoHint(profile, component, output) {
|
|
2643
|
+
if (profile.distroFamily !== "rhel") return "";
|
|
2644
|
+
if (!/no match for argument|unable to find a match|no package .* available/i.test(
|
|
2645
|
+
output
|
|
2646
|
+
))
|
|
2647
|
+
return "";
|
|
2648
|
+
if (component === "fail2ban") {
|
|
2649
|
+
return ` On RHEL-family hosts, \`fail2ban\` lives in EPEL, which Kraft does not enable itself: install the \`epel-release\` package first, then retry this install.`;
|
|
2650
|
+
}
|
|
2651
|
+
if (component === "ufw") {
|
|
2652
|
+
return ` The \`ufw\` command is not packaged for RHEL-family hosts \u2014 \`firewalld\` is the native firewall and Kraft already drives it, so nothing needs installing.`;
|
|
2653
|
+
}
|
|
2654
|
+
return "";
|
|
2655
|
+
}
|
|
2642
2656
|
async function installPackaged(executor, onLog, component, label, where) {
|
|
2643
2657
|
const prep = await prepareExecutor(executor, component);
|
|
2644
2658
|
if (!prep.ok) return prep.result;
|
|
@@ -2656,7 +2670,7 @@ async function installPackaged(executor, onLog, component, label, where) {
|
|
|
2656
2670
|
onLog
|
|
2657
2671
|
);
|
|
2658
2672
|
if (code !== 0) {
|
|
2659
|
-
const error = describeInstallFailure(label, code, output);
|
|
2673
|
+
const error = describeInstallFailure(label, code, output) + rhelRepoHint(prep.profile, component, output);
|
|
2660
2674
|
onLog(log3(error, "error"));
|
|
2661
2675
|
return { component, success: false, error };
|
|
2662
2676
|
}
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
planAndApplyHostEdge,
|
|
17
17
|
previewHostEdge,
|
|
18
18
|
rollbackHostEdge
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IGTODKUA.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_REPO,
|
|
22
22
|
PORTS_FILE,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
resolvePorts,
|
|
44
44
|
sourceBuildDir,
|
|
45
45
|
verifyHostChannel
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-RU2BVUEV.js";
|
|
47
47
|
import {
|
|
48
48
|
startUnitHint,
|
|
49
49
|
thisHost
|
|
@@ -1942,7 +1942,7 @@ async function runForeground(opts, source) {
|
|
|
1942
1942
|
const uiSpinner = ora("Preparing the dashboard\u2026").start();
|
|
1943
1943
|
try {
|
|
1944
1944
|
const bundle = await ensureDashboard({
|
|
1945
|
-
tag: source ? "local" : opts.uiVersion || `v${"0.7.
|
|
1945
|
+
tag: source ? "local" : opts.uiVersion || `v${"0.7.7"}`,
|
|
1946
1946
|
onProgress: (received, total) => {
|
|
1947
1947
|
if (total) {
|
|
1948
1948
|
uiSpinner.text = `Downloading dashboard\u2026 ${Math.round(received / total * 100)}%`;
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5GPXMTE4.js";
|
|
17
17
|
import {
|
|
18
18
|
systemCatalog
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MOSINQAM.js";
|
|
20
20
|
import {
|
|
21
21
|
invalidateEdgeContainer,
|
|
22
22
|
sanitizeEdgeVhosts
|
|
@@ -1776,7 +1776,7 @@ function operatorEnvPassthrough(managed, prev) {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
var PRESERVED_ENV_HEADER = "# Preserved from your existing .env \u2014 set by you, not by `kraft up` (#485).";
|
|
1778
1778
|
function resolveImageVersion(opts) {
|
|
1779
|
-
return opts.version?.trim() || process.env.KRAFT_VERSION?.trim() || (true ? "0.7.
|
|
1779
|
+
return opts.version?.trim() || process.env.KRAFT_VERSION?.trim() || (true ? "0.7.7" : "latest");
|
|
1780
1780
|
}
|
|
1781
1781
|
function managedEnvLines(opts, host, cfg, prev) {
|
|
1782
1782
|
const lines = [
|
|
@@ -18,8 +18,8 @@ import "./chunk-DRK3MEDS.js";
|
|
|
18
18
|
import "./chunk-3NQQXMDR.js";
|
|
19
19
|
import "./chunk-RHLNVZMS.js";
|
|
20
20
|
import "./chunk-MC4X55BW.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-HLF5PMKE.js";
|
|
22
|
+
import "./chunk-MOSINQAM.js";
|
|
23
23
|
import "./chunk-VFPLICBX.js";
|
|
24
24
|
import "./chunk-I3DPMTSF.js";
|
|
25
25
|
import "./chunk-PCOTSRS4.js";
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
renderEdgeConflict,
|
|
14
14
|
repairEdgeConflict,
|
|
15
15
|
rollbackHostEdge
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IGTODKUA.js";
|
|
17
17
|
import "./chunk-5GPXMTE4.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-MOSINQAM.js";
|
|
19
19
|
import "./chunk-VFPLICBX.js";
|
|
20
20
|
import "./chunk-I3DPMTSF.js";
|
|
21
21
|
import "./chunk-PCOTSRS4.js";
|
|
@@ -5,7 +5,7 @@ const require = __ospCreateRequire(import.meta.url);
|
|
|
5
5
|
import {
|
|
6
6
|
checkHostChannel,
|
|
7
7
|
verifyHostChannel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RU2BVUEV.js";
|
|
9
9
|
import "./chunk-2UQFOUSZ.js";
|
|
10
10
|
import "./chunk-5GPXMTE4.js";
|
|
11
11
|
import "./chunk-XZYFZ6A5.js";
|
|
@@ -17,8 +17,8 @@ import "./chunk-DRK3MEDS.js";
|
|
|
17
17
|
import "./chunk-3NQQXMDR.js";
|
|
18
18
|
import "./chunk-RHLNVZMS.js";
|
|
19
19
|
import "./chunk-MC4X55BW.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-HLF5PMKE.js";
|
|
21
|
+
import "./chunk-MOSINQAM.js";
|
|
22
22
|
import "./chunk-VFPLICBX.js";
|
|
23
23
|
import "./chunk-I3DPMTSF.js";
|
|
24
24
|
import "./chunk-PCOTSRS4.js";
|
package/dist/index.js
CHANGED
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
upCommand,
|
|
39
39
|
validateGithubToken,
|
|
40
40
|
writeCliInstall
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-OQ5TBV4T.js";
|
|
42
42
|
import {
|
|
43
43
|
bootstrapAdmin,
|
|
44
44
|
detectPublicIp,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
renderEdgeConflict,
|
|
59
59
|
repairEdgeConflict,
|
|
60
60
|
rollbackHostEdge
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-IGTODKUA.js";
|
|
62
62
|
import {
|
|
63
63
|
composeDown,
|
|
64
64
|
composeInternalToken,
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
sourceBuildDir,
|
|
93
93
|
storedApiPort,
|
|
94
94
|
storedDashboardPort
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-RU2BVUEV.js";
|
|
96
96
|
import {
|
|
97
97
|
startUnitHint
|
|
98
98
|
} from "./chunk-2UQFOUSZ.js";
|
|
@@ -110,11 +110,11 @@ import "./chunk-DRK3MEDS.js";
|
|
|
110
110
|
import "./chunk-3NQQXMDR.js";
|
|
111
111
|
import "./chunk-RHLNVZMS.js";
|
|
112
112
|
import "./chunk-MC4X55BW.js";
|
|
113
|
-
import "./chunk-
|
|
113
|
+
import "./chunk-HLF5PMKE.js";
|
|
114
114
|
import {
|
|
115
115
|
detectInstalledProxy,
|
|
116
116
|
scanImportableSites
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-MOSINQAM.js";
|
|
118
118
|
import "./chunk-VFPLICBX.js";
|
|
119
119
|
import "./chunk-I3DPMTSF.js";
|
|
120
120
|
import "./chunk-PCOTSRS4.js";
|
|
@@ -330,7 +330,7 @@ function getDashboardUrl(name) {
|
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
// src/lib/api-client.ts
|
|
333
|
-
var USER_AGENT = `kraft-cli/${true ? "0.7.
|
|
333
|
+
var USER_AGENT = `kraft-cli/${true ? "0.7.7" : "dev"}`;
|
|
334
334
|
function getApiUrl2() {
|
|
335
335
|
return `${getApiUrl()}/api`;
|
|
336
336
|
}
|
|
@@ -1276,7 +1276,7 @@ function dockerNameRunning(nameFilter) {
|
|
|
1276
1276
|
return r.stdout.trim().length > 0;
|
|
1277
1277
|
}
|
|
1278
1278
|
async function hostControlCheck(api) {
|
|
1279
|
-
const { checkHostChannel } = await import("./host-channel-preflight-
|
|
1279
|
+
const { checkHostChannel } = await import("./host-channel-preflight-QMAF2BQW.js");
|
|
1280
1280
|
return hostControlRow(await checkHostChannel().catch(() => null), api);
|
|
1281
1281
|
}
|
|
1282
1282
|
var NEVER_PROVISIONED_DETAIL = `never provisioned \u2014 run \`${HOST_CHANNEL_PROVISION_COMMAND}\``;
|
|
@@ -1835,7 +1835,7 @@ async function interactiveDoctor() {
|
|
|
1835
1835
|
continue;
|
|
1836
1836
|
}
|
|
1837
1837
|
if (action2 === "host-control") {
|
|
1838
|
-
const { verifyHostChannel } = await import("./host-channel-preflight-
|
|
1838
|
+
const { verifyHostChannel } = await import("./host-channel-preflight-QMAF2BQW.js");
|
|
1839
1839
|
const report3 = await verifyHostChannel().catch(() => null);
|
|
1840
1840
|
if (report3?.status === "fixed")
|
|
1841
1841
|
log2.success("Host control is reachable now.");
|
|
@@ -4227,7 +4227,7 @@ async function runRepair2(mode) {
|
|
|
4227
4227
|
mode === "migrate" ? "Migrating the existing proxy's sites into the edge\u2026" : "Taking over :80/:443\u2026"
|
|
4228
4228
|
);
|
|
4229
4229
|
try {
|
|
4230
|
-
const { repairEdgeConflict: repairEdgeConflict2 } = await import("./edge-preflight-
|
|
4230
|
+
const { repairEdgeConflict: repairEdgeConflict2 } = await import("./edge-preflight-6YO27PPQ.js");
|
|
4231
4231
|
sp?.stop();
|
|
4232
4232
|
const res = await repairEdgeConflict2(mode, apiPort(), onLog);
|
|
4233
4233
|
reportRepair(res);
|
|
@@ -4390,7 +4390,7 @@ async function panelRepair(mode) {
|
|
|
4390
4390
|
mode === "migrate" ? "Migrating the existing proxy's sites\u2026" : "Taking over :80/:443\u2026"
|
|
4391
4391
|
);
|
|
4392
4392
|
try {
|
|
4393
|
-
const { repairEdgeConflict: repairEdgeConflict2 } = await import("./edge-preflight-
|
|
4393
|
+
const { repairEdgeConflict: repairEdgeConflict2 } = await import("./edge-preflight-6YO27PPQ.js");
|
|
4394
4394
|
sp?.stop();
|
|
4395
4395
|
const res = await repairEdgeConflict2(mode, apiPort(), onLog);
|
|
4396
4396
|
renderRepair(res);
|
|
@@ -5495,7 +5495,7 @@ function printMonitoringNextSteps() {
|
|
|
5495
5495
|
info(" kraft edge analytics -p <project> per-domain analytics");
|
|
5496
5496
|
}
|
|
5497
5497
|
async function runMonitoringInstall(opts) {
|
|
5498
|
-
const up = await import("./up-
|
|
5498
|
+
const up = await import("./up-IYR35YWW.js");
|
|
5499
5499
|
let adminName = opts.adminName;
|
|
5500
5500
|
let adminEmail = opts.adminEmail;
|
|
5501
5501
|
let adminPassword = opts.adminPassword;
|
|
@@ -8069,7 +8069,7 @@ function applyOnlyArgv(selfArgs, json) {
|
|
|
8069
8069
|
// src/commands/update.ts
|
|
8070
8070
|
async function verifyHostChannelAfterUpdate() {
|
|
8071
8071
|
if (isJsonMode()) return;
|
|
8072
|
-
const { verifyHostChannel } = await import("./host-channel-preflight-
|
|
8072
|
+
const { verifyHostChannel } = await import("./host-channel-preflight-QMAF2BQW.js");
|
|
8073
8073
|
await verifyHostChannel().catch(() => {
|
|
8074
8074
|
});
|
|
8075
8075
|
}
|
|
@@ -8169,7 +8169,7 @@ async function runSourceUpdate(source, opts) {
|
|
|
8169
8169
|
}
|
|
8170
8170
|
var REINSTALL_HINT = "curl -fsSL https://get.kraft.io | sh";
|
|
8171
8171
|
async function runTarballUpdate(install, opts) {
|
|
8172
|
-
const current = "0.7.
|
|
8172
|
+
const current = "0.7.7";
|
|
8173
8173
|
let latest;
|
|
8174
8174
|
try {
|
|
8175
8175
|
latest = (await resolveLatestTag()).replace(/^v/, "");
|
|
@@ -8290,7 +8290,7 @@ var updateCommand = new Command26("update").description("Update the Kraft CLI +
|
|
|
8290
8290
|
const cliInstall = readCliInstall();
|
|
8291
8291
|
if (cliInstall?.method === "tarball")
|
|
8292
8292
|
return runTarballUpdate(cliInstall, opts);
|
|
8293
|
-
const current = "0.7.
|
|
8293
|
+
const current = "0.7.7";
|
|
8294
8294
|
let latest;
|
|
8295
8295
|
try {
|
|
8296
8296
|
latest = (await resolveLatestTag()).replace(/^v/, "");
|
|
@@ -9137,7 +9137,7 @@ async function runWizard() {
|
|
|
9137
9137
|
}
|
|
9138
9138
|
}
|
|
9139
9139
|
}
|
|
9140
|
-
const uiTag = `v${"0.7.
|
|
9140
|
+
const uiTag = `v${"0.7.7"}`;
|
|
9141
9141
|
if (method === "bare") {
|
|
9142
9142
|
const dl = spinner4();
|
|
9143
9143
|
dl.start("Pulling the Kraft dist from GitHub");
|
|
@@ -9205,7 +9205,7 @@ async function runWizard() {
|
|
|
9205
9205
|
const dashboardPort = String(ports.dashboard);
|
|
9206
9206
|
const moved = portMoveNotice(ports, composeTrustedOriginUrls());
|
|
9207
9207
|
if (moved.length) log5.info(moved.join("\n"));
|
|
9208
|
-
if (!pinnedImagesReady({ version: "0.7.
|
|
9208
|
+
if (!pinnedImagesReady({ version: "0.7.7" })) {
|
|
9209
9209
|
cancel4(
|
|
9210
9210
|
"The pinned Kraft image tag isn't in the registry yet \u2014 nothing on this box was changed."
|
|
9211
9211
|
);
|
|
@@ -9256,7 +9256,7 @@ async function runWizard() {
|
|
|
9256
9256
|
dashboardPort,
|
|
9257
9257
|
publicUrl,
|
|
9258
9258
|
trustProxy: behindProxy,
|
|
9259
|
-
version: "0.7.
|
|
9259
|
+
version: "0.7.7",
|
|
9260
9260
|
noHostControl: !allowHostControl
|
|
9261
9261
|
});
|
|
9262
9262
|
if (!fetched.ok) {
|
|
@@ -9287,7 +9287,7 @@ async function runWizard() {
|
|
|
9287
9287
|
dashboardPort,
|
|
9288
9288
|
publicUrl,
|
|
9289
9289
|
trustProxy: behindProxy,
|
|
9290
|
-
version: "0.7.
|
|
9290
|
+
version: "0.7.7",
|
|
9291
9291
|
noHostControl: !allowHostControl
|
|
9292
9292
|
});
|
|
9293
9293
|
if (!up.ok) {
|
|
@@ -9379,7 +9379,7 @@ async function runWizard() {
|
|
|
9379
9379
|
if (!result.domainRegistered)
|
|
9380
9380
|
liveUrl2 = `http://localhost:${started.dashPort}`;
|
|
9381
9381
|
for (const w of result.warnings) log5.warn(w);
|
|
9382
|
-
const { verifyHostChannel } = await import("./host-channel-preflight-
|
|
9382
|
+
const { verifyHostChannel } = await import("./host-channel-preflight-QMAF2BQW.js");
|
|
9383
9383
|
await verifyHostChannel().catch(() => {
|
|
9384
9384
|
});
|
|
9385
9385
|
finishSetup({
|
|
@@ -9683,7 +9683,7 @@ function attachCompletion(program2) {
|
|
|
9683
9683
|
|
|
9684
9684
|
// src/index.ts
|
|
9685
9685
|
var program = new Command29();
|
|
9686
|
-
program.name("kraft").description("Kraft CLI \u2014 install, run, and manage Kraft from your terminal").version("0.7.
|
|
9686
|
+
program.name("kraft").description("Kraft CLI \u2014 install, run, and manage Kraft from your terminal").version("0.7.7").option("--json", "Machine-readable JSON output (stdout data only)").hook("preAction", (thisCommand) => {
|
|
9687
9687
|
if (thisCommand.opts().json) setJsonMode(true);
|
|
9688
9688
|
}).action(async () => {
|
|
9689
9689
|
const installed = serviceStatus().installed || readInstallMethod() === "compose";
|
package/dist/server/index.js
CHANGED
|
@@ -110595,6 +110595,19 @@ async function installDocker(executor, onLog, config2) {
|
|
|
110595
110595
|
return { component: "docker", success: false, error: msg };
|
|
110596
110596
|
}
|
|
110597
110597
|
}
|
|
110598
|
+
function rhelRepoHint(profile, component, output) {
|
|
110599
|
+
if (profile.distroFamily !== "rhel")
|
|
110600
|
+
return "";
|
|
110601
|
+
if (!/no match for argument|unable to find a match|no package .* available/i.test(output))
|
|
110602
|
+
return "";
|
|
110603
|
+
if (component === "fail2ban") {
|
|
110604
|
+
return ` On RHEL-family hosts, \`fail2ban\` lives in EPEL, which Kraft does not` + ` enable itself: install the \`epel-release\` package first, then retry this install.`;
|
|
110605
|
+
}
|
|
110606
|
+
if (component === "ufw") {
|
|
110607
|
+
return ` The \`ufw\` command is not packaged for RHEL-family hosts — \`firewalld\`` + ` is the native firewall and Kraft already drives it, so nothing needs installing.`;
|
|
110608
|
+
}
|
|
110609
|
+
return "";
|
|
110610
|
+
}
|
|
110598
110611
|
async function installPackaged(executor, onLog, component, label2, where) {
|
|
110599
110612
|
const prep = await prepareExecutor(executor, component);
|
|
110600
110613
|
if (!prep.ok)
|
|
@@ -110610,7 +110623,7 @@ async function installPackaged(executor, onLog, component, label2, where) {
|
|
|
110610
110623
|
try {
|
|
110611
110624
|
const { code, output } = await executor.streamExec(plan.value.installCommand, onLog);
|
|
110612
110625
|
if (code !== 0) {
|
|
110613
|
-
const error51 = describeInstallFailure(label2, code, output);
|
|
110626
|
+
const error51 = describeInstallFailure(label2, code, output) + rhelRepoHint(prep.profile, component, output);
|
|
110614
110627
|
onLog(log3(error51, "error"));
|
|
110615
110628
|
return { component, success: false, error: error51 };
|
|
110616
110629
|
}
|
|
@@ -273261,7 +273274,7 @@ function validateDisplayName(name2) {
|
|
|
273261
273274
|
async function listMailboxes(serverId, domain4) {
|
|
273262
273275
|
validateDomain(domain4);
|
|
273263
273276
|
return sshManager.withExecutor(serverId, async (exec2) => {
|
|
273264
|
-
const rows = await queryRows(exec2, `SELECT${SELECT_COLUMNS} ${SELECT_FROM} WHERE domain = ${q3(domain4.toLowerCase())} ORDER BY mailbox.username`);
|
|
273277
|
+
const rows = await queryRows(exec2, `SELECT${SELECT_COLUMNS} ${SELECT_FROM} WHERE mailbox.domain = ${q3(domain4.toLowerCase())} ORDER BY mailbox.username`);
|
|
273265
273278
|
const state = await readState(exec2);
|
|
273266
273279
|
return rows.map((row) => annotatePlatformMailbox(row, state?.domain));
|
|
273267
273280
|
});
|
|
@@ -273434,18 +273447,18 @@ async function hardDeleteMailbox(serverId, email6) {
|
|
|
273434
273447
|
}
|
|
273435
273448
|
var EMAIL_RE, LOCAL_PART_RE, SELECT_COLUMNS = `
|
|
273436
273449
|
mailbox.username,
|
|
273437
|
-
name,
|
|
273438
|
-
domain,
|
|
273439
|
-
quota AS "quotaMB",
|
|
273450
|
+
mailbox.name,
|
|
273451
|
+
mailbox.domain,
|
|
273452
|
+
mailbox.quota AS "quotaMB",
|
|
273440
273453
|
uq.bytes AS "usedBytes",
|
|
273441
|
-
storagebasedirectory,
|
|
273442
|
-
storagenode,
|
|
273443
|
-
maildir,
|
|
273444
|
-
(active = 1) AS active,
|
|
273445
|
-
(isadmin = 1) AS "isAdmin",
|
|
273446
|
-
(isglobaladmin = 1) AS "isGlobalAdmin",
|
|
273447
|
-
created::text AS "createdAt",
|
|
273448
|
-
passwordlastchange::text AS "passwordLastChange"
|
|
273454
|
+
mailbox.storagebasedirectory,
|
|
273455
|
+
mailbox.storagenode,
|
|
273456
|
+
mailbox.maildir,
|
|
273457
|
+
(mailbox.active = 1) AS active,
|
|
273458
|
+
(mailbox.isadmin = 1) AS "isAdmin",
|
|
273459
|
+
(mailbox.isglobaladmin = 1) AS "isGlobalAdmin",
|
|
273460
|
+
mailbox.created::text AS "createdAt",
|
|
273461
|
+
mailbox.passwordlastchange::text AS "passwordLastChange"
|
|
273449
273462
|
`, SELECT_FROM = `FROM mailbox LEFT JOIN used_quota AS uq ON uq.username = mailbox.username`, PlatformMailboxProtectedError, MailboxExistsError, MailboxNotFoundError;
|
|
273450
273463
|
var init_mailboxes_service = __esm(async () => {
|
|
273451
273464
|
init_src();
|
|
@@ -321492,7 +321505,7 @@ var package_default;
|
|
|
321492
321505
|
var init_package = __esm(() => {
|
|
321493
321506
|
package_default = {
|
|
321494
321507
|
name: "@repo/api",
|
|
321495
|
-
version: "0.7.
|
|
321508
|
+
version: "0.7.7",
|
|
321496
321509
|
license: "Apache-2.0",
|
|
321497
321510
|
private: true,
|
|
321498
321511
|
type: "module",
|
|
@@ -4,8 +4,8 @@ import { createRequire as __ospCreateRequire } from "node:module";
|
|
|
4
4
|
const require = __ospCreateRequire(import.meta.url);
|
|
5
5
|
import {
|
|
6
6
|
SystemManager
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-HLF5PMKE.js";
|
|
8
|
+
import "./chunk-MOSINQAM.js";
|
|
9
9
|
import "./chunk-VFPLICBX.js";
|
|
10
10
|
import "./chunk-I3DPMTSF.js";
|
|
11
11
|
import "./chunk-PCOTSRS4.js";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
runHeadlessProvision,
|
|
8
8
|
startService,
|
|
9
9
|
upCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OQ5TBV4T.js";
|
|
11
11
|
import "./chunk-JK7KKBXI.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-IGTODKUA.js";
|
|
13
|
+
import "./chunk-RU2BVUEV.js";
|
|
14
14
|
import "./chunk-2UQFOUSZ.js";
|
|
15
15
|
import "./chunk-5GPXMTE4.js";
|
|
16
16
|
import "./chunk-XZYFZ6A5.js";
|
|
@@ -22,8 +22,8 @@ import "./chunk-DRK3MEDS.js";
|
|
|
22
22
|
import "./chunk-3NQQXMDR.js";
|
|
23
23
|
import "./chunk-RHLNVZMS.js";
|
|
24
24
|
import "./chunk-MC4X55BW.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-HLF5PMKE.js";
|
|
26
|
+
import "./chunk-MOSINQAM.js";
|
|
27
27
|
import "./chunk-VFPLICBX.js";
|
|
28
28
|
import "./chunk-I3DPMTSF.js";
|
|
29
29
|
import "./chunk-PCOTSRS4.js";
|