@platforma-sdk/bootstrap 3.1.6 → 3.1.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/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);
@@ -260,12 +260,16 @@ function Wr() {
260
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?");
261
261
  let n = ["Tengo"];
262
262
  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]);
263
+ for (; n.length < yr.length; ) {
264
+ const i = Z.keyInSelect(Oe, "Choose software platform:");
265
+ if (i < 0) break;
266
+ n.push(Oe[i]);
267
267
  }
268
- return n = Array.from(new Set(n)).sort(), Jr.parse({ npmOrgName: a, orgName: e, blockName: t, softwarePlatforms: n });
268
+ n = Array.from(new Set(n)).sort();
269
+ const s = Jr.safeParse({ npmOrgName: a, orgName: e, blockName: t, softwarePlatforms: n });
270
+ if (!s.success && s.error.issues.length)
271
+ throw new Error(s.error.issues.map((i) => i.message).join("; "));
272
+ return s.data;
269
273
  }
270
274
  async function qr(a, e, t) {
271
275
  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 +609,15 @@ function X(a, e, t) {
605
609
  }
606
610
  }
607
611
  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;
612
+ 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
613
  const t = (e == null ? void 0 : e.localRoot) ?? u.instanceDir("default"), r = {
610
614
  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`
615
+ path: ((p = e == null ? void 0 : e.log) == null ? void 0 : p.path) ?? `${t}/logs/platforma.log`
612
616
  }, n = {
613
617
  listen: ((P = e == null ? void 0 : e.grpc) == null ? void 0 : P.listen) ?? "localhost:6345",
614
618
  tls: {
615
619
  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",
620
+ clientAuthMode: (($ = (y = e == null ? void 0 : e.grpc) == null ? void 0 : y.tls) == null ? void 0 : $.clientAuthMode) ?? "NoAuth",
617
621
  certFile: ((Ge = (le = e == null ? void 0 : e.grpc) == null ? void 0 : le.tls) == null ? void 0 : Ge.certFile) ?? `${t}/certs/tls.cert`,
618
622
  keyFile: ((He = (Je = e == null ? void 0 : e.grpc) == null ? void 0 : Je.tls) == null ? void 0 : He.keyFile) ?? `${t}/certs/tls.key`,
619
623
  ...(We = e == null ? void 0 : e.grpc) == null ? void 0 : We.tls
@@ -809,24 +813,24 @@ function st(a, e) {
809
813
  return new Promise((o, d) => {
810
814
  c.on("response", (g) => {
811
815
  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);
816
+ const p = new Error("failed to download archive: no HTTP status code in response from server");
817
+ c.destroy(), d(p);
814
818
  return;
815
819
  }
816
820
  if (g.statusCode !== 200) {
817
- const y = new Error(`failed to download archive: ${g.statusCode} ${g.statusMessage}`);
818
- c.destroy(), d(y);
821
+ const p = new Error(`failed to download archive: ${g.statusCode} ${g.statusMessage}`);
822
+ c.destroy(), d(p);
819
823
  return;
820
824
  }
821
825
  const h = parseInt(g.headers["content-length"] || "0", 10);
822
826
  let b = 0;
823
827
  const w = f.createWriteStream(i);
824
- g.pipe(w), g.on("data", (y) => {
825
- b += y.length;
828
+ g.pipe(w), g.on("data", (p) => {
829
+ b += p.length;
826
830
  const P = b / h * 100;
827
831
  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);
832
+ }), g.on("error", (p) => {
833
+ f.unlinkSync(i), a.error(`Failed to download Platforma Binary: ${p.message}`), c.destroy(), d(p);
830
834
  }), w.on("finish", () => {
831
835
  w.close(), a.info(" ... download done."), c.destroy(), o(i);
832
836
  });
@@ -917,7 +921,7 @@ ${r}`);
917
921
  return this.startInstance(e);
918
922
  }
