@wix/create-app 0.0.173 → 0.0.175

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/build/index.js CHANGED
@@ -99,7 +99,7 @@ import {
99
99
  setupTestEnv,
100
100
  writeJson,
101
101
  zod_default
102
- } from "./chunk-6UZL2DGQ.js";
102
+ } from "./chunk-YJZMSH2X.js";
103
103
  import {
104
104
  __commonJS,
105
105
  __dirname,
@@ -6841,21 +6841,21 @@ var require_stack_utils = __commonJS({
6841
6841
  return res;
6842
6842
  }
6843
6843
  parseLine(line) {
6844
- const match22 = line && line.match(re);
6845
- if (!match22) {
6844
+ const match24 = line && line.match(re);
6845
+ if (!match24) {
6846
6846
  return null;
6847
6847
  }
6848
- const ctor = match22[1] === "new";
6849
- let fname = match22[2];
6850
- const evalOrigin = match22[3];
6851
- const evalFile = match22[4];
6852
- const evalLine = Number(match22[5]);
6853
- const evalCol = Number(match22[6]);
6854
- let file = match22[7];
6855
- const lnum = match22[8];
6856
- const col = match22[9];
6857
- const native = match22[10] === "native";
6858
- const closeParen = match22[11] === ")";
6848
+ const ctor = match24[1] === "new";
6849
+ let fname = match24[2];
6850
+ const evalOrigin = match24[3];
6851
+ const evalFile = match24[4];
6852
+ const evalLine = Number(match24[5]);
6853
+ const evalCol = Number(match24[6]);
6854
+ let file = match24[7];
6855
+ const lnum = match24[8];
6856
+ const col = match24[9];
6857
+ const native = match24[10] === "native";
6858
+ const closeParen = match24[11] === ")";
6859
6859
  let method;
6860
6860
  const res = {};
6861
6861
  if (lnum) {
@@ -7279,12 +7279,12 @@ var require_lodash = __commonJS({
7279
7279
  Stack.prototype.has = stackHas;
7280
7280
  Stack.prototype.set = stackSet;
7281
7281
  function arrayLikeKeys(value2, inherited) {
7282
- var isArr = isArray2(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType13 = !isArr && !isArg && !isBuff && isTypedArray(value2), skipIndexes = isArr || isArg || isBuff || isType13, result = skipIndexes ? baseTimes(value2.length, String) : [], length = result.length;
7282
+ var isArr = isArray2(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType15 = !isArr && !isArg && !isBuff && isTypedArray(value2), skipIndexes = isArr || isArg || isBuff || isType15, result = skipIndexes ? baseTimes(value2.length, String) : [], length = result.length;
7283
7283
  for (var key in value2) {
7284
7284
  if ((inherited || hasOwnProperty2.call(value2, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
7285
7285
  (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
7286
7286
  isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
7287
- isType13 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
7287
+ isType15 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
7288
7288
  isIndex(key, length)))) {
7289
7289
  result.push(key);
7290
7290
  }
@@ -11304,14 +11304,14 @@ var require_ms = __commonJS({
11304
11304
  if (str.length > 100) {
11305
11305
  return;
11306
11306
  }
11307
- var match22 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
11307
+ var match24 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
11308
11308
  str
11309
11309
  );
11310
- if (!match22) {
11310
+ if (!match24) {
11311
11311
  return;
11312
11312
  }
11313
- var n2 = parseFloat(match22[1]);
11314
- var type = (match22[2] || "ms").toLowerCase();
11313
+ var n2 = parseFloat(match24[1]);
11314
+ var type = (match24[2] || "ms").toLowerCase();
11315
11315
  switch (type) {
11316
11316
  case "years":
11317
11317
  case "year":
@@ -11444,19 +11444,19 @@ var require_common = __commonJS({
11444
11444
  args.unshift("%O");
11445
11445
  }
11446
11446
  let index = 0;
11447
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match22, format2) => {
11448
- if (match22 === "%%") {
11447
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match24, format2) => {
11448
+ if (match24 === "%%") {
11449
11449
  return "%";
11450
11450
  }
11451
11451
  index++;
11452
11452
  const formatter = createDebug.formatters[format2];
11453
11453
  if (typeof formatter === "function") {
11454
11454
  const val = args[index];
11455
- match22 = formatter.call(self2, val);
11455
+ match24 = formatter.call(self2, val);
11456
11456
  args.splice(index, 1);
11457
11457
  index--;
11458
11458
  }
11459
- return match22;
11459
+ return match24;
11460
11460
  });
11461
11461
  createDebug.formatArgs.call(self2, args);
11462
11462
  const logFn = self2.log || createDebug.log;
@@ -11693,12 +11693,12 @@ var require_browser = __commonJS({
11693
11693
  args.splice(1, 0, c2, "color: inherit");
11694
11694
  let index = 0;
11695
11695
  let lastC = 0;
11696
- args[0].replace(/%[a-zA-Z%]/g, (match22) => {
11697
- if (match22 === "%%") {
11696
+ args[0].replace(/%[a-zA-Z%]/g, (match24) => {
11697
+ if (match24 === "%%") {
11698
11698
  return;
11699
11699
  }
11700
11700
  index++;
11701
- if (match22 === "%c") {
11701
+ if (match24 === "%c") {
11702
11702
  lastC = index;
11703
11703
  }
11704
11704
  });
@@ -12884,8 +12884,8 @@ var require_cookies = __commonJS({
12884
12884
  document.cookie = cookie.join("; ");
12885
12885
  },
12886
12886
  read: function read(name) {
12887
- var match22 = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
12888
- return match22 ? decodeURIComponent(match22[3]) : null;
12887
+ var match24 = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
12888
+ return match24 ? decodeURIComponent(match24[3]) : null;
12889
12889
  },
12890
12890
  remove: function remove(name) {
12891
12891
  this.write(name, "", Date.now() - 864e5);
@@ -13691,8 +13691,8 @@ var require_isAxiosError = __commonJS({
13691
13691
  "../../node_modules/axios/lib/helpers/isAxiosError.js"(exports, module2) {
13692
13692
  "use strict";
13693
13693
  init_esm_shims();
13694
- module2.exports = function isAxiosError(payload5) {
13695
- return typeof payload5 === "object" && payload5.isAxiosError === true;
13694
+ module2.exports = function isAxiosError(payload6) {
13695
+ return typeof payload6 === "object" && payload6.isAxiosError === true;
13696
13696
  };
13697
13697
  }
13698
13698
  });
@@ -13845,8 +13845,8 @@ var require_http_client = __commonJS({
13845
13845
  sanitizerPocEnabled: checkSanitizerPocEnabled()
13846
13846
  };
13847
13847
  }
13848
- static isHttpError(payload5) {
13849
- return !!(payload5 === null || payload5 === void 0 ? void 0 : payload5.isWixHttpError);
13848
+ static isHttpError(payload6) {
13849
+ return !!(payload6 === null || payload6 === void 0 ? void 0 : payload6.isWixHttpError);
13850
13850
  }
13851
13851
  async request(requestOptionsOrFactory, overrides2) {
13852
13852
  var _a3, _b;
@@ -15632,15 +15632,15 @@ var init_TraceState = __esm({
15632
15632
 
15633
15633
  // ../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js
15634
15634
  function parseTraceParent(traceParent) {
15635
- var match22 = TRACE_PARENT_REGEX.exec(traceParent);
15636
- if (!match22)
15635
+ var match24 = TRACE_PARENT_REGEX.exec(traceParent);
15636
+ if (!match24)
15637
15637
  return null;
15638
- if (match22[1] === "00" && match22[5])
15638
+ if (match24[1] === "00" && match24[5])
15639
15639
  return null;
15640
15640
  return {
15641
- traceId: match22[2],
15642
- spanId: match22[3],
15643
- traceFlags: parseInt(match22[4], 16)
15641
+ traceId: match24[2],
15642
+ spanId: match24[3],
15643
+ traceFlags: parseInt(match24[4], 16)
15644
15644
  };
15645
15645
  }
15646
15646
  var TRACE_PARENT_HEADER, TRACE_STATE_HEADER, VERSION2, VERSION_PART, TRACE_ID_PART, PARENT_ID_PART, FLAGS_PART, TRACE_PARENT_REGEX, W3CTraceContextPropagator;
@@ -16742,8 +16742,8 @@ var require_semver = __commonJS({
16742
16742
  }
16743
16743
  if (identifier) {
16744
16744
  const r2 = new RegExp(`^${this.options.loose ? src[t3.PRERELEASELOOSE] : src[t3.PRERELEASE]}$`);
16745
- const match22 = `-${identifier}`.match(r2);
16746
- if (!match22 || match22[1] !== identifier) {
16745
+ const match24 = `-${identifier}`.match(r2);
16746
+ if (!match24 || match24[1] !== identifier) {
16747
16747
  throw new Error(`invalid identifier: ${identifier}`);
16748
16748
  }
16749
16749
  }
@@ -17226,28 +17226,28 @@ var require_coerce = __commonJS({
17226
17226
  return null;
17227
17227
  }
17228
17228
  options = options || {};
17229
- let match22 = null;
17229
+ let match24 = null;
17230
17230
  if (!options.rtl) {
17231
- match22 = version.match(options.includePrerelease ? re[t3.COERCEFULL] : re[t3.COERCE]);
17231
+ match24 = version.match(options.includePrerelease ? re[t3.COERCEFULL] : re[t3.COERCE]);
17232
17232
  } else {
17233
17233
  const coerceRtlRegex = options.includePrerelease ? re[t3.COERCERTLFULL] : re[t3.COERCERTL];
17234
17234
  let next;
17235
- while ((next = coerceRtlRegex.exec(version)) && (!match22 || match22.index + match22[0].length !== version.length)) {
17236
- if (!match22 || next.index + next[0].length !== match22.index + match22[0].length) {
17237
- match22 = next;
17235
+ while ((next = coerceRtlRegex.exec(version)) && (!match24 || match24.index + match24[0].length !== version.length)) {
17236
+ if (!match24 || next.index + next[0].length !== match24.index + match24[0].length) {
17237
+ match24 = next;
17238
17238
  }
17239
17239
  coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
17240
17240
  }
17241
17241
  coerceRtlRegex.lastIndex = -1;
17242
17242
  }
17243
- if (match22 === null) {
17243
+ if (match24 === null) {
17244
17244
  return null;
17245
17245
  }
17246
- const major = match22[2];
17247
- const minor = match22[3] || "0";
17248
- const patch = match22[4] || "0";
17249
- const prerelease = options.includePrerelease && match22[5] ? `-${match22[5]}` : "";
17250
- const build = options.includePrerelease && match22[6] ? `+${match22[6]}` : "";
17246
+ const major = match24[2];
17247
+ const minor = match24[3] || "0";
17248
+ const patch = match24[4] || "0";
17249
+ const prerelease = options.includePrerelease && match24[5] ? `-${match24[5]}` : "";
17250
+ const build = options.includePrerelease && match24[6] ? `+${match24[6]}` : "";
17251
17251
  return parse2(`${major}.${minor}.${patch}${prerelease}${build}`, options);
17252
17252
  };
17253
17253
  module2.exports = coerce;
@@ -23248,10 +23248,10 @@ var require_utils6 = __commonJS({
23248
23248
  if (!type || typeof type.getFields !== "function" || type[symbols_1.OTEL_PATCHED_SYMBOL]) {
23249
23249
  return;
23250
23250
  }
23251
- const fields8 = type.getFields();
23251
+ const fields9 = type.getFields();
23252
23252
  type[symbols_1.OTEL_PATCHED_SYMBOL] = true;
23253
- Object.keys(fields8).forEach((key) => {
23254
- const field = fields8[key];
23253
+ Object.keys(fields9).forEach((key) => {
23254
+ const field = fields9[key];
23255
23255
  if (!field) {
23256
23256
  return;
23257
23257
  }
@@ -24952,7 +24952,7 @@ var require_instrumentation5 = __commonJS({
24952
24952
  }
24953
24953
  _patchCallbackQuery(span, parentContext) {
24954
24954
  return (originalCallback) => {
24955
- return function(err, results, fields8) {
24955
+ return function(err, results, fields9) {
24956
24956
  if (err) {
24957
24957
  span.setStatus({
24958
24958
  code: api_1.SpanStatusCode.ERROR,
@@ -25265,7 +25265,7 @@ var require_instrumentation6 = __commonJS({
25265
25265
  }
25266
25266
  _patchCallbackQuery(endSpan) {
25267
25267
  return (originalCallback) => {
25268
- return function(err, results, fields8) {
25268
+ return function(err, results, fields9) {
25269
25269
  endSpan(err, results);
25270
25270
  return originalCallback(...arguments);
25271
25271
  };
@@ -30873,20 +30873,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
30873
30873
  let debugOption;
30874
30874
  let debugHost = "127.0.0.1";
30875
30875
  let debugPort = "9229";
30876
- let match22;
30877
- if ((match22 = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
30878
- debugOption = match22[1];
30879
- } else if ((match22 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
30880
- debugOption = match22[1];
30881
- if (/^\d+$/.test(match22[3])) {
30882
- debugPort = match22[3];
30876
+ let match24;
30877
+ if ((match24 = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
30878
+ debugOption = match24[1];
30879
+ } else if ((match24 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
30880
+ debugOption = match24[1];
30881
+ if (/^\d+$/.test(match24[3])) {
30882
+ debugPort = match24[3];
30883
30883
  } else {
30884
- debugHost = match22[3];
30884
+ debugHost = match24[3];
30885
30885
  }
30886
- } else if ((match22 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
30887
- debugOption = match22[1];
30888
- debugHost = match22[3];
30889
- debugPort = match22[4];
30886
+ } else if ((match24 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
30887
+ debugOption = match24[1];
30888
+ debugHost = match24[3];
30889
+ debugPort = match24[4];
30890
30890
  }
30891
30891
  if (debugOption && debugPort !== "0") {
30892
30892
  return `${debugOption}=${debugHost}:${parseInt(debugPort) + 1}`;
@@ -31789,7 +31789,7 @@ var require_batch_queue = __commonJS({
31789
31789
  var fieldCounts = {};
31790
31790
  var batchLen = batch.e.length;
31791
31791
  var events = batch.e.map(function(event) {
31792
- var fields8 = Object.keys(event.f).map(function(field) {
31792
+ var fields9 = Object.keys(event.f).map(function(field) {
31793
31793
  var value2 = event.f[field];
31794
31794
  var key = field + "|" + value2;
31795
31795
  fieldCounts[key] = fieldCounts[key] || 0;
@@ -31797,12 +31797,12 @@ var require_batch_queue = __commonJS({
31797
31797
  return [field, value2, key];
31798
31798
  });
31799
31799
  return _extends2({}, event, {
31800
- f: fields8
31800
+ f: fields9
31801
31801
  });
31802
31802
  });
31803
31803
  var globalFields = {};
31804
31804
  events = events.map(function(event) {
31805
- var fields8 = event.f.reduce(function(res, _ref) {
31805
+ var fields9 = event.f.reduce(function(res, _ref) {
31806
31806
  var _ref2 = _slicedToArray(_ref, 3), field = _ref2[0], value2 = _ref2[1], key = _ref2[2];
31807
31807
  if (fieldCounts[key] === batchLen) {
31808
31808
  globalFields[field] = value2;
@@ -31812,7 +31812,7 @@ var require_batch_queue = __commonJS({
31812
31812
  return res;
31813
31813
  }, {});
31814
31814
  return _extends2({}, event, {
31815
- f: fields8
31815
+ f: fields9
31816
31816
  });
31817
31817
  });
31818
31818
  return _extends2({}, batch, {
@@ -31996,8 +31996,8 @@ var require_bi_logger = __commonJS({
31996
31996
  this._eventTransformer = options.eventTransformer || function(event) {
31997
31997
  return event;
31998
31998
  };
31999
- this._payloadTransformer = options.payloadTransformer || function(payload5) {
32000
- return payload5;
31999
+ this._payloadTransformer = options.payloadTransformer || function(payload6) {
32000
+ return payload6;
32001
32001
  };
32002
32002
  this._consentPolicyGetter = options.consentPolicyGetter || function() {
32003
32003
  return null;
@@ -32072,17 +32072,17 @@ var require_bi_logger = __commonJS({
32072
32072
  }
32073
32073
  }, {
32074
32074
  key: "_send",
32075
- value: function _send(payload5) {
32075
+ value: function _send(payload6) {
32076
32076
  var _this2 = this;
32077
32077
  var context2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
32078
32078
  return Promise.all(this._publishers.map(function(publisher) {
32079
- var cloned = _extends2({}, payload5);
32079
+ var cloned = _extends2({}, payload6);
32080
32080
  return Promise.resolve().then(function() {
32081
32081
  return publisher(cloned, context2);
32082
32082
  }).catch(function(error) {
32083
32083
  return _this2._onPublisherFailHandler(error, {
32084
32084
  publisherName: publisher.name,
32085
- payload: payload5
32085
+ payload: payload6
32086
32086
  });
32087
32087
  });
32088
32088
  })).then(function() {
@@ -32605,11 +32605,11 @@ var require_ini = __commonJS({
32605
32605
  lines.forEach(function(line, _2, __) {
32606
32606
  if (!line || line.match(/^\s*[;#]/))
32607
32607
  return;
32608
- var match22 = line.match(re);
32609
- if (!match22)
32608
+ var match24 = line.match(re);
32609
+ if (!match24)
32610
32610
  return;
32611
- if (match22[1] !== void 0) {
32612
- section = unsafe(match22[1]);
32611
+ if (match24[1] !== void 0) {
32612
+ section = unsafe(match24[1]);
32613
32613
  if (section === "__proto__") {
32614
32614
  p = {};
32615
32615
  return;
@@ -32617,10 +32617,10 @@ var require_ini = __commonJS({
32617
32617
  p = out[section] = out[section] || {};
32618
32618
  return;
32619
32619
  }
32620
- var key = unsafe(match22[2]);
32620
+ var key = unsafe(match24[2]);
32621
32621
  if (key === "__proto__")
32622
32622
  return;
32623
- var value2 = match22[3] ? unsafe(match22[4]) : true;
32623
+ var value2 = match24[3] ? unsafe(match24[4]) : true;
32624
32624
  switch (value2) {
32625
32625
  case "true":
32626
32626
  case "false":
@@ -35480,12 +35480,12 @@ var getAllProperties = (object) => {
35480
35480
  };
35481
35481
  function autoBind(self2, { include, exclude } = {}) {
35482
35482
  const filter = (key) => {
35483
- const match22 = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
35483
+ const match24 = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
35484
35484
  if (include) {
35485
- return include.some(match22);
35485
+ return include.some(match24);
35486
35486
  }
35487
35487
  if (exclude) {
35488
- return !exclude.some(match22);
35488
+ return !exclude.some(match24);
35489
35489
  }
35490
35490
  return true;
35491
35491
  };
@@ -42111,12 +42111,12 @@ init_esm_shims();
42111
42111
  function schemaSerializer(rootSchema, depSchemas = {}, converterSets) {
42112
42112
  return function serialize(json = {}, converterType) {
42113
42113
  return typeof json === "string" ? json : transformSchema(rootSchema, json);
42114
- function transformSchema(schema3, payload5) {
42114
+ function transformSchema(schema3, payload6) {
42115
42115
  const result = {};
42116
- if ([null, void 0].includes(payload5)) {
42117
- return payload5;
42116
+ if ([null, void 0].includes(payload6)) {
42117
+ return payload6;
42118
42118
  }
42119
- Object.entries(payload5).forEach(([key, val]) => {
42119
+ Object.entries(payload6).forEach(([key, val]) => {
42120
42120
  const renderedSchemaName = schema3[key];
42121
42121
  const { schemaName, schemaType } = parseLeanSchemaRef(renderedSchemaName);
42122
42122
  const isMap = schemaType === "Map";
@@ -42446,12 +42446,12 @@ function resolveComWixpressAccountApiAccountServiceUrl(opts) {
42446
42446
  };
42447
42447
  return resolveUrl(Object.assign(opts, { domainToMappings }));
42448
42448
  }
42449
- function getMyAccount(payload5) {
42449
+ function getMyAccount(payload6) {
42450
42450
  var _a3 = serializer(_getMyAccountRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
42451
42451
  var fromRes = serializer(_accountResponse, { _account }).fromJSON;
42452
42452
  function __getMyAccount(_a4) {
42453
42453
  var host = _a4.host;
42454
- var serializedData = toReq(payload5);
42454
+ var serializedData = toReq(payload6);
42455
42455
  var metadata = {
42456
42456
  entityFqdn: "wix.identity.account.v2.account",
42457
42457
  method: "GET",
@@ -42587,12 +42587,12 @@ function resolveWixIdentityOauth2V1Oauth2NgUrl(opts) {
42587
42587
  };
42588
42588
  return resolveUrl(Object.assign(opts, { domainToMappings }));
42589
42589
  }
42590
- function token(payload5) {
42590
+ function token(payload6) {
42591
42591
  var _a3 = serializer(_rawHttpRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
42592
42592
  var fromRes = serializer(_rawHttpResponse, {}).fromJSON;
42593
42593
  function __token(_a4) {
42594
42594
  var host = _a4.host;
42595
- var serializedData = toReq(payload5);
42595
+ var serializedData = toReq(payload6);
42596
42596
  var metadata = {
42597
42597
  entityFqdn: "wix.identity.oauth.v1.refresh_token",
42598
42598
  method: "POST",
@@ -42614,12 +42614,12 @@ function token(payload5) {
42614
42614
  __token.__isAmbassador = true;
42615
42615
  return __token;
42616
42616
  }
42617
- function deviceCode(payload5) {
42617
+ function deviceCode(payload6) {
42618
42618
  var _a3 = serializer(_deviceCodeRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
42619
42619
  var fromRes = serializer(_deviceCodeResponse, {}).fromJSON;
42620
42620
  function __deviceCode(_a4) {
42621
42621
  var host = _a4.host;
42622
- var serializedData = toReq(payload5);
42622
+ var serializedData = toReq(payload6);
42623
42623
  var metadata = {
42624
42624
  entityFqdn: "wix.identity.oauth.v1.refresh_token",
42625
42625
  method: "GET",
@@ -42641,12 +42641,12 @@ function deviceCode(payload5) {
42641
42641
  __deviceCode.__isAmbassador = true;
42642
42642
  return __deviceCode;
42643
42643
  }
42644
- function revokeRefreshToken(payload5) {
42644
+ function revokeRefreshToken(payload6) {
42645
42645
  var _a3 = serializer(_revokeRefreshTokenRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
42646
42646
  var fromRes = serializer(_revokeRefreshTokenResponse, {}).fromJSON;
42647
42647
  function __revokeRefreshToken(_a4) {
42648
42648
  var host = _a4.host;
42649
- var serializedData = toReq(payload5);
42649
+ var serializedData = toReq(payload6);
42650
42650
  var metadata = {
42651
42651
  entityFqdn: "wix.identity.oauth.v1.refresh_token",
42652
42652
  method: "POST",
@@ -42898,7 +42898,7 @@ var AuthClient = class {
42898
42898
  }
42899
42899
  async createToken(req) {
42900
42900
  try {
42901
- const payload5 = {
42901
+ const payload6 = {
42902
42902
  clientId,
42903
42903
  grantType: "urn:ietf:params:oauth:grant-type:device_code",
42904
42904
  scope: "offline_access",
@@ -42907,7 +42907,7 @@ var AuthClient = class {
42907
42907
  const tokenData = await pRetry(async () => {
42908
42908
  const { data, requestId } = await this.httpClient.request(
42909
42909
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
42910
- token(payload5)
42910
+ token(payload6)
42911
42911
  );
42912
42912
  const result = tokenSchema.safeParse(data);
42913
42913
  if (result.success) {
@@ -42938,7 +42938,7 @@ var AuthClient = class {
42938
42938
  }
42939
42939
  async renewToken(req) {
42940
42940
  try {
42941
- const payload5 = {
42941
+ const payload6 = {
42942
42942
  clientId,
42943
42943
  grantType: "refresh_token",
42944
42944
  ...req
@@ -42946,7 +42946,7 @@ var AuthClient = class {
42946
42946
  const { data } = await pRetry(
42947
42947
  () => this.httpClient.request(
42948
42948
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
42949
- token(payload5)
42949
+ token(payload6)
42950
42950
  ),
42951
42951
  this.retryOptions
42952
42952
  );
@@ -43112,6 +43112,18 @@ var SiteAuthData = (0, import_variant12.variant)({
43112
43112
  Unauthenticated: {},
43113
43113
  Expired: (0, import_variant12.fields)()
43114
43114
  });
43115
+ async function readSiteAuthData(siteId) {
43116
+ const siteAuthDataFilePath = getSiteAuthDataFilePath(siteId);
43117
+ if (!await pathExists(siteAuthDataFilePath)) {
43118
+ return SiteAuthData.Unauthenticated();
43119
+ }
43120
+ const authFileContents = await readJson(siteAuthDataFilePath);
43121
+ const savedSiteAuthData = siteAuthSchema.parse(authFileContents);
43122
+ if (!isValidToken(savedSiteAuthData)) {
43123
+ return SiteAuthData.Expired(savedSiteAuthData);
43124
+ }
43125
+ return SiteAuthData.Authenticated(savedSiteAuthData);
43126
+ }
43115
43127
  async function saveAuthData(authData, siteId) {
43116
43128
  try {
43117
43129
  const targetFilePath = siteId ? getSiteAuthDataFilePath(siteId) : getAccountAuthDataFilePath();
@@ -43175,13 +43187,14 @@ function createApiKeyAuthState({
43175
43187
  siteId
43176
43188
  }) {
43177
43189
  return {
43178
- getAccessToken: async () => token2,
43190
+ getAccessToken: async (_options) => token2,
43179
43191
  getRefreshToken: () => {
43180
43192
  throw new Error("API key auth does not support refresh tokens");
43181
43193
  },
43182
- getRequestHeaders: () => {
43183
- if (siteId) {
43184
- return { "wix-site-id": siteId };
43194
+ getRequestHeaders: (options) => {
43195
+ const siteIdToUse = siteId ?? options?.siteId;
43196
+ if (siteIdToUse) {
43197
+ return { "wix-site-id": siteIdToUse };
43185
43198
  }
43186
43199
  return { "wix-account-id": accountId };
43187
43200
  },
@@ -43192,8 +43205,8 @@ var apiKeyAuthStrategy = {
43192
43205
  async isLoggedIn({ siteId } = {}) {
43193
43206
  const apiKeyAuth = await readApiKeyAuthData();
43194
43207
  return (0, import_variant13.match)(apiKeyAuth, {
43195
- Authenticated: ({ payload: payload5 }) => {
43196
- return createApiKeyAuthState({ authData: payload5, siteId });
43208
+ Authenticated: ({ payload: payload6 }) => {
43209
+ return createApiKeyAuthState({ authData: payload6, siteId });
43197
43210
  },
43198
43211
  Unauthenticated: () => null
43199
43212
  });
@@ -43218,7 +43231,7 @@ var apiKeyAuthStrategy = {
43218
43231
  }
43219
43232
  };
43220
43233
 
43221
- // ../cli-auth/src/auth-strategies/account-auth-strategy.ts
43234
+ // ../cli-auth/src/auth-strategies/unified-auth-strategy.ts
43222
43235
  init_esm_shims();
43223
43236
 
43224
43237
  // ../../node_modules/p-limit/index.js
@@ -43356,7 +43369,11 @@ function validateConcurrency(concurrency) {
43356
43369
  }
43357
43370
  }
43358
43371
 
43372
+ // ../cli-auth/src/auth-strategies/unified-auth-strategy.ts
43373
+ var import_variant16 = __toESM(require_lib(), 1);
43374
+
43359
43375
  // ../cli-auth/src/auth-strategies/account-auth-strategy.ts
43376
+ init_esm_shims();
43360
43377
  var import_variant14 = __toESM(require_lib(), 1);
43361
43378
 
43362
43379
  // ../../node_modules/p-wait-for/index.js
@@ -43499,7 +43516,16 @@ pWaitFor.resolveWith = (value2) => ({ [resolveValue]: value2 });
43499
43516
 
43500
43517
  // ../cli-auth/src/auth-strategies/account-auth-strategy.ts
43501
43518
  var seconds = (n2) => 1e3 * n2;
43502
- async function waitForLogin({ deviceCode: deviceCode2, expiresIn }, { signal }) {
43519
+ async function finalizeLogin(tokenData) {
43520
+ const userInfo2 = await client.userInfo({
43521
+ accessToken: tokenData.accessToken
43522
+ });
43523
+ const result = { ...tokenData, userInfo: userInfo2 };
43524
+ await deleteAuthData();
43525
+ await saveAuthData(result);
43526
+ return result;
43527
+ }
43528
+ async function loginWithDeviceCode({ deviceCode: deviceCode2, expiresIn }, { signal }) {
43503
43529
  try {
43504
43530
  const authData = await pWaitFor(
43505
43531
  async () => {
@@ -43516,17 +43542,11 @@ async function waitForLogin({ deviceCode: deviceCode2, expiresIn }, { signal })
43516
43542
  }
43517
43543
  },
43518
43544
  {
43519
- interval: getTestOverrides().waitForLoginInterval ?? seconds(3),
43545
+ interval: getTestOverrides().loginWithDeviceCodeInterval ?? seconds(3),
43520
43546
  timeout: { milliseconds: seconds(expiresIn), signal }
43521
43547
  }
43522
43548
  );
43523
- const userInfo2 = await client.userInfo({
43524
- accessToken: authData.accessToken
43525
- });
43526
- const result = { ...authData, userInfo: userInfo2 };
43527
- await deleteAuthData();
43528
- await saveAuthData(result);
43529
- return result;
43549
+ return await finalizeLogin(authData);
43530
43550
  } catch (error) {
43531
43551
  if (error instanceof TimeoutError) {
43532
43552
  throw new CliError({
@@ -43537,7 +43557,22 @@ async function waitForLogin({ deviceCode: deviceCode2, expiresIn }, { signal })
43537
43557
  throw error;
43538
43558
  }
43539
43559
  }
43540
- async function renewAccountAuth({ refreshToken, userInfo: userInfo2 }) {
43560
+ async function loginWithRefreshToken({
43561
+ refreshToken
43562
+ }) {
43563
+ const renewTokenResult = await client.renewToken({ refreshToken });
43564
+ if ((0, import_variant14.isType)(renewTokenResult, RenewTokenData.TokenRenewed)) {
43565
+ return await finalizeLogin(renewTokenResult.payload);
43566
+ }
43567
+ throw new CliError({
43568
+ code: CliErrorCode.FailedToLoginWithRefreshToken(),
43569
+ cause: null
43570
+ });
43571
+ }
43572
+ async function renewAccountAuth({
43573
+ refreshToken,
43574
+ userInfo: userInfo2
43575
+ }) {
43541
43576
  const renewTokenResult = await client.renewToken({ refreshToken });
43542
43577
  if ((0, import_variant14.isType)(renewTokenResult, RenewTokenData.TokenRenewed)) {
43543
43578
  await saveAuthData({ ...renewTokenResult.payload, userInfo: userInfo2 });
@@ -43561,26 +43596,90 @@ async function getNonExpiredAccountAuth() {
43561
43596
  }
43562
43597
  });
43563
43598
  }
43564
- function createAccountAuthState({
43599
+
43600
+ // ../cli-auth/src/auth-strategies/site-auth-strategy.ts
43601
+ init_esm_shims();
43602
+ var import_variant15 = __toESM(require_lib(), 1);
43603
+ async function renewSiteAuth({
43604
+ accountRefreshToken,
43605
+ siteId
43606
+ }) {
43607
+ const renewTokenResult = await client.renewToken({
43608
+ refreshToken: accountRefreshToken,
43609
+ siteId
43610
+ });
43611
+ if ((0, import_variant15.isType)(renewTokenResult, RenewTokenData.TokenRenewed)) {
43612
+ await saveAuthData(renewTokenResult.payload, siteId);
43613
+ }
43614
+ return renewTokenResult;
43615
+ }
43616
+ var AuthenticationResult = (0, import_variant15.variant)({
43617
+ Ok: (0, import_variant15.payload)(),
43618
+ RefreshTokenRevoked: (0, import_variant15.fields)()
43619
+ });
43620
+ async function ensureAuthenticatedToSite({
43621
+ siteId,
43622
+ accountRefreshToken
43623
+ }) {
43624
+ const siteAuthStatus = await readSiteAuthData(siteId);
43625
+ return (0, import_variant15.matcher)(siteAuthStatus).with({ Authenticated: (data) => AuthenticationResult.Ok(data) }).when(["Unauthenticated", "Expired"], async () => {
43626
+ const renewTokenResult = await renewSiteAuth({
43627
+ accountRefreshToken,
43628
+ siteId
43629
+ });
43630
+ return (0, import_variant15.match)(renewTokenResult, {
43631
+ TokenRenewed: ({ payload: payload6 }) => AuthenticationResult.Ok(payload6),
43632
+ RefreshTokenRevoked: ({ cause }) => {
43633
+ return AuthenticationResult.RefreshTokenRevoked({ cause });
43634
+ }
43635
+ });
43636
+ }).complete();
43637
+ }
43638
+
43639
+ // ../cli-auth/src/auth-strategies/unified-auth-strategy.ts
43640
+ async function createAuthState({
43565
43641
  userInfo: userInfo2,
43566
43642
  ...initialTokenData
43567
43643
  }) {
43568
43644
  const limiter = pLimit(1);
43569
- let tokenData = { ...initialTokenData };
43645
+ let accountTokenData = { ...initialTokenData };
43646
+ const siteTokensDataCache = /* @__PURE__ */ new Map();
43647
+ async function getOrEnsureSiteAuth(siteId) {
43648
+ const cached = siteTokensDataCache.get(siteId);
43649
+ if (cached && isValidToken(cached)) {
43650
+ return cached;
43651
+ }
43652
+ const siteAuthResult = await ensureAuthenticatedToSite({
43653
+ siteId,
43654
+ accountRefreshToken: accountTokenData.refreshToken
43655
+ });
43656
+ if (!(0, import_variant16.isType)(siteAuthResult, AuthenticationResult.Ok)) {
43657
+ throw new CliError({
43658
+ code: CliErrorCode.FailedToRenewAuthTokenRefreshTokenRevoked(),
43659
+ cause: siteAuthResult.cause
43660
+ });
43661
+ }
43662
+ const siteTokenData = siteAuthResult.payload;
43663
+ siteTokensDataCache.set(siteId, siteTokenData);
43664
+ return siteTokenData;
43665
+ }
43570
43666
  return {
43571
- getAccessToken: () => {
43667
+ getAccessToken: ({ siteId } = {}) => {
43572
43668
  return limiter(async () => {
43573
- if (isValidToken(tokenData)) {
43574
- return tokenData.accessToken;
43669
+ if (siteId) {
43670
+ return (await getOrEnsureSiteAuth(siteId)).accessToken;
43671
+ }
43672
+ if (isValidToken(accountTokenData)) {
43673
+ return accountTokenData.accessToken;
43575
43674
  }
43576
43675
  const renewTokenResult = await renewAccountAuth({
43577
- ...tokenData,
43676
+ ...accountTokenData,
43578
43677
  userInfo: userInfo2
43579
43678
  });
43580
- return (0, import_variant14.match)(renewTokenResult, {
43679
+ return (0, import_variant16.match)(renewTokenResult, {
43581
43680
  TokenRenewed: ({ payload: newTokenData }) => {
43582
- tokenData = newTokenData;
43583
- return tokenData.accessToken;
43681
+ accountTokenData = newTokenData;
43682
+ return accountTokenData.accessToken;
43584
43683
  },
43585
43684
  RefreshTokenRevoked: ({ cause }) => {
43586
43685
  throw new CliError({
@@ -43591,42 +43690,31 @@ function createAccountAuthState({
43591
43690
  });
43592
43691
  });
43593
43692
  },
43594
- getRefreshToken: () => tokenData.refreshToken,
43693
+ getRefreshToken: () => accountTokenData.refreshToken,
43595
43694
  userInfo: userInfo2
43596
43695
  };
43597
43696
  }
43598
- var accountAuthStrategy = {
43697
+ var unifiedAuthStrategy = {
43599
43698
  async isLoggedIn() {
43600
43699
  const apiKeyAuth = await apiKeyAuthStrategy.isLoggedIn();
43601
43700
  if (apiKeyAuth) {
43602
43701
  return apiKeyAuth;
43603
43702
  }
43604
43703
  const accountAuth = await getNonExpiredAccountAuth();
43605
- if (accountAuth) {
43606
- return createAccountAuthState(accountAuth);
43704
+ if (!accountAuth) {
43705
+ return null;
43607
43706
  }
43608
- return null;
43707
+ return await createAuthState(accountAuth);
43609
43708
  },
43610
43709
  async login({ deviceCode: deviceCode2, signal }) {
43611
- const accountAuth = await waitForLogin(deviceCode2, { signal });
43612
- return createAccountAuthState(accountAuth);
43710
+ const accountAuth = await loginWithDeviceCode(deviceCode2, {
43711
+ signal
43712
+ });
43713
+ return await createAuthState(accountAuth);
43613
43714
  },
43614
43715
  async loginWithRefreshToken({ refreshToken }) {
43615
- const renewTokenResult = await client.renewToken({ refreshToken });
43616
- if ((0, import_variant14.isType)(renewTokenResult, RenewTokenData.TokenRenewed)) {
43617
- const newTokenData = renewTokenResult.payload;
43618
- const userInfo2 = await client.userInfo({
43619
- accessToken: newTokenData.accessToken
43620
- });
43621
- const result = { ...newTokenData, userInfo: userInfo2 };
43622
- await deleteAuthData();
43623
- await saveAuthData(result);
43624
- return createAccountAuthState(result);
43625
- }
43626
- throw new CliError({
43627
- code: CliErrorCode.FailedToLoginWithRefreshToken(),
43628
- cause: null
43629
- });
43716
+ const authData = await loginWithRefreshToken({ refreshToken });
43717
+ return await createAuthState(authData);
43630
43718
  }
43631
43719
  };
43632
43720
 
@@ -44630,9 +44718,9 @@ init_esm_shims();
44630
44718
  var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
44631
44719
  function parseDateTimeSkeleton(skeleton) {
44632
44720
  var result = {};
44633
- skeleton.replace(DATE_TIME_REGEX, function(match22) {
44634
- var len = match22.length;
44635
- switch (match22[0]) {
44721
+ skeleton.replace(DATE_TIME_REGEX, function(match24) {
44722
+ var len = match24.length;
44723
+ switch (match24[0]) {
44636
44724
  // Era
44637
44725
  case "G":
44638
44726
  result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
@@ -46642,21 +46730,21 @@ if (REGEX_SUPPORTS_U_AND_Y) {
46642
46730
  matchIdentifierAtIndex = function matchIdentifierAtIndex2(s2, index) {
46643
46731
  var _a3;
46644
46732
  IDENTIFIER_PREFIX_RE_1.lastIndex = index;
46645
- var match22 = IDENTIFIER_PREFIX_RE_1.exec(s2);
46646
- return (_a3 = match22[1]) !== null && _a3 !== void 0 ? _a3 : "";
46733
+ var match24 = IDENTIFIER_PREFIX_RE_1.exec(s2);
46734
+ return (_a3 = match24[1]) !== null && _a3 !== void 0 ? _a3 : "";
46647
46735
  };
46648
46736
  } else {
46649
46737
  matchIdentifierAtIndex = function matchIdentifierAtIndex2(s2, index) {
46650
- var match22 = [];
46738
+ var match24 = [];
46651
46739
  while (true) {
46652
46740
  var c2 = codePointAt(s2, index);
46653
46741
  if (c2 === void 0 || _isWhiteSpace(c2) || _isPatternSyntax(c2)) {
46654
46742
  break;
46655
46743
  }
46656
- match22.push(c2);
46744
+ match24.push(c2);
46657
46745
  index += c2 >= 65536 ? 2 : 1;
46658
46746
  }
46659
- return fromCodePoint.apply(void 0, match22);
46747
+ return fromCodePoint.apply(void 0, match24);
46660
46748
  };
46661
46749
  }
46662
46750
  var IDENTIFIER_PREFIX_RE_1;
@@ -49079,7 +49167,7 @@ var Interpolator = class {
49079
49167
  this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
49080
49168
  }
49081
49169
  interpolate(str, data, lng, options) {
49082
- let match22;
49170
+ let match24;
49083
49171
  let value2;
49084
49172
  let replaces;
49085
49173
  const defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
@@ -49113,17 +49201,17 @@ var Interpolator = class {
49113
49201
  }];
49114
49202
  todos.forEach((todo) => {
49115
49203
  replaces = 0;
49116
- while (match22 = todo.regex.exec(str)) {
49117
- const matchedVar = match22[1].trim();
49204
+ while (match24 = todo.regex.exec(str)) {
49205
+ const matchedVar = match24[1].trim();
49118
49206
  value2 = handleFormat(matchedVar);
49119
49207
  if (value2 === void 0) {
49120
49208
  if (typeof missingInterpolationHandler === "function") {
49121
- const temp = missingInterpolationHandler(str, match22, options);
49209
+ const temp = missingInterpolationHandler(str, match24, options);
49122
49210
  value2 = isString2(temp) ? temp : "";
49123
49211
  } else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {
49124
49212
  value2 = "";
49125
49213
  } else if (skipOnVariables) {
49126
- value2 = match22[0];
49214
+ value2 = match24[0];
49127
49215
  continue;
49128
49216
  } else {
49129
49217
  this.logger.warn(`missed to pass in variable ${matchedVar} for interpolating ${str}`);
@@ -49133,10 +49221,10 @@ var Interpolator = class {
49133
49221
  value2 = makeString(value2);
49134
49222
  }
49135
49223
  const safeValue = todo.safeValue(value2);
49136
- str = str.replace(match22[0], safeValue);
49224
+ str = str.replace(match24[0], safeValue);
49137
49225
  if (skipOnVariables) {
49138
49226
  todo.regex.lastIndex += value2.length;
49139
- todo.regex.lastIndex -= match22[0].length;
49227
+ todo.regex.lastIndex -= match24[0].length;
49140
49228
  } else {
49141
49229
  todo.regex.lastIndex = 0;
49142
49230
  }
@@ -49150,7 +49238,7 @@ var Interpolator = class {
49150
49238
  }
49151
49239
  nest(str, fc) {
49152
49240
  let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
49153
- let match22;
49241
+ let match24;
49154
49242
  let value2;
49155
49243
  let clonedOptions;
49156
49244
  const handleHasOptions = (key, inheritedOptions) => {
@@ -49178,7 +49266,7 @@ var Interpolator = class {
49178
49266
  if (clonedOptions.defaultValue && clonedOptions.defaultValue.indexOf(this.prefix) > -1) delete clonedOptions.defaultValue;
49179
49267
  return key;
49180
49268
  };
49181
- while (match22 = this.nestingRegexp.exec(str)) {
49269
+ while (match24 = this.nestingRegexp.exec(str)) {
49182
49270
  let formatters = [];
49183
49271
  clonedOptions = {
49184
49272
  ...options
@@ -49187,26 +49275,26 @@ var Interpolator = class {
49187
49275
  clonedOptions.applyPostProcessor = false;
49188
49276
  delete clonedOptions.defaultValue;
49189
49277
  let doReduce = false;
49190
- if (match22[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(match22[1])) {
49191
- const r2 = match22[1].split(this.formatSeparator).map((elem) => elem.trim());
49192
- match22[1] = r2.shift();
49278
+ if (match24[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(match24[1])) {
49279
+ const r2 = match24[1].split(this.formatSeparator).map((elem) => elem.trim());
49280
+ match24[1] = r2.shift();
49193
49281
  formatters = r2;
49194
49282
  doReduce = true;
49195
49283
  }
49196
- value2 = fc(handleHasOptions.call(this, match22[1].trim(), clonedOptions), clonedOptions);
49197
- if (value2 && match22[0] === str && !isString2(value2)) return value2;
49284
+ value2 = fc(handleHasOptions.call(this, match24[1].trim(), clonedOptions), clonedOptions);
49285
+ if (value2 && match24[0] === str && !isString2(value2)) return value2;
49198
49286
  if (!isString2(value2)) value2 = makeString(value2);
49199
49287
  if (!value2) {
49200
- this.logger.warn(`missed to resolve ${match22[1]} for nesting ${str}`);
49288
+ this.logger.warn(`missed to resolve ${match24[1]} for nesting ${str}`);
49201
49289
  value2 = "";
49202
49290
  }
49203
49291
  if (doReduce) {
49204
49292
  value2 = formatters.reduce((v, f) => this.format(v, f, options.lng, {
49205
49293
  ...options,
49206
- interpolationkey: match22[1].trim()
49294
+ interpolationkey: match24[1].trim()
49207
49295
  }), value2.trim());
49208
49296
  }
49209
- str = str.replace(match22[0], value2);
49297
+ str = str.replace(match24[0], value2);
49210
49298
  this.regexp.lastIndex = 0;
49211
49299
  }
49212
49300
  return str;
@@ -50193,7 +50281,7 @@ var I18nProvider = ({
50193
50281
  };
50194
50282
 
50195
50283
  // ../cli-auth/src/components/Login.tsx
50196
- var import_variant19 = __toESM(require_lib(), 1);
50284
+ var import_variant21 = __toESM(require_lib(), 1);
50197
50285
 
50198
50286
  // ../cli-auth/src/messages.json
50199
50287
  var messages_default = {
@@ -50329,8 +50417,8 @@ async function defaultBrowserId() {
50329
50417
  throw new Error("macOS only");
50330
50418
  }
50331
50419
  const { stdout } = await execFileAsync("defaults", ["read", "com.apple.LaunchServices/com.apple.launchservices.secure", "LSHandlers"]);
50332
- const match22 = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
50333
- return match22?.groups.id ?? "com.apple.Safari";
50420
+ const match24 = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
50421
+ return match24?.groups.id ?? "com.apple.Safari";
50334
50422
  }
50335
50423
 
50336
50424
  // ../../node_modules/bundle-name/index.js
@@ -50384,11 +50472,11 @@ async function defaultBrowser(_execFileAsync = execFileAsync3) {
50384
50472
  "/v",
50385
50473
  "ProgId"
50386
50474
  ]);
50387
- const match22 = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
50388
- if (!match22) {
50475
+ const match24 = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
50476
+ if (!match24) {
50389
50477
  throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
50390
50478
  }
50391
- const { id } = match22.groups;
50479
+ const { id } = match24.groups;
50392
50480
  const browser = windowsBrowserProgIds[id];
50393
50481
  if (!browser) {
50394
50482
  throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
@@ -50744,6 +50832,19 @@ var DebugLogContext = (0, import_react73.createContext)(null);
50744
50832
  // ../cli-env/src/index.ts
50745
50833
  init_esm_shims();
50746
50834
  var import_ci_info = __toESM(require_ci_info2(), 1);
50835
+ var remoteLogContextSchema = zod_default.record(zod_default.string(), zod_default.unknown());
50836
+ function getRemoteLogContext() {
50837
+ const remoteContext = process.env.REMOTE_MACHINE_LOG_CONTEXT;
50838
+ if (!remoteContext) {
50839
+ return {};
50840
+ }
50841
+ try {
50842
+ const parsed = JSON.parse(remoteContext);
50843
+ return remoteLogContextSchema.parse(parsed);
50844
+ } catch {
50845
+ return {};
50846
+ }
50847
+ }
50747
50848
  var createEnv = () => {
50748
50849
  const overrides2 = getTestOverrides();
50749
50850
  return {
@@ -50751,7 +50852,8 @@ var createEnv = () => {
50751
50852
  isPR: overrides2.isPR ?? import_ci_info.default.isPR,
50752
50853
  ciName: overrides2.ciName ?? import_ci_info.default.name ?? process.env.CI_NAME ?? null,
50753
50854
  cliEnvName: overrides2.cliEnvName ?? process.env.WIX_RUNTIME_ENVIRONMENT ?? null,
50754
- cliTrackingId: overrides2.cliTrackingId ?? process.env.TRACKING_ID ?? null
50855
+ cliTrackingId: overrides2.cliTrackingId ?? process.env.TRACKING_ID ?? null,
50856
+ remoteLogContext: getRemoteLogContext()
50755
50857
  };
50756
50858
  };
50757
50859
 
@@ -50762,7 +50864,7 @@ var import_react78 = __toESM(require_react(), 1);
50762
50864
  // ../cli-error-reporting/src/get-error-component.tsx
50763
50865
  init_esm_shims();
50764
50866
  var import_react77 = __toESM(require_react(), 1);
50765
- var import_variant15 = __toESM(require_lib(), 1);
50867
+ var import_variant17 = __toESM(require_lib(), 1);
50766
50868
 
50767
50869
  // ../../node_modules/outdent/lib-module/index.js
50768
50870
  init_esm_shims();
@@ -50809,9 +50911,9 @@ var reDetectIndentation = /(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/;
50809
50911
  var reOnlyWhitespaceWithAtLeastOneNewline = /^[ \t]*[\r\n][ \t\r\n]*$/;
50810
50912
  function _outdentArray(strings, firstInterpolatedValueSetsIndentationLevel, options) {
50811
50913
  var indentationLevel = 0;
50812
- var match22 = strings[0].match(reDetectIndentation);
50813
- if (match22) {
50814
- indentationLevel = match22[1].length;
50914
+ var match24 = strings[0].match(reDetectIndentation);
50915
+ if (match24) {
50916
+ indentationLevel = match24[1].length;
50815
50917
  }
50816
50918
  var reSource = "(\\r\\n|\\r|\\n).{0," + indentationLevel + "}";
50817
50919
  var reMatchIndent = new RegExp(reSource, "g");
@@ -50994,7 +51096,7 @@ var ServeDeprecationMessage = ({
50994
51096
 
50995
51097
  // ../cli-error-reporting/src/get-error-component.tsx
50996
51098
  function getErrorComponent(code, cause) {
50997
- return (0, import_variant15.match)(code, {
51099
+ return (0, import_variant17.match)(code, {
50998
51100
  UnknownFailure: ({ error }) => {
50999
51101
  return () => /* @__PURE__ */ import_react77.default.createElement(import_react77.default.Fragment, null, /* @__PURE__ */ import_react77.default.createElement(Text2, { skin: "error" }, "Oh no, seems like the CLI encountered an unexpected error:"), error instanceof Error ? /* @__PURE__ */ import_react77.default.createElement(Text2, { skin: "error" }, error.message) : /* @__PURE__ */ import_react77.default.createElement(Text2, null, JSON.stringify(error)));
51000
51102
  },
@@ -51536,7 +51638,7 @@ function getErrorComponent(code, cause) {
51536
51638
  },
51537
51639
  DuplicateComponentIdsError: ({ issues }) => {
51538
51640
  const Issue = ({ issue }) => {
51539
- const typeToName = (type) => (0, import_variant15.match)(type, {
51641
+ const typeToName = (type) => (0, import_variant17.match)(type, {
51540
51642
  page: () => "page",
51541
51643
  plugin: () => "plugin",
51542
51644
  "menu-plugin": () => "menu plugin",
@@ -51666,6 +51768,15 @@ function getErrorComponent(code, cause) {
51666
51768
  }
51667
51769
  );
51668
51770
  },
51771
+ FailedToBuildAstroApp: () => {
51772
+ return () => /* @__PURE__ */ import_react77.default.createElement(
51773
+ ErrorMessage,
51774
+ {
51775
+ message: "Failed to build the application.",
51776
+ hint: "Please check the build output for more information"
51777
+ }
51778
+ );
51779
+ },
51669
51780
  FailedToGetAppInstallationDetails: ({ appId }) => {
51670
51781
  return () => /* @__PURE__ */ import_react77.default.createElement(
51671
51782
  SystemErrorMessage,
@@ -52506,6 +52617,9 @@ ${errorMessage2}`
52506
52617
  FailedToCreateRoutesWithMetaSiteUrl: () => {
52507
52618
  return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to create routes with meta site URL." });
52508
52619
  },
52620
+ FailedToGetUrl: () => {
52621
+ return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to get meta site URL." });
52622
+ },
52509
52623
  FailedToUpdateExternalSiteUrl: () => {
52510
52624
  return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to update external site URL." });
52511
52625
  },
@@ -52587,7 +52701,7 @@ var ErrorViewer = ({
52587
52701
 
52588
52702
  // ../cli-error-reporting/src/error-reporter.ts
52589
52703
  init_esm_shims();
52590
- var import_variant16 = __toESM(require_lib(), 1);
52704
+ var import_variant18 = __toESM(require_lib(), 1);
52591
52705
 
52592
52706
  // ../../node_modules/@sentry/node/build/esm/index.js
52593
52707
  init_esm_shims();
@@ -53209,8 +53323,8 @@ var LINUX_VERSIONS = {
53209
53323
  ubuntu: (content) => matchFirst(/distrib_release=(.*)/, content)
53210
53324
  };
53211
53325
  function matchFirst(regex2, text) {
53212
- const match22 = regex2.exec(text);
53213
- return match22 ? match22[1] : void 0;
53326
+ const match24 = regex2.exec(text);
53327
+ return match24 ? match24[1] : void 0;
53214
53328
  }
53215
53329
  async function getDarwinInfo() {
53216
53330
  const darwinInfo = {
@@ -54901,7 +55015,7 @@ var HttpsProxyAgent = class extends Agent2 {
54901
55015
  }
54902
55016
  const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
54903
55017
  const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;
54904
- let payload5 = `CONNECT ${host}:${opts.port} HTTP/1.1\r
55018
+ let payload6 = `CONNECT ${host}:${opts.port} HTTP/1.1\r
54905
55019
  `;
54906
55020
  if (proxy.username || proxy.password) {
54907
55021
  const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
@@ -54912,11 +55026,11 @@ var HttpsProxyAgent = class extends Agent2 {
54912
55026
  headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
54913
55027
  }
54914
55028
  for (const name of Object.keys(headers)) {
54915
- payload5 += `${name}: ${headers[name]}\r
55029
+ payload6 += `${name}: ${headers[name]}\r
54916
55030
  `;
54917
55031
  }
54918
55032
  const proxyResponsePromise = parseProxyResponse(socket);
54919
- socket.write(`${payload5}\r
55033
+ socket.write(`${payload6}\r
54920
55034
  `);
54921
55035
  const { connect: connect3, buffered } = await proxyResponsePromise;
54922
55036
  req.emit("proxyConnect", connect3);
@@ -55266,15 +55380,15 @@ function normalizeRequestId(requestId) {
55266
55380
  }
55267
55381
 
55268
55382
  // ../cli-error-reporting/src/error-reporter.ts
55269
- var ReportErrorResult = (0, import_variant16.variant)({
55270
- Reported: (0, import_variant16.fields)(),
55383
+ var ReportErrorResult = (0, import_variant18.variant)({
55384
+ Reported: (0, import_variant18.fields)(),
55271
55385
  Ignored: {}
55272
55386
  });
55273
55387
  var reportError = (scope, originalError, { data } = {}) => {
55274
55388
  if (!isCliSystemError(originalError)) {
55275
55389
  return ReportErrorResult.Ignored();
55276
55390
  }
55277
- const error = (0, import_variant16.isType)(originalError.cliCode, CliSystemErrorCode.UnknownFailure) ? originalError.cliCode.error : originalError;
55391
+ const error = (0, import_variant18.isType)(originalError.cliCode, CliSystemErrorCode.UnknownFailure) ? originalError.cliCode.error : originalError;
55278
55392
  const eventId = scope.captureException(error, {
55279
55393
  data,
55280
55394
  captureContext: (localScope) => {
@@ -55387,14 +55501,14 @@ function yesOrNo(value2) {
55387
55501
  // ../cli-error-reporting/src/user-feedback.tsx
55388
55502
  init_esm_shims();
55389
55503
  var import_react82 = __toESM(require_react(), 1);
55390
- var import_variant18 = __toESM(require_lib(), 1);
55504
+ var import_variant20 = __toESM(require_lib(), 1);
55391
55505
  import { stdin } from "node:process";
55392
55506
 
55393
55507
  // ../cli-fs-cache/src/index.ts
55394
55508
  init_esm_shims();
55395
- var import_variant17 = __toESM(require_lib(), 1);
55396
- var CacheState = (0, import_variant17.variant)({
55397
- Exists: (0, import_variant17.fields)(),
55509
+ var import_variant19 = __toESM(require_lib(), 1);
55510
+ var CacheState = (0, import_variant19.variant)({
55511
+ Exists: (0, import_variant19.fields)(),
55398
55512
  NotExists: {}
55399
55513
  });
55400
55514
  var CacheData = external_exports.object({
@@ -55507,7 +55621,7 @@ async function collectUserFeedback({
55507
55621
  reportResult,
55508
55622
  errorReporter: errorReporter2
55509
55623
  }) {
55510
- if (!stdin.isTTY || !cachePath || !(0, import_variant18.isType)(reportResult, ReportErrorResult.Reported)) {
55624
+ if (!stdin.isTTY || !cachePath || !(0, import_variant20.isType)(reportResult, ReportErrorResult.Reported)) {
55511
55625
  return;
55512
55626
  }
55513
55627
  const fsCache = createFsCache({
@@ -55515,7 +55629,7 @@ async function collectUserFeedback({
55515
55629
  ttlInHours: 1
55516
55630
  });
55517
55631
  const cacheState = await fsCache.get();
55518
- if ((0, import_variant18.isType)(cacheState, CacheState.Exists)) {
55632
+ if ((0, import_variant20.isType)(cacheState, CacheState.Exists)) {
55519
55633
  return;
55520
55634
  }
55521
55635
  const user = errorReporter2.getUser();
@@ -55769,7 +55883,7 @@ var Login = ({ loginFn, onLogin, onError }) => {
55769
55883
  onError: handleError
55770
55884
  }
55771
55885
  );
55772
- return (0, import_variant19.match)(status, {
55886
+ return (0, import_variant21.match)(status, {
55773
55887
  Error: () => null,
55774
55888
  Loading: () => /* @__PURE__ */ import_react88.default.createElement(Spinner2, null),
55775
55889
  Success: ({ result: { userCode, verificationUri } }) => /* @__PURE__ */ import_react88.default.createElement(
@@ -55782,23 +55896,23 @@ var Login = ({ loginFn, onLogin, onError }) => {
55782
55896
  });
55783
55897
  };
55784
55898
 
55785
- // ../cli-auth/src/providers/AccountAuthProvider.tsx
55899
+ // ../cli-auth/src/providers/UnifiedAuthProvider.tsx
55786
55900
  init_esm_shims();
55787
55901
  var import_react91 = __toESM(require_react(), 1);
55788
55902
 
55789
55903
  // ../cli-auth/src/components/EnsureLoggedIn.tsx
55790
55904
  init_esm_shims();
55791
55905
  var import_react90 = __toESM(require_react(), 1);
55792
- var import_variant21 = __toESM(require_lib(), 1);
55906
+ var import_variant23 = __toESM(require_lib(), 1);
55793
55907
 
55794
55908
  // ../cli-auth/src/components/WarnLegacyAuthData.tsx
55795
55909
  init_esm_shims();
55796
55910
  var import_react89 = __toESM(require_react(), 1);
55797
- var import_variant20 = __toESM(require_lib(), 1);
55911
+ var import_variant22 = __toESM(require_lib(), 1);
55798
55912
  var WarnLegacyAuthData = ({ children }) => {
55799
55913
  const { status } = useAsync2(hasLegacyAuthData, [], { onError: () => {
55800
55914
  } });
55801
- return (0, import_variant20.match)(status, {
55915
+ return (0, import_variant22.match)(status, {
55802
55916
  Error: () => null,
55803
55917
  Loading: () => null,
55804
55918
  Success: ({ result }) => /* @__PURE__ */ import_react89.default.createElement(import_react89.default.Fragment, null, result && /* @__PURE__ */ import_react89.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react89.default.createElement(Trans2, { i18nKey: "login.legacy_auth_notice" })), children)
@@ -55820,7 +55934,7 @@ var EnsureLoggedIn = ({
55820
55934
  },
55821
55935
  onError
55822
55936
  });
55823
- return (0, import_variant21.match)(status, {
55937
+ return (0, import_variant23.match)(status, {
55824
55938
  Loading: () => /* @__PURE__ */ import_react90.default.createElement(Spinner2, null),
55825
55939
  Error: () => null,
55826
55940
  Success: ({ result: accountAuth }) => {
@@ -55842,17 +55956,13 @@ var EnsureLoggedIn = ({
55842
55956
  });
55843
55957
  };
55844
55958
 
55845
- // ../cli-auth/src/providers/AccountAuthProvider.tsx
55846
- var AccountAuthProvider = ({
55847
- children,
55848
- onError,
55849
- onLogin
55850
- }) => {
55959
+ // ../cli-auth/src/providers/UnifiedAuthProvider.tsx
55960
+ var AuthProvider = ({ children, onError, onLogin }) => {
55851
55961
  const exit = useExit();
55852
55962
  return /* @__PURE__ */ import_react91.default.createElement(
55853
55963
  EnsureLoggedIn,
55854
55964
  {
55855
- authStrategy: accountAuthStrategy,
55965
+ authStrategy: unifiedAuthStrategy,
55856
55966
  onLogin: ({ userInfo: userInfo2 }) => onLogin?.(userInfo2),
55857
55967
  onError: onError ?? exit
55858
55968
  },
@@ -55867,7 +55977,7 @@ var AccountAuthProvider = ({
55867
55977
  };
55868
55978
 
55869
55979
  // ../cli-auth/src/index.ts
55870
- var { isLoggedIn: isLoggedInToAccount } = accountAuthStrategy;
55980
+ var { isLoggedIn: isLoggedInToAccount } = unifiedAuthStrategy;
55871
55981
 
55872
55982
  // ../../node_modules/@commander-js/extra-typings/esm.mjs
55873
55983
  init_esm_shims();
@@ -55916,20 +56026,21 @@ var HttpClientProvider = ({
55916
56026
 
55917
56027
  // ../cli-http-client-react/src/useHttpClient.ts
55918
56028
  function useHttpClient({
55919
- type
56029
+ type,
56030
+ siteId
55920
56031
  }) {
55921
56032
  const context2 = (0, import_react93.useContext)(HttpClientContext);
55922
56033
  const { getAccessToken: getAppToken, getRequestHeaders: createAuthHeaders } = useAuth();
55923
56034
  return (0, import_react93.useMemo)(
55924
56035
  () => createHttpClient({
55925
56036
  type,
55926
- getAppToken,
56037
+ getAppToken: () => getAppToken({ siteId }),
55927
56038
  createHeaders: () => ({
55928
- ...createAuthHeaders?.(),
56039
+ ...createAuthHeaders?.({ siteId }),
55929
56040
  ...context2?.headers
55930
56041
  })
55931
56042
  }),
55932
- [type, getAppToken, createAuthHeaders, context2]
56043
+ [type, getAppToken, createAuthHeaders, context2, siteId]
55933
56044
  );
55934
56045
  }
55935
56046
 
@@ -56543,26 +56654,26 @@ var MAX_STACK_TRACE_SIZE_BYTES = 32 * 1024;
56543
56654
  var MAX_SESSION_TIME_MS = 24 * 60 * 60 * 1e3;
56544
56655
 
56545
56656
  // ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/lib/payload-sanitizer.js
56546
- var sanitizePayload = (payload5) => {
56657
+ var sanitizePayload = (payload6) => {
56547
56658
  const {
56548
56659
  errorStack,
56549
56660
  sessionTime
56550
- } = payload5;
56661
+ } = payload6;
56551
56662
  if (errorStack && errorStack.length > MAX_STACK_TRACE_SIZE_BYTES) {
56552
56663
  const truncationMessage = `...[truncated by Panorama client to ${MAX_STACK_TRACE_SIZE_BYTES / 1024}kb]`;
56553
56664
  const truncatedErrorStack = errorStack.substring(0, MAX_STACK_TRACE_SIZE_BYTES - truncationMessage.length);
56554
- payload5 = {
56555
- ...payload5,
56665
+ payload6 = {
56666
+ ...payload6,
56556
56667
  errorStack: `${truncatedErrorStack}${truncationMessage}`
56557
56668
  };
56558
56669
  }
56559
56670
  if (sessionTime && sessionTime > MAX_SESSION_TIME_MS) {
56560
- payload5 = {
56561
- ...payload5,
56671
+ payload6 = {
56672
+ ...payload6,
56562
56673
  sessionTime: MAX_SESSION_TIME_MS
56563
56674
  };
56564
56675
  }
56565
- return payload5;
56676
+ return payload6;
56566
56677
  };
56567
56678
 
56568
56679
  // ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-client/dist/esm/lib/payload-builder.js
@@ -56727,12 +56838,12 @@ var BasePanoramaClient = class {
56727
56838
  componentId
56728
56839
  } = this.baseParams;
56729
56840
  this.durationTracker.markTransactionStart(fullArtifactId, componentId, name, id);
56730
- const payload5 = buildTransactionPayload(this.globalConfig, this.baseParams, {
56841
+ const payload6 = buildTransactionPayload(this.globalConfig, this.baseParams, {
56731
56842
  transactionName: name,
56732
56843
  transactionAction: TransactionAction.Start
56733
56844
  }, dataWithDefault);
56734
- this.report(payload5);
56735
- this.hooksManager.invoke(Hook2.afterReportTransactionStart, name, payload5);
56845
+ this.report(payload6);
56846
+ this.hooksManager.invoke(Hook2.afterReportTransactionStart, name, payload6);
56736
56847
  }
56737
56848
  reportTransactionFinish(name, options, data) {
56738
56849
  if (options === void 0) {
@@ -56750,13 +56861,13 @@ var BasePanoramaClient = class {
56750
56861
  componentId
56751
56862
  } = this.baseParams;
56752
56863
  const duration2 = this.durationTracker.markTransactionFinish(fullArtifactId, componentId, name, id);
56753
- const payload5 = buildTransactionPayload(this.globalConfig, this.baseParams, {
56864
+ const payload6 = buildTransactionPayload(this.globalConfig, this.baseParams, {
56754
56865
  transactionName: name,
56755
56866
  transactionAction: TransactionAction.Finish,
56756
56867
  transactionDuration: duration2
56757
56868
  }, dataWithDefault);
56758
- this.report(payload5);
56759
- this.hooksManager.invoke(Hook2.afterReportTransactionFinish, name, payload5);
56869
+ this.report(payload6);
56870
+ this.hooksManager.invoke(Hook2.afterReportTransactionFinish, name, payload6);
56760
56871
  }
56761
56872
  reportPhaseStart(name, data) {
56762
56873
  const dataWithDefault = this.data.addDataScope(data).getData();
@@ -56768,12 +56879,12 @@ var BasePanoramaClient = class {
56768
56879
  componentId
56769
56880
  } = this.baseParams;
56770
56881
  this.durationTracker.markPhaseStart(fullArtifactId, componentId, name);
56771
- const payload5 = buildPhasePayload(this.globalConfig, this.baseParams, {
56882
+ const payload6 = buildPhasePayload(this.globalConfig, this.baseParams, {
56772
56883
  phaseName: name,
56773
56884
  transactionAction: TransactionAction.Start
56774
56885
  }, dataWithDefault);
56775
- this.report(payload5);
56776
- this.hooksManager.invoke(Hook2.afterReportPhaseStart, name, payload5);
56886
+ this.report(payload6);
56887
+ this.hooksManager.invoke(Hook2.afterReportPhaseStart, name, payload6);
56777
56888
  }
56778
56889
  reportPhaseFinish(name, data) {
56779
56890
  const dataWithDefault = this.data.addDataScope(data).getData();
@@ -56785,13 +56896,13 @@ var BasePanoramaClient = class {
56785
56896
  componentId
56786
56897
  } = this.baseParams;
56787
56898
  const duration2 = this.durationTracker.markPhaseFinish(fullArtifactId, componentId, name);
56788
- const payload5 = buildPhasePayload(this.globalConfig, this.baseParams, {
56899
+ const payload6 = buildPhasePayload(this.globalConfig, this.baseParams, {
56789
56900
  phaseName: name,
56790
56901
  transactionAction: TransactionAction.Finish,
56791
56902
  transactionDuration: duration2
56792
56903
  }, dataWithDefault);
56793
- this.report(payload5);
56794
- this.hooksManager.invoke(Hook2.afterReportPhaseFinish, name, payload5);
56904
+ this.report(payload6);
56905
+ this.hooksManager.invoke(Hook2.afterReportPhaseFinish, name, payload6);
56795
56906
  }
56796
56907
  reportError(error, data, options) {
56797
56908
  if (!(error instanceof Error)) {
@@ -56801,8 +56912,8 @@ var BasePanoramaClient = class {
56801
56912
  if (!this.hooksManager.invoke(Hook2.beforeReportError, error, data, options)) {
56802
56913
  return;
56803
56914
  }
56804
- const payload5 = buildErrorPayload(this.globalConfig, this.baseParams, error, data);
56805
- this.report(payload5);
56915
+ const payload6 = buildErrorPayload(this.globalConfig, this.baseParams, error, data);
56916
+ this.report(payload6);
56806
56917
  this.hooksManager.invoke(Hook2.afterReportError, error, data, options);
56807
56918
  }
56808
56919
  addBreadcrumb(breadcrumb) {
@@ -56824,8 +56935,8 @@ var BasePanoramaClient = class {
56824
56935
  if (!this.hooksManager.invoke(Hook2.beforeReportLog, logLevel, message, dataWithDefault)) {
56825
56936
  return;
56826
56937
  }
56827
- const payload5 = buildLoggerPayload(this.globalConfig, this.baseParams, loggerParams);
56828
- this.report(payload5);
56938
+ const payload6 = buildLoggerPayload(this.globalConfig, this.baseParams, loggerParams);
56939
+ this.report(payload6);
56829
56940
  this.hooksManager.invoke(Hook2.afterReportLog, logLevel, message, dataWithDefault);
56830
56941
  }
56831
56942
  };
@@ -57007,23 +57118,27 @@ if (overrides.panoramaReporterUrl) {
57007
57118
  nodeReporter(overrides.panoramaReporterUrl, { silent: true })
57008
57119
  );
57009
57120
  }
57010
- var remoteLogContextSchema = zod_default.record(zod_default.string(), zod_default.unknown());
57011
- function getRemoteLogContext() {
57012
- const remoteContext = process.env.REMOTE_MACHINE_LOG_CONTEXT;
57013
- if (!remoteContext) {
57014
- return {};
57015
- }
57016
- try {
57017
- const parsed = JSON.parse(remoteContext);
57018
- return remoteLogContextSchema.parse(parsed);
57019
- } catch {
57020
- return {};
57021
- }
57121
+ function createPanoramaWrapper(factory) {
57122
+ let defaultData = {};
57123
+ return {
57124
+ withGlobalConfig: (...args) => factory.withGlobalConfig(...args),
57125
+ withReporter: (...args) => factory.withReporter(...args),
57126
+ setMuted: (...args) => factory.setMuted(...args),
57127
+ setDefaultClientData(data) {
57128
+ defaultData = { ...defaultData, ...data };
57129
+ },
57130
+ client(options) {
57131
+ return factory.client({
57132
+ ...options,
57133
+ data: { ...defaultData, ...options?.data }
57134
+ });
57135
+ }
57136
+ };
57022
57137
  }
57023
57138
  async function createPanorama(options) {
57024
- const { version, artifact, userId, errorReporter: errorReporter2 } = options;
57139
+ const { version, artifact, userId, errorReporter: errorReporter2, cliSessionId } = options;
57025
57140
  const userConfig = await readUserConfig();
57026
- const remoteLogContext = getRemoteLogContext();
57141
+ const env2 = createEnv();
57027
57142
  const factory = panoramaClientFactory({
57028
57143
  baseParams: {
57029
57144
  platform: Platform.Standalone,
@@ -57037,21 +57152,25 @@ async function createPanorama(options) {
57037
57152
  silent: true
57038
57153
  },
57039
57154
  data: {
57040
- trackingId: process.env.TRACKING_ID,
57041
- ...remoteLogContext
57155
+ cliTrackingId: env2.cliTrackingId,
57156
+ cliEnvName: env2.cliEnvName,
57157
+ cliSessionId,
57158
+ ...env2.remoteLogContext
57042
57159
  }
57043
57160
  }).withGlobalConfig(globalConfig).setMuted(!userConfig.telemetry);
57044
- const hasRemoteLogContext = Object.keys(remoteLogContext).length > 0;
57045
- if (errorReporter2 && hasRemoteLogContext) {
57046
- const panoramaClient2 = factory.client({
57047
- baseParams: {
57048
- componentId: "error-reporter"
57049
- }
57161
+ const panorama = createPanoramaWrapper(factory);
57162
+ if (errorReporter2) {
57163
+ errorReporter2.on("errorReported", (error) => {
57164
+ const panoramaClient2 = panorama.client({
57165
+ baseParams: {
57166
+ componentId: "error-reporter"
57167
+ }
57168
+ });
57169
+ const errorMonitor = panoramaClient2.errorMonitor();
57170
+ errorMonitor.reportError(error);
57050
57171
  });
57051
- const errorMonitor = panoramaClient2.errorMonitor();
57052
- errorReporter2.on("errorReported", errorMonitor.reportError);
57053
57172
  }
57054
- return factory;
57173
+ return panorama;
57055
57174
  }
57056
57175
 
57057
57176
  // ../cli-panorama/src/createCommandTransaction.ts
@@ -57077,6 +57196,9 @@ function getFullCommandName(command) {
57077
57196
  return command.name();
57078
57197
  }
57079
57198
 
57199
+ // src/index.tsx
57200
+ import { randomUUID as randomUUID2 } from "node:crypto";
57201
+
57080
57202
  // src/bi/index.ts
57081
57203
  init_esm_shims();
57082
57204
 
@@ -57129,7 +57251,6 @@ function useCreateAppBi() {
57129
57251
 
57130
57252
  // src/bi/createBiLogger.ts
57131
57253
  init_esm_shims();
57132
- import { randomUUID as randomUUID2 } from "node:crypto";
57133
57254
 
57134
57255
  // ../cli-telemetry/src/index.ts
57135
57256
  init_esm_shims();
@@ -57339,7 +57460,7 @@ function reportCommandStartEvent({
57339
57460
  var package_default = {
57340
57461
  name: "@wix/create-app",
57341
57462
  description: "Create Wix apps",
57342
- version: "0.0.173",
57463
+ version: "0.0.175",
57343
57464
  author: "Ihor Machuzhak",
57344
57465
  bin: "bin/index.cjs",
57345
57466
  devDependencies: {
@@ -57431,11 +57552,15 @@ var package_default = {
57431
57552
  };
57432
57553
 
57433
57554
  // src/bi/createBiLogger.ts
57434
- var createBiLogger2 = async (errorReporter2, userId) => {
57555
+ var createBiLogger2 = async ({
57556
+ errorReporter: errorReporter2,
57557
+ cliSessionId,
57558
+ userId
57559
+ }) => {
57435
57560
  const biLogger = await createBiLogger(
57436
57561
  {
57437
57562
  command: "create-app",
57438
- cliSessionId: randomUUID2(),
57563
+ cliSessionId,
57439
57564
  cliVersion: package_default.version
57440
57565
  },
57441
57566
  userId
@@ -57471,7 +57596,7 @@ var createBiLogger2 = async (errorReporter2, userId) => {
57471
57596
  // src/components/CreateAppCommand.tsx
57472
57597
  init_esm_shims();
57473
57598
  var import_react120 = __toESM(require_react(), 1);
57474
- var import_variant35 = __toESM(require_lib(), 1);
57599
+ var import_variant37 = __toESM(require_lib(), 1);
57475
57600
 
57476
57601
  // src/components/WelcomeMessage.tsx
57477
57602
  init_esm_shims();
@@ -58145,11 +58270,11 @@ var import_validate_npm_package_name = __toESM(require_lib2(), 1);
58145
58270
 
58146
58271
  // src/validations/result.ts
58147
58272
  init_esm_shims();
58148
- var import_variant22 = __toESM(require_lib(), 1);
58149
- var Result = (0, import_variant22.variant)(
58150
- (0, import_variant22.onTerms)(({ T }) => ({
58151
- Error: (0, import_variant22.payload)(T),
58152
- Ok: import_variant22.nil
58273
+ var import_variant24 = __toESM(require_lib(), 1);
58274
+ var Result = (0, import_variant24.variant)(
58275
+ (0, import_variant24.onTerms)(({ T }) => ({
58276
+ Error: (0, import_variant24.payload)(T),
58277
+ Ok: import_variant24.nil
58153
58278
  }))
58154
58279
  );
58155
58280
 
@@ -58223,7 +58348,7 @@ var LoginRequiredWarning = () => {
58223
58348
  };
58224
58349
 
58225
58350
  // src/components/AuthProvider.tsx
58226
- var AuthProvider = ({ userInfo: userInfo2, children }) => {
58351
+ var AuthProvider2 = ({ userInfo: userInfo2, children }) => {
58227
58352
  const biLogger = useBiLogger();
58228
58353
  const errorReporter2 = useErrorReporter();
58229
58354
  const handleLogin = (0, import_react99.useCallback)(
@@ -58233,13 +58358,13 @@ var AuthProvider = ({ userInfo: userInfo2, children }) => {
58233
58358
  },
58234
58359
  [biLogger, errorReporter2]
58235
58360
  );
58236
- return /* @__PURE__ */ import_react99.default.createElement(import_react99.default.Fragment, null, userInfo2 == null && /* @__PURE__ */ import_react99.default.createElement(LoginRequiredWarning, null), /* @__PURE__ */ import_react99.default.createElement(AccountAuthProvider, { onLogin: handleLogin, children }));
58361
+ return /* @__PURE__ */ import_react99.default.createElement(import_react99.default.Fragment, null, userInfo2 == null && /* @__PURE__ */ import_react99.default.createElement(LoginRequiredWarning, null), /* @__PURE__ */ import_react99.default.createElement(AuthProvider, { onLogin: handleLogin, children }));
58237
58362
  };
58238
58363
 
58239
58364
  // src/components/Questions/Questions.tsx
58240
58365
  init_esm_shims();
58241
58366
  var import_react115 = __toESM(require_react(), 1);
58242
- var import_variant32 = __toESM(require_lib(), 1);
58367
+ var import_variant34 = __toESM(require_lib(), 1);
58243
58368
 
58244
58369
  // ../dev-center-client/src/index.ts
58245
58370
  init_esm_shims();
@@ -58754,7 +58879,7 @@ function resolveComWixpressAppserviceApiAppsUrl(opts) {
58754
58879
  };
58755
58880
  return resolveUrl(Object.assign(opts, { domainToMappings }));
58756
58881
  }
58757
- function getAppByVersion(payload5) {
58882
+ function getAppByVersion(payload6) {
58758
58883
  var _a3 = serializer(_getAppByVersionRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
58759
58884
  var fromRes = serializer(_getAppResponse, {
58760
58885
  __Array,
@@ -58917,7 +59042,7 @@ function getAppByVersion(payload5) {
58917
59042
  }).fromJSON;
58918
59043
  function __getAppByVersion(_a4) {
58919
59044
  var host = _a4.host;
58920
- var serializedData = toReq(payload5);
59045
+ var serializedData = toReq(payload6);
58921
59046
  var metadata = {
58922
59047
  entityFqdn: "wix.devcenter.apps.v1.app_old",
58923
59048
  method: "GET",
@@ -59044,14 +59169,14 @@ function resolveWixDevcenterAppsV1AppsServiceUrl(opts) {
59044
59169
  };
59045
59170
  return resolveUrl(Object.assign(opts, { domainToMappings }));
59046
59171
  }
59047
- function createApp(payload5) {
59172
+ function createApp(payload6) {
59048
59173
  var _a3 = serializer(_v1CreateAppRequest, {
59049
59174
  _v1App
59050
59175
  }), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59051
59176
  var fromRes = serializer(_v1CreateAppResponse, { _v1App }).fromJSON;
59052
59177
  function __createApp(_a4) {
59053
59178
  var host = _a4.host;
59054
- var serializedData = toReq(payload5);
59179
+ var serializedData = toReq(payload6);
59055
59180
  var metadata = {
59056
59181
  entityFqdn: "wix.devcenter.apps.v1.app",
59057
59182
  method: "POST",
@@ -59073,12 +59198,12 @@ function createApp(payload5) {
59073
59198
  __createApp.__isAmbassador = true;
59074
59199
  return __createApp;
59075
59200
  }
59076
- function getApp(payload5) {
59201
+ function getApp(payload6) {
59077
59202
  var _a3 = serializer(_v1GetAppRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59078
59203
  var fromRes = serializer(_v1GetAppResponse, { _v1App }).fromJSON;
59079
59204
  function __getApp(_a4) {
59080
59205
  var host = _a4.host;
59081
- var serializedData = toReq(payload5);
59206
+ var serializedData = toReq(payload6);
59082
59207
  var metadata = {
59083
59208
  entityFqdn: "wix.devcenter.apps.v1.app",
59084
59209
  method: "GET",
@@ -59100,12 +59225,12 @@ function getApp(payload5) {
59100
59225
  __getApp.__isAmbassador = true;
59101
59226
  return __getApp;
59102
59227
  }
59103
- function queryApp(payload5) {
59228
+ function queryApp(payload6) {
59104
59229
  var _a3 = serializer(_queryAppRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59105
59230
  var fromRes = serializer(_queryAppResponse, { _v1App }).fromJSON;
59106
59231
  function __queryApp(_a4) {
59107
59232
  var host = _a4.host;
59108
- var serializedData = toReq(payload5);
59233
+ var serializedData = toReq(payload6);
59109
59234
  var metadata = {
59110
59235
  entityFqdn: "wix.devcenter.apps.v1.app",
59111
59236
  method: "POST",
@@ -59183,14 +59308,14 @@ function resolveWixHeadlessV1OAuthAppServiceUrl(opts) {
59183
59308
  };
59184
59309
  return resolveUrl(Object.assign(opts, { domainToMappings }));
59185
59310
  }
59186
- function createOAuthApp(payload5) {
59311
+ function createOAuthApp(payload6) {
59187
59312
  var _a3 = serializer(_createOAuthAppRequest, { _oAuthApp }), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59188
59313
  var fromRes = serializer(_createOAuthAppResponse, {
59189
59314
  _oAuthApp
59190
59315
  }).fromJSON;
59191
59316
  function __createOAuthApp(_a4) {
59192
59317
  var host = _a4.host;
59193
- var serializedData = toReq(payload5);
59318
+ var serializedData = toReq(payload6);
59194
59319
  var metadata = {
59195
59320
  entityFqdn: "wix.headless.v1.o_auth_app",
59196
59321
  method: "POST",
@@ -59212,14 +59337,14 @@ function createOAuthApp(payload5) {
59212
59337
  __createOAuthApp.__isAmbassador = true;
59213
59338
  return __createOAuthApp;
59214
59339
  }
59215
- function updateOAuthApp(payload5) {
59340
+ function updateOAuthApp(payload6) {
59216
59341
  var _a3 = serializer(_updateOAuthAppRequest, { _oAuthApp }), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59217
59342
  var fromRes = serializer(_updateOAuthAppResponse, {
59218
59343
  _oAuthApp
59219
59344
  }).fromJSON;
59220
59345
  function __updateOAuthApp(_a4) {
59221
59346
  var host = _a4.host;
59222
- var serializedData = toReq(payload5);
59347
+ var serializedData = toReq(payload6);
59223
59348
  var metadata = {
59224
59349
  entityFqdn: "wix.headless.v1.o_auth_app",
59225
59350
  method: "PATCH",
@@ -59287,7 +59412,7 @@ function resolveWixDevcenterMyappsV1MyAppsServiceUrl(opts) {
59287
59412
  };
59288
59413
  return resolveUrl(Object.assign(opts, { domainToMappings }));
59289
59414
  }
59290
- function queryMyApps(payload5) {
59415
+ function queryMyApps(payload6) {
59291
59416
  var _a3 = serializer(_queryMyAppsRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59292
59417
  var fromRes = serializer(_queryMyAppsResponse, {
59293
59418
  _myApp,
@@ -59295,7 +59420,7 @@ function queryMyApps(payload5) {
59295
59420
  }).fromJSON;
59296
59421
  function __queryMyApps(_a4) {
59297
59422
  var host = _a4.host;
59298
- var serializedData = toReq(payload5);
59423
+ var serializedData = toReq(payload6);
59299
59424
  var metadata = {
59300
59425
  entityFqdn: "wix.devcenter.myapps.v1.my_app",
59301
59426
  method: "POST",
@@ -59484,12 +59609,12 @@ function resolveComWixpressDevcenterDsmDevelopmentSitesManagerUrl(opts) {
59484
59609
  };
59485
59610
  return resolveUrl(Object.assign(opts, { domainToMappings }));
59486
59611
  }
59487
- function createDevelopmentSite(payload5) {
59612
+ function createDevelopmentSite(payload6) {
59488
59613
  var _a3 = serializer(_createDevelopmentSiteRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59489
59614
  var fromRes = serializer(_createDevelopmentSiteResponse, {}).fromJSON;
59490
59615
  function __createDevelopmentSite(_a4) {
59491
59616
  var host = _a4.host;
59492
- var serializedData = toReq(payload5);
59617
+ var serializedData = toReq(payload6);
59493
59618
  var metadata = {
59494
59619
  entityFqdn: "wix.devcenter.dsm.v1.development_site",
59495
59620
  method: "POST",
@@ -59511,12 +59636,12 @@ function createDevelopmentSite(payload5) {
59511
59636
  __createDevelopmentSite.__isAmbassador = true;
59512
59637
  return __createDevelopmentSite;
59513
59638
  }
59514
- function getDevelopmentSites(payload5) {
59639
+ function getDevelopmentSites(payload6) {
59515
59640
  var _a3 = serializer(_getDevelopmentSitesRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59516
59641
  var fromRes = serializer(_getDevelopmentSitesResponse, {}).fromJSON;
59517
59642
  function __getDevelopmentSites(_a4) {
59518
59643
  var host = _a4.host;
59519
- var serializedData = toReq(payload5);
59644
+ var serializedData = toReq(payload6);
59520
59645
  var metadata = {
59521
59646
  entityFqdn: "wix.devcenter.dsm.v1.development_site",
59522
59647
  method: "GET",
@@ -59538,12 +59663,12 @@ function getDevelopmentSites(payload5) {
59538
59663
  __getDevelopmentSites.__isAmbassador = true;
59539
59664
  return __getDevelopmentSites;
59540
59665
  }
59541
- function getDevelopmentSitesLimit(payload5) {
59666
+ function getDevelopmentSitesLimit(payload6) {
59542
59667
  var _a3 = serializer(_getDevelopmentSitesLimitRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59543
59668
  var fromRes = serializer(_getDevelopmentSitesLimitResponse, {}).fromJSON;
59544
59669
  function __getDevelopmentSitesLimit(_a4) {
59545
59670
  var host = _a4.host;
59546
- var serializedData = toReq(payload5);
59671
+ var serializedData = toReq(payload6);
59547
59672
  var metadata = {
59548
59673
  entityFqdn: "wix.devcenter.dsm.v1.development_site",
59549
59674
  method: "GET",
@@ -59660,14 +59785,14 @@ function resolveComWixpressDevcenterAppmarketlistingMarketListingServiceUrl(opts
59660
59785
  };
59661
59786
  return resolveUrl(Object.assign(opts, { domainToMappings }));
59662
59787
  }
59663
- function updateMarketListing(payload5) {
59788
+ function updateMarketListing(payload6) {
59664
59789
  var _a3 = serializer(_updateMarketListingRequest, { _marketListing }), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59665
59790
  var fromRes = serializer(_updateMarketListingResponse, {
59666
59791
  _marketListing
59667
59792
  }).fromJSON;
59668
59793
  function __updateMarketListing(_a4) {
59669
59794
  var host = _a4.host;
59670
- var serializedData = toReq(payload5);
59795
+ var serializedData = toReq(payload6);
59671
59796
  var metadata = {
59672
59797
  entityFqdn: "wix.devcenter.app_market_listing.v1.market_listing",
59673
59798
  method: "PUT",
@@ -59686,14 +59811,14 @@ function updateMarketListing(payload5) {
59686
59811
  __updateMarketListing.__isAmbassador = true;
59687
59812
  return __updateMarketListing;
59688
59813
  }
59689
- function queryMarketListing(payload5) {
59814
+ function queryMarketListing(payload6) {
59690
59815
  var _a3 = serializer(_queryMarketListingRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59691
59816
  var fromRes = serializer(_queryMarketListingResponse, {
59692
59817
  _marketListing
59693
59818
  }).fromJSON;
59694
59819
  function __queryMarketListing(_a4) {
59695
59820
  var host = _a4.host;
59696
- var serializedData = toReq(payload5);
59821
+ var serializedData = toReq(payload6);
59697
59822
  var metadata = {
59698
59823
  entityFqdn: "wix.devcenter.app_market_listing.v1.market_listing",
59699
59824
  method: "POST",
@@ -59742,14 +59867,14 @@ function resolveWixDevcenterAppsTemplatesV1AppTemplatesServiceUrl(opts) {
59742
59867
  };
59743
59868
  return resolveUrl(Object.assign(opts, { domainToMappings }));
59744
59869
  }
59745
- function createAppFromTemplate(payload5) {
59870
+ function createAppFromTemplate(payload6) {
59746
59871
  var _a3 = serializer(_createAppFromTemplateRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59747
59872
  var fromRes = serializer(_createAppFromTemplateResponse, {
59748
59873
  _app
59749
59874
  }).fromJSON;
59750
59875
  function __createAppFromTemplate(_a4) {
59751
59876
  var host = _a4.host;
59752
- var serializedData = toReq(payload5);
59877
+ var serializedData = toReq(payload6);
59753
59878
  var metadata = {
59754
59879
  entityFqdn: "wix.devcenter.apps.v1.app_template",
59755
59880
  method: "POST",
@@ -59771,12 +59896,12 @@ function createAppFromTemplate(payload5) {
59771
59896
  __createAppFromTemplate.__isAmbassador = true;
59772
59897
  return __createAppFromTemplate;
59773
59898
  }
59774
- function createBlocksAppFromTemplate(payload5) {
59899
+ function createBlocksAppFromTemplate(payload6) {
59775
59900
  var _a3 = serializer(_createBlocksAppFromTemplateRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59776
59901
  var fromRes = serializer(_createBlocksAppFromTemplateResponse, { _app }).fromJSON;
59777
59902
  function __createBlocksAppFromTemplate(_a4) {
59778
59903
  var host = _a4.host;
59779
- var serializedData = toReq(payload5);
59904
+ var serializedData = toReq(payload6);
59780
59905
  var metadata = {
59781
59906
  entityFqdn: "wix.devcenter.apps.v1.app_template",
59782
59907
  method: "POST",
@@ -59798,12 +59923,12 @@ function createBlocksAppFromTemplate(payload5) {
59798
59923
  __createBlocksAppFromTemplate.__isAmbassador = true;
59799
59924
  return __createBlocksAppFromTemplate;
59800
59925
  }
59801
- function listAppTemplates(payload5) {
59926
+ function listAppTemplates(payload6) {
59802
59927
  var _a3 = serializer(_listAppTemplatesRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
59803
59928
  var fromRes = serializer(_listAppTemplatesResponse, {}).fromJSON;
59804
59929
  function __listAppTemplates(_a4) {
59805
59930
  var host = _a4.host;
59806
- var serializedData = toReq(payload5);
59931
+ var serializedData = toReq(payload6);
59807
59932
  var metadata = {
59808
59933
  entityFqdn: "wix.devcenter.apps.v1.app_template",
59809
59934
  method: "GET",
@@ -60249,7 +60374,7 @@ function resolveComWixpressDevcenterManagedappsManagedAppsUrl(opts) {
60249
60374
  };
60250
60375
  return resolveUrl(Object.assign(opts, { domainToMappings }));
60251
60376
  }
60252
- function managedApps(payload5) {
60377
+ function managedApps(payload6) {
60253
60378
  var _a3 = serializer(_managedAppsRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
60254
60379
  var fromRes = serializer(_managedAppsResponse, {
60255
60380
  __Array: __Array2,
@@ -60400,7 +60525,7 @@ function managedApps(payload5) {
60400
60525
  }).fromJSON;
60401
60526
  function __managedApps(_a4) {
60402
60527
  var host = _a4.host;
60403
- var serializedData = toReq(payload5);
60528
+ var serializedData = toReq(payload6);
60404
60529
  var metadata = {
60405
60530
  entityFqdn: "wix.devcenter.managedapps.v1.managed_app",
60406
60531
  method: "GET",
@@ -63087,14 +63212,14 @@ function resolveWixDevcenterAppsPermissionsV1AppPermissionsServiceUrl(opts) {
63087
63212
  };
63088
63213
  return resolveUrl(Object.assign(opts, { domainToMappings }));
63089
63214
  }
63090
- function createAppPermission(payload5) {
63215
+ function createAppPermission(payload6) {
63091
63216
  var _a3 = serializer(_createAppPermissionRequest, { _appPermission }), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
63092
63217
  var fromRes = serializer(_createAppPermissionResponse, {
63093
63218
  _appPermission
63094
63219
  }).fromJSON;
63095
63220
  function __createAppPermission(_a4) {
63096
63221
  var host = _a4.host;
63097
- var serializedData = toReq(payload5);
63222
+ var serializedData = toReq(payload6);
63098
63223
  var metadata = {
63099
63224
  entityFqdn: "wix.devcenter.apps.v1.app_permission",
63100
63225
  method: "POST",
@@ -63150,14 +63275,14 @@ function resolveWixDevcenterV1AppShareUrlServiceUrl(opts) {
63150
63275
  };
63151
63276
  return resolveUrl(Object.assign(opts, { domainToMappings }));
63152
63277
  }
63153
- function createShareUrl(payload5) {
63278
+ function createShareUrl(payload6) {
63154
63279
  var _a3 = serializer(_createShareUrlRequest, { _shareUrl }), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
63155
63280
  var fromRes = serializer(_createShareUrlResponse, {
63156
63281
  _shareUrl
63157
63282
  }).fromJSON;
63158
63283
  function __createShareUrl(_a4) {
63159
63284
  var host = _a4.host;
63160
- var serializedData = toReq(payload5);
63285
+ var serializedData = toReq(payload6);
63161
63286
  var metadata = {
63162
63287
  entityFqdn: "wix.devcenter.v1.share_url",
63163
63288
  method: "POST",
@@ -63179,14 +63304,14 @@ function createShareUrl(payload5) {
63179
63304
  __createShareUrl.__isAmbassador = true;
63180
63305
  return __createShareUrl;
63181
63306
  }
63182
- function listShareUrls(payload5) {
63307
+ function listShareUrls(payload6) {
63183
63308
  var _a3 = serializer(_listShareUrlsRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
63184
63309
  var fromRes = serializer(_listShareUrlsResponse, {
63185
63310
  _shareUrl
63186
63311
  }).fromJSON;
63187
63312
  function __listShareUrls(_a4) {
63188
63313
  var host = _a4.host;
63189
- var serializedData = toReq(payload5);
63314
+ var serializedData = toReq(payload6);
63190
63315
  var metadata = {
63191
63316
  entityFqdn: "wix.devcenter.v1.share_url",
63192
63317
  method: "GET",
@@ -66265,7 +66390,11 @@ var DevCenterClient = class {
66265
66390
  const { data } = await this.httpClient.request(
66266
66391
  updateOAuthApp({
66267
66392
  oAuthApp,
66268
- mask: ["allowedDomains", "allowedRedirectUris"]
66393
+ mask: [
66394
+ "allowedDomains",
66395
+ "allowedRedirectUris",
66396
+ "redirectUrlWixPages"
66397
+ ]
66269
66398
  })
66270
66399
  );
66271
66400
  return createOAuthAppSchema.parse(data).oAuthApp;
@@ -66627,22 +66756,24 @@ var DevCenterClient = class {
66627
66756
  // ../dev-center-client/src/useDevCenterClient.ts
66628
66757
  init_esm_shims();
66629
66758
  var import_react100 = __toESM(require_react(), 1);
66630
- function useDevCenterClient() {
66631
- const httpClient = useHttpClient({ type: "backoffice" });
66759
+ function useDevCenterClient({
66760
+ siteId
66761
+ } = {}) {
66762
+ const httpClient = useHttpClient({ type: "backoffice", siteId });
66632
66763
  const client2 = (0, import_react100.useMemo)(() => new DevCenterClient(httpClient), [httpClient]);
66633
66764
  return usePanoramaMethodLogger(client2);
66634
66765
  }
66635
66766
 
66636
66767
  // src/parse-command-options.ts
66637
66768
  init_esm_shims();
66638
- var import_variant23 = __toESM(require_lib(), 1);
66769
+ var import_variant25 = __toESM(require_lib(), 1);
66639
66770
  var import_kebabCase2 = __toESM(require_kebabCase(), 1);
66640
66771
  import { join as join6, resolve as resolve3 } from "node:path";
66641
- var TemplateSource = (0, import_variant23.variant)({
66642
- App: (0, import_variant23.payload)(),
66643
- GitRepo: (0, import_variant23.fields)(),
66644
- Local: (0, import_variant23.fields)(),
66645
- Default: (0, import_variant23.constant)({ path: resolve3(__dirname, "../templates/app") })
66772
+ var TemplateSource = (0, import_variant25.variant)({
66773
+ App: (0, import_variant25.payload)(),
66774
+ GitRepo: (0, import_variant25.fields)(),
66775
+ Local: (0, import_variant25.fields)(),
66776
+ Default: (0, import_variant25.constant)({ path: resolve3(__dirname, "../templates/app") })
66646
66777
  });
66647
66778
  async function parseTemplateOptions(options, { devCenterClient }) {
66648
66779
  if (options.template) {
@@ -66675,8 +66806,8 @@ async function parseTemplateOptions(options, { devCenterClient }) {
66675
66806
  return TemplateSource.Local({ path: options.templatePath });
66676
66807
  }
66677
66808
  }
66678
- var AppNameOptions = (0, import_variant23.variant)({
66679
- Provided: (0, import_variant23.fields)(),
66809
+ var AppNameOptions = (0, import_variant25.variant)({
66810
+ Provided: (0, import_variant25.fields)(),
66680
66811
  Missing: {}
66681
66812
  });
66682
66813
  async function parseAppNameOptions(targetParentFolder2, options) {
@@ -66692,7 +66823,7 @@ async function parseAppNameOptions(targetParentFolder2, options) {
66692
66823
  });
66693
66824
  }
66694
66825
  const npmValidationErrors = await validatePackageName(packageName);
66695
- if ((0, import_variant23.isType)(npmValidationErrors, "Error")) {
66826
+ if ((0, import_variant25.isType)(npmValidationErrors, "Error")) {
66696
66827
  throw new CliError({
66697
66828
  code: CliErrorCode.AppNameArgumentIsInvalid({
66698
66829
  errorMessage: `Invalid package name "${packageName}". Please fix the following issues: ${npmValidationErrors.payload.join(", ")}`
@@ -66707,7 +66838,7 @@ async function parseAppNameOptions(targetParentFolder2, options) {
66707
66838
  async function parseCommandOptions(targetParentFolder2, options, clients) {
66708
66839
  const template = await parseTemplateOptions(options, clients);
66709
66840
  const appNameOptions = await parseAppNameOptions(targetParentFolder2, options);
66710
- if ((0, import_variant23.isType)(appNameOptions, "Provided") && !template) {
66841
+ if ((0, import_variant25.isType)(appNameOptions, "Provided") && !template) {
66711
66842
  throw new CliError({
66712
66843
  code: CliErrorCode.AppNameArgumentIsInvalid({
66713
66844
  errorMessage: "An application name was provided, but no template was specified. Please specify a template when defining the application name."
@@ -66720,8 +66851,8 @@ async function parseCommandOptions(targetParentFolder2, options, clients) {
66720
66851
 
66721
66852
  // src/types.ts
66722
66853
  init_esm_shims();
66723
- var import_variant24 = __toESM(require_lib(), 1);
66724
- var DeveloperAppsStatus = (0, import_variant24.variant)({
66854
+ var import_variant26 = __toESM(require_lib(), 1);
66855
+ var DeveloperAppsStatus = (0, import_variant26.variant)({
66725
66856
  NoApps: {},
66726
66857
  FailedLoadingApps: {},
66727
66858
  Available: {}
@@ -66730,16 +66861,16 @@ var DeveloperAppsStatus = (0, import_variant24.variant)({
66730
66861
  // src/components/CreateAppOrExtendExisting.tsx
66731
66862
  init_esm_shims();
66732
66863
  var import_react101 = __toESM(require_react(), 1);
66733
- var import_variant25 = __toESM(require_lib(), 1);
66864
+ var import_variant27 = __toESM(require_lib(), 1);
66734
66865
  var CreateAppOrExtendExisting = ({
66735
66866
  developerAppsStatus,
66736
66867
  onStartCreationFlow
66737
66868
  }) => {
66738
66869
  const { t: t3 } = useTranslation();
66739
66870
  const { cliFlowStepAnswered } = useCreateAppBi();
66740
- const exisitingAvailabilty = (0, import_variant25.match)(
66871
+ const exisitingAvailabilty = (0, import_variant27.match)(
66741
66872
  developerAppsStatus,
66742
- (0, import_variant25.lookup)({
66873
+ (0, import_variant27.lookup)({
66743
66874
  FailedLoadingApps: SelectOptionAvailability.Disabled({
66744
66875
  reason: t3("create_app.create_new_or_extend.failed_fetching_apps")
66745
66876
  }),
@@ -66780,7 +66911,7 @@ var CreateAppOrExtendExisting = ({
66780
66911
  // src/components/Questions/NewAppFlow.tsx
66781
66912
  init_esm_shims();
66782
66913
  var import_react111 = __toESM(require_react(), 1);
66783
- var import_variant30 = __toESM(require_lib(), 1);
66914
+ var import_variant32 = __toESM(require_lib(), 1);
66784
66915
 
66785
66916
  // src/components/ChooseAppName.tsx
66786
66917
  init_esm_shims();
@@ -66810,7 +66941,7 @@ var ChooseAppName = ({ onSubmit }) => {
66810
66941
  // src/components/ChoosePackageName.tsx
66811
66942
  init_esm_shims();
66812
66943
  var import_react104 = __toESM(require_react(), 1);
66813
- var import_variant26 = __toESM(require_lib(), 1);
66944
+ var import_variant28 = __toESM(require_lib(), 1);
66814
66945
  import { join as join7, relative } from "node:path";
66815
66946
  var import_kebabCase3 = __toESM(require_kebabCase(), 1);
66816
66947
 
@@ -66859,16 +66990,16 @@ var ChoosePackageName = ({
66859
66990
  const defaultPackageName = (0, import_react104.useMemo)(() => {
66860
66991
  return (0, import_kebabCase3.default)(appName);
66861
66992
  }, [appName]);
66862
- const isMonorepo = (0, import_variant26.isType)(repoType, RepoType.Monorepo);
66993
+ const isMonorepo = (0, import_variant28.isType)(repoType, RepoType.Monorepo);
66863
66994
  async function validate3(packageName2) {
66864
66995
  if (!await validateDirectory(join7(targetParentFolder2, packageName2))) {
66865
66996
  return t3("validation_errors.invalid_directory");
66866
66997
  }
66867
66998
  const npmValidationErrors = await validatePackageName(packageName2);
66868
- return (0, import_variant26.match)(npmValidationErrors, {
66999
+ return (0, import_variant28.match)(npmValidationErrors, {
66869
67000
  Ok: () => true,
66870
- Error: ({ payload: payload5 }) => t3("validation_errors.invalid_package_name", {
66871
- errors: payload5.join(", ")
67001
+ Error: ({ payload: payload6 }) => t3("validation_errors.invalid_package_name", {
67002
+ errors: payload6.join(", ")
66872
67003
  })
66873
67004
  });
66874
67005
  }
@@ -66963,7 +67094,7 @@ var ChooseAppCreationSource = ({
66963
67094
  // src/components/ChooseTemplate.tsx
66964
67095
  init_esm_shims();
66965
67096
  var import_react106 = __toESM(require_react(), 1);
66966
- var import_variant27 = __toESM(require_lib(), 1);
67097
+ var import_variant29 = __toESM(require_lib(), 1);
66967
67098
  var ChooseTemplate = ({ onSelected }) => {
66968
67099
  const { t: t3 } = useTranslation();
66969
67100
  const { cliFlowStepAnswered } = useCreateAppBi();
@@ -66982,7 +67113,7 @@ var ChooseTemplate = ({ onSelected }) => {
66982
67113
  })
66983
67114
  };
66984
67115
  }, []);
66985
- return /* @__PURE__ */ import_react106.default.createElement(import_react106.default.Fragment, null, (0, import_variant27.match)(status, {
67116
+ return /* @__PURE__ */ import_react106.default.createElement(import_react106.default.Fragment, null, (0, import_variant29.match)(status, {
66986
67117
  Error: () => null,
66987
67118
  Loading: () => /* @__PURE__ */ import_react106.default.createElement(Spinner2, null),
66988
67119
  Success: ({ result: { appTemplatesOptions } }) => /* @__PURE__ */ import_react106.default.createElement(import_react106.default.Fragment, null, /* @__PURE__ */ import_react106.default.createElement(
@@ -67063,8 +67194,8 @@ var AppRegistered = ({ appName }) => {
67063
67194
  // src/components/mcp/ConfigMcp.tsx
67064
67195
  init_esm_shims();
67065
67196
  var import_react110 = __toESM(require_react(), 1);
67066
- var import_variant28 = __toESM(require_lib(), 1);
67067
- var IdeForMcp = (0, import_variant28.variant)({
67197
+ var import_variant30 = __toESM(require_lib(), 1);
67198
+ var IdeForMcp = (0, import_variant30.variant)({
67068
67199
  VsCode: {},
67069
67200
  Cursor: {},
67070
67201
  ClaudeCode: {}
@@ -67121,17 +67252,17 @@ var ConfigMcp = ({ onSelected }) => {
67121
67252
 
67122
67253
  // src/components/mcp/getMcpResult.ts
67123
67254
  init_esm_shims();
67124
- var import_variant29 = __toESM(require_lib(), 1);
67255
+ var import_variant31 = __toESM(require_lib(), 1);
67125
67256
  import { join as join8 } from "node:path";
67126
- var McpConfigResult = (0, import_variant29.variant)({
67127
- Created: (0, import_variant29.fields)(),
67257
+ var McpConfigResult = (0, import_variant31.variant)({
67258
+ Created: (0, import_variant31.fields)(),
67128
67259
  Canceled: {}
67129
67260
  });
67130
67261
  var getMcpData = ({
67131
67262
  ideForMcp,
67132
67263
  packageFolder
67133
67264
  }) => {
67134
- const mcpPath = (0, import_variant29.match)(ideForMcp, {
67265
+ const mcpPath = (0, import_variant31.match)(ideForMcp, {
67135
67266
  Cursor: () => join8(packageFolder, ".cursor", "mcp.json"),
67136
67267
  VsCode: () => join8(packageFolder, ".vscode", "mcp.json"),
67137
67268
  ClaudeCode: () => join8(packageFolder, ".mcp.json")
@@ -67139,9 +67270,9 @@ var getMcpData = ({
67139
67270
  return McpConfigResult.Created({
67140
67271
  mcpPath,
67141
67272
  ideForMcp,
67142
- docsUrl: (0, import_variant29.match)(
67273
+ docsUrl: (0, import_variant31.match)(
67143
67274
  ideForMcp,
67144
- (0, import_variant29.lookup)({
67275
+ (0, import_variant31.lookup)({
67145
67276
  Cursor: "https://cursor.com/docs/context/mcp",
67146
67277
  VsCode: "https://code.visualstudio.com/docs/copilot/chat/mcp-servers",
67147
67278
  ClaudeCode: "https://docs.anthropic.com/en/docs/claude-code/mcp"
@@ -67178,15 +67309,15 @@ var NewAppFlow = ({
67178
67309
  const [packageName, setPackageName] = (0, import_react111.useState)();
67179
67310
  const createAppCallback = useAsyncCallback3(
67180
67311
  async (_2, { appName: appName2, packageName: packageName2, template, mcpConfigResult }) => {
67181
- const { id: appId } = await (0, import_variant30.match)(
67312
+ const { id: appId } = await (0, import_variant32.match)(
67182
67313
  template,
67183
- (0, import_variant30.partial)({
67184
- App: ({ payload: payload5 }) => devCenterClient.createAppFromTemplate(
67314
+ (0, import_variant32.partial)({
67315
+ App: ({ payload: payload6 }) => devCenterClient.createAppFromTemplate(
67185
67316
  {
67186
67317
  name: appName2,
67187
- templateId: payload5.id
67318
+ templateId: payload6.id
67188
67319
  },
67189
- payload5
67320
+ payload6
67190
67321
  ),
67191
67322
  default: () => devCenterClient.createApp({ name: appName2 })
67192
67323
  })
@@ -67206,7 +67337,7 @@ var NewAppFlow = ({
67206
67337
  };
67207
67338
  }
67208
67339
  );
67209
- const autoCreateApp = (0, import_variant30.isType)(appNameFromOptions, "Provided") && !!templateFromOptions;
67340
+ const autoCreateApp = (0, import_variant32.isType)(appNameFromOptions, "Provided") && !!templateFromOptions;
67210
67341
  useAsync2(async () => {
67211
67342
  if (autoCreateApp) {
67212
67343
  return createAppCallback.execute({
@@ -67224,7 +67355,7 @@ var NewAppFlow = ({
67224
67355
  targetParentFolder: targetParentFolder2,
67225
67356
  repoType,
67226
67357
  onSelected: (userPackageName) => {
67227
- if ((0, import_variant30.isType)(repoType, RepoType.Monorepo)) {
67358
+ if ((0, import_variant32.isType)(repoType, RepoType.Monorepo)) {
67228
67359
  void createAppCallback.execute({
67229
67360
  appName,
67230
67361
  packageName: userPackageName,
@@ -67252,7 +67383,7 @@ var NewAppFlow = ({
67252
67383
  });
67253
67384
  }
67254
67385
  }
67255
- )), (0, import_variant30.match)(createAppCallback.status, {
67386
+ )), (0, import_variant32.match)(createAppCallback.status, {
67256
67387
  Error: () => null,
67257
67388
  Loading: () => /* @__PURE__ */ import_react111.default.createElement(RegisteringApp, null),
67258
67389
  Success: ({ result }) => /* @__PURE__ */ import_react111.default.createElement(AppRegistered, { ...result }),
@@ -67341,17 +67472,17 @@ var ExistingAppFlow = ({
67341
67472
  // src/components/StartFromTemplateMessage.tsx
67342
67473
  init_esm_shims();
67343
67474
  var import_react114 = __toESM(require_react(), 1);
67344
- var import_variant31 = __toESM(require_lib(), 1);
67475
+ var import_variant33 = __toESM(require_lib(), 1);
67345
67476
  var StartFromTemplateMessage = ({
67346
67477
  template
67347
67478
  }) => {
67348
- const messageComponent = (0, import_variant31.match)(template, {
67349
- App: ({ payload: payload5 }) => /* @__PURE__ */ import_react114.default.createElement(
67479
+ const messageComponent = (0, import_variant33.match)(template, {
67480
+ App: ({ payload: payload6 }) => /* @__PURE__ */ import_react114.default.createElement(
67350
67481
  Trans2,
67351
67482
  {
67352
67483
  i18nKey: "create_app.template_is_set_from_options.template_id",
67353
67484
  values: {
67354
- templateName: payload5.title
67485
+ templateName: payload6.title
67355
67486
  },
67356
67487
  components: [/* @__PURE__ */ import_react114.default.createElement(Text2, { bold: true })]
67357
67488
  }
@@ -67423,7 +67554,7 @@ var Questions = ({
67423
67554
  };
67424
67555
  }
67425
67556
  }, []);
67426
- return (0, import_variant32.match)(status, {
67557
+ return (0, import_variant34.match)(status, {
67427
67558
  Error: () => null,
67428
67559
  Loading: () => /* @__PURE__ */ import_react115.default.createElement(Spinner2, { text: t3("general.loading") }),
67429
67560
  Success: ({
@@ -67441,7 +67572,7 @@ var Questions = ({
67441
67572
  }
67442
67573
  ));
67443
67574
  }
67444
- if ((0, import_variant32.isType)(developerAppsStatus, "NoApps")) {
67575
+ if ((0, import_variant34.isType)(developerAppsStatus, "NoApps")) {
67445
67576
  return /* @__PURE__ */ import_react115.default.createElement(
67446
67577
  NewAppFlow,
67447
67578
  {
@@ -67479,7 +67610,7 @@ var Questions = ({
67479
67610
 
67480
67611
  // src/tasks.ts
67481
67612
  init_esm_shims();
67482
- var import_variant33 = __toESM(require_lib(), 1);
67613
+ var import_variant35 = __toESM(require_lib(), 1);
67483
67614
  import { mkdir } from "node:fs/promises";
67484
67615
  import { join as join9 } from "node:path";
67485
67616
  function getTasks({
@@ -67504,7 +67635,7 @@ function getTasks({
67504
67635
  cause: e2
67505
67636
  });
67506
67637
  }
67507
- const { generateApp } = await import("./generator-HVPUF3CK.js");
67638
+ const { generateApp } = await import("./generator-WYU6PW63.js");
67508
67639
  await generateApp({
67509
67640
  packageName,
67510
67641
  packageFolder,
@@ -67513,7 +67644,7 @@ function getTasks({
67513
67644
  repoType,
67514
67645
  template,
67515
67646
  templateParams,
67516
- ideForMcp: (0, import_variant33.match)(mcpConfigResult, {
67647
+ ideForMcp: (0, import_variant35.match)(mcpConfigResult, {
67517
67648
  Created: ({ ideForMcp }) => ideForMcp,
67518
67649
  Canceled: () => {
67519
67650
  }
@@ -67606,7 +67737,7 @@ function getTasks({
67606
67737
  successText: t3("create_app.generate_project.git_commit.done")
67607
67738
  };
67608
67739
  const optionalInstallTask = skipInstall ? [] : [installDependenciesTask, addWixSkillsTask];
67609
- return (0, import_variant33.match)(repoType, {
67740
+ return (0, import_variant35.match)(repoType, {
67610
67741
  None: () => [
67611
67742
  generateProjectTask,
67612
67743
  ...skipGit ? [] : [initializeGitTask],
@@ -67702,8 +67833,8 @@ var TaskList = ({ tasks, totalTaskCount }) => {
67702
67833
  // src/task-runner.ts
67703
67834
  init_esm_shims();
67704
67835
  var import_react118 = __toESM(require_react(), 1);
67705
- var import_variant34 = __toESM(require_lib(), 1);
67706
- var TaskRunnerStatus = (0, import_variant34.variant)({
67836
+ var import_variant36 = __toESM(require_lib(), 1);
67837
+ var TaskRunnerStatus = (0, import_variant36.variant)({
67707
67838
  Idle: {},
67708
67839
  Running: (runningTasks, totalTaskCount) => {
67709
67840
  const taskStatuses = runningTasks.map((task, index) => {
@@ -67788,7 +67919,7 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
67788
67919
  const tasks = getTasks(data, t3);
67789
67920
  await executeTaskRunner(tasks);
67790
67921
  }
67791
- return (0, import_variant35.match)(status, {
67922
+ return (0, import_variant37.match)(status, {
67792
67923
  Error: () => null,
67793
67924
  Loading: () => /* @__PURE__ */ import_react120.default.createElement(Spinner2, { text: t3("general.loading") }),
67794
67925
  Success: ({ result: { repoType, packageManager } }) => {
@@ -67804,7 +67935,7 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
67804
67935
  paddingLeft: 1
67805
67936
  },
67806
67937
  /* @__PURE__ */ import_react120.default.createElement(WelcomeMessage, null),
67807
- /* @__PURE__ */ import_react120.default.createElement(AuthProvider, { userInfo: userInfo2 }, /* @__PURE__ */ import_react120.default.createElement(
67938
+ /* @__PURE__ */ import_react120.default.createElement(AuthProvider2, { userInfo: userInfo2 }, /* @__PURE__ */ import_react120.default.createElement(
67808
67939
  Questions,
67809
67940
  {
67810
67941
  repoType,
@@ -67821,10 +67952,10 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
67821
67952
  })
67822
67953
  }
67823
67954
  )),
67824
- generationData && (0, import_variant35.match)(taskRunnerStatus, {
67955
+ generationData && (0, import_variant37.match)(taskRunnerStatus, {
67825
67956
  Idle: () => null,
67826
67957
  Running: (status2) => /* @__PURE__ */ import_react120.default.createElement(GenerationProgress, { ...status2 }),
67827
- Done: (status2) => /* @__PURE__ */ import_react120.default.createElement(import_react120.default.Fragment, null, /* @__PURE__ */ import_react120.default.createElement(GenerationProgress, { ...status2 }), (0, import_variant35.match)(generationData.mcpConfigResult, {
67958
+ Done: (status2) => /* @__PURE__ */ import_react120.default.createElement(import_react120.default.Fragment, null, /* @__PURE__ */ import_react120.default.createElement(GenerationProgress, { ...status2 }), (0, import_variant37.match)(generationData.mcpConfigResult, {
67828
67959
  Created: ({ mcpPath, docsUrl }) => /* @__PURE__ */ import_react120.default.createElement(McpConfigCreated, { mcpPath, docsUrl }),
67829
67960
  Canceled: () => null
67830
67961
  }), /* @__PURE__ */ import_react120.default.createElement(
@@ -67967,10 +68098,12 @@ var program2 = new Command().name(package_default.name).description("Create Wix
67967
68098
  Arguments: command.args,
67968
68099
  Options: command.opts()
67969
68100
  });
67970
- const { biLogger, reportCommandStartEvent: reportCommandStartEvent2 } = await createBiLogger2(
68101
+ const cliSessionId = randomUUID2();
68102
+ const { biLogger, reportCommandStartEvent: reportCommandStartEvent2 } = await createBiLogger2({
67971
68103
  errorReporter,
67972
- userInfo?.userId
67973
- );
68104
+ cliSessionId,
68105
+ userId: userInfo?.userId
68106
+ });
67974
68107
  const commandStatus = reportCommandStartEvent2(command);
67975
68108
  const commandOptions = {
67976
68109
  ...options,
@@ -67986,7 +68119,8 @@ var program2 = new Command().name(package_default.name).description("Create Wix
67986
68119
  artifact: package_default.wix.artifact,
67987
68120
  version: package_default.version,
67988
68121
  userId: userInfo?.userId,
67989
- errorReporter
68122
+ errorReporter,
68123
+ cliSessionId
67990
68124
  });
67991
68125
  const transaction = createCommandTransaction(panorama, command);
67992
68126
  try {