@gooddata/code-cli 0.36.0-alpha.3 → 0.36.0-alpha.5

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.
Files changed (3) hide show
  1. package/NOTICE +3 -3
  2. package/dist/index.js +398 -139
  3. package/package.json +1 -1
package/NOTICE CHANGED
@@ -7,9 +7,9 @@
7
7
 
8
8
  The following 3rd-party software packages may be used by or distributed with gdc-analytics-as-code. Any information relevant to third-party vendors listed below are collected using common, reasonable means.
9
9
 
10
- Date generated: 2026-5-27
10
+ Date generated: 2026-6-1
11
11
 
12
- Revision ID: 9f9cce29e83fdfaaed30b93ae6742424556604dc
12
+ Revision ID: f2a2b9059f89d0a61e0eab0e7890e509ed7b9569
13
13
 
14
14
  ================================================================================
15
15
  ================================================================================
@@ -17909,4 +17909,4 @@ POSSIBILITY OF SUCH DAMAGE.
17909
17909
  --------------------------------------------------------------------------------
17910
17910
  --------------------------------------------------------------------------------
17911
17911
 
17912
- Report Generated by FOSSA on 2026-5-27
17912
+ Report Generated by FOSSA on 2026-6-1
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
35
35
  var __getProtoOf = Object.getPrototypeOf;
36
36
  var __hasOwnProp = Object.prototype.hasOwnProperty;
37
37
  var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
38
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
38
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
39
39
  var __exportAll = (all, no_symbols) => {
40
40
  let target = {};
41
41
  for (var name in all) __defProp(target, name, {
@@ -2581,28 +2581,28 @@ var require_ansi_escapes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2581
2581
  ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
2582
2582
  ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
2583
2583
  ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
2584
- ansiEscapes.cursorLeft = ESC + "G";
2585
- ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
2586
- ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
2587
- ansiEscapes.cursorGetPosition = ESC + "6n";
2588
- ansiEscapes.cursorNextLine = ESC + "E";
2589
- ansiEscapes.cursorPrevLine = ESC + "F";
2590
- ansiEscapes.cursorHide = ESC + "?25l";
2591
- ansiEscapes.cursorShow = ESC + "?25h";
2584
+ ansiEscapes.cursorLeft = "\x1B[G";
2585
+ ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : "\x1B[s";
2586
+ ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : "\x1B[u";
2587
+ ansiEscapes.cursorGetPosition = "\x1B[6n";
2588
+ ansiEscapes.cursorNextLine = "\x1B[E";
2589
+ ansiEscapes.cursorPrevLine = "\x1B[F";
2590
+ ansiEscapes.cursorHide = "\x1B[?25l";
2591
+ ansiEscapes.cursorShow = "\x1B[?25h";
2592
2592
  ansiEscapes.eraseLines = (count) => {
2593
2593
  let clear = "";
2594
2594
  for (let i = 0; i < count; i++) clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
2595
2595
  if (count) clear += ansiEscapes.cursorLeft;
2596
2596
  return clear;
2597
2597
  };
2598
- ansiEscapes.eraseEndLine = ESC + "K";
2599
- ansiEscapes.eraseStartLine = ESC + "1K";
2600
- ansiEscapes.eraseLine = ESC + "2K";
2601
- ansiEscapes.eraseDown = ESC + "J";
2602
- ansiEscapes.eraseUp = ESC + "1J";
2603
- ansiEscapes.eraseScreen = ESC + "2J";
2604
- ansiEscapes.scrollUp = ESC + "S";
2605
- ansiEscapes.scrollDown = ESC + "T";
2598
+ ansiEscapes.eraseEndLine = "\x1B[K";
2599
+ ansiEscapes.eraseStartLine = "\x1B[1K";
2600
+ ansiEscapes.eraseLine = "\x1B[2K";
2601
+ ansiEscapes.eraseDown = "\x1B[J";
2602
+ ansiEscapes.eraseUp = "\x1B[1J";
2603
+ ansiEscapes.eraseScreen = "\x1B[2J";
2604
+ ansiEscapes.scrollUp = "\x1B[S";
2605
+ ansiEscapes.scrollDown = "\x1B[T";
2606
2606
  ansiEscapes.clearScreen = "\x1Bc";
2607
2607
  ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
2608
2608
  ansiEscapes.beep = BEL;
@@ -2650,8 +2650,8 @@ var require_ansi_escapes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2650
2650
  };
2651
2651
  }));
2652
2652
  //#endregion
2653
- //#region ../../../common/temp/aac/node_modules/.pnpm/@inquirer+figures@1.0.13/node_modules/@inquirer/figures/dist/esm/index.js
2654
- var import_yoctocolors_cjs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
2653
+ //#region ../../../common/temp/aac/node_modules/.pnpm/yoctocolors-cjs@2.1.2/node_modules/yoctocolors-cjs/index.js
2654
+ var require_yoctocolors_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2655
2655
  const hasColors = __require("node:tty")?.WriteStream?.prototype?.hasColors?.() ?? false;
2656
2656
  const format = (open, close) => {
2657
2657
  if (!hasColors) return (input) => input;
@@ -2715,10 +2715,13 @@ var import_yoctocolors_cjs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJS
2715
2715
  colors.bgCyanBright = format(106, 49);
2716
2716
  colors.bgWhiteBright = format(107, 49);
2717
2717
  module.exports = colors;
2718
- })))(), 1);
2719
- var import_ansi_escapes = /* @__PURE__ */ __toESM(require_ansi_escapes(), 1);
2720
- var import_main = require_main$5();
2718
+ }));
2719
+ //#endregion
2720
+ //#region ../../../common/temp/aac/node_modules/.pnpm/@inquirer+figures@1.0.13/node_modules/@inquirer/figures/dist/esm/index.js
2721
2721
  var import_commander = require_commander();
2722
+ var import_main = require_main$5();
2723
+ var import_ansi_escapes = /* @__PURE__ */ __toESM(require_ansi_escapes(), 1);
2724
+ var import_yoctocolors_cjs = /* @__PURE__ */ __toESM(require_yoctocolors_cjs(), 1);
2722
2725
  function isUnicodeSupported$1() {
2723
2726
  if (process$1.platform !== "win32") return process$1.env["TERM"] !== "linux";
2724
2727
  return Boolean(process$1.env["WT_SESSION"]) || Boolean(process$1.env["TERMINUS_SUBLIME"]) || process$1.env["ConEmuTask"] === "{cmd::Cmder}" || process$1.env["TERM_PROGRAM"] === "Terminus-Sublime" || process$1.env["TERM_PROGRAM"] === "vscode" || process$1.env["TERM"] === "xterm-256color" || process$1.env["TERM"] === "alacritty" || process$1.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
@@ -16484,7 +16487,7 @@ var require_buffer_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16484
16487
  function copyBuffer(src, target, offset) {
16485
16488
  Buffer$9.prototype.copy.call(src, target, offset);
16486
16489
  }
16487
- module.exports = /* @__PURE__ */ function() {
16490
+ module.exports = /*#__PURE__*/ function() {
16488
16491
  function BufferList() {
16489
16492
  _classCallCheck(this, BufferList);
16490
16493
  this.head = null;
@@ -16903,7 +16906,8 @@ var require__stream_writable = /* @__PURE__ */ __commonJSMin(((exports, module)
16903
16906
  this.ended = false;
16904
16907
  this.finished = false;
16905
16908
  this.destroyed = false;
16906
- this.decodeStrings = !(options.decodeStrings === false);
16909
+ var noDecode = options.decodeStrings === false;
16910
+ this.decodeStrings = !noDecode;
16907
16911
  this.defaultEncoding = options.defaultEncoding || "utf8";
16908
16912
  this.length = 0;
16909
16913
  this.writing = false;
@@ -19082,8 +19086,8 @@ var require_bl = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19082
19086
  module.exports.BufferList = BufferList;
19083
19087
  }));
19084
19088
  //#endregion
19085
- //#region ../../../common/temp/aac/node_modules/.pnpm/inquirer@9.3.7/node_modules/inquirer/lib/utils/readline.js
19086
- var import_ora = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
19089
+ //#region ../../../common/temp/aac/node_modules/.pnpm/ora@5.4.1/node_modules/ora/index.js
19090
+ var require_ora = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19087
19091
  const readline$1 = __require("readline");
19088
19092
  const chalk = require_source();
19089
19093
  const cliCursor = require_cli_cursor();
@@ -19350,11 +19354,14 @@ var import_ora = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((export
19350
19354
  })();
19351
19355
  return spinner;
19352
19356
  };
19353
- })))(), 1);
19354
- var import_wrap_ansi = /* @__PURE__ */ __toESM(require_wrap_ansi(), 1);
19355
- var import_string_width = /* @__PURE__ */ __toESM(require_string_width(), 1);
19356
- var import_strip_ansi = /* @__PURE__ */ __toESM(require_strip_ansi(), 1);
19357
+ }));
19358
+ //#endregion
19359
+ //#region ../../../common/temp/aac/node_modules/.pnpm/inquirer@9.3.7/node_modules/inquirer/lib/utils/readline.js
19357
19360
  var import_cli_width = /* @__PURE__ */ __toESM(require_cli_width(), 1);