919
923
  createLocal(e, t) {
920
- var o, d, g, h, b, w, y, P, S, k;
924
+ var o, d, g, h, b, w, p, P, S, k;
921
925
  const r = (t == null ? void 0 : t.binaryPath) ?? ct(t == null ? void 0 : t.version, "binaries", "platforma");
922
926
  let n = t == null ? void 0 : t.configPath;
923
927
  const s = (t == null ? void 0 : t.workdir) ?? (n ? process.cwd() : u.instanceDir(e));
@@ -935,17 +939,17 @@ ${r}`);
935
939
  }
936
940
  });
937
941
  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);
942
+ 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
943
  const c = [
940
944
  `${i.localRoot}/packages`,
941
945
  `${i.localRoot}/packages-local`,
942
946
  `${i.localRoot}/blocks-local`
943
947
  ];
944
948
  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)));
949
+ for (const y of c)
950
+ f.existsSync(y) || (this.logger.debug(` '${y}'`), f.mkdirSync(y, { recursive: !0 }));
951
+ for (const y of i.core.auth.drivers)
952
+ 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
953
  return n || (n = m.join(i.localRoot, "config.yaml"), this.logger.debug(` rendering configuration '${n}'...`), f.writeFileSync(n, rt(i))), u.setInstanceInfo(e, {
950
954
  type: "process",
951
955
  upCommands: [
@@ -1054,8 +1058,8 @@ ${r}`);
1054
1058
  this.logger.debug("creating platforma instance in 'docker s3' mode...");
1055
1059
  const n = Q("compose-backend.yaml"), s = (r == null ? void 0 : r.image) ?? gr(r == null ? void 0 : r.version);
1056
1060
  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);
1061
+ const i = (...y) => m.join(t, ...y), c = (y) => {
1062
+ const $ = i(y);
1059
1063
  return Se($, { mode: "0775" }), $;
1060
1064
  }, o = i("logs", "platforma.log");
1061
1065
  f.existsSync(o) || (f.mkdirSync(m.dirname(o), { recursive: !0 }), f.writeFileSync(o, ""));
@@ -1067,15 +1071,15 @@ ${r}`);
1067
1071
  if (h.type !== "S3")
1068
1072
  throw new Error(`${h.type} storage type is not supported for library storage`);
1069
1073
  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);
1074
+ const b = c("db"), w = c("work"), p = i("users.htpasswd");
1075
+ f.existsSync(p) || f.copyFileSync(Q("users.htpasswd"), p);
1072
1076
  const P = i("compose.yaml");
1073
1077
  f.existsSync(P) && this.logger.info(`replacing docker compose file ${P}`);
1074
1078
  const S = [];
1075
- for (const p of (r == null ? void 0 : r.customMounts) ?? [])
1079
+ for (const y of (r == null ? void 0 : r.customMounts) ?? [])
1076
1080
  S.push({
1077
- hostPath: p.hostPath,
1078
- containerPath: p.containerPath ?? p.hostPath
1081
+ hostPath: y.hostPath,
1082
+ containerPath: y.containerPath ?? y.hostPath
1079
1083
  });
1080
1084
  Ae(n, P, `pl-${e}`, /* @__PURE__ */ new Map([
1081
1085
  ["minio", {}],
@@ -1088,7 +1092,7 @@ ${r}`);
1088
1092
  MINIO_IMAGE: "quay.io/minio/minio",
1089
1093
  MINIO_STORAGE: c("minio"),
1090
1094
  PL_IMAGE: s,
1091
- PL_AUTH_HTPASSWD_PATH: y,
1095
+ PL_AUTH_HTPASSWD_PATH: p,
1092
1096
  PL_LICENSE: r == null ? void 0 : r.license,
1093
1097
  PL_LICENSE_FILE: r == null ? void 0 : r.licenseFile,
1094
1098
  PL_LOG_LEVEL: (r == null ? void 0 : r.logLevel) ?? "info",
@@ -1105,8 +1109,8 @@ ${r}`);
1105
1109
  ...this.configureDockerStorage("library", h)
1106
1110
  };
1107
1111
  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");
1112
+ for (const y of r.auth.drivers)
1113
+ y.driver === "htpasswd" && (k.PL_AUTH_HTPASSWD_PATH = m.resolve(y.path), y.path = "/etc/platforma/users.htpasswd");
1110
1114
  k.PL_AUTH_DRIVERS = JSON.stringify(r.auth.drivers);
1111
1115
  }
1112
1116
  return u.setInstanceInfo(e, {
@@ -1151,21 +1155,21 @@ ${r}`);
1151
1155
  f.existsSync(o) || (f.mkdirSync(m.dirname(o), { recursive: !0 }), f.writeFileSync(o, ""));
1152
1156
  const d = c("db"), g = c("primary"), h = c("library"), b = c("work"), w = i("users.htpasswd");
1153
1157
  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}`);
1158
+ const p = i("compose.yaml");
1159
+ f.existsSync(p) && this.logger.info(`replacing docker compose file ${p}`);
1156
1160
  const P = [];
1157
1161
  for (const $ of (r == null ? void 0 : r.customMounts) ?? [])
1158
1162
  P.push({
1159
1163
  hostPath: $.hostPath,
1160
1164
  containerPath: $.containerPath ?? $.hostPath
1161
1165
  });
1162
- this.logger.debug(`Rendering docker compose file '${y}' using '${n}' as base template`), Ae(n, y, `pl-${e}`, /* @__PURE__ */ new Map([
1166
+ this.logger.debug(`Rendering docker compose file '${p}' using '${n}' as base template`), Ae(n, p, `pl-${e}`, /* @__PURE__ */ new Map([
1163
1167
  ["backend", {
1164
1168
  platform: r == null ? void 0 : r.platformOverride,
1165
1169
  mounts: P
1166
1170
  }]
1167
1171
  ]));
1168
- const S = X((r == null ? void 0 : r.primaryStorageURL) ?? `file:${g}`, "."), k = X((r == null ? void 0 : r.libraryStorageURL) ?? `file:${h}`, "."), p = {
1172
+ const S = X((r == null ? void 0 : r.primaryStorageURL) ?? `file:${g}`, "."), k = X((r == null ? void 0 : r.libraryStorageURL) ?? `file:${h}`, "."), y = {
1169
1173
  PL_IMAGE: s,
1170
1174
  PL_AUTH_HTPASSWD_PATH: w,
1171
1175
  PL_LICENSE: r == null ? void 0 : r.license,
@@ -1182,29 +1186,29 @@ ${r}`);
1182
1186
  ...this.configureDockerStorage("primary", S),
1183
1187
  ...this.configureDockerStorage("library", k)
1184
1188
  };
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)) {
1189
+ 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
1190
  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);
1191
+ $.driver === "htpasswd" && (y.PL_AUTH_HTPASSWD_PATH = m.resolve($.path), $.path = "/etc/platforma/users.htpasswd");
1192
+ y.PL_AUTH_DRIVERS = JSON.stringify(r.auth.drivers);
1189
1193
  }
