@platforma-sdk/bootstrap 3.1.6 → 3.1.8

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/index.mjs CHANGED
@@ -89,16 +89,16 @@ const me = {
89
89
  storage: v.string({
90
90
  description: "specify path on host to be used as storage for all Platforma Backend data"
91
91
  })
92
- }, yr = {
92
+ }, pr = {
93
93
  "minio-presign-host": v.boolean({
94
94
  description: "use 'minio' host instead of 'localhost' in presign URLs"
95
95
  })
96
- }, ye = {
96
+ }, pe = {
97
97
  mount: v.string({
98
98
  multiple: !0,
99
99
  description: "things to be mounted into platforma docker container. Targets will appear inside the container under the same absolute paths"
100
100
  })
101
- }, pe = {
101
+ }, ye = {
102
102
  "pl-log-file": v.file({
103
103
  description: "specify path for Platforma Backend log file"
104
104
  })
@@ -222,10 +222,10 @@ function Ur(a) {
222
222
  if (r.Name === a)
223
223
  return r;
224
224
  }
225
- const Oe = ["Python"], pr = ["Tengo", "Python"], Gr = N.union([N.literal("Tengo"), N.literal("Python")]), Jr = N.object({
225
+ const Oe = ["Python"], yr = ["Tengo", "Python"], Gr = N.union([N.literal("Tengo"), N.literal("Python")]), Jr = N.object({
226
226
  npmOrgName: N.string().min(1),
227
- orgName: N.string().min(1),
228
- blockName: N.string().min(1),
227
+ orgName: N.string().min(1, { message: "Organization name must be provided" }),
228
+ blockName: N.string().min(1, { message: "Block name must be provided" }),
229
229
  softwarePlatforms: N.array(Gr).refine((a) => new Set(a).size === a.length, {
230
230
  message: "Must be an array of unique software platforms"
231
231
  })
@@ -239,7 +239,7 @@ async function Hr(a) {
239
239
  "platforma-block-boilerplate-main",
240
240
  s
241
241
  );
242
- const i = pr.filter((o) => n.indexOf(o) < 0), c = Oe.length == i.length;
242
+ const i = yr.filter((o) => n.indexOf(o) < 0), c = Oe.length == i.length;
243
243
  a.info(`Keep platforms '${n}', remove: '${i}'. Will remove all platforms? ${c}`);
244
244
  for (const o of i)
245
245
  await zr(s, o);
@@ -257,15 +257,25 @@ function Wr() {
257
257
  'Write an organization name for npm. Default is "platforma-open": '
258
258
  );
259
259
  a === "" && (a = "platforma-open");
260
- const e = Z.question('Write an organization name, e.g. "my-org": '), t = Z.question('Write a name of the block, e.g. "hello-world": '), r = Z.keyInYN("Create package for block's software?");
260
+ let e = "";
261
+ for (; e.length < 1; )
262
+ e = Z.question('Write an organization name, e.g. "my-org": ');
263
+ let t = "";
264
+ for (; t.length < 1; )
265
+ t = Z.question('Write a name of the block, e.g. "hello-world": ');
266
+ const r = Z.keyInYN("Create package for block's software?");
261
267
  let n = ["Tengo"];
262
268
  if (r)
263
- for (; n.length < pr.length; ) {
264
- const s = Z.keyInSelect(Oe, "Choose software platform:");
265
- if (s < 0) break;
266
- n.push(Oe[s]);
269
+ for (; n.length < yr.length; ) {
270
+ const i = Z.keyInSelect(Oe, "Choose software platform:");
271
+ if (i < 0) break;
272
+ n.push(Oe[i]);
267
273
  }
268
- return n = Array.from(new Set(n)).sort(), Jr.parse({ npmOrgName: a, orgName: e, blockName: t, softwarePlatforms: n });
274
+ n = Array.from(new Set(n)).sort();
275
+ const s = Jr.safeParse({ npmOrgName: a, orgName: e, blockName: t, softwarePlatforms: n });
276
+ if (!s.success && s.error.issues.length)
277
+ throw new Error(s.error.issues.map((i) => i.message).join("; "));
278
+ return s.data;
269
279
  }
270
280
  async function qr(a, e, t) {
271
281
  const n = await (await fetch(a)).blob(), s = await _.mkdtemp(m.join(F.tmpdir(), "create-repo")), i = m.join(s, "packed-repo.zip"), c = Rr.toWeb(Lr(i));
@@ -605,15 +615,15 @@ function X(a, e, t) {
605
615
  }
606
616
  }
607
617
  function et(a, e) {
608
- var w, y, P, S, k, p, $, le, Ge, Je, He, We, qe, ze, Ye, Ve, Ke, Qe, Xe, Ze, er, rr, tr, ar, nr, sr, ir, cr, or, lr;
618
+ var w, p, P, S, k, y, $, le, Ge, Je, He, We, qe, ze, Ye, Ve, Ke, Qe, Xe, Ze, er, rr, tr, ar, nr, sr, ir, cr, or, lr;
609
619
  const t = (e == null ? void 0 : e.localRoot) ?? u.instanceDir("default"), r = {
610
620
  level: ((w = e == null ? void 0 : e.log) == null ? void 0 : w.level) ?? "info",
611
- path: ((y = e == null ? void 0 : e.log) == null ? void 0 : y.path) ?? `${t}/logs/platforma.log`
621
+ path: ((p = e == null ? void 0 : e.log) == null ? void 0 : p.path) ?? `${t}/logs/platforma.log`
612
622
  }, n = {
613
623
  listen: ((P = e == null ? void 0 : e.grpc) == null ? void 0 : P.listen) ?? "localhost:6345",
614
624
  tls: {
615
625
  enable: de((k = (S = e == null ? void 0 : e.grpc) == null ? void 0 : S.tls) == null ? void 0 : k.enable, !1),
616
- clientAuthMode: (($ = (p = e == null ? void 0 : e.grpc) == null ? void 0 : p.tls) == null ? void 0 : $.clientAuthMode) ?? "NoAuth",
626
+ clientAuthMode: (($ = (y = e == null ? void 0 : e.grpc) == null ? void 0 : y.tls) == null ? void 0 : $.clientAuthMode) ?? "NoAuth",
617
627
  certFile: ((Ge = (le = e == null ? void 0 : e.grpc) == null ? void 0 : le.tls) == null ? void 0 : Ge.certFile) ?? `${t}/certs/tls.cert`,
618
628
  keyFile: ((He = (Je = e == null ? void 0 : e.grpc) == null ? void 0 : Je.tls) == null ? void 0 : He.keyFile) ?? `${t}/certs/tls.key`,
619
629
  ...(We = e == null ? void 0 : e.grpc) == null ? void 0 : We.tls
@@ -809,24 +819,24 @@ function st(a, e) {
809
819
  return new Promise((o, d) => {
810
820
  c.on("response", (g) => {
811
821
  if (!g.statusCode) {
812
- const y = new Error("failed to download archive: no HTTP status code in response from server");
813
- c.destroy(), d(y);
822
+ const p = new Error("failed to download archive: no HTTP status code in response from server");
823
+ c.destroy(), d(p);
814
824
  return;
815
825
  }
816
826
  if (g.statusCode !== 200) {
817
- const y = new Error(`failed to download archive: ${g.statusCode} ${g.statusMessage}`);
818
- c.destroy(), d(y);
827
+ const p = new Error(`failed to download archive: ${g.statusCode} ${g.statusMessage}`);
828
+ c.destroy(), d(p);
819
829
  return;
820
830
  }
821
831
  const h = parseInt(g.headers["content-length"] || "0", 10);
822
832
  let b = 0;
823
833
  const w = f.createWriteStream(i);
824
- g.pipe(w), g.on("data", (y) => {
825
- b += y.length;
834
+ g.pipe(w), g.on("data", (p) => {
835
+ b += p.length;
826
836
  const P = b / h * 100;
827
837
  r && process.stdout.write(` downloading: ${P.toFixed(2)}%\r`);
828
- }), g.on("error", (y) => {
829
- f.unlinkSync(i), a.error(`Failed to download Platforma Binary: ${y.message}`), c.destroy(), d(y);
838
+ }), g.on("error", (p) => {
839
+ f.unlinkSync(i), a.error(`Failed to download Platforma Binary: ${p.message}`), c.destroy(), d(p);
830
840
  }), w.on("finish", () => {
831
841
  w.close(), a.info(" ... download done."), c.destroy(), o(i);
832
842
  });
@@ -917,7 +927,7 @@ ${r}`);
917
927
  return this.startInstance(e);
918
928
  }
919
929
  createLocal(e, t) {
920
- var o, d, g, h, b, w, y, P, S, k;
930
+ var o, d, g, h, b, w, p, P, S, k;
921
931
  const r = (t == null ? void 0 : t.binaryPath) ?? ct(t == null ? void 0 : t.version, "binaries", "platforma");
922
932
  let n = t == null ? void 0 : t.configPath;
923
933
  const s = (t == null ? void 0 : t.workdir) ?? (n ? process.cwd() : u.instanceDir(e));
@@ -935,17 +945,17 @@ ${r}`);
935
945
  }
936
946
  });
937
947
  const i = et(this.getLastJwt(), t == null ? void 0 : t.configOptions);
938
- this.logger.debug(" checking license..."), this.checkLicense((P = (y = t == null ? void 0 : t.configOptions) == null ? void 0 : y.license) == null ? void 0 : P.value, (k = (S = t == null ? void 0 : t.configOptions) == null ? void 0 : S.license) == null ? void 0 : k.file);
948
+ this.logger.debug(" checking license..."), this.checkLicense((P = (p = t == null ? void 0 : t.configOptions) == null ? void 0 : p.license) == null ? void 0 : P.value, (k = (S = t == null ? void 0 : t.configOptions) == null ? void 0 : S.license) == null ? void 0 : k.file);
939
949
  const c = [
940
950
  `${i.localRoot}/packages`,
941
951
  `${i.localRoot}/packages-local`,
942
952
  `${i.localRoot}/blocks-local`
943
953
  ];
944
954
  i.storages.primary.type === "FS" && c.push(i.storages.primary.rootPath), i.storages.library.type === "FS" && (c.push(i.storages.library.rootPath), i.hacks.libraryDownloadable = !1), i.storages.work.type === "FS" && c.push(i.storages.work.rootPath), this.logger.debug(" creating pl state directories...");
945
- for (const p of c)
946
- f.existsSync(p) || (this.logger.debug(` '${p}'`), f.mkdirSync(p, { recursive: !0 }));
947
- for (const p of i.core.auth.drivers)
948
- p.driver === "htpasswd" && (f.existsSync(p.path) || (this.logger.debug(` installing default 'users.htpasswd' to ${p.path}...`), f.copyFileSync(Q("users.htpasswd"), p.path)));
955
+ for (const y of c)
956
+ f.existsSync(y) || (this.logger.debug(` '${y}'`), f.mkdirSync(y, { recursive: !0 }));
957
+ for (const y of i.core.auth.drivers)
958
+ y.driver === "htpasswd" && (f.existsSync(y.path) || (this.logger.debug(` installing default 'users.htpasswd' to ${y.path}...`), f.copyFileSync(Q("users.htpasswd"), y.path)));
949
959
  return n || (n = m.join(i.localRoot, "config.yaml"), this.logger.debug(` rendering configuration '${n}'...`), f.writeFileSync(n, rt(i))), u.setInstanceInfo(e, {
950
960
  type: "process",
951
961
  upCommands: [
@@ -1054,8 +1064,8 @@ ${r}`);
1054
1064
  this.logger.debug("creating platforma instance in 'docker s3' mode...");
1055
1065
  const n = Q("compose-backend.yaml"), s = (r == null ? void 0 : r.image) ?? gr(r == null ? void 0 : r.version);
1056
1066
  this.checkLicense(r == null ? void 0 : r.license, r == null ? void 0 : r.licenseFile);
1057
- const i = (...p) => m.join(t, ...p), c = (p) => {
1058
- const $ = i(p);
1067
+ const i = (...y) => m.join(t, ...y), c = (y) => {
1068
+ const $ = i(y);
1059
1069
  return Se($, { mode: "0775" }), $;
1060
1070
  }, o = i("logs", "platforma.log");
1061
1071
  f.existsSync(o) || (f.mkdirSync(m.dirname(o), { recursive: !0 }), f.writeFileSync(o, ""));
@@ -1067,15 +1077,15 @@ ${r}`);
1067
1077
  if (h.type !== "S3")
1068
1078
  throw new Error(`${h.type} storage type is not supported for library storage`);
1069
1079
  h.presignEndpoint = `http://${d}:9000`;
1070
- const b = c("db"), w = c("work"), y = i("users.htpasswd");
1071
- f.existsSync(y) || f.copyFileSync(Q("users.htpasswd"), y);
1080
+ const b = c("db"), w = c("work"), p = i("users.htpasswd");
1081
+ f.existsSync(p) || f.copyFileSync(Q("users.htpasswd"), p);
1072
1082
  const P = i("compose.yaml");
1073
1083
  f.existsSync(P) && this.logger.info(`replacing docker compose file ${P}`);
1074
1084
  const S = [];
1075
- for (const p of (r == null ? void 0 : r.customMounts) ?? [])
1085
+ for (const y of (r == null ? void 0 : r.customMounts) ?? [])
1076
1086
  S.push({
1077
- hostPath: p.hostPath,
1078
- containerPath: p.containerPath ?? p.hostPath
1087
+ hostPath: y.hostPath,
1088
+ containerPath: y.containerPath ?? y.hostPath
1079
1089
  });
1080
1090
  Ae(n, P, `pl-${e}`, /* @__PURE__ */ new Map([
1081
1091
  ["minio", {}],
@@ -1088,7 +1098,7 @@ ${r}`);
1088
1098
  MINIO_IMAGE: "quay.io/minio/minio",
1089
1099
  MINIO_STORAGE: c("minio"),
1090
1100
  PL_IMAGE: s,
1091
- PL_AUTH_HTPASSWD_PATH: y,
1101
+ PL_AUTH_HTPASSWD_PATH: p,
1092
1102
  PL_LICENSE: r == null ? void 0 : r.license,
1093
1103
  PL_LICENSE_FILE: r == null ? void 0 : r.licenseFile,
1094
1104
  PL_LOG_LEVEL: (r == null ? void 0 : r.logLevel) ?? "info",
@@ -1105,8 +1115,8 @@ ${r}`);
1105
1115
  ...this.configureDockerStorage("library", h)
1106
1116
  };
1107
1117
  if (r != null && r.grpcAddr && (k.PL_GRPC_ADDR = r.grpcAddr), r != null && r.grpcPort && (k.PL_GRPC_PORT = r.grpcPort.toString()), r != null && r.monitoringAddr && (k.PL_MONITORING_ADDR = r.monitoringAddr), r != null && r.monitoringPort && (k.PL_MONITORING_PORT = r.monitoringPort.toString()), r != null && r.debugAddr && (k.PL_DEBUG_ADDR = r.debugAddr), r != null && r.debugPort && (k.PL_DEBUG_PORT = r.debugPort.toString()), r != null && r.auth && (r.auth.enabled && (k.PL_AUTH_ENABLED = "true"), r.auth.drivers)) {
1108
- for (const p of r.auth.drivers)
1109
- p.driver === "htpasswd" && (k.PL_AUTH_HTPASSWD_PATH = m.resolve(p.path), p.path = "/etc/platforma/users.htpasswd");
1118
+ for (const y of r.auth.drivers)
1119
+ y.driver === "htpasswd" && (k.PL_AUTH_HTPASSWD_PATH = m.resolve(y.path), y.path = "/etc/platforma/users.htpasswd");
1110
1120
  k.PL_AUTH_DRIVERS = JSON.stringify(r.auth.drivers);
1111
1121
  }
1112
1122
  return u.setInstanceInfo(e, {
@@ -1151,21 +1161,21 @@ ${r}`);
1151
1161
  f.existsSync(o) || (f.mkdirSync(m.dirname(o), { recursive: !0 }), f.writeFileSync(o, ""));
1152
1162
  const d = c("db"), g = c("primary"), h = c("library"), b = c("work"), w = i("users.htpasswd");
1153
1163
  f.existsSync(w) || f.copyFileSync(Q("users.htpasswd"), w);
1154
- const y = i("compose.yaml");
1155
- f.existsSync(y) && this.logger.info(`replacing docker compose file ${y}`);
1164
+ const p = i("compose.yaml");
1165
+ f.existsSync(p) && this.logger.info(`replacing docker compose file ${p}`);
1156
1166
  const P = [];
1157
1167
  for (const $ of (r == null ? void 0 : r.customMounts) ?? [])
1158
1168
  P.push({
1159
1169
  hostPath: $.hostPath,
1160
1170
  containerPath: $.containerPath ?? $.hostPath
1161
1171
  });
1162
- this.logger.debug(`Rendering docker compose file '${y}' using '${n}' as base template`), Ae(n, y, `pl-${e}`, /* @__PURE__ */ new Map([
1172
+ this.logger.debug(`Rendering docker compose file '${p}' using '${n}' as base template`), Ae(n, p, `pl-${e}`, /* @__PURE__ */ new Map([
1163
1173
  ["backend", {
1164
1174
  platform: r == null ? void 0 : r.platformOverride,
1165
1175
  mounts: P
1166
1176
  }]
1167
1177
  ]));
1168
- const S = X((r == null ? void 0 : r.primaryStorageURL) ?? `file:${g}`, "."), k = X((r == null ? void 0 : r.libraryStorageURL) ?? `file:${h}`, "."), p = {
1178
+ const S = X((r == null ? void 0 : r.primaryStorageURL) ?? `file:${g}`, "."), k = X((r == null ? void 0 : r.libraryStorageURL) ?? `file:${h}`, "."), y = {
1169
1179
  PL_IMAGE: s,
1170
1180
  PL_AUTH_HTPASSWD_PATH: w,
1171
1181
  PL_LICENSE: r == null ? void 0 : r.license,
@@ -1182,29 +1192,29 @@ ${r}`);
1182
1192
  ...this.configureDockerStorage("primary", S),
1183
1193
  ...this.configureDockerStorage("library", k)
1184
1194
  };
1185
- if (r != null && r.grpcAddr && (p.PL_GRPC_ADDR = r.grpcAddr), r != null && r.grpcPort && (p.PL_GRPC_PORT = r.grpcPort.toString()), r != null && r.monitoringAddr && (p.PL_MONITORING_ADDR = r.monitoringAddr), r != null && r.monitoringPort && (p.PL_MONITORING_PORT = r.monitoringPort.toString()), r != null && r.debugAddr && (p.PL_DEBUG_ADDR = r.debugAddr), r != null && r.debugPort && (p.PL_DEBUG_PORT = r.debugPort.toString()), r != null && r.auth && (r.auth.enabled && (p.PL_AUTH_ENABLED = "true"), r.auth.drivers)) {
1195
+ if (r != null && r.grpcAddr && (y.PL_GRPC_ADDR = r.grpcAddr), r != null && r.grpcPort && (y.PL_GRPC_PORT = r.grpcPort.toString()), r != null && r.monitoringAddr && (y.PL_MONITORING_ADDR = r.monitoringAddr), r != null && r.monitoringPort && (y.PL_MONITORING_PORT = r.monitoringPort.toString()), r != null && r.debugAddr && (y.PL_DEBUG_ADDR = r.debugAddr), r != null && r.debugPort && (y.PL_DEBUG_PORT = r.debugPort.toString()), r != null && r.auth && (r.auth.enabled && (y.PL_AUTH_ENABLED = "true"), r.auth.drivers)) {
1186
1196
  for (const $ of r.auth.drivers)
1187
- $.driver === "htpasswd" && (p.PL_AUTH_HTPASSWD_PATH = m.resolve($.path), $.path = "/etc/platforma/users.htpasswd");
1188
- p.PL_AUTH_DRIVERS = JSON.stringify(r.auth.drivers);
1197
+ $.driver === "htpasswd" && (y.PL_AUTH_HTPASSWD_PATH = m.resolve($.path), $.path = "/etc/platforma/users.htpasswd");
1198
+ y.PL_AUTH_DRIVERS = JSON.stringify(r.auth.drivers);
1189
1199
  }
1190
1200
  return u.setInstanceInfo(e, {
1191
1201
  type: "docker",
1192
1202
  upCommands: [{
1193
1203
  cmd: "docker",
1194
- args: ["compose", `--file=${y}`, "up", "--detach", "--remove-orphans", "--pull=missing"],
1195
- envs: p,
1204
+ args: ["compose", `--file=${p}`, "up", "--detach", "--remove-orphans", "--pull=missing"],
1205
+ envs: y,
1196
1206
  runOpts: { stdio: "inherit" }
1197
1207
  }],
1198
1208
  downCommands: [{
1199
1209
  cmd: "docker",
1200
- args: ["compose", `--file=${y}`, "down"],
1201
- envs: p,
1210
+ args: ["compose", `--file=${p}`, "down"],
1211
+ envs: y,
1202
1212
  runOpts: { stdio: "inherit" }
1203
1213
  }],
1204
1214
  cleanupCommands: [{
1205
1215
  cmd: "docker",
1206
- args: ["compose", `--file=${y}`, "down", "--volumes", "--remove-orphans"],
1207
- envs: p,
1216
+ args: ["compose", `--file=${p}`, "down", "--volumes", "--remove-orphans"],
1217
+ envs: y,
1208
1218
  runOpts: { stdio: "inherit" }
1209
1219
  }],
1210
1220
  runInfo: {
@@ -1434,7 +1444,7 @@ let lt = (E = class extends L {
1434
1444
  ...he,
1435
1445
  ...U,
1436
1446
  ...M,
1437
- ...ye,
1447
+ ...pe,
1438
1448
  ...B,
1439
1449
  ...ce,
1440
1450
  ...ie,
@@ -1454,7 +1464,7 @@ let dt = (T = class extends L {
1454
1464
  e["monitoring-listen"] ? b = e["monitoring-listen"] : e["monitoring-port"] && (b = `127.0.0.1:${e["monitoring-port"]}`);
1455
1465
  let w = "127.0.0.1:9091";
1456
1466
  e["debug-listen"] ? w = e["debug-listen"] : e["debug-port"] && (w = `127.0.0.1:${e["debug-port"]}`);
1457
- const y = {
1467
+ const p = {
1458
1468
  binaryPath: g,
1459
1469
  version: e.version,
1460
1470
  configPath: e.config,
@@ -1473,8 +1483,8 @@ let dt = (T = class extends L {
1473
1483
  work: { type: "FS", rootPath: e["storage-work"] }
1474
1484
  }
1475
1485
  }
1476
- }, P = r.createLocal(n, y);
1477
- y.binaryPath ? r.switchInstance(P) : ke(t, { version: e.version }).then(() => {
1486
+ }, P = r.createLocal(n, p);
1487
+ p.binaryPath ? r.switchInstance(P) : ke(t, { version: e.version }).then(() => {
1478
1488
  const S = r.switchInstance(P);
1479
1489
  setTimeout(() => {
1480
1490
  for (const k of S)
@@ -1496,7 +1506,7 @@ let dt = (T = class extends L {
1496
1506
  ...ce,
1497
1507
  ...ie,
1498
1508
  ...oe,
1499
- ...pe,
1509
+ ...ye,
1500
1510
  ...be,
1501
1511
  ...U
1502
1512
  }), T);
@@ -1595,9 +1605,9 @@ let gt = (x = class extends L {
1595
1605
  ...he,
1596
1606
  ...U,
1597
1607
  ...M,
1598
- ...ye,
1608
+ ...pe,
1599
1609
  ...B,
1600
- ...yr
1610
+ ...pr
1601
1611
  }), x);
1602
1612
  var D;
1603
1613
  let ut = (D = class extends L {
@@ -1613,7 +1623,7 @@ let ut = (D = class extends L {
1613
1623
  e["monitoring-listen"] ? b = e["monitoring-listen"] : e["monitoring-port"] && (b = `127.0.0.1:${e["monitoring-port"]}`);
1614
1624
  let w = "127.0.0.1:9091";
1615
1625
  e["debug-listen"] ? w = e["debug-listen"] : e["debug-port"] && (w = `127.0.0.1:${e["debug-port"]}`);
1616
- const y = {
1626
+ const p = {
1617
1627
  binaryPath: g,
1618
1628
  version: e.version,
1619
1629
  configPath: e.config,
@@ -1636,8 +1646,8 @@ let ut = (D = class extends L {
1636
1646
  work: { type: "FS", rootPath: e["storage-work"] }
1637
1647
  }
1638
1648
  }
1639
- }, P = r.createLocalS3(n, y);
1640
- y.binaryPath ? r.switchInstance(P) : ke(t, { version: e.version }).then(() => {
1649
+ }, P = r.createLocalS3(n, p);
1650
+ p.binaryPath ? r.switchInstance(P) : ke(t, { version: e.version }).then(() => {
1641
1651
  const S = r.switchInstance(P);
1642
1652
  setTimeout(() => {
1643
1653
  for (const k of S)
@@ -1660,7 +1670,7 @@ let ut = (D = class extends L {
1660
1670
  ...ce,
1661
1671
  ...ie,
1662
1672
  ...oe,
1663
- ...pe,
1673
+ ...ye,
1664
1674
  ...be,
1665
1675
  ...U
1666
1676
  }), D);
@@ -1703,7 +1713,7 @@ l(z, "description", "Run Platforma Backend service as docker container on curren
1703
1713
  ...he,
1704
1714
  ...U,
1705
1715
  ...M,
1706
- ...ye,
1716
+ ...pe,
1707
1717
  ...B,
1708
1718
  ...ce,
1709
1719
  ...ie,
@@ -1724,8 +1734,8 @@ let ft = (R = class extends L {
1724
1734
  e["grpc-listen"] ? b = e["grpc-listen"] : e["grpc-port"] && (b = `127.0.0.1:${e["grpc-port"]}`);
1725
1735
  let w = "127.0.0.1:9090";
1726
1736
  e["monitoring-listen"] ? w = e["monitoring-listen"] : e["monitoring-port"] && (w = `127.0.0.1:${e["monitoring-port"]}`);
1727
- let y = "127.0.0.1:9091";
1728
- e["debug-listen"] ? y = e["debug-listen"] : e["debug-port"] && (y = `127.0.0.1:${e["debug-port"]}`);
1737
+ let p = "127.0.0.1:9091";
1738
+ e["debug-listen"] ? p = e["debug-listen"] : e["debug-port"] && (p = `127.0.0.1:${e["debug-port"]}`);
1729
1739
  const P = {
1730
1740
  binaryPath: h,
1731
1741
  version: e.version,
@@ -1736,7 +1746,7 @@ let ft = (R = class extends L {
1736
1746
  configOptions: {
1737
1747
  grpc: { listen: b },
1738
1748
  monitoring: { listen: w },
1739
- debug: { listen: y },
1749
+ debug: { listen: p },
1740
1750
  license: { value: e.license, file: e["license-file"] },
1741
1751
  log: { path: o },
1742
1752
  localRoot: c,
@@ -1766,7 +1776,7 @@ let ft = (R = class extends L {
1766
1776
  ...ce,
1767
1777
  ...ie,
1768
1778
  ...oe,
1769
- ...pe,
1779
+ ...ye,
1770
1780
  ...be,
1771
1781
  ...U
1772
1782
  }), l(R, "args", {
@@ -1809,9 +1819,9 @@ l(Y, "description", "Run Platforma Backend service as docker container on curren
1809
1819
  ...he,
1810
1820
  ...U,
1811
1821
  ...M,
1812
- ...ye,
1822
+ ...pe,
1813
1823
  ...B,
1814
- ...yr
1824
+ ...pr
1815
1825
  }), l(Y, "args", {
1816
1826
  name: K.string({ required: !0 })
1817
1827
  });
@@ -1827,8 +1837,8 @@ const V = class V extends L {
1827
1837
  e["grpc-listen"] ? b = e["grpc-listen"] : e["grpc-port"] && (b = `127.0.0.1:${e["grpc-port"]}`);
1828
1838
  let w = "127.0.0.1:9090";
1829
1839
  e["monitoring-listen"] ? w = e["monitoring-listen"] : e["monitoring-port"] && (w = `127.0.0.1:${e["monitoring-port"]}`);
1830
- let y = "127.0.0.1:9091";
1831
- e["debug-listen"] ? y = e["debug-listen"] : e["debug-port"] && (y = `127.0.0.1:${e["debug-port"]}`);
1840
+ let p = "127.0.0.1:9091";
1841
+ e["debug-listen"] ? p = e["debug-listen"] : e["debug-port"] && (p = `127.0.0.1:${e["debug-port"]}`);
1832
1842
  const P = {
1833
1843
  binaryPath: h,
1834
1844
  version: e.version,
@@ -1841,7 +1851,7 @@ const V = class V extends L {
1841
1851
  configOptions: {
1842
1852
  grpc: { listen: b },
1843
1853
  monitoring: { listen: w },
1844
- debug: { listen: y },
1854
+ debug: { listen: p },
1845
1855
  license: { value: e.license, file: e["license-file"] },
1846
1856
  log: { path: o },
1847
1857
  localRoot: c,
@@ -1873,7 +1883,7 @@ l(V, "description", "Run Platforma Backend service as local process on current h
1873
1883
  ...ce,
1874
1884
  ...ie,
1875
1885
  ...oe,
1876
- ...pe,
1886
+ ...ye,
1877
1887
  ...be,
1878
1888
  ...U
1879
1889
  }), l(V, "args", {