19361
+ var import_strip_ansi = /* @__PURE__ */ __toESM(require_strip_ansi(), 1);
19362
+ var import_string_width = /* @__PURE__ */ __toESM(require_string_width(), 1);
19363
+ var import_wrap_ansi = /* @__PURE__ */ __toESM(require_wrap_ansi(), 1);
19364
+ var import_ora = /* @__PURE__ */ __toESM(require_ora(), 1);
19358
19365
  /**
19359
19366
  * Move cursor left by `x`
19360
19367
  * @param {Readline} rl - Readline instance
@@ -19882,7 +19889,8 @@ var RawListPrompt = class extends Prompt {
19882
19889
  this.rawDefault = safeIndex;
19883
19890
  }
19884
19891
  this.opt.default = null;
19885
- this.paginator = new Paginator(void 0, { isInfinite: this.opt.loop === void 0 ? true : this.opt.loop });
19892
+ const shouldLoop = this.opt.loop === void 0 ? true : this.opt.loop;
19893
+ this.paginator = new Paginator(void 0, { isInfinite: shouldLoop });
19886
19894
  }
19887
19895
  /**
19888
19896
  * Start the Inquiry session
@@ -34996,9 +35004,10 @@ var import_main$2 = (/* @__PURE__ */ __commonJSMin(((exports) => {
34996
35004
  var editorOpts = ExternalEditor.splitStringBySpace(editor).map(function(piece) {
34997
35005
  return piece.replace("\\ ", " ");
34998
35006
  });
35007
+ var bin = editorOpts.shift();
34999
35008
  this.editor = {
35000
35009
  args: editorOpts,
35001
- bin: editorOpts.shift()
35010
+ bin
35002
35011
  };
35003
35012
  };
35004
35013
  ExternalEditor.prototype.createTemporaryFile = function() {
@@ -35033,7 +35042,8 @@ var import_main$2 = (/* @__PURE__ */ __commonJSMin(((exports) => {
35033
35042
  };
35034
35043
  ExternalEditor.prototype.launchEditor = function() {
35035
35044
  try {
35036
- this.lastExitStatus = child_process_1$1.spawnSync(this.editor.bin, this.editor.args.concat([this.tempFile]), { stdio: "inherit" }).status;
35045
+ var editorProcess = child_process_1$1.spawnSync(this.editor.bin, this.editor.args.concat([this.tempFile]), { stdio: "inherit" });
35046
+ this.lastExitStatus = editorProcess.status;
35037
35047
  } catch (launchError) {
35038
35048
  throw new LaunchEditorError_1.LaunchEditorError(launchError);
35039
35049
  }
@@ -35061,7 +35071,8 @@ var EditorPrompt = class extends Prompt {
35061
35071
  _run(cb) {
35062
35072
  this.done = cb;
35063
35073
  this.editorResult = new import_cjs.Subject();
35064
- this.lineSubscription = observe(this.rl).line.subscribe(this.startExternalEditor.bind(this));
35074
+ const events = observe(this.rl);
35075
+ this.lineSubscription = events.line.subscribe(this.startExternalEditor.bind(this));
35065
35076
  const waitUserInput = this.opt.waitUserInput === void 0 ? true : this.opt.waitUserInput;
35066
35077
  const validation = this.handleSubmitEvents(this.editorResult);
35067
35078
  validation.success.forEach(this.onEnd.bind(this));
@@ -35532,32 +35543,32 @@ ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
35532
35543
  ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
35533
35544
  ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
35534
35545
  ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
35535
- ansiEscapes.cursorLeft = ESC + "G";
35536
- ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
35537
- ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
35538
- ansiEscapes.cursorGetPosition = ESC + "6n";
35539
- ansiEscapes.cursorNextLine = ESC + "E";
35540
- ansiEscapes.cursorPrevLine = ESC + "F";
35541
- ansiEscapes.cursorHide = ESC + "?25l";
35542
- ansiEscapes.cursorShow = ESC + "?25h";
35546
+ ansiEscapes.cursorLeft = "\x1B[G";
35547
+ ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : "\x1B[s";
35548
+ ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : "\x1B[u";
35549
+ ansiEscapes.cursorGetPosition = "\x1B[6n";
35550
+ ansiEscapes.cursorNextLine = "\x1B[E";
35551
+ ansiEscapes.cursorPrevLine = "\x1B[F";
35552
+ ansiEscapes.cursorHide = "\x1B[?25l";
35553
+ ansiEscapes.cursorShow = "\x1B[?25h";
35543
35554
  ansiEscapes.eraseLines = (count) => {
35544
35555
  let clear = "";
35545
35556
  for (let i = 0; i < count; i++) clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
35546
35557
  if (count) clear += ansiEscapes.cursorLeft;
35547
35558
  return clear;
35548
35559
  };
35549
- ansiEscapes.eraseEndLine = ESC + "K";
35550
- ansiEscapes.eraseStartLine = ESC + "1K";
35551
- ansiEscapes.eraseLine = ESC + "2K";
35552
- ansiEscapes.eraseDown = ESC + "J";
35553
- ansiEscapes.eraseUp = ESC + "1J";
35554
- ansiEscapes.eraseScreen = ESC + "2J";
35555
- ansiEscapes.scrollUp = ESC + "S";
35556
- ansiEscapes.scrollDown = ESC + "T";
35560
+ ansiEscapes.eraseEndLine = "\x1B[K";
35561
+ ansiEscapes.eraseStartLine = "\x1B[1K";
35562
+ ansiEscapes.eraseLine = "\x1B[2K";
35563
+ ansiEscapes.eraseDown = "\x1B[J";
35564
+ ansiEscapes.eraseUp = "\x1B[1J";
35565
+ ansiEscapes.eraseScreen = "\x1B[2J";
35566
+ ansiEscapes.scrollUp = "\x1B[S";
35567
+ ansiEscapes.scrollDown = "\x1B[T";
35557
35568
  ansiEscapes.clearScreen = "\x1Bc";
35558
35569
  ansiEscapes.clearTerminal = isWindows ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
35559
- ansiEscapes.enterAlternativeScreen = ESC + "?1049h";
35560
- ansiEscapes.exitAlternativeScreen = ESC + "?1049l";
35570
+ ansiEscapes.enterAlternativeScreen = "\x1B[?1049h";
35571
+ ansiEscapes.exitAlternativeScreen = "\x1B[?1049l";
35561
35572
  ansiEscapes.beep = BEL;
35562
35573
  ansiEscapes.link = (text, url) => [
35563
35574
  OSC,
@@ -37092,7 +37103,7 @@ function isPromise(value) {
37092
37103
  //#endregion
37093
37104
  //#region package.json
37094
37105
  var name$1 = "@gooddata/code-cli";
37095
- var version$1 = "0.36.0-alpha.3";
37106
+ var version$1 = "0.36.0-alpha.5";
37096
37107
  //#endregion
37097
37108
  //#region ../code/esm/features/references/types.js
37098
37109
  var UpdateReferencesType;
@@ -48588,31 +48599,28 @@ var require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48588
48599
  parse: wsParse,
48589
48600
  serialize: wsSerialize
48590
48601
  };
48591
- const wss = {
48592
- scheme: "wss",
48593
- domainHost: ws.domainHost,
48594
- parse: ws.parse,
48595
- serialize: ws.serialize
48596
- };
48597
- const urn = {
48598
- scheme: "urn",
48599
- parse: urnParse,
48600
- serialize: urnSerialize,
48601
- skipNormalize: true
48602
- };
48603
- const urnuuid = {
48604
- scheme: "urn:uuid",
48605
- parse: urnuuidParse,
48606
- serialize: urnuuidSerialize,
48607
- skipNormalize: true
48608
- };
48609
48602
  const SCHEMES = {
48610
48603
  http,
48611
48604
  https,
48612
48605
  ws,
48613
- wss,
48614
- urn,
48615
- "urn:uuid": urnuuid
48606
+ wss: {
48607
+ scheme: "wss",
48608
+ domainHost: ws.domainHost,
48609
+ parse: ws.parse,
48610
+ serialize: ws.serialize
48611
+ },
48612
+ urn: {
48613
+ scheme: "urn",
48614
+ parse: urnParse,
48615
+ serialize: urnSerialize,
48616
+ skipNormalize: true
48617
+ },
48618
+ "urn:uuid": {
48619
+ scheme: "urn:uuid",
48620
+ parse: urnuuidParse,
48621
+ serialize: urnuuidSerialize,
48622
+ skipNormalize: true
48623
+ }
48616
48624
  };
48617
48625
  module.exports = SCHEMES;
48618
48626
  }));
@@ -51624,6 +51632,11 @@ var require_anchors$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
51624
51632
  prevAnchors.add(anchor);
51625
51633
  return anchor;
51626
51634
  },
51635
+ /**
51636
+ * With circular references, the source node is only resolved after all
51637
+ * of its child nodes are. This is why anchors are set only after all of
51638
+ * the nodes have been created.
51639
+ */
51627
51640
  setAnchors: () => {
51628
51641
  for (const source of aliasObjects) {
51629
51642
  const ref = sourceObjects.get(source);
@@ -53376,6 +53389,14 @@ var require_binary$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
53376
53389
  identify: (value) => value instanceof Uint8Array,
53377
53390
  default: false,
53378
53391
  tag: "tag:yaml.org,2002:binary",
53392
+ /**
53393
+ * Returns a Buffer in node and an Uint8Array in browsers
53394
+ *
53395
+ * To use the resulting buffer as an image, you'll want to do something like:
53396
+ *
53397
+ * const blob = new Blob([buffer], { type: 'image/jpeg' })
53398
+ * document.querySelector('#photo').src = URL.createObjectURL(blob)
53399
+ */
53379
53400
  resolve(src, onError) {
53380
53401
  if (typeof node_buffer$1.Buffer === "function") return node_buffer$1.Buffer.from(src, "base64");
53381
53402
  else if (typeof atob === "function") {
@@ -55061,6 +55082,7 @@ var require_resolve_block_scalar$1 = /* @__PURE__ */ __commonJSMin(((exports) =>
55061
55082
  onError(token, "UNEXPECTED_TOKEN", token.message);
55062
55083
  length += token.source.length;
55063
55084
  break;
55085
+ /* istanbul ignore next should not happen */
55064
55086
  default: {
55065
55087
  onError(token, "UNEXPECTED_TOKEN", `Unexpected token in block scalar header: ${token.type}`);
55066
55088
  const ts = token.source;
@@ -55110,6 +55132,7 @@ var require_resolve_flow_scalar$1 = /* @__PURE__ */ __commonJSMin(((exports) =>
55110
55132
  _type = Scalar.Scalar.QUOTE_DOUBLE;
55111
55133
  value = doubleQuotedValue(source, _onError);
55112
55134
  break;
55135
+ /* istanbul ignore next should not happen */
55113
55136
  default:
55114
55137
  onError(scalar, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${type}`);
55115
55138
  return {
@@ -55139,6 +55162,7 @@ var require_resolve_flow_scalar$1 = /* @__PURE__ */ __commonJSMin(((exports) =>
55139
55162
  function plainValue(source, onError) {
55140
55163
  let badChar = "";
55141
55164
  switch (source[0]) {
55165
+ /* istanbul ignore next should not happen */
55142
55166
  case " ":
55143
55167
  badChar = "a tab character";
55144
55168
  break;
@@ -56799,6 +56823,7 @@ var require_parser$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
56799
56823
  return it.sep ?? it.start;
56800
56824
  }
56801
56825
  case "block-seq": return parent.items[parent.items.length - 1].start;
56826
+ /* istanbul ignore next should not happen */
56802
56827
  default: return [];
56803
56828
  }
56804
56829
  }
@@ -57051,6 +57076,7 @@ var require_parser$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
57051
57076
  });
57052
57077
  return;
57053
57078
  }
57079
+ /* istanbul ignore next should not happen */
57054
57080
  default:
57055
57081
  yield* this.pop();
57056
57082
  yield* this.pop(token);
@@ -57168,6 +57194,7 @@ var require_parser$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
57168
57194
  }
57169
57195
  yield* this.pop();
57170
57196
  break;
57197
+ /* istanbul ignore next should not happen */
57171
57198
  default:
57172
57199
  yield* this.pop();
57173
57200
  yield* this.step();
@@ -63376,6 +63403,11 @@ var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
63376
63403
  prevAnchors.add(anchor);
63377
63404
  return anchor;
63378
63405
  },
63406
+ /**
63407
+ * With circular references, the source node is only resolved after all
63408
+ * of its child nodes are. This is why anchors are set only after all of
63409
+ * the nodes have been created.
63410
+ */
63379
63411
  setAnchors: () => {
63380
63412
  for (const source of aliasObjects) {
63381
63413
  const ref = sourceObjects.get(source);
@@ -65128,6 +65160,14 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
65128
65160
  identify: (value) => value instanceof Uint8Array,
65129
65161
  default: false,
65130
65162
  tag: "tag:yaml.org,2002:binary",
65163
+ /**
65164
+ * Returns a Buffer in node and an Uint8Array in browsers
65165
+ *
65166
+ * To use the resulting buffer as an image, you'll want to do something like:
65167
+ *
65168
+ * const blob = new Blob([buffer], { type: 'image/jpeg' })
65169
+ * document.querySelector('#photo').src = URL.createObjectURL(blob)
65170
+ */
65131
65171
  resolve(src, onError) {
65132
65172
  if (typeof node_buffer.Buffer === "function") return node_buffer.Buffer.from(src, "base64");
65133
65173
  else if (typeof atob === "function") {
@@ -66813,6 +66853,7 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
66813
66853
  onError(token, "UNEXPECTED_TOKEN", token.message);
66814
66854
  length += token.source.length;
66815
66855
  break;
66856
+ /* istanbul ignore next should not happen */
66816
66857
  default: {
66817
66858
  onError(token, "UNEXPECTED_TOKEN", `Unexpected token in block scalar header: ${token.type}`);
66818
66859
  const ts = token.source;
@@ -66862,6 +66903,7 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
66862
66903
  _type = Scalar.Scalar.QUOTE_DOUBLE;
66863
66904
  value = doubleQuotedValue(source, _onError);
66864
66905
  break;
66906
+ /* istanbul ignore next should not happen */
66865
66907
  default:
66866
66908
  onError(scalar, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${type}`);
66867
66909
  return {
@@ -66891,6 +66933,7 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
66891
66933
  function plainValue(source, onError) {
66892
66934
  let badChar = "";
66893
66935
  switch (source[0]) {
66936
+ /* istanbul ignore next should not happen */
66894
66937
  case " ":
66895
66938
  badChar = "a tab character";
66896
66939
  break;
@@ -68551,6 +68594,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
68551
68594
  return it.sep ?? it.start;
68552
68595
  }
68553
68596
  case "block-seq": return parent.items[parent.items.length - 1].start;
68597
+ /* istanbul ignore next should not happen */
68554
68598
  default: return [];
68555
68599
  }
68556
68600
  }
@@ -68803,6 +68847,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
68803
68847
  });
68804
68848
  return;
68805
68849
  }
68850
+ /* istanbul ignore next should not happen */
68806
68851
  default:
68807
68852
  yield* this.pop();
68808
68853
  yield* this.pop(token);
@@ -68920,6 +68965,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
68920
68965
  }
68921
68966
  yield* this.pop();
68922
68967
  break;
68968
+ /* istanbul ignore next should not happen */
68923
68969
  default:
68924
68970
  yield* this.pop();
68925
68971
  yield* this.step();
@@ -79154,7 +79200,9 @@ const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
79154
79200
  * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
79155
79201
  * This leads to a problem when axios post `FormData` in webWorker
79156
79202
  */
79157
- const hasStandardBrowserWebWorkerEnv = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
79203
+ const hasStandardBrowserWebWorkerEnv = (() => {
79204
+ return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
79205
+ })();
79158
79206
  const origin = hasBrowserEnv && window.location.href || "http://localhost";
79159
79207
  //#endregion
79160
79208
  //#region ../../../common/temp/sdk/node_modules/.pnpm/axios@1.13.5/node_modules/axios/lib/platform/index.js
@@ -79313,6 +79361,10 @@ const defaults$1 = {
79313
79361
  }
79314
79362
  return data;
79315
79363
  }],
79364
+ /**
79365
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
79366
+ * timeout is not created.
79367
+ */
79316
79368
  timeout: 0,
79317
79369
  xsrfCookieName: "XSRF-TOKEN",
79318
79370
  xsrfHeaderName: "X-XSRF-TOKEN",
@@ -82301,19 +82353,21 @@ const factory = (env) => {
82301
82353
  });
82302
82354
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
82303
82355
  const resolvers = { stream: supportsResponseStream && ((res) => res.body) };
82304
- isFetchSupported && [
82305
- "text",
82306
- "arrayBuffer",
82307
- "blob",
82308
- "formData",
82309
- "stream"
82310
- ].forEach((type) => {
82311
- !resolvers[type] && (resolvers[type] = (res, config) => {
82312
- let method = res && res[type];
82313
- if (method) return method.call(res);
82314
- throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
82356
+ isFetchSupported && (() => {
82357
+ [
82358
+ "text",
82359
+ "arrayBuffer",
82360
+ "blob",
82361
+ "formData",
82362
+ "stream"
82363
+ ].forEach((type) => {
82364
+ !resolvers[type] && (resolvers[type] = (res, config) => {
82365
+ let method = res && res[type];
82366
+ if (method) return method.call(res);
82367
+ throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
82368
+ });
82315
82369
  });
82316
- });
82370
+ })();
82317
82371
  const getBodyLength = async (body) => {
82318
82372
  if (body == null) return 0;
82319
82373
  if (utils_default.isBlob(body)) return body.size;
@@ -82497,7 +82551,15 @@ function getAdapter(adapters, config) {
82497
82551
  * Exports Axios adapters and utility to resolve an adapter
82498
82552
  */
82499
82553
  var adapters_default = {
82554
+ /**
82555
+ * Resolve an adapter from a list of adapter names or functions.
82556
+ * @type {Function}
82557
+ */
82500
82558
  getAdapter,
82559
+ /**
82560
+ * Exposes all known adapters
82561
+ * @type {Object<string, Function|Object>}
82562
+ */
82501
82563
  adapters: knownAdapters
82502
82564
  };
82503
82565
  //#endregion
@@ -82572,7 +82634,7 @@ const deprecatedWarnings = {};
82572
82634
  */
82573
82635
  validators$1.transitional = function transitional(validator, version, message) {
82574
82636
  function formatMessage(opt, desc) {
82575
- return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
82637
+ return "[Axios v1.13.5] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
82576
82638
  }
82577
82639
  return (value, opt, opts) => {
82578
82640
  if (validator === false) throw new AxiosError(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError.ERR_DEPRECATED);
@@ -83131,17 +83193,111 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
83131
83193
  var import_dist$2 = require_dist$3();
83132
83194
  var import_dist$3 = require_dist$2();
83133
83195
  var import_dist$4 = require_dist$1();
83196
+ /*!
83197
+ * Axios Cache Interceptor 1.8.3
83198
+ * (c) 2021-present Arthur Fiorette & Contributors
83199
+ * Released under the MIT License.
83200
+ */
83134
83201
  const Header = {
83202
+ /**
83203
+ * ```txt
83204
+ * If-Modified-Since: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT
83205
+ * ```
83206
+ *
83207
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since
83208
+ */
83135
83209
  IfModifiedSince: "if-modified-since",
83210
+ /**
83211
+ * ```txt
83212
+ * Last-Modified: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT
83213
+ * ```
83214
+ *
83215
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified
83216
+ */
83136
83217
  LastModified: "last-modified",
83218
+ /**
83219
+ * ```txt
83220
+ * If-None-Match: "<etag_value>"
83221
+ * If-None-Match: "<etag_value>", "<etag_value>", …
83222
+ * If-None-Match: *
83223
+ * ```
83224
+ *
83225
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match
83226
+ */
83137
83227
  IfNoneMatch: "if-none-match",
83228
+ /**
83229
+ * ```txt
83230
+ * Cache-Control: max-age=604800
83231
+ * ```
83232
+ *
83233
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
83234
+ */
83138
83235
  CacheControl: "cache-control",
83236
+ /**
83237
+ * ```txt
83238
+ * Pragma: no - cache;
83239
+ * ```
83240
+ *
83241
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma
83242
+ */
83139
83243
  Pragma: "pragma",
83244
+ /**
83245
+ * ```txt
83246
+ * ETag: W / '<etag_value>';
83247
+ * ETag: '<etag_value>';
83248
+ * ```
83249
+ *
83250
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
83251
+ */
83140
83252
  ETag: "etag",
83253
+ /**
83254
+ * ```txt
83255
+ * Expires: <http-date>
83256
+ * ```
83257
+ *
83258
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires
83259
+ */
83141
83260
  Expires: "expires",
83261
+ /**
83262
+ * ```txt
83263
+ * Age: <delta-seconds>
83264
+ * ```
83265
+ *
83266
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Age
83267
+ */
83142
83268
  Age: "age",
83269
+ /**
83270
+ * Used internally as metadata to mark the cache item as revalidatable and enabling
83271
+ * stale cache state Contains a string of ASCII characters that can be used as ETag for
83272
+ * `If-Match` header Provided by user using `cache.etag` value.
83273
+ *
83274
+ * ```txt
83275
+ * X-Axios-Cache-Etag: "<etag_value>"
83276
+ * ```
83277
+ */
83143
83278
  XAxiosCacheEtag: "x-axios-cache-etag",
83279
+ /**
83280
+ * Used internally as metadata to mark the cache item as revalidatable and enabling
83281
+ * stale cache state may contain `'use-cache-timestamp'` if `cache.modifiedSince` is
83282
+ * `true`, otherwise will contain a date from `cache.modifiedSince`. If a date is
83283
+ * provided, it can be used for `If-Modified-Since` header, otherwise the cache
83284
+ * timestamp can be used for `If-Modified-Since` header.
83285
+ *
83286
+ * ```txt
83287
+ * X-Axios-Cache-Last-Modified: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT
83288
+ * X-Axios-Cache-Last-Modified: use-cache-timestamp
83289
+ * ```
83290
+ */
83144
83291
  XAxiosCacheLastModified: "x-axios-cache-last-modified",
83292
+ /**
83293
+ * Used internally as metadata to mark the cache item able to be used if the server
83294
+ * returns an error. The stale-if-error response directive indicates that the cache can
83295
+ * reuse a stale response when any error occurs.
83296
+ *
83297
+ * ```txt
83298
+ * XAxiosCacheStaleIfError: <seconds>
83299
+ * ```
83300
+ */
83145
83301
  XAxiosCacheStaleIfError: "x-axios-cache-stale-if-error"
83146
83302
  };
83147
83303
  const defaultHeaderInterpreter = (headers, location) => {
@@ -85330,7 +85486,8 @@ function stackSet$1(key, value) {
85330
85486
  * @param {Array} [entries] The key-value pairs to cache.
85331
85487
  */
85332
85488
  function Stack$2(entries) {
85333
- this.size = (this.__data__ = new ListCache$1(entries)).size;
85489
+ var data = this.__data__ = new ListCache$1(entries);
85490
+ this.size = data.size;
85334
85491
  }
85335
85492
  Stack$2.prototype.clear = stackClear$1;
85336
85493
  Stack$2.prototype["delete"] = stackDelete$1;
@@ -86160,10 +86317,6 @@ var merge = createAssigner(function(object, source, srcIndex) {
86160
86317
  baseMerge(object, source, srcIndex);
86161
86318
  });
86162
86319
  //#endregion
86163
- //#region ../../../sdk/libs/api-client-tiger/esm/__version.js
86164
- const LIB_VERSION = "11.40.0-alpha.3";
86165
- const LIB_NAME = "@gooddata/api-client-tiger";
86166
- //#endregion
86167
86320
  //#region ../../../sdk/libs/api-client-tiger/esm/axios.js
86168
86321
  /**
86169
86322
  * Default config from axios sets request headers:
@@ -86183,8 +86336,8 @@ const _CONFIG = {
86183
86336
  headers: {
86184
86337
  common: {
86185
86338
  "X-Requested-With": "XMLHttpRequest",
86186
- "X-GDC-JS-PACKAGE": LIB_NAME,
86187
- "X-GDC-JS-PACKAGE-VERSION": LIB_VERSION
86339
+ "X-GDC-JS-PACKAGE": "@gooddata/api-client-tiger",
86340
+ "X-GDC-JS-PACKAGE-VERSION": "11.40.0-alpha.5"
86188
86341
  },
86189
86342
  post: { "Content-Type": "application/json;charset=utf8" },
86190
86343
  put: { "Content-Type": "application/json;charset=utf8" }
@@ -132027,7 +132180,7 @@ var require_connection$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
132027
132180
  const toCancel = messageQueue.get(key);
132028
132181
  if (messages_1.Message.isRequest(toCancel)) {
132029
132182
  const strategy = options?.connectionStrategy;
132030
- const response = strategy && strategy.cancelUndispatched ? strategy.cancelUndispatched(toCancel, cancelUndispatched) : cancelUndispatched(toCancel);
132183
+ const response = strategy && strategy.cancelUndispatched ? strategy.cancelUndispatched(toCancel, cancelUndispatched) : void 0;
132031
132184
  if (response && (response.error !== void 0 || response.result !== void 0)) {
132032
132185
  messageQueue.delete(key);
132033
132186
  requestTokens.delete(cancelId);
@@ -134073,6 +134226,10 @@ var require_main$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
134073
134226
  } else this._workspaceEdit = {};
134074
134227
  }
134075
134228
  Object.defineProperty(WorkspaceChange.prototype, "edit", {
134229
+ /**
134230
+ * Returns the underlying {@link WorkspaceEdit} literal
134231
+ * use to be returned from a workspace edit operation like rename.
134232
+ */
134076
134233
  get: function() {
134077
134234
  this.initDocumentChanges();
134078
134235
  if (this._changeAnnotations !== void 0) if (this._changeAnnotations.size === 0) this._workspaceEdit.changeAnnotations = void 0;
@@ -138935,13 +139092,6 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports) => {
138935
139092
  Files.resolve = fm.resolve;
138936
139093
  Files.resolveModulePath = fm.resolveModulePath;
138937
139094
  })(exports.Files || (exports.Files = {}));
138938
- let _protocolConnection;
138939
- function endProtocolConnection() {
138940
- if (_protocolConnection === void 0) return;
138941
- try {
138942
- _protocolConnection.end();
138943
- } catch (_err) {}
138944
- }
138945
139095
  let _shutdownReceived = false;
138946
139096
  let exitTimer = void 0;
138947
139097
  function setupExitTimer() {
@@ -138953,7 +139103,6 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports) => {
138953
139103
  try {
138954
139104
  process.kill(processId, 0);
138955
139105
  } catch (ex) {
138956
- endProtocolConnection();
138957
139106
  process.exit(_shutdownReceived ? 0 : 1);
138958
139107
  }
138959
139108
  }, 3e3);
@@ -138989,7 +139138,6 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports) => {
138989
139138
  _shutdownReceived = value;
138990
139139
  },
138991
139140
  exit: (code) => {
138992
- endProtocolConnection();
138993
139141
  process.exit(code);
138994
139142
  }
138995
139143
  };
@@ -139061,11 +139209,9 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports) => {
139061
139209
  if (Is.func(input.read) && Is.func(input.on)) {
139062
139210
  let inputStream = input;
139063
139211
  inputStream.on("end", () => {
139064
- endProtocolConnection();
139065
139212
  process.exit(_shutdownReceived ? 0 : 1);
139066
139213
  });
139067
139214
  inputStream.on("close", () => {
139068
- endProtocolConnection();
139069
139215
  process.exit(_shutdownReceived ? 0 : 1);
139070
139216
  });
139071
139217
  }
@@ -139943,7 +140089,8 @@ var require_Array2DHashSet = /* @__PURE__ */ __commonJSMin(((exports) => {
139943
140089
  expand() {
139944
140090
  let old = this.buckets;
139945
140091
  let newCapacity = this.buckets.length * 2;
139946
- this.buckets = this.createBuckets(newCapacity);
140092
+ let newTable = this.createBuckets(newCapacity);
140093
+ this.buckets = newTable;
139947
140094
  this.threshold = Math.floor(newCapacity * LOAD_FACTOR);
139948
140095
  let oldSize = this.size;
139949
140096
  for (let bucket of old) {
@@ -141075,7 +141222,7 @@ var require_Interval = /* @__PURE__ */ __commonJSMin(((exports) => {
141075
141222
  }
141076
141223
  };
141077
141224
  Interval._INVALID = new Interval(-1, -2);
141078
- Interval.cache = new Array(INTERVAL_POOL_MAX_VALUE + 1);
141225
+ Interval.cache = new Array(1001);
141079
141226
  __decorate([Decorators_1.Override], Interval.prototype, "equals", null);
141080
141227
  __decorate([Decorators_1.Override], Interval.prototype, "hashCode", null);
141081
141228
  __decorate([Decorators_1.Override], Interval.prototype, "toString", null);
@@ -142360,7 +142507,7 @@ var require_ATNConfig = /* @__PURE__ */ __commonJSMin(((exports) => {
142360
142507
  }
142361
142508
  set isPrecedenceFilterSuppressed(value) {
142362
142509
  if (value) this.altAndOuterContextDepth |= SUPPRESS_PRECEDENCE_FILTER;
142363
- else this.altAndOuterContextDepth &= ~SUPPRESS_PRECEDENCE_FILTER;
142510
+ else this.altAndOuterContextDepth &= 2147483647;
142364
142511
  }
142365
142512
  /** An ATN configuration is equal to another if both have
142366
142513
  * the same state, they predict the same alternative, and
@@ -143570,7 +143717,7 @@ var require_ATNSimulator = /* @__PURE__ */ __commonJSMin(((exports) => {
143570
143717
  __decorate([Decorators_1.NotNull], ATNSimulator, "ERROR", null);
143571
143718
  ATNSimulator = __decorate([__param(0, Decorators_1.NotNull)], ATNSimulator);
143572
143719
  exports.ATNSimulator = ATNSimulator;
143573
- (function(ATNSimulator) {})(ATNSimulator = exports.ATNSimulator || (exports.ATNSimulator = {}));
143720
+ ATNSimulator = exports.ATNSimulator || (exports.ATNSimulator = {});
143574
143721
  exports.ATNSimulator = ATNSimulator;
143575
143722
  }));
143576
143723
  //#endregion
@@ -152638,7 +152785,8 @@ var require_ParserInterpreter = /* @__PURE__ */ __commonJSMin(((exports) => {
152638
152785
  this.unrollRecursionContexts(parentContext[0]);
152639
152786
  this.state = parentContext[1];
152640
152787
  } else this.exitRule();
152641
- this.state = this._atn.states[this.state].transition(0).followState.stateNumber;
152788
+ let ruleTransition = this._atn.states[this.state].transition(0);
152789
+ this.state = ruleTransition.followState.stateNumber;
152642
152790
  }
152643
152791
  /** Override this parser interpreters normal decision-making process
152644
152792
  * at a particular decision and input token index. Instead of
@@ -169036,7 +169184,8 @@ function stackSet(key, value) {
169036
169184
  * @param {Array} [entries] The key-value pairs to cache.
169037
169185
  */
169038
169186
  function Stack$1(entries) {
169039
- this.size = (this.__data__ = new ListCache(entries)).size;
169187
+ var data = this.__data__ = new ListCache(entries);
169188
+ this.size = data.size;
169040
169189
  }
169041
169190
  Stack$1.prototype.clear = stackClear;
169042
169191
  Stack$1.prototype["delete"] = stackDelete;
@@ -172269,7 +172418,10 @@ var MaqlQuery = class {
172269
172418
  return this._tree;
172270
172419
  }
172271
172420
  get ast() {
172272
- if (!this._ast) this._ast = new MaqlAstVisitor("", this.tokenStream).visit(this.tree);
172421
+ if (!this._ast) {
172422
+ const maqlAstVisitor = new MaqlAstVisitor("", this.tokenStream);
172423
+ this._ast = maqlAstVisitor.visit(this.tree);
172424
+ }
172273
172425
  return this._ast;
172274
172426
  }
172275
172427
  _lexer;
@@ -172279,7 +172431,8 @@ var MaqlQuery = class {
172279
172431
  _ast;
172280
172432
  constructor(raw) {
172281
172433
  this.raw = raw;
172282
- this._lexer = new MaqlLexer$3(new CaseInsensitiveCharStream(raw));
172434
+ const charStream = new CaseInsensitiveCharStream(raw);
172435
+ this._lexer = new MaqlLexer$3(charStream);
172283
172436
  this._tokenStream = new import_antlr4ts.CommonTokenStream(this._lexer);
172284
172437
  this._parser = new MaqlParser$5(this._tokenStream);
172285
172438
  }
@@ -178570,9 +178723,28 @@ var require_web_outgoing = /* @__PURE__ */ __commonJSMin(((exports, module) => {
178570
178723
  * flexible.
178571
178724
  */
178572
178725
  module.exports = {
178726
+ /**
178727
+ * If is a HTTP 1.0 request, remove chunk headers
178728
+ *
178729
+ * @param {ClientRequest} Req Request object
178730
+ * @param {IncomingMessage} Res Response object
178731
+ * @param {proxyResponse} Res Response object from the proxy request
178732
+ *
178733
+ * @api private
178734
+ */
178573
178735
  removeChunked: function removeChunked(req, res, proxyRes) {
178574
178736
  if (req.httpVersion === "1.0") delete proxyRes.headers["transfer-encoding"];
178575
178737
  },
178738
+ /**
178739
+ * If is a HTTP 1.0 request, set the correct connection header
178740
+ * or if connection header not present, then use `keep-alive`
178741
+ *
178742
+ * @param {ClientRequest} Req Request object
178743
+ * @param {IncomingMessage} Res Response object
178744
+ * @param {proxyResponse} Res Response object from the proxy request
178745
+ *
178746
+ * @api private
178747
+ */
178576
178748
  setConnection: function setConnection(req, res, proxyRes) {
178577
178749
  if (req.httpVersion === "1.0") proxyRes.headers.connection = req.headers.connection || "close";
178578
178750
  else if (req.httpVersion !== "2.0" && !proxyRes.headers.connection) proxyRes.headers.connection = req.headers.connection || "keep-alive";
@@ -178588,6 +178760,17 @@ var require_web_outgoing = /* @__PURE__ */ __commonJSMin(((exports, module) => {
178588
178760
  proxyRes.headers["location"] = u.format();
178589
178761
  }
178590
178762
  },
178763
+ /**
178764
+ * Copy headers from proxyResponse to response
178765
+ * set each header in response object.
178766
+ *
178767
+ * @param {ClientRequest} Req Request object
178768
+ * @param {IncomingMessage} Res Response object
178769
+ * @param {proxyResponse} Res Response object from the proxy request
178770
+ * @param {Object} Options options.cookieDomainRewrite: Config to rewrite cookie domain
178771
+ *
178772
+ * @api private
178773
+ */
178591
178774
  writeHeaders: function writeHeaders(req, res, proxyRes, options) {
178592
178775
  var rewriteCookieDomainConfig = options.cookieDomainRewrite, rewriteCookiePathConfig = options.cookiePathRewrite, preserveHeaderKeyCase = options.preserveHeaderKeyCase, rawHeaderKeyMap, setHeader = function(key, header) {
178593
178776
  if (header == void 0) return;
@@ -178610,6 +178793,15 @@ var require_web_outgoing = /* @__PURE__ */ __commonJSMin(((exports, module) => {
178610
178793
  setHeader(key, header);
178611
178794
  });
178612
178795
  },
178796
+ /**
178797
+ * Set the statusCode from the proxyResponse
178798
+ *
178799
+ * @param {ClientRequest} Req Request object
178800
+ * @param {IncomingMessage} Res Response object
178801
+ * @param {proxyResponse} Res Response object from the proxy request
178802
+ *
178803
+ * @api private
178804
+ */
178613
178805
  writeStatusCode: function writeStatusCode(req, res, proxyRes) {
178614
178806
  if (proxyRes.statusMessage) {
178615
178807
  res.statusCode = proxyRes.statusCode;
@@ -179890,15 +180082,42 @@ var require_web_incoming = /* @__PURE__ */ __commonJSMin(((exports, module) => {
179890
180082
  * flexible.
179891
180083
  */
179892
180084
  module.exports = {
180085
+ /**
180086
+ * Sets `content-length` to '0' if request is of DELETE type.
180087
+ *
180088
+ * @param {ClientRequest} Req Request object
180089
+ * @param {IncomingMessage} Res Response object
180090
+ * @param {Object} Options Config object passed to the proxy
180091
+ *
180092
+ * @api private
180093
+ */
179893
180094
  deleteLength: function deleteLength(req, res, options) {
179894
180095
  if ((req.method === "DELETE" || req.method === "OPTIONS") && !req.headers["content-length"]) {
179895
180096
  req.headers["content-length"] = "0";
179896
180097
  delete req.headers["transfer-encoding"];
179897
180098
  }
179898
180099
  },
180100
+ /**
180101
+ * Sets timeout in request socket if it was specified in options.
180102
+ *
180103
+ * @param {ClientRequest} Req Request object
180104
+ * @param {IncomingMessage} Res Response object
180105
+ * @param {Object} Options Config object passed to the proxy
180106
+ *
180107
+ * @api private
180108
+ */
179899
180109
  timeout: function timeout(req, res, options) {
179900
180110
  if (options.timeout) req.socket.setTimeout(options.timeout);
179901
180111
  },
180112
+ /**
180113
+ * Sets `x-forwarded-*` headers if specified in config.
180114
+ *
180115
+ * @param {ClientRequest} Req Request object
180116
+ * @param {IncomingMessage} Res Response object
180117
+ * @param {Object} Options Config object passed to the proxy
180118
+ *
180119
+ * @api private
180120
+ */
179902
180121
  XHeaders: function XHeaders(req, res, options) {
179903
180122
  if (!options.xfwd) return;
179904
180123
  var encrypted = req.isSpdy || common$1.hasEncryptedConnection(req);
@@ -179916,6 +180135,17 @@ var require_web_incoming = /* @__PURE__ */ __commonJSMin(((exports, module) => {
179916
180135
  });
179917
180136
  req.headers["x-forwarded-host"] = req.headers["x-forwarded-host"] || req.headers["host"] || "";
179918
180137
  },
180138
+ /**
180139
+ * Does the actual proxying. If `forward` is enabled fires up
180140
+ * a ForwardStream, same happens for ProxyStream. The request
180141
+ * just dies otherwise.
180142
+ *
180143
+ * @param {ClientRequest} Req Request object
180144
+ * @param {IncomingMessage} Res Response object
180145
+ * @param {Object} Options Config object passed to the proxy
180146
+ *
180147
+ * @api private
180148
+ */
179919
180149
  stream: function stream(req, res, options, _, server, clb) {
179920
180150
  server.emit("start", req, res, options.target || options.forward);
179921
180151
  var agents = options.followRedirects ? followRedirects : nativeAgents;
@@ -179980,6 +180210,15 @@ var require_ws_incoming = /* @__PURE__ */ __commonJSMin(((exports, module) => {
179980
180210
  * flexible.
179981
180211
  */
179982
180212
  module.exports = {
180213
+ /**
180214
+ * WebSocket requests must have the `GET` method and
180215
+ * the `upgrade:websocket` header
180216
+ *
180217
+ * @param {ClientRequest} Req Request object
180218
+ * @param {Socket} Websocket
180219
+ *
180220
+ * @api private
180221
+ */
179983
180222
  checkMethodAndHeader: function checkMethodAndHeader(req, socket) {
179984
180223
  if (req.method !== "GET" || !req.headers.upgrade) {
179985
180224
  socket.destroy();
@@ -179990,6 +180229,15 @@ var require_ws_incoming = /* @__PURE__ */ __commonJSMin(((exports, module) => {
179990
180229
  return true;
179991
180230
  }
179992
180231
  },
180232
+ /**
180233
+ * Sets `x-forwarded-*` headers if specified in config.
180234
+ *
180235
+ * @param {ClientRequest} Req Request object
180236
+ * @param {Socket} Websocket
180237
+ * @param {Object} Options Config object passed to the proxy
180238
+ *
180239
+ * @api private
180240
+ */
179993
180241
  XHeaders: function XHeaders(req, socket, options) {
179994
180242
  if (!options.xfwd) return;
179995
180243
  var values = {
@@ -180005,6 +180253,16 @@ var require_ws_incoming = /* @__PURE__ */ __commonJSMin(((exports, module) => {
180005
180253
  req.headers["x-forwarded-" + header] = (req.headers["x-forwarded-" + header] || "") + (req.headers["x-forwarded-" + header] ? "," : "") + values[header];
180006
180254
  });
180007
180255
  },
180256
+ /**
180257
+ * Does the actual proxying. Make the request and upgrade it
180258
+ * send the Switching Protocols request and pipe the sockets.
180259
+ *
180260
+ * @param {ClientRequest} Req Request object
180261
+ * @param {Socket} Websocket
180262
+ * @param {Object} Options Config object passed to the proxy
180263
+ *
180264
+ * @api private
180265
+ */
180008
180266
  stream: function stream(req, socket, options, head, server, clb) {
180009
180267
  var createHttpHeader = function(line, headers) {
180010
180268
  return Object.keys(headers).reduce(function(head, key) {
@@ -180748,7 +181006,10 @@ var ClientColors = class {
180748
181006
  */
180749
181007
  constructor(resultColors) {
180750
181008
  if (resultColors.customColor) this.color = resultColors.customColor.startsWith("#") ? resultColors.customColor : "#" + resultColors.customColor;
180751
- if (resultColors.color) this.color = colorNameMap[resultColors.color] ? colorNameMap[resultColors.color] : void 0;
181009
+ if (resultColors.color) {
181010
+ const usedColor = colorNameMap[resultColors.color] ? colorNameMap[resultColors.color] : void 0;
181011
+ this.color = usedColor;
181012
+ }
180752
181013
  if (resultColors.customBgColor) this.backgroundColor = resultColors.customBgColor.startsWith("#") ? resultColors.customBgColor : "#" + resultColors.customBgColor;
180753
181014
  }
180754
181015
  };
@@ -185586,8 +185847,8 @@ const justDots = new Set(["..", "."]);
185586
185847
  const reSpecials = /* @__PURE__ */ new Set("().*{}+?[]^$\\!");
185587
185848
  const regExpEscape$1 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
185588
185849
  const qmark = "[^/]";
185589
- const star$1 = qmark + "*?";
185590
- const starNoEmpty = qmark + "+?";
185850
+ const star$1 = "[^/]*?";
185851
+ const starNoEmpty = "[^/]+?";
185591
185852
  var AST = class AST {
185592
185853
  type;
185593
185854
  #root;
@@ -185862,7 +186123,7 @@ var AST = class AST {
185862
186123
  let final = "";
185863
186124
  if (this.type === "!" && this.#emptyExt) final = (this.isStart() && !this.#options.dot ? startNoDot : "") + starNoEmpty;
185864
186125
  else {
185865
- const close = this.type === "!" ? "))" + (this.isStart() && !this.#options.dot ? startNoDot : "") + star$1 + ")" : this.type === "@" ? ")" : `)${this.type}`;
186126
+ const close = this.type === "!" ? "))" + (this.isStart() && !this.#options.dot ? startNoDot : "") + "[^/]*?)" : this.type === "@" ? ")" : `)${this.type}`;
185866
186127
  final = start + body + close;
185867
186128
  }
185868
186129
  return [
@@ -193693,7 +193954,7 @@ async function get(state, opts) {
193693
193954
  //#endregion
193694
193955
  //#region ../code/package.json
193695
193956
  var name = "@gooddata/code";
193696
- var version = "0.36.0-alpha.3";
193957
+ var version = "0.36.0-alpha.5";
193697
193958
  //#endregion
193698
193959
  //#region ../code/esm/actions/initialize.js
193699
193960
  async function initialize(state, emitter, options) {
@@ -194716,8 +194977,7 @@ let LOG_LEVEL = /* @__PURE__ */ function(LOG_LEVEL) {
194716
194977
  LOG_LEVEL[LOG_LEVEL["debug"] = 5] = "debug";
194717
194978
  return LOG_LEVEL;
194718
194979
  }({});
194719
- const DEFAULT_LOG_LEVEL = LOG_LEVEL.info;
194720
- let applicationLogLevel = DEFAULT_LOG_LEVEL;
194980
+ let applicationLogLevel = 2;
194721
194981
  const setLogLevel = (logLevel) => {
194722
194982
  applicationLogLevel = logLevel;
194723
194983
  };
@@ -194739,16 +194999,15 @@ const logger = (logLevel) => (...messages) => {
194739
194999
  case void 0:
194740
195000
  written = write(process.stderr, messages);
194741
195001
  break;
194742
- case LOG_LEVEL.error:
195002
+ case 0:
194743
195003
  written = write(process.stderr, messages, "[e] ", chalk.red);
194744
195004
  break;
194745
- case LOG_LEVEL.warn:
195005
+ case 1:
194746
195006
  written = write(process.stdout, messages, "[w] ", chalk.yellow);
194747
195007
  break;
194748
- case LOG_LEVEL.debug:
195008
+ case 5:
194749
195009
  written = write(process.stdout, messages, "[d] ", chalk.grey);
194750
195010
  break;
194751
- case LOG_LEVEL.info:
194752
195011
  default:
194753
195012
  written = write(process.stdout, messages);
194754
195013
  break;
@@ -194756,10 +195015,10 @@ const logger = (logLevel) => (...messages) => {
194756
195015
  continueLoader();
194757
195016
  return written;
194758
195017
  };
194759
- const error = logger(LOG_LEVEL.error);
194760
- const warn = logger(LOG_LEVEL.warn);
194761
- const info = logger(LOG_LEVEL.info);
194762
- const debug = logger(LOG_LEVEL.debug);
195018
+ const error = logger(0);
195019
+ const warn = logger(1);
195020
+ const info = logger(2);
195021
+ const debug = logger(5);
194763
195022
  const empty = logger();
194764
195023
  let interval;
194765
195024
  let frame = 0;
@@ -194779,7 +195038,7 @@ const spins = [
194779
195038
  const timing = 80;
194780
195039
  const drawLoaderFrame = (sameFrame = false) => {
194781
195040
  if (!sameFrame) frame = frame >= spins.length - 1 ? 0 : frame + 1;
194782
- if (applicationLogLevel === LOG_LEVEL.error) return;
195041
+ if (applicationLogLevel === 0) return;
194783
195042
  process.stdout.clearLine(0);
194784
195043
  process.stdout.cursorTo(0);
194785
195044
  process.stdout.write(`${chalk.blue(spins[frame])} ${message}`);
@@ -194790,7 +195049,7 @@ const drawLoaderFrame = (sameFrame = false) => {
194790
195049
  * only the message will get update and animation will not get reset.
194791
195050
  */
194792
195051
  const loader = (msg) => {
194793
- if (applicationLogLevel === LOG_LEVEL.error) return;
195052
+ if (applicationLogLevel === 0) return;
194794
195053
  if (!process.stdout.isTTY) {
194795
195054
  info(msg);
194796
195055
  return;
@@ -194807,7 +195066,7 @@ const stopLoader = (text) => {
194807
195066
  if (interval) {
194808
195067
  clearInterval(interval);
194809
195068
  interval = null;
194810
- if (applicationLogLevel === LOG_LEVEL.error) return;
195069
+ if (applicationLogLevel === 0) return;
194811
195070
  process.stdout.clearLine(0);
194812
195071
  process.stdout.cursorTo(0);
194813
195072
  if (text !== void 0) process.stdout.write(text);
@@ -194824,7 +195083,7 @@ const cancelLoader = (text) => {
194824
195083
  if (interval) {
194825
195084
  clearInterval(interval);
194826
195085
  interval = null;
194827
- if (applicationLogLevel === LOG_LEVEL.error) return;
195086
+ if (applicationLogLevel === 0) return;
194828
195087
  process.stdout.clearLine(0);
194829
195088
  process.stdout.cursorTo(0);
194830
195089
  if (text !== void 0) process.stdout.write(text);
@@ -194842,7 +195101,7 @@ const pauseLoader = () => {
194842
195101
  if (running && interval) {
194843
195102
  clearInterval(interval);
194844
195103
  interval = null;
194845
- if (applicationLogLevel !== LOG_LEVEL.error) {
195104
+ if (applicationLogLevel !== 0) {
194846
195105
  process.stdout.clearLine(0);
194847
195106
  process.stdout.cursorTo(0);
194848
195107
  }
@@ -195047,7 +195306,7 @@ function isEmptyDiagnostics(diagnostics, relativeSourceDir) {
195047
195306
  }
195048
195307
  function resolveDiagnostics(diagnosticsResult, logLevel) {
195049
195308
  const counters = analyzeDiagnostics(diagnosticsResult);
195050
- if (logLevel === LOG_LEVEL.debug || logLevel === LOG_LEVEL.info) return {
195309
+ if (logLevel === 5 || logLevel === 2) return {
195051
195310
  valid: counters[DiagnosticSeverity$1.Error] === 0 && counters[DiagnosticSeverity$1.Warning] === 0 && counters[DiagnosticSeverity$1.Info] === 0,
195052
195311
  counts: {
195053
195312
  error: counters[DiagnosticSeverity$1.Error],
@@ -195055,7 +195314,7 @@ function resolveDiagnostics(diagnosticsResult, logLevel) {
195055
195314
  info: counters[DiagnosticSeverity$1.Info]
195056
195315
  }
195057
195316
  };
195058
- if (logLevel === LOG_LEVEL.warn) return {
195317
+ if (logLevel === 1) return {
195059
195318
  valid: counters[DiagnosticSeverity$1.Error] === 0 && counters[DiagnosticSeverity$1.Warning] === 0,
195060
195319
  counts: {
195061
195320
  error: counters[DiagnosticSeverity$1.Error],
@@ -195240,7 +195499,7 @@ function createRemotesUrls(usedProfile) {
195240
195499
  //#endregion
195241
195500
  //#region src/commands/decorators/withLogger.ts
195242
195501
  const withLoggerVerbosity = (cmd) => {
195243
- cmd.addOption(new import_commander.Option("-l, --log-level <level>", "Log verbosity").choices(Object.values(LOG_LEVEL).filter((ll) => typeof ll === "string")).default(LOG_LEVEL[DEFAULT_LOG_LEVEL])).on("option:log-level", function() {
195502
+ cmd.addOption(new import_commander.Option("-l, --log-level <level>", "Log verbosity").choices(Object.values(LOG_LEVEL).filter((ll) => typeof ll === "string")).default(LOG_LEVEL[2])).on("option:log-level", function() {
195244
195503
  setLogLevel(LOG_LEVEL[this.opts().logLevel]);
195245
195504
  });
195246
195505
  return cmd;
@@ -196136,7 +196395,7 @@ const streamCommand = new import_commander.Command("stream").description("Stream
196136
196395
  withProfile(streamCommand);
196137
196396
  streamCommand.option("--no-validate", "Skip validation");
196138
196397
  streamCommand.action(async ({ profile, validate }) => {
196139
- setLogLevel(LOG_LEVEL.error);
196398
+ setLogLevel(0);
196140
196399
  const { core, projectRoot, sourceRoot, manifestPath } = await getCoreForPath(process.cwd(), profile);
196141
196400
  if (!await validateCall$1(core, getLogLevel(), sourceRoot, projectRoot, manifestPath, validate)) return;
196142
196401
  const data = (await core.streamLocalWorkspace({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/code-cli",
3
- "version": "0.36.0-alpha.3",
3
+ "version": "0.36.0-alpha.5",
4
4
  "description": "GoodData CLI",
5
5
  "keywords": [
6
6
  "analytics",