orkestrator 2.24.0-alpha → 2.25.1-alpha

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/client.js CHANGED
@@ -6191,6 +6191,7 @@ var SERVER_VALUE_FLAGS = Object.freeze([
6191
6191
  "--docker-image",
6192
6192
  "--fallback-host",
6193
6193
  "--host",
6194
+ "--loopback-client-port",
6194
6195
  "--port",
6195
6196
  "--renderer-dev-server-url",
6196
6197
  "--renderer-root",
@@ -6205,6 +6206,7 @@ var SERVER_VALUE_FLAGS = Object.freeze([
6205
6206
  ]);
6206
6207
  var SERVER_BOOLEAN_FLAGS = Object.freeze([
6207
6208
  "--allow-non-tailscale-bind",
6209
+ "--command-node",
6208
6210
  "--desktop-updater",
6209
6211
  "--desktop-web-client",
6210
6212
  "--strict-docker-owner",
@@ -7442,7 +7444,7 @@ import path4 from "path";
7442
7444
  // ../../apps/backend/package.json
7443
7445
  var package_default = {
7444
7446
  name: "@orkestrator/backend",
7445
- version: "2.24.0-alpha",
7447
+ version: "2.25.1-alpha",
7446
7448
  private: true,
7447
7449
  type: "module",
7448
7450
  exports: {
@@ -8625,6 +8627,7 @@ import { promises as fs4 } from "fs";
8625
8627
  var BACKEND_INSTANCE_DESCRIPTOR_FILE = "backend-instance.json";
8626
8628
  var BACKEND_INSTANCE_DESCRIPTOR_TYPE = "orkestrator-backend-instance";
8627
8629
  var BACKEND_INSTANCE_DESCRIPTOR_MAX_BYTES = 16 * 1024;
8630
+ var BACKEND_INSTANCE_MAX_ENDPOINTS = 8;
8628
8631
  function isRecord3(value) {
8629
8632
  return value !== null && typeof value === "object" && !Array.isArray(value);
8630
8633
  }
@@ -8638,6 +8641,17 @@ function isHttpUrl(value) {
8638
8641
  return false;
8639
8642
  }
8640
8643
  }
8644
+ function parseEndpoints(value) {
8645
+ if (!Array.isArray(value) || value.length > BACKEND_INSTANCE_MAX_ENDPOINTS) {
8646
+ throw new Error("Backend instance descriptor field is invalid: endpoints");
8647
+ }
8648
+ return value.map((entry) => {
8649
+ if (!isRecord3(entry) || entry.role !== "control" && entry.role !== "client" || !isHttpUrl(entry.url)) {
8650
+ throw new Error("Backend instance descriptor field is invalid: endpoints");
8651
+ }
8652
+ return { role: entry.role, url: entry.url };
8653
+ });
8654
+ }
8641
8655
  function parseBackendInstanceDescriptor(value) {
8642
8656
  if (!isRecord3(value))
8643
8657
  throw new Error("Backend instance descriptor must be an object");
@@ -8659,6 +8673,7 @@ function parseBackendInstanceDescriptor(value) {
8659
8673
  if (value.browserUrl !== undefined && !isHttpUrl(value.browserUrl)) {
8660
8674
  throw new Error("Backend instance descriptor field is invalid: browserUrl");
8661
8675
  }
8676
+ const endpoints = value.endpoints === undefined ? undefined : parseEndpoints(value.endpoints);
8662
8677
  if (!Number.isSafeInteger(value.publicApiSchemaVersion) || value.publicApiSchemaVersion < 1) {
8663
8678
  throw new Error("Backend instance descriptor field is invalid: publicApiSchemaVersion");
8664
8679
  }
@@ -8676,6 +8691,7 @@ function parseBackendInstanceDescriptor(value) {
8676
8691
  startedAt: text("startedAt", 64),
8677
8692
  url: value.url,
8678
8693
  ...value.browserUrl !== undefined ? { browserUrl: value.browserUrl } : {},
8694
+ ...endpoints !== undefined ? { endpoints } : {},
8679
8695
  authFile,
8680
8696
  dataDir,
8681
8697
  appVersion: text("appVersion", 64),