1190
1194
  return u.setInstanceInfo(e, {
1191
1195
  type: "docker",
1192
1196
  upCommands: [{
1193
1197
  cmd: "docker",
1194
- args: ["compose", `--file=${y}`, "up", "--detach", "--remove-orphans", "--pull=missing"],
1195
- envs: p,
1198
+ args: ["compose", `--file=${p}`, "up", "--detach", "--remove-orphans", "--pull=missing"],
1199
+ envs: y,
1196
1200
  runOpts: { stdio: "inherit" }
1197
1201
  }],
1198
1202
  downCommands: [{
1199
1203
  cmd: "docker",
1200
- args: ["compose", `--file=${y}`, "down"],
1201
- envs: p,
1204
+ args: ["compose", `--file=${p}`, "down"],
1205
+ envs: y,
1202
1206
  runOpts: { stdio: "inherit" }
1203
1207
  }],
1204
1208
  cleanupCommands: [{
1205
1209
  cmd: "docker",
1206
- args: ["compose", `--file=${y}`, "down", "--volumes", "--remove-orphans"],
1207
- envs: p,
1210
+ args: ["compose", `--file=${p}`, "down", "--volumes", "--remove-orphans"],
1211
+ envs: y,
1208
1212
  runOpts: { stdio: "inherit" }
1209
1213
  }],
1210
1214
  runInfo: {
@@ -1434,7 +1438,7 @@ let lt = (E = class extends L {
1434
1438
  ...he,
1435
1439
  ...U,
1436
1440
  ...M,
1437
- ...ye,
1441
+ ...pe,
1438
1442
  ...B,
1439
1443
  ...ce,
1440
1444
  ...ie,
@@ -1454,7 +1458,7 @@ let dt = (T = class extends L {
1454
1458
  e["monitoring-listen"] ? b = e["monitoring-listen"] : e["monitoring-port"] && (b = `127.0.0.1:${e["monitoring-port"]}`);
1455
1459
  let w = "127.0.0.1:9091";
1456
1460
  e["debug-listen"] ? w = e["debug-listen"] : e["debug-port"] && (w = `127.0.0.1:${e["debug-port"]}`);
1457
- const y = {
1461
+ const p = {
1458
1462
  binaryPath: g,
1459
1463
  version: e.version,
1460
1464
  configPath: e.config,
@@ -1473,8 +1477,8 @@ let dt = (T = class extends L {
1473
1477
  work: { type: "FS", rootPath: e["storage-work"] }
1474
1478
  }
1475
1479
  }
1476
- }, P = r.createLocal(n, y);
1477
- y.binaryPath ? r.switchInstance(P) : ke(t, { version: e.version }).then(() => {
1480
+ }, P = r.createLocal(n, p);
1481
+ p.binaryPath ? r.switchInstance(P) : ke(t, { version: e.version }).then(() => {
1478
1482
  const S = r.switchInstance(P);
1479
1483
  setTimeout(() => {
1480
1484
  for (const k of S)
@@ -1496,7 +1500,7 @@ let dt = (T = class extends L {
1496
1500
  ...ce,
1497
1501
  ...ie,
1498
1502
  ...oe,
1499
- ...pe,
1503
+ ...ye,
1500
1504
  ...be,
1501
1505
  ...U
1502
1506
  }), T);
@@ -1595,9 +1599,9 @@ let gt = (x = class extends L {
1595
1599
  ...he,
1596
1600
  ...U,
1597
1601
  ...M,
1598
- ...ye,
1602
+ ...pe,
1599
1603
  ...B,
1600
- ...yr
1604
+ ...pr
1601
1605
  }), x);
1602
1606
  var D;
1603
1607
  let ut = (D = class extends L {
@@ -1613,7 +1617,7 @@ let ut = (D = class extends L {
1613
1617
  e["monitoring-listen"] ? b = e["monitoring-listen"] : e["monitoring-port"] && (b = `127.0.0.1:${e["monitoring-port"]}`);
1614
1618
  let w = "127.0.0.1:9091";
1615
1619
  e["debug-listen"] ? w = e["debug-listen"] : e["debug-port"] && (w = `127.0.0.1:${e["debug-port"]}`);
1616
- const y = {
1620
+ const p = {
1617
1621
  binaryPath: g,
1618
1622
  version: e.version,
1619
1623
  configPath: e.config,
@@ -1636,8 +1640,8 @@ let ut = (D = class extends L {
1636
1640
  work: { type: "FS", rootPath: e["storage-work"] }
1637
1641
  }
1638
1642
  }
1639
- }, P = r.createLocalS3(n, y);
1640
- y.binaryPath ? r.switchInstance(P) : ke(t, { version: e.version }).then(() => {
1643
+ }, P = r.createLocalS3(n, p);
1644
+ p.binaryPath ? r.switchInstance(P) : ke(t, { version: e.version }).then(() => {
1641
1645
  const S = r.switchInstance(P);
1642
1646
  setTimeout(() => {
1643
1647
  for (const k of S)
@@ -1660,7 +1664,7 @@ let ut = (D = class extends L {
1660
1664
  ...ce,
1661
1665
  ...ie,
1662
1666
  ...oe,
1663
- ...pe,
1667
+ ...ye,
1664
1668
  ...be,
1665
1669
  ...U
1666
1670
  }), D);
@@ -1703,7 +1707,7 @@ l(z, "description", "Run Platforma Backend service as docker container on curren
1703
1707
  ...he,
1704
1708
  ...U,
1705
1709
  ...M,
1706
- ...ye,
1710
+ ...pe,
1707
1711
  ...B,
1708
1712
  ...ce,
1709
1713
  ...ie,
@@ -1724,8 +1728,8 @@ let ft = (R = class extends L {
1724
1728
  e["grpc-listen"] ? b = e["grpc-listen"] : e["grpc-port"] && (b = `127.0.0.1:${e["grpc-port"]}`);
1725
1729
  let w = "127.0.0.1:9090";
1726
1730
  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"]}`);
1731
+ let p = "127.0.0.1:9091";
1732
+ e["debug-listen"] ? p = e["debug-listen"] : e["debug-port"] && (p = `127.0.0.1:${e["debug-port"]}`);
1729
1733
  const P = {
1730
1734
  binaryPath: h,
1731
1735
  version: e.version,
@@ -1736,7 +1740,7 @@ let ft = (R = class extends L {
1736
1740
  configOptions: {
1737
1741
  grpc: { listen: b },
1738
1742
  monitoring: { listen: w },
1739
- debug: { listen: y },
1743
+ debug: { listen: p },
1740
1744
  license: { value: e.license, file: e["license-file"] },
1741
1745
  log: { path: o },
1742
1746
  localRoot: c,
@@ -1766,7 +1770,7 @@ let ft = (R = class extends L {
1766
1770
  ...ce,
1767
1771
  ...ie,
1768
1772
  ...oe,
1769
- ...pe,
1773
+ ...ye,
1770
1774
  ...be,
1771
1775
  ...U
1772
1776
  }), l(R, "args", {
@@ -1809,9 +1813,9 @@ l(Y, "description", "Run Platforma Backend service as docker container on curren
1809
1813
  ...he,
1810
1814
  ...U,
1811
1815
  ...M,
1812
- ...ye,
1816
+ ...pe,
1813
1817
  ...B,
1814
- ...yr
1818
+ ...pr
1815
1819
  }), l(Y, "args", {
1816
1820
  name: K.string({ required: !0 })
1817
1821
  });
@@ -1827,8 +1831,8 @@ const V = class V extends L {
1827
1831
  e["grpc-listen"] ? b = e["grpc-listen"] : e["grpc-port"] && (b = `127.0.0.1:${e["grpc-port"]}`);
1828
1832
  let w = "127.0.0.1:9090";
1829
1833
  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"]}`);
1834
+ let p = "127.0.0.1:9091";
1835
+ e["debug-listen"] ? p = e["debug-listen"] : e["debug-port"] && (p = `127.0.0.1:${e["debug-port"]}`);
1832
1836
  const P = {
1833
1837
  binaryPath: h,
1834
1838
  version: e.version,
@@ -1841,7 +1845,7 @@ const V = class V extends L {
1841
1845
  configOptions: {
1842
1846
  grpc: { listen: b },
1843
1847
  monitoring: { listen: w },
1844
- debug: { listen: y },
1848
+ debug: { listen: p },
1845
1849
  license: { value: e.license, file: e["license-file"] },
1846
1850
  log: { path: o },
1847
1851
  localRoot: c,
@@ -1873,7 +1877,7 @@ l(V, "description", "Run Platforma Backend service as local process on current h
1873
1877
  ...ce,
1874
1878
  ...ie,
1875
1879
  ...oe,
1876
- ...pe,
1880
+ ...ye,
1877
1881
  ...be,
1878
1882
  ...U
1879
1883
  }), l(V, "args", {