openmates 0.14.7-alpha.0 → 0.14.7-alpha.10
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-U2RKIE56.js → chunk-GCLIMV6P.js} +54 -19
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -9534,6 +9534,22 @@ import { createInterface as createPromptInterface } from "readline/promises";
|
|
|
9534
9534
|
import { homedir as homedir5 } from "os";
|
|
9535
9535
|
import { dirname, join as join3, resolve as resolve3 } from "path";
|
|
9536
9536
|
|
|
9537
|
+
// src/branding.ts
|
|
9538
|
+
var OPENMATES_WORDMARK = "OPENMATES";
|
|
9539
|
+
var OPENMATES_ASCII_LARGE = [
|
|
9540
|
+
" \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588 \u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588",
|
|
9541
|
+
"\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 ",
|
|
9542
|
+
"\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588",
|
|
9543
|
+
"\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588",
|
|
9544
|
+
" \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588"
|
|
9545
|
+
];
|
|
9546
|
+
function openMatesAsciiLogo(width = 100) {
|
|
9547
|
+
return width >= 86 ? [...OPENMATES_ASCII_LARGE, OPENMATES_WORDMARK] : [OPENMATES_WORDMARK];
|
|
9548
|
+
}
|
|
9549
|
+
function renderOpenMatesAsciiLogo(width = 100) {
|
|
9550
|
+
return openMatesAsciiLogo(width).join("\n");
|
|
9551
|
+
}
|
|
9552
|
+
|
|
9537
9553
|
// src/support.ts
|
|
9538
9554
|
var SUPPORT_URL = "https://openmates.org/#settings/support";
|
|
9539
9555
|
var SUPPORT_TITLE = "Support OpenMates development";
|
|
@@ -10446,6 +10462,38 @@ function missingRequiredEnvKeys(installPath, role) {
|
|
|
10446
10462
|
const env = readEnvMap(installPath);
|
|
10447
10463
|
return requiredRuntimeEnvKeys(role).filter((key) => !env[key]);
|
|
10448
10464
|
}
|
|
10465
|
+
var LONG_RUNNING_SERVER_COMMANDS = /* @__PURE__ */ new Set([
|
|
10466
|
+
"install",
|
|
10467
|
+
"start",
|
|
10468
|
+
"stop",
|
|
10469
|
+
"restart",
|
|
10470
|
+
"update",
|
|
10471
|
+
"preflight",
|
|
10472
|
+
"caddy",
|
|
10473
|
+
"backup",
|
|
10474
|
+
"restore",
|
|
10475
|
+
"reset",
|
|
10476
|
+
"make-admin",
|
|
10477
|
+
"ai",
|
|
10478
|
+
"uninstall"
|
|
10479
|
+
]);
|
|
10480
|
+
function shouldPrintServerCommandStart(subcommand, rest, flags) {
|
|
10481
|
+
if (flags.json === true || !LONG_RUNNING_SERVER_COMMANDS.has(subcommand)) return false;
|
|
10482
|
+
if (subcommand === "backup" && rest[0] === "list") return false;
|
|
10483
|
+
if (subcommand === "update" && rest[0] === "status") return false;
|
|
10484
|
+
if (subcommand === "ai" && rest[0] === "models" && (rest[1] === "list" || rest[1] === "remove")) return false;
|
|
10485
|
+
if (subcommand === "caddy" && (rest[0] === "status" || rest[0] === "diff")) return false;
|
|
10486
|
+
return true;
|
|
10487
|
+
}
|
|
10488
|
+
function printServerCommandStart(subcommand, rest, flags) {
|
|
10489
|
+
const command = ["server", subcommand, ...rest].join(" ");
|
|
10490
|
+
console.log(renderOpenMatesAsciiLogo());
|
|
10491
|
+
console.log("");
|
|
10492
|
+
console.log(`Running OpenMates ${command}...`);
|
|
10493
|
+
if (typeof flags.path === "string") console.log(`Path: ${resolve3(flags.path)}`);
|
|
10494
|
+
if (typeof flags.role === "string") console.log(`Role: ${flags.role}`);
|
|
10495
|
+
console.log("");
|
|
10496
|
+
}
|
|
10449
10497
|
function vaultCheckContainerForRole(role) {
|
|
10450
10498
|
if (role === "core") return "api";
|
|
10451
10499
|
if (role === "upload") return "app-uploads";
|
|
@@ -11966,6 +12014,9 @@ async function handleServer(subcommand, rest, flags) {
|
|
|
11966
12014
|
printServerHelp();
|
|
11967
12015
|
return;
|
|
11968
12016
|
}
|
|
12017
|
+
if (shouldPrintServerCommandStart(subcommand, rest, flags)) {
|
|
12018
|
+
printServerCommandStart(subcommand, rest, flags);
|
|
12019
|
+
}
|
|
11969
12020
|
switch (subcommand) {
|
|
11970
12021
|
case "status":
|
|
11971
12022
|
return serverStatus(flags);
|
|
@@ -46868,22 +46919,6 @@ var TuiTerminal = class {
|
|
|
46868
46919
|
}
|
|
46869
46920
|
};
|
|
46870
46921
|
|
|
46871
|
-
// src/branding.ts
|
|
46872
|
-
var OPENMATES_WORDMARK = "OPENMATES";
|
|
46873
|
-
var OPENMATES_ASCII_LARGE = [
|
|
46874
|
-
" \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588 \u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588",
|
|
46875
|
-
"\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 ",
|
|
46876
|
-
"\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588",
|
|
46877
|
-
"\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588",
|
|
46878
|
-
" \u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588"
|
|
46879
|
-
];
|
|
46880
|
-
function openMatesAsciiLogo(width = 100) {
|
|
46881
|
-
return width >= 86 ? [...OPENMATES_ASCII_LARGE, OPENMATES_WORDMARK] : [OPENMATES_WORDMARK];
|
|
46882
|
-
}
|
|
46883
|
-
function renderOpenMatesAsciiLogo(width = 100) {
|
|
46884
|
-
return openMatesAsciiLogo(width).join("\n");
|
|
46885
|
-
}
|
|
46886
|
-
|
|
46887
46922
|
// src/tuiRenderer.ts
|
|
46888
46923
|
var MIN_WIDTH = 48;
|
|
46889
46924
|
var CONTENT_PREVIEW_LINES = 12;
|
|
@@ -50426,8 +50461,8 @@ async function handleE2E(client, subcommand, rest, flags) {
|
|
|
50426
50461
|
}
|
|
50427
50462
|
if (flags.password !== void 0) throw new Error("Use generated passwords or OPENMATES_CLI_SIGNUP_PASSWORD, not --password.");
|
|
50428
50463
|
const slot = parseRequiredNumber(flags.slot, "--slot");
|
|
50429
|
-
if (![15, 16, 17, 18, 19, 20].includes(slot)) {
|
|
50430
|
-
throw new Error("Only reserved slots
|
|
50464
|
+
if (![14, 15, 16, 17, 18, 19, 20].includes(slot)) {
|
|
50465
|
+
throw new Error("Only reserved slots 14-20 are supported.");
|
|
50431
50466
|
}
|
|
50432
50467
|
const artifact = typeof flags.artifact === "string" ? flags.artifact : `test-results/credential-updates/slot-${slot}.env`;
|
|
50433
50468
|
const domain = typeof flags.domain === "string" ? flags.domain : process.env.OPENMATES_CLI_E2E_EMAIL_DOMAIN;
|
|
@@ -53212,7 +53247,7 @@ Creates local ignored credential artifacts for reserved E2E auth accounts. The
|
|
|
53212
53247
|
command refuses production API URLs and does not upload GitHub secrets.
|
|
53213
53248
|
|
|
53214
53249
|
Options:
|
|
53215
|
-
--slot <
|
|
53250
|
+
--slot <14-20> Reserved auth-account slot
|
|
53216
53251
|
--artifact <path> Output .env artifact path
|
|
53217
53252
|
--email <email> Test email; prompted/generated when omitted
|
|
53218
53253
|
--domain <mail-domain> Generate email at this domain
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED