norn-cli 1.9.0 → 1.10.1

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 (43) hide show
  1. package/dist/cli.js +729 -473
  2. package/package.json +1 -1
  3. package/vendor/microsoft.data.sqlclient/README.md +25 -0
  4. package/vendor/microsoft.data.sqlclient/windows-netfx/Azure.Core.dll +0 -0
  5. package/vendor/microsoft.data.sqlclient/windows-netfx/Azure.Identity.dll +0 -0
  6. package/vendor/microsoft.data.sqlclient/windows-netfx/LICENSE.txt +46 -0
  7. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  8. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.Data.SqlClient.SNI.arm64.dll +0 -0
  9. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.Data.SqlClient.SNI.x64.dll +0 -0
  10. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.Data.SqlClient.SNI.x86.dll +0 -0
  11. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.Data.SqlClient.dll +0 -0
  12. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.Identity.Client.Extensions.Msal.dll +0 -0
  13. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.Identity.Client.dll +0 -0
  14. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.IdentityModel.Abstractions.dll +0 -0
  15. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.IdentityModel.JsonWebTokens.dll +0 -0
  16. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.IdentityModel.Logging.dll +0 -0
  17. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll +0 -0
  18. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.IdentityModel.Protocols.dll +0 -0
  19. package/vendor/microsoft.data.sqlclient/windows-netfx/Microsoft.IdentityModel.Tokens.dll +0 -0
  20. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Buffers.dll +0 -0
  21. package/vendor/microsoft.data.sqlclient/windows-netfx/System.ClientModel.dll +0 -0
  22. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Configuration.ConfigurationManager.dll +0 -0
  23. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Diagnostics.DiagnosticSource.dll +0 -0
  24. package/vendor/microsoft.data.sqlclient/windows-netfx/System.IO.FileSystem.AccessControl.dll +0 -0
  25. package/vendor/microsoft.data.sqlclient/windows-netfx/System.IdentityModel.Tokens.Jwt.dll +0 -0
  26. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Memory.Data.dll +0 -0
  27. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Memory.dll +0 -0
  28. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Net.Http.dll +0 -0
  29. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Numerics.Vectors.dll +0 -0
  30. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Runtime.CompilerServices.Unsafe.dll +0 -0
  31. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Runtime.InteropServices.RuntimeInformation.dll +0 -0
  32. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Security.AccessControl.dll +0 -0
  33. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Security.Cryptography.Algorithms.dll +0 -0
  34. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Security.Cryptography.Encoding.dll +0 -0
  35. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Security.Cryptography.Primitives.dll +0 -0
  36. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Security.Cryptography.ProtectedData.dll +0 -0
  37. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Security.Cryptography.X509Certificates.dll +0 -0
  38. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Security.Permissions.dll +0 -0
  39. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Security.Principal.Windows.dll +0 -0
  40. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Text.Encodings.Web.dll +0 -0
  41. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Text.Json.dll +0 -0
  42. package/vendor/microsoft.data.sqlclient/windows-netfx/System.Threading.Tasks.Extensions.dll +0 -0
  43. package/vendor/microsoft.data.sqlclient/windows-netfx/System.ValueTuple.dll +0 -0
package/dist/cli.js CHANGED
@@ -8881,11 +8881,11 @@ var require_mime_types = __commonJS({
8881
8881
  }
8882
8882
  return exts[0];
8883
8883
  }
8884
- function lookup(path13) {
8885
- if (!path13 || typeof path13 !== "string") {
8884
+ function lookup(path14) {
8885
+ if (!path14 || typeof path14 !== "string") {
8886
8886
  return false;
8887
8887
  }
8888
- var extension2 = extname3("x." + path13).toLowerCase().substr(1);
8888
+ var extension2 = extname3("x." + path14).toLowerCase().substr(1);
8889
8889
  if (!extension2) {
8890
8890
  return false;
8891
8891
  }
@@ -9990,11 +9990,11 @@ var require_form_data = __commonJS({
9990
9990
  "use strict";
9991
9991
  var CombinedStream = require_combined_stream();
9992
9992
  var util3 = require("util");
9993
- var path13 = require("path");
9993
+ var path14 = require("path");
9994
9994
  var http3 = require("http");
9995
9995
  var https3 = require("https");
9996
9996
  var parseUrl = require("url").parse;
9997
- var fs17 = require("fs");
9997
+ var fs18 = require("fs");
9998
9998
  var Stream = require("stream").Stream;
9999
9999
  var crypto7 = require("crypto");
10000
10000
  var mime = require_mime_types();
@@ -10061,7 +10061,7 @@ var require_form_data = __commonJS({
10061
10061
  if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
10062
10062
  callback(null, value.end + 1 - (value.start ? value.start : 0));
10063
10063
  } else {
10064
- fs17.stat(value.path, function(err, stat) {
10064
+ fs18.stat(value.path, function(err, stat) {
10065
10065
  if (err) {
10066
10066
  callback(err);
10067
10067
  return;
@@ -10118,11 +10118,11 @@ var require_form_data = __commonJS({
10118
10118
  FormData3.prototype._getContentDisposition = function(value, options) {
10119
10119
  var filename;
10120
10120
  if (typeof options.filepath === "string") {
10121
- filename = path13.normalize(options.filepath).replace(/\\/g, "/");
10121
+ filename = path14.normalize(options.filepath).replace(/\\/g, "/");
10122
10122
  } else if (options.filename || value && (value.name || value.path)) {
10123
- filename = path13.basename(options.filename || value && (value.name || value.path));
10123
+ filename = path14.basename(options.filename || value && (value.name || value.path));
10124
10124
  } else if (value && value.readable && hasOwn(value, "httpVersion")) {
10125
- filename = path13.basename(value.client._httpMessage.path || "");
10125
+ filename = path14.basename(value.client._httpMessage.path || "");
10126
10126
  }
10127
10127
  if (filename) {
10128
10128
  return 'filename="' + filename + '"';
@@ -15089,7 +15089,7 @@ var require_compile = __commonJS({
15089
15089
  const schOrFunc = root.refs[ref];
15090
15090
  if (schOrFunc)
15091
15091
  return schOrFunc;
15092
- let _sch = resolve11.call(this, root, ref);
15092
+ let _sch = resolve12.call(this, root, ref);
15093
15093
  if (_sch === void 0) {
15094
15094
  const schema = (_a = root.localRefs) === null || _a === void 0 ? void 0 : _a[ref];
15095
15095
  const { schemaId } = this.opts;
@@ -15116,7 +15116,7 @@ var require_compile = __commonJS({
15116
15116
  function sameSchemaEnv(s1, s2) {
15117
15117
  return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
15118
15118
  }
15119
- function resolve11(root, ref) {
15119
+ function resolve12(root, ref) {
15120
15120
  let sch;
15121
15121
  while (typeof (sch = this.refs[ref]) == "string")
15122
15122
  ref = sch;
@@ -15331,8 +15331,8 @@ var require_utils = __commonJS({
15331
15331
  }
15332
15332
  return ind;
15333
15333
  }
15334
- function removeDotSegments(path13) {
15335
- let input2 = path13;
15334
+ function removeDotSegments(path14) {
15335
+ let input2 = path14;
15336
15336
  const output2 = [];
15337
15337
  let nextSlash = -1;
15338
15338
  let len = 0;
@@ -15531,8 +15531,8 @@ var require_schemes = __commonJS({
15531
15531
  wsComponent.secure = void 0;
15532
15532
  }
15533
15533
  if (wsComponent.resourceName) {
15534
- const [path13, query] = wsComponent.resourceName.split("?");
15535
- wsComponent.path = path13 && path13 !== "/" ? path13 : void 0;
15534
+ const [path14, query] = wsComponent.resourceName.split("?");
15535
+ wsComponent.path = path14 && path14 !== "/" ? path14 : void 0;
15536
15536
  wsComponent.query = query;
15537
15537
  wsComponent.resourceName = void 0;
15538
15538
  }
@@ -15691,7 +15691,7 @@ var require_fast_uri = __commonJS({
15691
15691
  }
15692
15692
  return uri;
15693
15693
  }
15694
- function resolve11(baseURI, relativeURI, options) {
15694
+ function resolve12(baseURI, relativeURI, options) {
15695
15695
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
15696
15696
  const resolved = resolveComponent(parse3(baseURI, schemelessOptions), parse3(relativeURI, schemelessOptions), schemelessOptions, true);
15697
15697
  schemelessOptions.skipEscape = true;
@@ -15918,7 +15918,7 @@ var require_fast_uri = __commonJS({
15918
15918
  var fastUri = {
15919
15919
  SCHEMES,
15920
15920
  normalize,
15921
- resolve: resolve11,
15921
+ resolve: resolve12,
15922
15922
  resolveComponent,
15923
15923
  equal,
15924
15924
  serialize,
@@ -18738,8 +18738,8 @@ function validateAgainstSchemaDetailed(value, schemaPath, basePath, workspaceRoo
18738
18738
  if (!valid && validate3.errors) {
18739
18739
  const errors = validate3.errors.map((err) => convertAjvError(err, value));
18740
18740
  const errorStrings = validate3.errors.map((err) => {
18741
- const path13 = err.instancePath || "(root)";
18742
- return `${path13}: ${err.message}`;
18741
+ const path14 = err.instancePath || "(root)";
18742
+ return `${path14}: ${err.message}`;
18743
18743
  });
18744
18744
  return {
18745
18745
  valid: false,
@@ -18910,7 +18910,7 @@ function resolveValue(expr, responses, variables, getValueByPath2, responseIndex
18910
18910
  if (refMatch) {
18911
18911
  const responseIdx = parseInt(refMatch[1], 10);
18912
18912
  const responseIndex = responseIdx - 1;
18913
- const path13 = refMatch[2];
18913
+ const path14 = refMatch[2];
18914
18914
  if (responseIndex < 0 || responseIndex >= responses.length) {
18915
18915
  return {
18916
18916
  value: void 0,
@@ -18918,12 +18918,12 @@ function resolveValue(expr, responses, variables, getValueByPath2, responseIndex
18918
18918
  };
18919
18919
  }
18920
18920
  const response = responses[responseIndex];
18921
- const value = getValueByPath2(response, path13);
18921
+ const value = getValueByPath2(response, path14);
18922
18922
  return {
18923
18923
  value,
18924
18924
  responseIndex: responseIdx,
18925
18925
  response,
18926
- jsonPath: path13,
18926
+ jsonPath: path14,
18927
18927
  variableName: responseIndexToVariable?.get(responseIdx)
18928
18928
  };
18929
18929
  }
@@ -18940,22 +18940,22 @@ function resolveValue(expr, responses, variables, getValueByPath2, responseIndex
18940
18940
  if (varName in variables) {
18941
18941
  const varValue = variables[varName];
18942
18942
  if (typeof varValue === "object" && varValue !== null) {
18943
- const path13 = pathPart.replace(/^\./, "");
18944
- const value = getNestedValue2(varValue, path13);
18943
+ const path14 = pathPart.replace(/^\./, "");
18944
+ const value = getNestedValue2(varValue, path14);
18945
18945
  const isHttpResponse = "status" in varValue && "body" in varValue;
18946
18946
  return {
18947
18947
  value,
18948
18948
  variableName: varName,
18949
- jsonPath: path13,
18949
+ jsonPath: path14,
18950
18950
  response: isHttpResponse ? varValue : void 0
18951
18951
  };
18952
18952
  }
18953
18953
  if (typeof varValue === "string") {
18954
18954
  try {
18955
18955
  const parsed = JSON.parse(varValue);
18956
- const path13 = pathPart.replace(/^\./, "");
18957
- const value = getNestedValue2(parsed, path13);
18958
- return { value, variableName: varName, jsonPath: path13 };
18956
+ const path14 = pathPart.replace(/^\./, "");
18957
+ const value = getNestedValue2(parsed, path14);
18958
+ return { value, variableName: varName, jsonPath: path14 };
18959
18959
  } catch {
18960
18960
  return { value: void 0, error: `Cannot access path on non-object variable: ${varName}` };
18961
18961
  }
@@ -18984,14 +18984,14 @@ function resolveValue(expr, responses, variables, getValueByPath2, responseIndex
18984
18984
  const varValue = variables[varName];
18985
18985
  if (pathPart) {
18986
18986
  if (typeof varValue === "object" && varValue !== null) {
18987
- const path13 = pathPart.replace(/^\./, "");
18988
- return { value: getNestedValue2(varValue, path13) };
18987
+ const path14 = pathPart.replace(/^\./, "");
18988
+ return { value: getNestedValue2(varValue, path14) };
18989
18989
  }
18990
18990
  if (typeof varValue === "string") {
18991
18991
  try {
18992
18992
  const parsed = JSON.parse(varValue);
18993
- const path13 = pathPart.replace(/^\./, "");
18994
- return { value: getNestedValue2(parsed, path13) };
18993
+ const path14 = pathPart.replace(/^\./, "");
18994
+ return { value: getNestedValue2(parsed, path14) };
18995
18995
  } catch {
18996
18996
  return { value: void 0, error: `Cannot access path on non-object variable: ${varName}` };
18997
18997
  }
@@ -19028,11 +19028,11 @@ function resolveValue(expr, responses, variables, getValueByPath2, responseIndex
19028
19028
  }
19029
19029
  return { value: void 0, error: `Cannot resolve expression: ${trimmed}` };
19030
19030
  }
19031
- function getNestedValue2(obj, path13) {
19032
- if (!path13 || obj === null || obj === void 0) {
19031
+ function getNestedValue2(obj, path14) {
19032
+ if (!path14 || obj === null || obj === void 0) {
19033
19033
  return obj;
19034
19034
  }
19035
- const parts = path13.replace(/\[(\d+)\]/g, ".$1").split(".").filter((p) => p !== "");
19035
+ const parts = path14.replace(/\[(\d+)\]/g, ".$1").split(".").filter((p) => p !== "");
19036
19036
  let current = obj;
19037
19037
  for (const part of parts) {
19038
19038
  if (current === null || current === void 0) {
@@ -20921,15 +20921,15 @@ var require_pg_connection_string = __commonJS({
20921
20921
  if (config.sslcert || config.sslkey || config.sslrootcert || config.sslmode) {
20922
20922
  config.ssl = {};
20923
20923
  }
20924
- const fs17 = config.sslcert || config.sslkey || config.sslrootcert ? require("fs") : null;
20924
+ const fs18 = config.sslcert || config.sslkey || config.sslrootcert ? require("fs") : null;
20925
20925
  if (config.sslcert) {
20926
- config.ssl.cert = fs17.readFileSync(config.sslcert).toString();
20926
+ config.ssl.cert = fs18.readFileSync(config.sslcert).toString();
20927
20927
  }
20928
20928
  if (config.sslkey) {
20929
- config.ssl.key = fs17.readFileSync(config.sslkey).toString();
20929
+ config.ssl.key = fs18.readFileSync(config.sslkey).toString();
20930
20930
  }
20931
20931
  if (config.sslrootcert) {
20932
- config.ssl.ca = fs17.readFileSync(config.sslrootcert).toString();
20932
+ config.ssl.ca = fs18.readFileSync(config.sslrootcert).toString();
20933
20933
  }
20934
20934
  if (options.useLibpqCompat && config.uselibpqcompat) {
20935
20935
  throw new Error("Both useLibpqCompat and uselibpqcompat are set. Please use only one of them.");
@@ -22325,7 +22325,7 @@ var require_dist = __commonJS({
22325
22325
  function parse3(stream4, callback) {
22326
22326
  const parser = new parser_1.Parser();
22327
22327
  stream4.on("data", (buffer) => parser.parse(buffer, callback));
22328
- return new Promise((resolve11) => stream4.on("end", () => resolve11()));
22328
+ return new Promise((resolve12) => stream4.on("end", () => resolve12()));
22329
22329
  }
22330
22330
  exports2.parse = parse3;
22331
22331
  }
@@ -22694,7 +22694,7 @@ var require_split2 = __commonJS({
22694
22694
  var require_helper = __commonJS({
22695
22695
  "node_modules/pgpass/lib/helper.js"(exports2, module2) {
22696
22696
  "use strict";
22697
- var path13 = require("path");
22697
+ var path14 = require("path");
22698
22698
  var Stream = require("stream").Stream;
22699
22699
  var split = require_split2();
22700
22700
  var util3 = require("util");
@@ -22733,7 +22733,7 @@ var require_helper = __commonJS({
22733
22733
  };
22734
22734
  module2.exports.getFileName = function(rawEnv) {
22735
22735
  var env3 = rawEnv || process.env;
22736
- var file = env3.PGPASSFILE || (isWin ? path13.join(env3.APPDATA || "./", "postgresql", "pgpass.conf") : path13.join(env3.HOME || "./", ".pgpass"));
22736
+ var file = env3.PGPASSFILE || (isWin ? path14.join(env3.APPDATA || "./", "postgresql", "pgpass.conf") : path14.join(env3.HOME || "./", ".pgpass"));
22737
22737
  return file;
22738
22738
  };
22739
22739
  module2.exports.usePgPass = function(stats, fname) {
@@ -22865,16 +22865,16 @@ var require_helper = __commonJS({
22865
22865
  var require_lib = __commonJS({
22866
22866
  "node_modules/pgpass/lib/index.js"(exports2, module2) {
22867
22867
  "use strict";
22868
- var path13 = require("path");
22869
- var fs17 = require("fs");
22868
+ var path14 = require("path");
22869
+ var fs18 = require("fs");
22870
22870
  var helper = require_helper();
22871
22871
  module2.exports = function(connInfo, cb) {
22872
22872
  var file = helper.getFileName();
22873
- fs17.stat(file, function(err, stat) {
22873
+ fs18.stat(file, function(err, stat) {
22874
22874
  if (err || !helper.usePgPass(stat, file)) {
22875
22875
  return cb(void 0);
22876
22876
  }
22877
- var st = fs17.createReadStream(file);
22877
+ var st = fs18.createReadStream(file);
22878
22878
  helper.getPassword(connInfo, st, cb);
22879
22879
  });
22880
22880
  };
@@ -23056,12 +23056,12 @@ var require_client = __commonJS({
23056
23056
  this._connect(callback);
23057
23057
  return;
23058
23058
  }
23059
- return new this._Promise((resolve11, reject) => {
23059
+ return new this._Promise((resolve12, reject) => {
23060
23060
  this._connect((error) => {
23061
23061
  if (error) {
23062
23062
  reject(error);
23063
23063
  } else {
23064
- resolve11(this);
23064
+ resolve12(this);
23065
23065
  }
23066
23066
  });
23067
23067
  });
@@ -23407,8 +23407,8 @@ var require_client = __commonJS({
23407
23407
  readTimeout = config.query_timeout || this.connectionParameters.query_timeout;
23408
23408
  query = new Query2(config, values, callback);
23409
23409
  if (!query.callback) {
23410
- result = new this._Promise((resolve11, reject) => {
23411
- query.callback = (err, res) => err ? reject(err) : resolve11(res);
23410
+ result = new this._Promise((resolve12, reject) => {
23411
+ query.callback = (err, res) => err ? reject(err) : resolve12(res);
23412
23412
  }).catch((err) => {
23413
23413
  Error.captureStackTrace(err);
23414
23414
  throw err;
@@ -23485,8 +23485,8 @@ var require_client = __commonJS({
23485
23485
  if (cb) {
23486
23486
  this.connection.once("end", cb);
23487
23487
  } else {
23488
- return new this._Promise((resolve11) => {
23489
- this.connection.once("end", resolve11);
23488
+ return new this._Promise((resolve12) => {
23489
+ this.connection.once("end", resolve12);
23490
23490
  });
23491
23491
  }
23492
23492
  }
@@ -23535,8 +23535,8 @@ var require_pg_pool = __commonJS({
23535
23535
  const cb = function(err, client) {
23536
23536
  err ? rej(err) : res(client);
23537
23537
  };
23538
- const result = new Promise2(function(resolve11, reject) {
23539
- res = resolve11;
23538
+ const result = new Promise2(function(resolve12, reject) {
23539
+ res = resolve12;
23540
23540
  rej = reject;
23541
23541
  }).catch((err) => {
23542
23542
  Error.captureStackTrace(err);
@@ -23597,7 +23597,7 @@ var require_pg_pool = __commonJS({
23597
23597
  if (typeof Promise2.try === "function") {
23598
23598
  return Promise2.try(f);
23599
23599
  }
23600
- return new Promise2((resolve11) => resolve11(f()));
23600
+ return new Promise2((resolve12) => resolve12(f()));
23601
23601
  }
23602
23602
  _isFull() {
23603
23603
  return this._clients.length >= this.options.max;
@@ -23990,8 +23990,8 @@ var require_query2 = __commonJS({
23990
23990
  NativeQuery.prototype._getPromise = function() {
23991
23991
  if (this._promise) return this._promise;
23992
23992
  this._promise = new Promise(
23993
- function(resolve11, reject) {
23994
- this._once("end", resolve11);
23993
+ function(resolve12, reject) {
23994
+ this._once("end", resolve12);
23995
23995
  this._once("error", reject);
23996
23996
  }.bind(this)
23997
23997
  );
@@ -24168,12 +24168,12 @@ var require_client2 = __commonJS({
24168
24168
  this._connect(callback);
24169
24169
  return;
24170
24170
  }
24171
- return new this._Promise((resolve11, reject) => {
24171
+ return new this._Promise((resolve12, reject) => {
24172
24172
  this._connect((error) => {
24173
24173
  if (error) {
24174
24174
  reject(error);
24175
24175
  } else {
24176
- resolve11(this);
24176
+ resolve12(this);
24177
24177
  }
24178
24178
  });
24179
24179
  });
@@ -24197,8 +24197,8 @@ var require_client2 = __commonJS({
24197
24197
  query = new NativeQuery(config, values, callback);
24198
24198
  if (!query.callback) {
24199
24199
  let resolveOut, rejectOut;
24200
- result = new this._Promise((resolve11, reject) => {
24201
- resolveOut = resolve11;
24200
+ result = new this._Promise((resolve12, reject) => {
24201
+ resolveOut = resolve12;
24202
24202
  rejectOut = reject;
24203
24203
  }).catch((err) => {
24204
24204
  Error.captureStackTrace(err);
@@ -24258,8 +24258,8 @@ var require_client2 = __commonJS({
24258
24258
  }
24259
24259
  let result;
24260
24260
  if (!cb) {
24261
- result = new this._Promise(function(resolve11, reject) {
24262
- cb = (err) => err ? reject(err) : resolve11();
24261
+ result = new this._Promise(function(resolve12, reject) {
24262
+ cb = (err) => err ? reject(err) : resolve12();
24263
24263
  });
24264
24264
  }
24265
24265
  this.native.end(function() {
@@ -24957,15 +24957,15 @@ var require_utils4 = __commonJS({
24957
24957
  Object.defineProperty(exports2, "__esModule", { value: true });
24958
24958
  var PromiseInspection_1 = require_PromiseInspection();
24959
24959
  function defer() {
24960
- let resolve11 = null;
24960
+ let resolve12 = null;
24961
24961
  let reject = null;
24962
24962
  const promise = new Promise((resolver, rejecter) => {
24963
- resolve11 = resolver;
24963
+ resolve12 = resolver;
24964
24964
  reject = rejecter;
24965
24965
  });
24966
24966
  return {
24967
24967
  promise,
24968
- resolve: resolve11,
24968
+ resolve: resolve12,
24969
24969
  reject
24970
24970
  };
24971
24971
  }
@@ -24990,7 +24990,7 @@ var require_utils4 = __commonJS({
24990
24990
  }
24991
24991
  exports2.checkRequiredTime = checkRequiredTime;
24992
24992
  function delay(millis) {
24993
- return new Promise((resolve11) => setTimeout(resolve11, millis));
24993
+ return new Promise((resolve12) => setTimeout(resolve12, millis));
24994
24994
  }
24995
24995
  exports2.delay = delay;
24996
24996
  function reflect(promise) {
@@ -25050,11 +25050,11 @@ var require_PendingOperation = __commonJS({
25050
25050
  };
25051
25051
  exports2.PendingOperation = PendingOperation;
25052
25052
  function timeout(promise, time) {
25053
- return new Promise((resolve11, reject) => {
25053
+ return new Promise((resolve12, reject) => {
25054
25054
  const timeoutHandle = setTimeout(() => reject(new TimeoutError_1.TimeoutError()), time);
25055
25055
  promise.then((result) => {
25056
25056
  clearTimeout(timeoutHandle);
25057
- resolve11(result);
25057
+ resolve12(result);
25058
25058
  }).catch((err) => {
25059
25059
  clearTimeout(timeoutHandle);
25060
25060
  reject(err);
@@ -25262,15 +25262,15 @@ var require_Pool = __commonJS({
25262
25262
  this._stopReaping();
25263
25263
  this.destroyed = true;
25264
25264
  return utils_1.reflect(Promise.all(this.pendingCreates.map((create) => utils_1.reflect(create.promise))).then(() => {
25265
- return new Promise((resolve11, reject) => {
25265
+ return new Promise((resolve12, reject) => {
25266
25266
  if (this.numPendingValidations() === 0) {
25267
- resolve11();
25267
+ resolve12();
25268
25268
  return;
25269
25269
  }
25270
25270
  const interval = setInterval(() => {
25271
25271
  if (this.numPendingValidations() === 0) {
25272
25272
  timers_1.clearInterval(interval);
25273
- resolve11();
25273
+ resolve12();
25274
25274
  }
25275
25275
  }, 100);
25276
25276
  });
@@ -25494,17 +25494,17 @@ var require_Pool = __commonJS({
25494
25494
  }
25495
25495
  }
25496
25496
  function callbackOrPromise(func) {
25497
- return new Promise((resolve11, reject) => {
25497
+ return new Promise((resolve12, reject) => {
25498
25498
  const callback = (err, resource) => {
25499
25499
  if (err) {
25500
25500
  reject(err);
25501
25501
  } else {
25502
- resolve11(resource);
25502
+ resolve12(resource);
25503
25503
  }
25504
25504
  };
25505
25505
  utils_1.tryPromise(() => func(callback)).then((res) => {
25506
25506
  if (res) {
25507
- resolve11(res);
25507
+ resolve12(res);
25508
25508
  }
25509
25509
  }).catch((err) => {
25510
25510
  reject(err);
@@ -25938,7 +25938,7 @@ var require_table = __commonJS({
25938
25938
  let cursor = -1;
25939
25939
  let buffer = "";
25940
25940
  let escaped = false;
25941
- const path13 = [];
25941
+ const path14 = [];
25942
25942
  while (++cursor < length) {
25943
25943
  const char = name.charAt(cursor);
25944
25944
  if (char === "[") {
@@ -25957,7 +25957,7 @@ var require_table = __commonJS({
25957
25957
  if (escaped) {
25958
25958
  buffer += char;
25959
25959
  } else {
25960
- path13.push(buffer);
25960
+ path14.push(buffer);
25961
25961
  buffer = "";
25962
25962
  }
25963
25963
  } else {
@@ -25965,26 +25965,26 @@ var require_table = __commonJS({
25965
25965
  }
25966
25966
  }
25967
25967
  if (buffer) {
25968
- path13.push(buffer);
25968
+ path14.push(buffer);
25969
25969
  }
25970
- switch (path13.length) {
25970
+ switch (path14.length) {
25971
25971
  case 1:
25972
25972
  return {
25973
- name: path13[0],
25973
+ name: path14[0],
25974
25974
  schema: null,
25975
25975
  database: null
25976
25976
  };
25977
25977
  case 2:
25978
25978
  return {
25979
- name: path13[1],
25980
- schema: path13[0],
25979
+ name: path14[1],
25980
+ schema: path14[0],
25981
25981
  database: null
25982
25982
  };
25983
25983
  case 3:
25984
25984
  return {
25985
- name: path13[2],
25986
- schema: path13[1],
25987
- database: path13[0]
25985
+ name: path14[2],
25986
+ schema: path14[1],
25987
+ database: path14[0]
25988
25988
  };
25989
25989
  default:
25990
25990
  throw new Error("Invalid table name.");
@@ -26570,10 +26570,10 @@ var require_connection_pool = __commonJS({
26570
26570
  this._connect(callback);
26571
26571
  return this;
26572
26572
  }
26573
- return new shared.Promise((resolve11, reject) => {
26573
+ return new shared.Promise((resolve12, reject) => {
26574
26574
  return this._connect((err) => {
26575
26575
  if (err) return reject(err);
26576
- resolve11(this);
26576
+ resolve12(this);
26577
26577
  });
26578
26578
  });
26579
26579
  }
@@ -26654,10 +26654,10 @@ var require_connection_pool = __commonJS({
26654
26654
  this._close(callback);
26655
26655
  return this;
26656
26656
  }
26657
- return new shared.Promise((resolve11, reject) => {
26657
+ return new shared.Promise((resolve12, reject) => {
26658
26658
  this._close((err) => {
26659
26659
  if (err) return reject(err);
26660
- resolve11(this);
26660
+ resolve12(this);
26661
26661
  });
26662
26662
  });
26663
26663
  }
@@ -26818,8 +26818,8 @@ var require_global_connection = __commonJS({
26818
26818
  setImmediate(callback);
26819
26819
  return null;
26820
26820
  }
26821
- return new shared.Promise((resolve11) => {
26822
- resolve11(globalConnection);
26821
+ return new shared.Promise((resolve12) => {
26822
+ resolve12(globalConnection);
26823
26823
  });
26824
26824
  }
26825
26825
  function on(event, handler) {
@@ -27030,10 +27030,10 @@ var require_prepared_statement = __commonJS({
27030
27030
  this._prepare(statement, callback);
27031
27031
  return this;
27032
27032
  }
27033
- return new shared.Promise((resolve11, reject) => {
27033
+ return new shared.Promise((resolve12, reject) => {
27034
27034
  this._prepare(statement, (err) => {
27035
27035
  if (err) return reject(err);
27036
- resolve11(this);
27036
+ resolve12(this);
27037
27037
  });
27038
27038
  });
27039
27039
  }
@@ -27096,10 +27096,10 @@ var require_prepared_statement = __commonJS({
27096
27096
  if (this.stream || typeof callback === "function") {
27097
27097
  return this._execute(values, callback);
27098
27098
  }
27099
- return new shared.Promise((resolve11, reject) => {
27099
+ return new shared.Promise((resolve12, reject) => {
27100
27100
  this._execute(values, (err, recordset) => {
27101
27101
  if (err) return reject(err);
27102
- resolve11(recordset);
27102
+ resolve12(recordset);
27103
27103
  });
27104
27104
  });
27105
27105
  }
@@ -27145,10 +27145,10 @@ var require_prepared_statement = __commonJS({
27145
27145
  this._unprepare(callback);
27146
27146
  return this;
27147
27147
  }
27148
- return new shared.Promise((resolve11, reject) => {
27148
+ return new shared.Promise((resolve12, reject) => {
27149
27149
  this._unprepare((err) => {
27150
27150
  if (err) return reject(err);
27151
- resolve11();
27151
+ resolve12();
27152
27152
  });
27153
27153
  });
27154
27154
  }
@@ -27392,7 +27392,7 @@ var require_request = __commonJS({
27392
27392
  const strings = values.shift();
27393
27393
  batch = this._template(strings, values);
27394
27394
  }
27395
- return new shared.Promise((resolve11, reject) => {
27395
+ return new shared.Promise((resolve12, reject) => {
27396
27396
  this._batch(batch, (err, recordsets, output2, rowsAffected) => {
27397
27397
  if (this.stream) {
27398
27398
  if (err) this.emit("error", err);
@@ -27403,7 +27403,7 @@ var require_request = __commonJS({
27403
27403
  });
27404
27404
  }
27405
27405
  if (err) return reject(err);
27406
- resolve11({
27406
+ resolve12({
27407
27407
  recordsets,
27408
27408
  recordset: recordsets && recordsets[0],
27409
27409
  output: output2,
@@ -27459,10 +27459,10 @@ var require_request = __commonJS({
27459
27459
  });
27460
27460
  return this;
27461
27461
  }
27462
- return new shared.Promise((resolve11, reject) => {
27462
+ return new shared.Promise((resolve12, reject) => {
27463
27463
  this._bulk(table, options, (err, rowsAffected) => {
27464
27464
  if (err) return reject(err);
27465
- resolve11({
27465
+ resolve12({
27466
27466
  rowsAffected
27467
27467
  });
27468
27468
  });
@@ -27563,7 +27563,7 @@ var require_request = __commonJS({
27563
27563
  const strings = values.shift();
27564
27564
  command = this._template(strings, values);
27565
27565
  }
27566
- return new shared.Promise((resolve11, reject) => {
27566
+ return new shared.Promise((resolve12, reject) => {
27567
27567
  this._query(command, (err, recordsets, output2, rowsAffected, columns) => {
27568
27568
  if (this.stream) {
27569
27569
  if (err) this.emit("error", err);
@@ -27581,7 +27581,7 @@ var require_request = __commonJS({
27581
27581
  rowsAffected
27582
27582
  };
27583
27583
  if (this.arrayRowMode) result.columns = columns;
27584
- resolve11(result);
27584
+ resolve12(result);
27585
27585
  });
27586
27586
  });
27587
27587
  }
@@ -27635,7 +27635,7 @@ var require_request = __commonJS({
27635
27635
  });
27636
27636
  return this;
27637
27637
  }
27638
- return new shared.Promise((resolve11, reject) => {
27638
+ return new shared.Promise((resolve12, reject) => {
27639
27639
  this._execute(command, (err, recordsets, output2, returnValue, rowsAffected, columns) => {
27640
27640
  if (this.stream) {
27641
27641
  if (err) this.emit("error", err);
@@ -27655,7 +27655,7 @@ var require_request = __commonJS({
27655
27655
  returnValue
27656
27656
  };
27657
27657
  if (this.arrayRowMode) result.columns = columns;
27658
- resolve11(result);
27658
+ resolve12(result);
27659
27659
  });
27660
27660
  });
27661
27661
  }
@@ -27819,11 +27819,11 @@ var require_transaction = __commonJS({
27819
27819
  });
27820
27820
  return this;
27821
27821
  }
27822
- return new shared.Promise((resolve11, reject) => {
27822
+ return new shared.Promise((resolve12, reject) => {
27823
27823
  this._begin(isolationLevel, (err) => {
27824
27824
  if (err) return reject(err);
27825
27825
  this.emit("begin");
27826
- resolve11(this);
27826
+ resolve12(this);
27827
27827
  });
27828
27828
  });
27829
27829
  }
@@ -27866,11 +27866,11 @@ var require_transaction = __commonJS({
27866
27866
  });
27867
27867
  return this;
27868
27868
  }
27869
- return new shared.Promise((resolve11, reject) => {
27869
+ return new shared.Promise((resolve12, reject) => {
27870
27870
  this._commit((err) => {
27871
27871
  if (err) return reject(err);
27872
27872
  this.emit("commit");
27873
- resolve11();
27873
+ resolve12();
27874
27874
  });
27875
27875
  });
27876
27876
  }
@@ -27915,11 +27915,11 @@ var require_transaction = __commonJS({
27915
27915
  });
27916
27916
  return this;
27917
27917
  }
27918
- return new shared.Promise((resolve11, reject) => {
27918
+ return new shared.Promise((resolve12, reject) => {
27919
27919
  return this._rollback((err) => {
27920
27920
  if (err) return reject(err);
27921
27921
  this.emit("rollback", this._aborted);
27922
- resolve11();
27922
+ resolve12();
27923
27923
  });
27924
27924
  });
27925
27925
  }
@@ -29160,11 +29160,11 @@ function __metadata(metadataKey, metadataValue) {
29160
29160
  }
29161
29161
  function __awaiter(thisArg, _arguments, P, generator) {
29162
29162
  function adopt(value) {
29163
- return value instanceof P ? value : new P(function(resolve11) {
29164
- resolve11(value);
29163
+ return value instanceof P ? value : new P(function(resolve12) {
29164
+ resolve12(value);
29165
29165
  });
29166
29166
  }
29167
- return new (P || (P = Promise))(function(resolve11, reject) {
29167
+ return new (P || (P = Promise))(function(resolve12, reject) {
29168
29168
  function fulfilled(value) {
29169
29169
  try {
29170
29170
  step(generator.next(value));
@@ -29180,7 +29180,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
29180
29180
  }
29181
29181
  }
29182
29182
  function step(result) {
29183
- result.done ? resolve11(result.value) : adopt(result.value).then(fulfilled, rejected);
29183
+ result.done ? resolve12(result.value) : adopt(result.value).then(fulfilled, rejected);
29184
29184
  }
29185
29185
  step((generator = generator.apply(thisArg, _arguments || [])).next());
29186
29186
  });
@@ -29371,14 +29371,14 @@ function __asyncValues(o) {
29371
29371
  }, i);
29372
29372
  function verb(n) {
29373
29373
  i[n] = o[n] && function(v) {
29374
- return new Promise(function(resolve11, reject) {
29375
- v = o[n](v), settle2(resolve11, reject, v.done, v.value);
29374
+ return new Promise(function(resolve12, reject) {
29375
+ v = o[n](v), settle2(resolve12, reject, v.done, v.value);
29376
29376
  });
29377
29377
  };
29378
29378
  }
29379
- function settle2(resolve11, reject, d, v) {
29379
+ function settle2(resolve12, reject, d, v) {
29380
29380
  Promise.resolve(v).then(function(v2) {
29381
- resolve11({ value: v2, done: d });
29381
+ resolve12({ value: v2, done: d });
29382
29382
  }, reject);
29383
29383
  }
29384
29384
  }
@@ -29470,13 +29470,13 @@ function __disposeResources(env3) {
29470
29470
  }
29471
29471
  return next();
29472
29472
  }
29473
- function __rewriteRelativeImportExtension(path13, preserveJsx) {
29474
- if (typeof path13 === "string" && /^\.\.?\//.test(path13)) {
29475
- return path13.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
29473
+ function __rewriteRelativeImportExtension(path14, preserveJsx) {
29474
+ if (typeof path14 === "string" && /^\.\.?\//.test(path14)) {
29475
+ return path14.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
29476
29476
  return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
29477
29477
  });
29478
29478
  }
29479
- return path13;
29479
+ return path14;
29480
29480
  }
29481
29481
  var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
29482
29482
  var init_tslib_es6 = __esm({
@@ -29623,8 +29623,8 @@ var require_msalPlugins = __commonJS({
29623
29623
  }
29624
29624
  };
29625
29625
  exports2.msalNodeFlowVSCodeCredentialControl = {
29626
- setVSCodeAuthRecordPath(path13) {
29627
- exports2.vsCodeAuthRecordPath = path13;
29626
+ setVSCodeAuthRecordPath(path14) {
29627
+ exports2.vsCodeAuthRecordPath = path14;
29628
29628
  },
29629
29629
  setVSCodeBroker(broker) {
29630
29630
  exports2.vsCodeBrokerInfo = {
@@ -32973,7 +32973,7 @@ var require_index_node_BtzY9XyU = __commonJS({
32973
32973
  return cachedAtSec > nowSeconds();
32974
32974
  }
32975
32975
  function delay(t, value) {
32976
- return new Promise((resolve11) => setTimeout(() => resolve11(value), t));
32976
+ return new Promise((resolve12) => setTimeout(() => resolve12(value), t));
32977
32977
  }
32978
32978
  var TimeUtils = /* @__PURE__ */ Object.freeze({
32979
32979
  __proto__: null,
@@ -42365,8 +42365,8 @@ var require_msal_node = __commonJS({
42365
42365
  var crypto7 = require("crypto");
42366
42366
  var msalCommon = require_lib4();
42367
42367
  var jwt = require_jsonwebtoken();
42368
- var fs17 = require("fs");
42369
- var path13 = require("path");
42368
+ var fs18 = require("fs");
42369
+ var path14 = require("path");
42370
42370
  var Serializer = class {
42371
42371
  /**
42372
42372
  * serialize the JSON blob
@@ -46159,7 +46159,7 @@ var require_msal_node = __commonJS({
46159
46159
  return cachedAtSec > nowSeconds();
46160
46160
  }
46161
46161
  function delay(t, value) {
46162
- return new Promise((resolve11) => setTimeout(() => resolve11(value), t));
46162
+ return new Promise((resolve12) => setTimeout(() => resolve12(value), t));
46163
46163
  }
46164
46164
  function createIdTokenEntity(homeAccountId, environment, idToken, clientId, tenantId) {
46165
46165
  const idTokenEntity = {
@@ -48862,7 +48862,7 @@ ${body}`;
48862
48862
  Host: ${destinationUrl.host}\r
48863
48863
  Connection: close\r
48864
48864
  ` + postRequestStringContent + "\r\n";
48865
- return new Promise((resolve11, reject) => {
48865
+ return new Promise((resolve12, reject) => {
48866
48866
  const request = http3.request(tunnelRequestOptions);
48867
48867
  if (timeout) {
48868
48868
  request.on("timeout", () => {
@@ -48911,7 +48911,7 @@ Connection: close\r
48911
48911
  if (this.shouldDestroyRequest(httpStatusCode, networkResponse)) {
48912
48912
  request.destroy();
48913
48913
  }
48914
- resolve11(networkResponse);
48914
+ resolve12(networkResponse);
48915
48915
  });
48916
48916
  socket.on("error", (chunk) => {
48917
48917
  request.destroy();
@@ -48953,7 +48953,7 @@ Connection: close\r
48953
48953
  customOptions.timeout = timeout;
48954
48954
  }
48955
48955
  }
48956
- return new Promise((resolve11, reject) => {
48956
+ return new Promise((resolve12, reject) => {
48957
48957
  let request;
48958
48958
  if (customOptions.protocol === "http:") {
48959
48959
  request = http3.request(customOptions);
@@ -48986,7 +48986,7 @@ Connection: close\r
48986
48986
  if (this.shouldDestroyRequest(statusCode, networkResponse)) {
48987
48987
  request.destroy();
48988
48988
  }
48989
- resolve11(networkResponse);
48989
+ resolve12(networkResponse);
48990
48990
  });
48991
48991
  });
48992
48992
  request.on("error", (chunk) => {
@@ -50756,7 +50756,7 @@ Headers: ${JSON.stringify(headers)}`
50756
50756
  if (this.server) {
50757
50757
  throw NodeAuthError.createLoopbackServerAlreadyExistsError();
50758
50758
  }
50759
- return new Promise((resolve11, reject) => {
50759
+ return new Promise((resolve12, reject) => {
50760
50760
  this.server = http3.createServer((req, res) => {
50761
50761
  const url2 = req.url;
50762
50762
  if (!url2) {
@@ -50779,7 +50779,7 @@ Headers: ${JSON.stringify(headers)}`
50779
50779
  if (authCodeResponse.error) {
50780
50780
  res.end(errorTemplate || `Error occurred: ${authCodeResponse.error}`);
50781
50781
  }
50782
- resolve11(authCodeResponse);
50782
+ resolve12(authCodeResponse);
50783
50783
  });
50784
50784
  this.server.listen(0, "127.0.0.1");
50785
50785
  });
@@ -51192,7 +51192,7 @@ Headers: ${JSON.stringify(headers)}`
51192
51192
  * @returns
51193
51193
  */
51194
51194
  async waitForRedirectUri(loopbackClient) {
51195
- return new Promise((resolve11, reject) => {
51195
+ return new Promise((resolve12, reject) => {
51196
51196
  let ticks = 0;
51197
51197
  const id = setInterval(() => {
51198
51198
  if (LOOPBACK_SERVER_CONSTANTS.TIMEOUT_MS / LOOPBACK_SERVER_CONSTANTS.INTERVAL_MS < ticks) {
@@ -51203,7 +51203,7 @@ Headers: ${JSON.stringify(headers)}`
51203
51203
  try {
51204
51204
  const r = loopbackClient.getRedirectUri();
51205
51205
  clearInterval(id);
51206
- resolve11(r);
51206
+ resolve12(r);
51207
51207
  return;
51208
51208
  } catch (e) {
51209
51209
  if (e instanceof AuthError && e.errorCode === NodeAuthErrorMessage.noLoopbackServerExists.code) {
@@ -51957,8 +51957,8 @@ Headers: ${JSON.stringify(headers)}`
51957
51957
  if (DEFAULT_MANAGED_IDENTITY_HTTP_STATUS_CODES_TO_RETRY_ON.includes(httpStatusCode) && currentRetry < DEFAULT_MANAGED_IDENTITY_MAX_RETRIES) {
51958
51958
  const retryAfterDelay = this.linearRetryStrategy.calculateDelay(retryAfterHeader, _DefaultManagedIdentityRetryPolicy.DEFAULT_MANAGED_IDENTITY_RETRY_DELAY_MS);
51959
51959
  logger.verbose(`Retrying request in ${retryAfterDelay}ms (retry attempt: ${currentRetry + 1})`);
51960
- await new Promise((resolve11) => {
51961
- return setTimeout(resolve11, retryAfterDelay);
51960
+ await new Promise((resolve12) => {
51961
+ return setTimeout(resolve12, retryAfterDelay);
51962
51962
  });
51963
51963
  return true;
51964
51964
  }
@@ -52114,7 +52114,7 @@ Headers: ${JSON.stringify(headers)}`
52114
52114
  if (!identityEndpoint || !imdsEndpoint) {
52115
52115
  const fileDetectionPath = AZURE_ARC_FILE_DETECTION[process.platform];
52116
52116
  try {
52117
- fs17.accessSync(fileDetectionPath, fs17.constants.F_OK | fs17.constants.R_OK);
52117
+ fs18.accessSync(fileDetectionPath, fs18.constants.F_OK | fs18.constants.R_OK);
52118
52118
  identityEndpoint = DEFAULT_AZURE_ARC_IDENTITY_ENDPOINT;
52119
52119
  imdsEndpoint = HIMDS_EXECUTABLE_HELPER_STRING;
52120
52120
  } catch (err) {
@@ -52217,7 +52217,7 @@ Headers: ${JSON.stringify(headers)}`
52217
52217
  throw createManagedIdentityError(platformNotSupported);
52218
52218
  }
52219
52219
  const expectedSecretFilePath = SUPPORTED_AZURE_ARC_PLATFORMS[process.platform];
52220
- const fileName = path13.basename(secretFilePath);
52220
+ const fileName = path14.basename(secretFilePath);
52221
52221
  if (!fileName.endsWith(".key")) {
52222
52222
  throw createManagedIdentityError(invalidFileExtension);
52223
52223
  }
@@ -52226,7 +52226,7 @@ Headers: ${JSON.stringify(headers)}`
52226
52226
  }
52227
52227
  let secretFileSize;
52228
52228
  try {
52229
- secretFileSize = await fs17.statSync(secretFilePath).size;
52229
+ secretFileSize = await fs18.statSync(secretFilePath).size;
52230
52230
  } catch (e) {
52231
52231
  throw createManagedIdentityError(unableToReadSecretFile);
52232
52232
  }
@@ -52235,7 +52235,7 @@ Headers: ${JSON.stringify(headers)}`
52235
52235
  }
52236
52236
  let secret;
52237
52237
  try {
52238
- secret = fs17.readFileSync(secretFilePath, EncodingTypes.UTF8);
52238
+ secret = fs18.readFileSync(secretFilePath, EncodingTypes.UTF8);
52239
52239
  } catch (e) {
52240
52240
  throw createManagedIdentityError(unableToReadSecretFile);
52241
52241
  }
@@ -52412,8 +52412,8 @@ Headers: ${JSON.stringify(headers)}`
52412
52412
  if ((HTTP_STATUS_400_CODES_FOR_EXPONENTIAL_STRATEGY.includes(httpStatusCode) || httpStatusCode >= msalCommon.HttpStatus.SERVER_ERROR_RANGE_START && httpStatusCode <= msalCommon.HttpStatus.SERVER_ERROR_RANGE_END && currentRetry < this.maxRetries) && currentRetry < this.maxRetries) {
52413
52413
  const retryAfterDelay = httpStatusCode === msalCommon.HttpStatus.GONE ? _ImdsRetryPolicy.HTTP_STATUS_GONE_RETRY_AFTER_MS : this.exponentialRetryStrategy.calculateDelay(currentRetry);
52414
52414
  logger.verbose(`Retrying request in ${retryAfterDelay}ms (retry attempt: ${currentRetry + 1})`);
52415
- await new Promise((resolve11) => {
52416
- return setTimeout(resolve11, retryAfterDelay);
52415
+ await new Promise((resolve12) => {
52416
+ return setTimeout(resolve12, retryAfterDelay);
52417
52417
  });
52418
52418
  return true;
52419
52419
  }
@@ -53479,7 +53479,7 @@ var require_createAbortablePromise = __commonJS({
53479
53479
  var abort_controller_1 = require_commonjs3();
53480
53480
  function createAbortablePromise(buildPromise, options) {
53481
53481
  const { cleanupBeforeAbort, abortSignal, abortErrorMsg } = options ?? {};
53482
- return new Promise((resolve11, reject) => {
53482
+ return new Promise((resolve12, reject) => {
53483
53483
  function rejectOnAbort() {
53484
53484
  reject(new abort_controller_1.AbortError(abortErrorMsg ?? "The operation was aborted."));
53485
53485
  }
@@ -53497,7 +53497,7 @@ var require_createAbortablePromise = __commonJS({
53497
53497
  try {
53498
53498
  buildPromise((x) => {
53499
53499
  removeListeners();
53500
- resolve11(x);
53500
+ resolve12(x);
53501
53501
  }, (x) => {
53502
53502
  removeListeners();
53503
53503
  reject(x);
@@ -53524,8 +53524,8 @@ var require_delay2 = __commonJS({
53524
53524
  function delay(timeInMs, options) {
53525
53525
  let token;
53526
53526
  const { abortSignal, abortErrorMsg } = options ?? {};
53527
- return (0, createAbortablePromise_js_1.createAbortablePromise)((resolve11) => {
53528
- token = setTimeout(resolve11, timeInMs);
53527
+ return (0, createAbortablePromise_js_1.createAbortablePromise)((resolve12) => {
53528
+ token = setTimeout(resolve12, timeInMs);
53529
53529
  }, {
53530
53530
  cleanupBeforeAbort: () => clearTimeout(token),
53531
53531
  abortSignal,
@@ -55360,9 +55360,9 @@ var require_nodeHttpClient = __commonJS({
55360
55360
  if (stream4.readable === false) {
55361
55361
  return Promise.resolve();
55362
55362
  }
55363
- return new Promise((resolve11) => {
55363
+ return new Promise((resolve12) => {
55364
55364
  const handler = () => {
55365
- resolve11();
55365
+ resolve12();
55366
55366
  stream4.removeListener("close", handler);
55367
55367
  stream4.removeListener("end", handler);
55368
55368
  stream4.removeListener("error", handler);
@@ -55517,8 +55517,8 @@ var require_nodeHttpClient = __commonJS({
55517
55517
  headers: request.headers.toJSON({ preserveCase: true }),
55518
55518
  ...request.requestOverrides
55519
55519
  };
55520
- return new Promise((resolve11, reject) => {
55521
- const req = isInsecure ? import_node_http.default.request(options, resolve11) : import_node_https.default.request(options, resolve11);
55520
+ return new Promise((resolve12, reject) => {
55521
+ const req = isInsecure ? import_node_http.default.request(options, resolve12) : import_node_https.default.request(options, resolve12);
55522
55522
  req.once("error", (err) => {
55523
55523
  reject(
55524
55524
  new import_restError.RestError(err.message, { code: err.code ?? import_restError.RestError.REQUEST_SEND_ERROR, request })
@@ -55606,7 +55606,7 @@ var require_nodeHttpClient = __commonJS({
55606
55606
  return stream4;
55607
55607
  }
55608
55608
  function streamToText(stream4) {
55609
- return new Promise((resolve11, reject) => {
55609
+ return new Promise((resolve12, reject) => {
55610
55610
  const buffer = [];
55611
55611
  stream4.on("data", (chunk) => {
55612
55612
  if (Buffer.isBuffer(chunk)) {
@@ -55616,7 +55616,7 @@ var require_nodeHttpClient = __commonJS({
55616
55616
  }
55617
55617
  });
55618
55618
  stream4.on("end", () => {
55619
- resolve11(Buffer.concat(buffer).toString("utf8"));
55619
+ resolve12(Buffer.concat(buffer).toString("utf8"));
55620
55620
  });
55621
55621
  stream4.on("error", (e) => {
55622
55622
  if (e && e?.name === "AbortError") {
@@ -56056,7 +56056,7 @@ var require_helpers = __commonJS({
56056
56056
  var import_AbortError = require_AbortError2();
56057
56057
  var StandardAbortMessage = "The operation was aborted.";
56058
56058
  function delay(delayInMs, value, options) {
56059
- return new Promise((resolve11, reject) => {
56059
+ return new Promise((resolve12, reject) => {
56060
56060
  let timer = void 0;
56061
56061
  let onAborted = void 0;
56062
56062
  const rejectOnAbort = () => {
@@ -56081,7 +56081,7 @@ var require_helpers = __commonJS({
56081
56081
  }
56082
56082
  timer = setTimeout(() => {
56083
56083
  removeListeners();
56084
- resolve11(value);
56084
+ resolve12(value);
56085
56085
  }, delayInMs);
56086
56086
  if (options?.abortSignal) {
56087
56087
  options.abortSignal.addEventListener("abort", onAborted);
@@ -56576,8 +56576,8 @@ var require_helpers2 = __commonJS({
56576
56576
  function req(url2, opts = {}) {
56577
56577
  const href = typeof url2 === "string" ? url2 : url2.href;
56578
56578
  const req2 = (href.startsWith("https:") ? https3 : http3).request(url2, opts);
56579
- const promise = new Promise((resolve11, reject) => {
56580
- req2.once("response", resolve11).once("error", reject).end();
56579
+ const promise = new Promise((resolve12, reject) => {
56580
+ req2.once("response", resolve12).once("error", reject).end();
56581
56581
  });
56582
56582
  req2.then = promise.then.bind(promise);
56583
56583
  return req2;
@@ -56754,7 +56754,7 @@ var require_parse_proxy_response = __commonJS({
56754
56754
  var debug_1 = __importDefault2(require_src());
56755
56755
  var debug = (0, debug_1.default)("https-proxy-agent:parse-proxy-response");
56756
56756
  function parseProxyResponse(socket) {
56757
- return new Promise((resolve11, reject) => {
56757
+ return new Promise((resolve12, reject) => {
56758
56758
  let buffersLength = 0;
56759
56759
  const buffers = [];
56760
56760
  function read() {
@@ -56820,7 +56820,7 @@ var require_parse_proxy_response = __commonJS({
56820
56820
  }
56821
56821
  debug("got proxy server response: %o %o", firstLine, headers);
56822
56822
  cleanup();
56823
- resolve11({
56823
+ resolve12({
56824
56824
  connect: {
56825
56825
  statusCode,
56826
56826
  statusText,
@@ -58614,8 +58614,8 @@ var require_getClient = __commonJS({
58614
58614
  }
58615
58615
  const { allowInsecureConnection, httpClient } = clientOptions;
58616
58616
  const endpointUrl = clientOptions.endpoint ?? endpoint;
58617
- const client = (path13, ...args) => {
58618
- const getUrl = (requestOptions) => (0, import_urlHelpers.buildRequestUrl)(endpointUrl, path13, args, { allowInsecureConnection, ...requestOptions });
58617
+ const client = (path14, ...args) => {
58618
+ const getUrl = (requestOptions) => (0, import_urlHelpers.buildRequestUrl)(endpointUrl, path14, args, { allowInsecureConnection, ...requestOptions });
58619
58619
  return {
58620
58620
  get: (requestOptions = {}) => {
58621
58621
  return buildOperation(
@@ -61520,15 +61520,15 @@ var require_urlHelpers2 = __commonJS({
61520
61520
  let isAbsolutePath = false;
61521
61521
  let requestUrl = replaceAll(baseUri, urlReplacements);
61522
61522
  if (operationSpec.path) {
61523
- let path13 = replaceAll(operationSpec.path, urlReplacements);
61524
- if (operationSpec.path === "/{nextLink}" && path13.startsWith("/")) {
61525
- path13 = path13.substring(1);
61523
+ let path14 = replaceAll(operationSpec.path, urlReplacements);
61524
+ if (operationSpec.path === "/{nextLink}" && path14.startsWith("/")) {
61525
+ path14 = path14.substring(1);
61526
61526
  }
61527
- if (isAbsoluteUrl(path13)) {
61528
- requestUrl = path13;
61527
+ if (isAbsoluteUrl(path14)) {
61528
+ requestUrl = path14;
61529
61529
  isAbsolutePath = true;
61530
61530
  } else {
61531
- requestUrl = appendPath(requestUrl, path13);
61531
+ requestUrl = appendPath(requestUrl, path14);
61532
61532
  }
61533
61533
  }
61534
61534
  const { queryParams, sequenceParams } = calculateQueryParameters(operationSpec, operationArguments, fallbackObject);
@@ -61574,9 +61574,9 @@ var require_urlHelpers2 = __commonJS({
61574
61574
  }
61575
61575
  const searchStart = pathToAppend.indexOf("?");
61576
61576
  if (searchStart !== -1) {
61577
- const path13 = pathToAppend.substring(0, searchStart);
61577
+ const path14 = pathToAppend.substring(0, searchStart);
61578
61578
  const search = pathToAppend.substring(searchStart + 1);
61579
- newPath = newPath + path13;
61579
+ newPath = newPath + path14;
61580
61580
  if (search) {
61581
61581
  parsedUrl.search = parsedUrl.search ? `${parsedUrl.search}&${search}` : search;
61582
61582
  }
@@ -62886,7 +62886,7 @@ function detectPlatformBinary({ [platform]: platformBinary }, { wsl }) {
62886
62886
  }
62887
62887
  return detectArchBinary(platformBinary);
62888
62888
  }
62889
- var import_node_process7, import_node_buffer, import_node_path, import_node_url, import_node_util5, import_node_child_process5, import_promises2, import_meta, execFile5, __dirname, localXdgOpenPath, platform, arch, pTryEach, baseOpen, open, openApp, apps, open_default;
62889
+ var import_node_process7, import_node_buffer, import_node_path, import_node_url, import_node_util5, import_node_child_process5, import_promises2, import_meta, execFile5, __dirname2, localXdgOpenPath, platform, arch, pTryEach, baseOpen, open, openApp, apps, open_default;
62890
62890
  var init_open = __esm({
62891
62891
  "node_modules/open/index.js"() {
62892
62892
  import_node_process7 = __toESM(require("node:process"), 1);
@@ -62902,8 +62902,8 @@ var init_open = __esm({
62902
62902
  init_is_inside_container();
62903
62903
  import_meta = {};
62904
62904
  execFile5 = (0, import_node_util5.promisify)(import_node_child_process5.default.execFile);
62905
- __dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
62906
- localXdgOpenPath = import_node_path.default.join(__dirname, "xdg-open");
62905
+ __dirname2 = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
62906
+ localXdgOpenPath = import_node_path.default.join(__dirname2, "xdg-open");
62907
62907
  ({ platform, arch } = import_node_process7.default);
62908
62908
  pTryEach = async (array, mapper) => {
62909
62909
  let latestError;
@@ -63025,7 +63025,7 @@ var init_open = __esm({
63025
63025
  if (app) {
63026
63026
  command = app;
63027
63027
  } else {
63028
- const isBundled = !__dirname || __dirname === "/";
63028
+ const isBundled = !__dirname2 || __dirname2 === "/";
63029
63029
  let exeLocalXdgOpen = false;
63030
63030
  try {
63031
63031
  await import_promises2.default.access(localXdgOpenPath, import_promises2.constants.X_OK);
@@ -63051,14 +63051,14 @@ var init_open = __esm({
63051
63051
  }
63052
63052
  const subprocess = import_node_child_process5.default.spawn(command, cliArguments, childProcessOptions);
63053
63053
  if (options.wait) {
63054
- return new Promise((resolve11, reject) => {
63054
+ return new Promise((resolve12, reject) => {
63055
63055
  subprocess.once("error", reject);
63056
63056
  subprocess.once("close", (exitCode) => {
63057
63057
  if (!options.allowNonzeroExitCode && exitCode > 0) {
63058
63058
  reject(new Error(`Exited with code ${exitCode}`));
63059
63059
  return;
63060
63060
  }
63061
- resolve11(subprocess);
63061
+ resolve12(subprocess);
63062
63062
  });
63063
63063
  });
63064
63064
  }
@@ -64550,7 +64550,7 @@ var require_azureDeveloperCliCredential = __commonJS({
64550
64550
  const encodedClaims = btoa(claims);
64551
64551
  claimsSections = ["--claims", encodedClaims];
64552
64552
  }
64553
- return new Promise((resolve11, reject) => {
64553
+ return new Promise((resolve12, reject) => {
64554
64554
  try {
64555
64555
  const args = [
64556
64556
  "auth",
@@ -64567,7 +64567,7 @@ var require_azureDeveloperCliCredential = __commonJS({
64567
64567
  cwd: exports2.developerCliCredentialInternals.getSafeWorkingDir(),
64568
64568
  timeout
64569
64569
  }, (error, stdout, stderr) => {
64570
- resolve11({ stdout, stderr, error });
64570
+ resolve12({ stdout, stderr, error });
64571
64571
  });
64572
64572
  } catch (err) {
64573
64573
  reject(err);
@@ -64736,7 +64736,7 @@ var require_azureCliCredential = __commonJS({
64736
64736
  if (subscription) {
64737
64737
  subscriptionSection = ["--subscription", `"${subscription}"`];
64738
64738
  }
64739
- return new Promise((resolve11, reject) => {
64739
+ return new Promise((resolve12, reject) => {
64740
64740
  try {
64741
64741
  const args = [
64742
64742
  "account",
@@ -64750,7 +64750,7 @@ var require_azureCliCredential = __commonJS({
64750
64750
  ];
64751
64751
  const command = ["az", ...args].join(" ");
64752
64752
  child_process_1.default.exec(command, { cwd: exports2.cliCredentialInternals.getSafeWorkingDir(), timeout }, (error, stdout, stderr) => {
64753
- resolve11({ stdout, stderr, error });
64753
+ resolve12({ stdout, stderr, error });
64754
64754
  });
64755
64755
  } catch (err) {
64756
64756
  reject(err);
@@ -64900,7 +64900,7 @@ var require_processUtils = __commonJS({
64900
64900
  * @internal
64901
64901
  */
64902
64902
  execFile(file, params, options) {
64903
- return new Promise((resolve11, reject) => {
64903
+ return new Promise((resolve12, reject) => {
64904
64904
  node_child_process_1.default.execFile(file, params, options, (error, stdout, stderr) => {
64905
64905
  if (Buffer.isBuffer(stdout)) {
64906
64906
  stdout = stdout.toString("utf8");
@@ -64911,7 +64911,7 @@ var require_processUtils = __commonJS({
64911
64911
  if (stderr || error) {
64912
64912
  reject(stderr ? new Error(stderr) : error);
64913
64913
  } else {
64914
- resolve11(stdout);
64914
+ resolve12(stdout);
64915
64915
  }
64916
64916
  });
64917
64917
  });
@@ -66589,7 +66589,7 @@ var require_sender = __commonJS({
66589
66589
  }
66590
66590
  async function sendInParallel(addresses, port, request, signal) {
66591
66591
  signal.throwIfAborted();
66592
- return await new Promise((resolve11, reject) => {
66592
+ return await new Promise((resolve12, reject) => {
66593
66593
  const sockets = [];
66594
66594
  let errorCount = 0;
66595
66595
  const onError = (err) => {
@@ -66603,7 +66603,7 @@ var require_sender = __commonJS({
66603
66603
  const onMessage = (message) => {
66604
66604
  signal.removeEventListener("abort", onAbort);
66605
66605
  clearSockets();
66606
- resolve11(message);
66606
+ resolve12(message);
66607
66607
  };
66608
66608
  const onAbort = () => {
66609
66609
  clearSockets();
@@ -66638,7 +66638,7 @@ var require_sender = __commonJS({
66638
66638
  family: _net.default.isIPv6(host) ? 6 : 4
66639
66639
  }];
66640
66640
  } else {
66641
- addresses = await new Promise((resolve11, reject) => {
66641
+ addresses = await new Promise((resolve12, reject) => {
66642
66642
  const onAbort = () => {
66643
66643
  reject(signal.reason);
66644
66644
  };
@@ -66647,7 +66647,7 @@ var require_sender = __commonJS({
66647
66647
  all: true
66648
66648
  }, (err, addresses2) => {
66649
66649
  signal.removeEventListener("abort", onAbort);
66650
- err ? reject(err) : resolve11(addresses2);
66650
+ err ? reject(err) : resolve12(addresses2);
66651
66651
  });
66652
66652
  });
66653
66653
  }
@@ -70122,25 +70122,25 @@ var require_util2 = __commonJS({
70122
70122
  };
70123
70123
  },
70124
70124
  createDeferredPromise: function() {
70125
- let resolve11;
70125
+ let resolve12;
70126
70126
  let reject;
70127
70127
  const promise = new Promise((res, rej) => {
70128
- resolve11 = res;
70128
+ resolve12 = res;
70129
70129
  reject = rej;
70130
70130
  });
70131
70131
  return {
70132
70132
  promise,
70133
- resolve: resolve11,
70133
+ resolve: resolve12,
70134
70134
  reject
70135
70135
  };
70136
70136
  },
70137
70137
  promisify(fn) {
70138
- return new Promise((resolve11, reject) => {
70138
+ return new Promise((resolve12, reject) => {
70139
70139
  fn((err, ...args) => {
70140
70140
  if (err) {
70141
70141
  return reject(err);
70142
70142
  }
70143
- return resolve11(...args);
70143
+ return resolve12(...args);
70144
70144
  });
70145
70145
  });
70146
70146
  },
@@ -70931,7 +70931,7 @@ var require_end_of_stream = __commonJS({
70931
70931
  validateBoolean(opts.cleanup, "cleanup");
70932
70932
  autoCleanup = opts.cleanup;
70933
70933
  }
70934
- return new Promise2((resolve11, reject) => {
70934
+ return new Promise2((resolve12, reject) => {
70935
70935
  const cleanup = eos(stream4, opts, (err) => {
70936
70936
  if (autoCleanup) {
70937
70937
  cleanup();
@@ -70939,7 +70939,7 @@ var require_end_of_stream = __commonJS({
70939
70939
  if (err) {
70940
70940
  reject(err);
70941
70941
  } else {
70942
- resolve11();
70942
+ resolve12();
70943
70943
  }
70944
70944
  });
70945
70945
  });
@@ -72105,7 +72105,7 @@ var require_readable = __commonJS({
72105
72105
  error = this.readableEnded ? null : new AbortError2();
72106
72106
  this.destroy(error);
72107
72107
  }
72108
- return new Promise2((resolve11, reject) => eos(this, (err) => err && err !== error ? reject(err) : resolve11(null)));
72108
+ return new Promise2((resolve12, reject) => eos(this, (err) => err && err !== error ? reject(err) : resolve12(null)));
72109
72109
  };
72110
72110
  Readable2.prototype.push = function(chunk, encoding) {
72111
72111
  return readableAddChunk(this, chunk, encoding, false);
@@ -72649,12 +72649,12 @@ var require_readable = __commonJS({
72649
72649
  }
72650
72650
  async function* createAsyncIterator(stream4, options) {
72651
72651
  let callback = nop;
72652
- function next(resolve11) {
72652
+ function next(resolve12) {
72653
72653
  if (this === stream4) {
72654
72654
  callback();
72655
72655
  callback = nop;
72656
72656
  } else {
72657
- callback = resolve11;
72657
+ callback = resolve12;
72658
72658
  }
72659
72659
  }
72660
72660
  stream4.on("readable", next);
@@ -73706,7 +73706,7 @@ var require_duplexify = __commonJS({
73706
73706
  );
73707
73707
  };
73708
73708
  function fromAsyncGen(fn) {
73709
- let { promise, resolve: resolve11 } = createDeferredPromise();
73709
+ let { promise, resolve: resolve12 } = createDeferredPromise();
73710
73710
  const ac = new AbortController2();
73711
73711
  const signal = ac.signal;
73712
73712
  const value = fn(
@@ -73721,7 +73721,7 @@ var require_duplexify = __commonJS({
73721
73721
  throw new AbortError2(void 0, {
73722
73722
  cause: signal.reason
73723
73723
  });
73724
- ({ promise, resolve: resolve11 } = createDeferredPromise());
73724
+ ({ promise, resolve: resolve12 } = createDeferredPromise());
73725
73725
  yield chunk;
73726
73726
  }
73727
73727
  })(),
@@ -73732,8 +73732,8 @@ var require_duplexify = __commonJS({
73732
73732
  return {
73733
73733
  value,
73734
73734
  write(chunk, encoding, cb) {
73735
- const _resolve = resolve11;
73736
- resolve11 = null;
73735
+ const _resolve = resolve12;
73736
+ resolve12 = null;
73737
73737
  _resolve({
73738
73738
  chunk,
73739
73739
  done: false,
@@ -73741,8 +73741,8 @@ var require_duplexify = __commonJS({
73741
73741
  });
73742
73742
  },
73743
73743
  final(cb) {
73744
- const _resolve = resolve11;
73745
- resolve11 = null;
73744
+ const _resolve = resolve12;
73745
+ resolve12 = null;
73746
73746
  _resolve({
73747
73747
  done: true,
73748
73748
  cb
@@ -74193,7 +74193,7 @@ var require_pipeline4 = __commonJS({
74193
74193
  callback();
74194
74194
  }
74195
74195
  };
74196
- const wait = () => new Promise2((resolve11, reject) => {
74196
+ const wait = () => new Promise2((resolve12, reject) => {
74197
74197
  if (error) {
74198
74198
  reject(error);
74199
74199
  } else {
@@ -74201,7 +74201,7 @@ var require_pipeline4 = __commonJS({
74201
74201
  if (error) {
74202
74202
  reject(error);
74203
74203
  } else {
74204
- resolve11();
74204
+ resolve12();
74205
74205
  }
74206
74206
  };
74207
74207
  }
@@ -74845,8 +74845,8 @@ var require_operators = __commonJS({
74845
74845
  next = null;
74846
74846
  }
74847
74847
  if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
74848
- await new Promise2((resolve11) => {
74849
- resume = resolve11;
74848
+ await new Promise2((resolve12) => {
74849
+ resume = resolve12;
74850
74850
  });
74851
74851
  }
74852
74852
  }
@@ -74880,8 +74880,8 @@ var require_operators = __commonJS({
74880
74880
  queue.shift();
74881
74881
  maybeResume();
74882
74882
  }
74883
- await new Promise2((resolve11) => {
74884
- next = resolve11;
74883
+ await new Promise2((resolve12) => {
74884
+ next = resolve12;
74885
74885
  });
74886
74886
  }
74887
74887
  } finally {
@@ -75139,7 +75139,7 @@ var require_promises = __commonJS({
75139
75139
  var { finished } = require_end_of_stream();
75140
75140
  require_stream2();
75141
75141
  function pipeline(...streams) {
75142
- return new Promise2((resolve11, reject) => {
75142
+ return new Promise2((resolve12, reject) => {
75143
75143
  let signal;
75144
75144
  let end;
75145
75145
  const lastArg = streams[streams.length - 1];
@@ -75154,7 +75154,7 @@ var require_promises = __commonJS({
75154
75154
  if (err) {
75155
75155
  reject(err);
75156
75156
  } else {
75157
- resolve11(value);
75157
+ resolve12(value);
75158
75158
  }
75159
75159
  },
75160
75160
  {
@@ -76021,7 +76021,7 @@ var require_message_io = __commonJS({
76021
76021
  credentialsDetails.maxVersion = "TLSv1.2";
76022
76022
  }
76023
76023
  const secureContext = tls.createSecureContext(credentialsDetails);
76024
- return new Promise((resolve11, reject) => {
76024
+ return new Promise((resolve12, reject) => {
76025
76025
  const duplexpair = new _nativeDuplexpair.default();
76026
76026
  const securePair = this.securePair = {
76027
76027
  cleartext: tls.connect({
@@ -76052,7 +76052,7 @@ var require_message_io = __commonJS({
76052
76052
  securePair.cleartext.pipe(this.incomingMessageStream);
76053
76053
  this.outgoingMessageStream.pipe(securePair.cleartext);
76054
76054
  this.tlsNegotiationComplete = true;
76055
- resolve11();
76055
+ resolve12();
76056
76056
  };
76057
76057
  const onError = (err) => {
76058
76058
  securePair.encrypted.removeListener("readable", onReadable);
@@ -79547,7 +79547,7 @@ var require_js_joda = __commonJS({
79547
79547
  this.fieldValues.put(field, value);
79548
79548
  return this;
79549
79549
  };
79550
- _proto.resolve = function resolve11(resolverStyle, resolverFields) {
79550
+ _proto.resolve = function resolve12(resolverStyle, resolverFields) {
79551
79551
  if (resolverFields != null) {
79552
79552
  this.fieldValues.retainAll(resolverFields);
79553
79553
  }
@@ -80151,7 +80151,7 @@ var require_js_joda = __commonJS({
80151
80151
  _proto.displayName = function displayName() {
80152
80152
  return this.toString();
80153
80153
  };
80154
- _proto.resolve = function resolve11() {
80154
+ _proto.resolve = function resolve12() {
80155
80155
  return null;
80156
80156
  };
80157
80157
  _proto.name = function name() {
@@ -80209,7 +80209,7 @@ var require_js_joda = __commonJS({
80209
80209
  this.range().checkValidValue(newValue, this);
80210
80210
  return temporal.with(ChronoField.DAY_OF_YEAR, temporal.getLong(ChronoField.DAY_OF_YEAR) + (newValue - curValue));
80211
80211
  };
80212
- _proto2.resolve = function resolve11(fieldValues, partialTemporal, resolverStyle) {
80212
+ _proto2.resolve = function resolve12(fieldValues, partialTemporal, resolverStyle) {
80213
80213
  var yearLong = fieldValues.get(ChronoField.YEAR);
80214
80214
  var qoyLong = fieldValues.get(QUARTER_OF_YEAR);
80215
80215
  if (yearLong == null || qoyLong == null) {
@@ -80320,7 +80320,7 @@ var require_js_joda = __commonJS({
80320
80320
  this.range().checkValidValue(newValue, this);
80321
80321
  return temporal.plus(MathUtil.safeSubtract(newValue, this.getFrom(temporal)), ChronoUnit.WEEKS);
80322
80322
  };
80323
- _proto4.resolve = function resolve11(fieldValues, partialTemporal, resolverStyle) {
80323
+ _proto4.resolve = function resolve12(fieldValues, partialTemporal, resolverStyle) {
80324
80324
  var wbyLong = fieldValues.get(WEEK_BASED_YEAR);
80325
80325
  var dowLong = fieldValues.get(ChronoField.DAY_OF_WEEK);
80326
80326
  if (wbyLong == null || dowLong == null) {
@@ -96392,7 +96392,7 @@ var require_connector = __commonJS({
96392
96392
  async function connectInParallel(options, lookup, signal) {
96393
96393
  signal.throwIfAborted();
96394
96394
  const addresses = await lookupAllAddresses(options.host, lookup, signal);
96395
- return await new Promise((resolve11, reject) => {
96395
+ return await new Promise((resolve12, reject) => {
96396
96396
  const sockets = new Array(addresses.length);
96397
96397
  const errors = [];
96398
96398
  function onError(err) {
@@ -96416,7 +96416,7 @@ var require_connector = __commonJS({
96416
96416
  socket.removeListener("connect", onConnect);
96417
96417
  socket.destroy();
96418
96418
  }
96419
- resolve11(this);
96419
+ resolve12(this);
96420
96420
  }
96421
96421
  const onAbort = () => {
96422
96422
  for (let j = 0; j < sockets.length; j++) {
@@ -96447,7 +96447,7 @@ var require_connector = __commonJS({
96447
96447
  const addresses = await lookupAllAddresses(options.host, lookup, signal);
96448
96448
  for (const address of addresses) {
96449
96449
  try {
96450
- return await new Promise((resolve11, reject) => {
96450
+ return await new Promise((resolve12, reject) => {
96451
96451
  const socket = _net.default.connect({
96452
96452
  ...options,
96453
96453
  host: address.address,
@@ -96470,7 +96470,7 @@ var require_connector = __commonJS({
96470
96470
  signal.removeEventListener("abort", onAbort);
96471
96471
  socket.removeListener("error", onError);
96472
96472
  socket.removeListener("connect", onConnect);
96473
- resolve11(socket);
96473
+ resolve12(socket);
96474
96474
  };
96475
96475
  signal.addEventListener("abort", onAbort, {
96476
96476
  once: true
@@ -96499,7 +96499,7 @@ var require_connector = __commonJS({
96499
96499
  family: 4
96500
96500
  }];
96501
96501
  } else {
96502
- return await new Promise((resolve11, reject) => {
96502
+ return await new Promise((resolve12, reject) => {
96503
96503
  const onAbort = () => {
96504
96504
  reject(signal.reason);
96505
96505
  };
@@ -96509,7 +96509,7 @@ var require_connector = __commonJS({
96509
96509
  all: true
96510
96510
  }, (err, addresses) => {
96511
96511
  signal.removeEventListener("abort", onAbort);
96512
- err ? reject(err) : resolve11(addresses);
96512
+ err ? reject(err) : resolve12(addresses);
96513
96513
  });
96514
96514
  });
96515
96515
  }
@@ -97295,15 +97295,15 @@ var require_connection2 = __commonJS({
97295
97295
  var DEFAULT_LANGUAGE = "us_english";
97296
97296
  var DEFAULT_DATEFORMAT = "mdy";
97297
97297
  function withResolvers() {
97298
- let resolve11;
97298
+ let resolve12;
97299
97299
  let reject;
97300
97300
  const promise = new Promise((res, rej) => {
97301
- resolve11 = res;
97301
+ resolve12 = res;
97302
97302
  reject = rej;
97303
97303
  });
97304
97304
  return {
97305
97305
  promise,
97306
- resolve: resolve11,
97306
+ resolve: resolve12,
97307
97307
  reject
97308
97308
  };
97309
97309
  }
@@ -98294,7 +98294,7 @@ var require_connection2 = __commonJS({
98294
98294
  };
98295
98295
  const {
98296
98296
  promise,
98297
- resolve: resolve11,
98297
+ resolve: resolve12,
98298
98298
  reject
98299
98299
  } = withResolvers();
98300
98300
  const encryptsocket = tls.connect(encryptOptions);
@@ -98308,7 +98308,7 @@ var require_connection2 = __commonJS({
98308
98308
  try {
98309
98309
  const onError = reject;
98310
98310
  const onConnect = () => {
98311
- resolve11(encryptsocket);
98311
+ resolve12(encryptsocket);
98312
98312
  };
98313
98313
  encryptsocket.once("error", onError);
98314
98314
  encryptsocket.once("secureConnect", onConnect);
@@ -99351,9 +99351,9 @@ var require_connection2 = __commonJS({
99351
99351
  this.debug.log("Retry after transient failure connecting to " + server + ":" + port);
99352
99352
  const {
99353
99353
  promise,
99354
- resolve: resolve11
99354
+ resolve: resolve12
99355
99355
  } = withResolvers();
99356
- setTimeout(resolve11, this.config.options.connectionRetryInterval);
99356
+ setTimeout(resolve12, this.config.options.connectionRetryInterval);
99357
99357
  await promise;
99358
99358
  this.emit("retry");
99359
99359
  this.transitionTo(this.STATE.CONNECTING);
@@ -99863,15 +99863,15 @@ var require_connection_pool2 = __commonJS({
99863
99863
  return cfg;
99864
99864
  }
99865
99865
  _poolCreate() {
99866
- return new shared.Promise((resolve11, reject) => {
99866
+ return new shared.Promise((resolve12, reject) => {
99867
99867
  const resolveOnce = (v) => {
99868
- resolve11(v);
99869
- resolve11 = reject = () => {
99868
+ resolve12(v);
99869
+ resolve12 = reject = () => {
99870
99870
  };
99871
99871
  };
99872
99872
  const rejectOnce = (e) => {
99873
99873
  reject(e);
99874
- resolve11 = reject = () => {
99874
+ resolve12 = reject = () => {
99875
99875
  };
99876
99876
  };
99877
99877
  let tedious;
@@ -99915,9 +99915,9 @@ var require_connection_pool2 = __commonJS({
99915
99915
  }
99916
99916
  _poolValidate(tedious) {
99917
99917
  if (tedious && !tedious.closed && !tedious.hasError) {
99918
- return !this.config.validateConnection || new shared.Promise((resolve11) => {
99918
+ return !this.config.validateConnection || new shared.Promise((resolve12) => {
99919
99919
  const req = new tds.Request("SELECT 1;", (err) => {
99920
- resolve11(!err);
99920
+ resolve12(!err);
99921
99921
  });
99922
99922
  tedious.execSql(req);
99923
99923
  });
@@ -99925,19 +99925,19 @@ var require_connection_pool2 = __commonJS({
99925
99925
  return false;
99926
99926
  }
99927
99927
  _poolDestroy(tedious) {
99928
- return new shared.Promise((resolve11, reject) => {
99928
+ return new shared.Promise((resolve12, reject) => {
99929
99929
  if (!tedious) {
99930
- resolve11();
99930
+ resolve12();
99931
99931
  return;
99932
99932
  }
99933
99933
  debug("connection(%d): destroying", IDS.get(tedious));
99934
99934
  if (tedious.closed) {
99935
99935
  debug("connection(%d): already closed", IDS.get(tedious));
99936
- resolve11();
99936
+ resolve12();
99937
99937
  } else {
99938
99938
  tedious.once("end", () => {
99939
99939
  debug("connection(%d): destroyed", IDS.get(tedious));
99940
- resolve11();
99940
+ resolve12();
99941
99941
  });
99942
99942
  tedious.close();
99943
99943
  }
@@ -101720,19 +101720,19 @@ var init_source = __esm({
101720
101720
  });
101721
101721
 
101722
101722
  // src/cli.ts
101723
- var fs16 = __toESM(require("fs"));
101723
+ var fs17 = __toESM(require("fs"));
101724
101724
  var fsPromises = __toESM(require("fs/promises"));
101725
- var path12 = __toESM(require("path"));
101725
+ var path13 = __toESM(require("path"));
101726
101726
 
101727
101727
  // src/parser.ts
101728
101728
  var path = __toESM(require("path"));
101729
101729
 
101730
101730
  // src/nornapiParser.ts
101731
- function extractPathParameters(path13) {
101731
+ function extractPathParameters(path14) {
101732
101732
  const params = [];
101733
101733
  const regex = /(?<!\{)\{([a-zA-Z_][a-zA-Z0-9_]*)\}(?!\})/g;
101734
101734
  let match;
101735
- while ((match = regex.exec(path13)) !== null) {
101735
+ while ((match = regex.exec(path14)) !== null) {
101736
101736
  params.push(match[1]);
101737
101737
  }
101738
101738
  return params;
@@ -101782,12 +101782,12 @@ function parseNornApiFile(content) {
101782
101782
  if (inEndpointsBlock) {
101783
101783
  const endpointMatch = trimmed.match(/^([a-zA-Z_][a-zA-Z0-9_]*)\s*:\s*(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)\s+(.+)$/i);
101784
101784
  if (endpointMatch) {
101785
- const path13 = endpointMatch[3].trim();
101785
+ const path14 = endpointMatch[3].trim();
101786
101786
  endpoints.push({
101787
101787
  name: endpointMatch[1],
101788
101788
  method: endpointMatch[2].toUpperCase(),
101789
- path: path13,
101790
- parameters: extractPathParameters(path13)
101789
+ path: path14,
101790
+ parameters: extractPathParameters(path14)
101791
101791
  });
101792
101792
  }
101793
101793
  continue;
@@ -102359,11 +102359,11 @@ function extractFileLevelVariables(text) {
102359
102359
  }
102360
102360
  return variables;
102361
102361
  }
102362
- function getNestedValue(obj, path13) {
102363
- if (!path13 || obj === null || obj === void 0) {
102362
+ function getNestedValue(obj, path14) {
102363
+ if (!path14 || obj === null || obj === void 0) {
102364
102364
  return obj;
102365
102365
  }
102366
- const parts = path13.replace(/\[(\d+)\]/g, ".$1").split(".").filter((p) => p !== "");
102366
+ const parts = path14.replace(/\[(\d+)\]/g, ".$1").split(".").filter((p) => p !== "");
102367
102367
  let current = obj;
102368
102368
  for (const part of parts) {
102369
102369
  if (current === null || current === void 0) {
@@ -102415,8 +102415,8 @@ function substituteVariables(text, variables) {
102415
102415
  const value = variables[varName];
102416
102416
  if (typeof value === "object" && value !== null) {
102417
102417
  if (pathPart) {
102418
- const path13 = pathPart.replace(/^\./, "");
102419
- const nestedValue = getNestedValue(value, path13);
102418
+ const path14 = pathPart.replace(/^\./, "");
102419
+ const nestedValue = getNestedValue(value, path14);
102420
102420
  if (nestedValue === void 0 && varName === ENV_SCOPE_KEY) {
102421
102421
  return match;
102422
102422
  }
@@ -102430,8 +102430,8 @@ function substituteVariables(text, variables) {
102430
102430
  if (pathPart && typeof value === "string") {
102431
102431
  try {
102432
102432
  const parsed = JSON.parse(value);
102433
- const path13 = pathPart.replace(/^\./, "");
102434
- const nestedValue = getNestedValue(parsed, path13);
102433
+ const path14 = pathPart.replace(/^\./, "");
102434
+ const nestedValue = getNestedValue(parsed, path14);
102435
102435
  if (nestedValue === void 0 && varName === ENV_SCOPE_KEY) {
102436
102436
  return match;
102437
102437
  }
@@ -103264,9 +103264,9 @@ function isVisitable(thing) {
103264
103264
  function removeBrackets(key) {
103265
103265
  return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
103266
103266
  }
103267
- function renderKey(path13, key, dots) {
103268
- if (!path13) return key;
103269
- return path13.concat(key).map(function each(token, i) {
103267
+ function renderKey(path14, key, dots) {
103268
+ if (!path14) return key;
103269
+ return path14.concat(key).map(function each(token, i) {
103270
103270
  token = removeBrackets(token);
103271
103271
  return !dots && i ? "[" + token + "]" : token;
103272
103272
  }).join(dots ? "." : "");
@@ -103314,9 +103314,9 @@ function toFormData(obj, formData, options) {
103314
103314
  }
103315
103315
  return value;
103316
103316
  }
103317
- function defaultVisitor(value, key, path13) {
103317
+ function defaultVisitor(value, key, path14) {
103318
103318
  let arr = value;
103319
- if (value && !path13 && typeof value === "object") {
103319
+ if (value && !path14 && typeof value === "object") {
103320
103320
  if (utils_default.endsWith(key, "{}")) {
103321
103321
  key = metaTokens ? key : key.slice(0, -2);
103322
103322
  value = JSON.stringify(value);
@@ -103335,7 +103335,7 @@ function toFormData(obj, formData, options) {
103335
103335
  if (isVisitable(value)) {
103336
103336
  return true;
103337
103337
  }
103338
- formData.append(renderKey(path13, key, dots), convertValue(value));
103338
+ formData.append(renderKey(path14, key, dots), convertValue(value));
103339
103339
  return false;
103340
103340
  }
103341
103341
  const stack = [];
@@ -103344,10 +103344,10 @@ function toFormData(obj, formData, options) {
103344
103344
  convertValue,
103345
103345
  isVisitable
103346
103346
  });
103347
- function build(value, path13) {
103347
+ function build(value, path14) {
103348
103348
  if (utils_default.isUndefined(value)) return;
103349
103349
  if (stack.indexOf(value) !== -1) {
103350
- throw Error("Circular reference detected in " + path13.join("."));
103350
+ throw Error("Circular reference detected in " + path14.join("."));
103351
103351
  }
103352
103352
  stack.push(value);
103353
103353
  utils_default.forEach(value, function each(el, key) {
@@ -103355,11 +103355,11 @@ function toFormData(obj, formData, options) {
103355
103355
  formData,
103356
103356
  el,
103357
103357
  utils_default.isString(key) ? key.trim() : key,
103358
- path13,
103358
+ path14,
103359
103359
  exposedHelpers
103360
103360
  );
103361
103361
  if (result === true) {
103362
- build(el, path13 ? path13.concat(key) : [key]);
103362
+ build(el, path14 ? path14.concat(key) : [key]);
103363
103363
  }
103364
103364
  });
103365
103365
  stack.pop();
@@ -103571,7 +103571,7 @@ var platform_default = {
103571
103571
  // node_modules/axios/lib/helpers/toURLEncodedForm.js
103572
103572
  function toURLEncodedForm(data, options) {
103573
103573
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), {
103574
- visitor: function(value, key, path13, helpers) {
103574
+ visitor: function(value, key, path14, helpers) {
103575
103575
  if (platform_default.isNode && utils_default.isBuffer(value)) {
103576
103576
  this.append(key, value.toString("base64"));
103577
103577
  return false;
@@ -103601,11 +103601,11 @@ function arrayToObject(arr) {
103601
103601
  return obj;
103602
103602
  }
103603
103603
  function formDataToJSON(formData) {
103604
- function buildPath(path13, value, target, index) {
103605
- let name = path13[index++];
103604
+ function buildPath(path14, value, target, index) {
103605
+ let name = path14[index++];
103606
103606
  if (name === "__proto__") return true;
103607
103607
  const isNumericKey = Number.isFinite(+name);
103608
- const isLast = index >= path13.length;
103608
+ const isLast = index >= path14.length;
103609
103609
  name = !name && utils_default.isArray(target) ? target.length : name;
103610
103610
  if (isLast) {
103611
103611
  if (utils_default.hasOwnProp(target, name)) {
@@ -103618,7 +103618,7 @@ function formDataToJSON(formData) {
103618
103618
  if (!target[name] || !utils_default.isObject(target[name])) {
103619
103619
  target[name] = [];
103620
103620
  }
103621
- const result = buildPath(path13, value, target[name], index);
103621
+ const result = buildPath(path14, value, target[name], index);
103622
103622
  if (result && utils_default.isArray(target[name])) {
103623
103623
  target[name] = arrayToObject(target[name]);
103624
103624
  }
@@ -104047,10 +104047,10 @@ utils_default.inherits(CanceledError, AxiosError_default, {
104047
104047
  var CanceledError_default = CanceledError;
104048
104048
 
104049
104049
  // node_modules/axios/lib/core/settle.js
104050
- function settle(resolve11, reject, response) {
104050
+ function settle(resolve12, reject, response) {
104051
104051
  const validateStatus2 = response.config.validateStatus;
104052
104052
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
104053
- resolve11(response);
104053
+ resolve12(response);
104054
104054
  } else {
104055
104055
  reject(new AxiosError_default(
104056
104056
  "Request failed with status code " + response.status,
@@ -104673,7 +104673,7 @@ function setProxy(options, configProxy, location) {
104673
104673
  }
104674
104674
  var isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
104675
104675
  var wrapAsync = (asyncExecutor) => {
104676
- return new Promise((resolve11, reject) => {
104676
+ return new Promise((resolve12, reject) => {
104677
104677
  let onDone;
104678
104678
  let isDone;
104679
104679
  const done = (value, isRejected) => {
@@ -104683,7 +104683,7 @@ var wrapAsync = (asyncExecutor) => {
104683
104683
  };
104684
104684
  const _resolve = (value) => {
104685
104685
  done(value);
104686
- resolve11(value);
104686
+ resolve12(value);
104687
104687
  };
104688
104688
  const _reject = (reason) => {
104689
104689
  done(reason, true);
@@ -104735,7 +104735,7 @@ var http2Transport = {
104735
104735
  }
104736
104736
  };
104737
104737
  var http_default = isHttpAdapterSupported && function httpAdapter(config) {
104738
- return wrapAsync(async function dispatchHttpRequest(resolve11, reject, onDone) {
104738
+ return wrapAsync(async function dispatchHttpRequest(resolve12, reject, onDone) {
104739
104739
  let { data, lookup, family, httpVersion = 1, http2Options } = config;
104740
104740
  const { responseType, responseEncoding } = config;
104741
104741
  const method = config.method.toUpperCase();
@@ -104820,7 +104820,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
104820
104820
  }
104821
104821
  let convertedData;
104822
104822
  if (method !== "GET") {
104823
- return settle(resolve11, reject, {
104823
+ return settle(resolve12, reject, {
104824
104824
  status: 405,
104825
104825
  statusText: "method not allowed",
104826
104826
  headers: {},
@@ -104842,7 +104842,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
104842
104842
  } else if (responseType === "stream") {
104843
104843
  convertedData = import_stream4.default.Readable.from(convertedData);
104844
104844
  }
104845
- return settle(resolve11, reject, {
104845
+ return settle(resolve12, reject, {
104846
104846
  data: convertedData,
104847
104847
  status: 200,
104848
104848
  statusText: "OK",
@@ -104940,9 +104940,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
104940
104940
  auth = urlUsername + ":" + urlPassword;
104941
104941
  }
104942
104942
  auth && headers.delete("authorization");
104943
- let path13;
104943
+ let path14;
104944
104944
  try {
104945
- path13 = buildURL(
104945
+ path14 = buildURL(
104946
104946
  parsed.pathname + parsed.search,
104947
104947
  config.params,
104948
104948
  config.paramsSerializer
@@ -104960,7 +104960,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
104960
104960
  false
104961
104961
  );
104962
104962
  const options = {
104963
- path: path13,
104963
+ path: path14,
104964
104964
  method,
104965
104965
  headers: headers.toJSON(),
104966
104966
  agents: { http: config.httpAgent, https: config.httpsAgent },
@@ -105061,7 +105061,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
105061
105061
  };
105062
105062
  if (responseType === "stream") {
105063
105063
  response.data = responseStream;
105064
- settle(resolve11, reject, response);
105064
+ settle(resolve12, reject, response);
105065
105065
  } else {
105066
105066
  const responseBuffer = [];
105067
105067
  let totalResponseBytes = 0;
@@ -105109,7 +105109,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
105109
105109
  } catch (err) {
105110
105110
  return reject(AxiosError_default.from(err, null, config, response.request, response));
105111
105111
  }
105112
- settle(resolve11, reject, response);
105112
+ settle(resolve12, reject, response);
105113
105113
  });
105114
105114
  }
105115
105115
  abortEmitter.once("abort", (err) => {
@@ -105196,14 +105196,14 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
105196
105196
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
105197
105197
  // Standard browser envs support document.cookie
105198
105198
  {
105199
- write(name, value, expires, path13, domain, secure, sameSite) {
105199
+ write(name, value, expires, path14, domain, secure, sameSite) {
105200
105200
  if (typeof document === "undefined") return;
105201
105201
  const cookie = [`${name}=${encodeURIComponent(value)}`];
105202
105202
  if (utils_default.isNumber(expires)) {
105203
105203
  cookie.push(`expires=${new Date(expires).toUTCString()}`);
105204
105204
  }
105205
- if (utils_default.isString(path13)) {
105206
- cookie.push(`path=${path13}`);
105205
+ if (utils_default.isString(path14)) {
105206
+ cookie.push(`path=${path14}`);
105207
105207
  }
105208
105208
  if (utils_default.isString(domain)) {
105209
105209
  cookie.push(`domain=${domain}`);
@@ -105358,7 +105358,7 @@ var resolveConfig_default = (config) => {
105358
105358
  // node_modules/axios/lib/adapters/xhr.js
105359
105359
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
105360
105360
  var xhr_default = isXHRAdapterSupported && function(config) {
105361
- return new Promise(function dispatchXhrRequest(resolve11, reject) {
105361
+ return new Promise(function dispatchXhrRequest(resolve12, reject) {
105362
105362
  const _config = resolveConfig_default(config);
105363
105363
  let requestData = _config.data;
105364
105364
  const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
@@ -105392,7 +105392,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
105392
105392
  request
105393
105393
  };
105394
105394
  settle(function _resolve(value) {
105395
- resolve11(value);
105395
+ resolve12(value);
105396
105396
  done();
105397
105397
  }, function _reject(err) {
105398
105398
  reject(err);
@@ -105763,8 +105763,8 @@ var factory = (env3) => {
105763
105763
  responseType = responseType || "text";
105764
105764
  let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
105765
105765
  !isStreamResponse && unsubscribe && unsubscribe();
105766
- return await new Promise((resolve11, reject) => {
105767
- settle(resolve11, reject, {
105766
+ return await new Promise((resolve12, reject) => {
105767
+ settle(resolve12, reject, {
105768
105768
  data: responseData,
105769
105769
  headers: AxiosHeaders_default.from(response.headers),
105770
105770
  status: response.status,
@@ -106160,8 +106160,8 @@ var CancelToken = class _CancelToken {
106160
106160
  throw new TypeError("executor must be a function.");
106161
106161
  }
106162
106162
  let resolvePromise;
106163
- this.promise = new Promise(function promiseExecutor(resolve11) {
106164
- resolvePromise = resolve11;
106163
+ this.promise = new Promise(function promiseExecutor(resolve12) {
106164
+ resolvePromise = resolve12;
106165
106165
  });
106166
106166
  const token = this;
106167
106167
  this.promise.then((cancel) => {
@@ -106174,9 +106174,9 @@ var CancelToken = class _CancelToken {
106174
106174
  });
106175
106175
  this.promise.then = (onfulfilled) => {
106176
106176
  let _resolve;
106177
- const promise = new Promise((resolve11) => {
106178
- token.subscribe(resolve11);
106179
- _resolve = resolve11;
106177
+ const promise = new Promise((resolve12) => {
106178
+ token.subscribe(resolve12);
106179
+ _resolve = resolve12;
106180
106180
  }).then(onfulfilled);
106181
106181
  promise.cancel = function reject() {
106182
106182
  token.unsubscribe(_resolve);
@@ -106550,10 +106550,10 @@ var safeToStringImpl = (val, seenArrays = /* @__PURE__ */ new WeakSet()) => {
106550
106550
  var safeToString = (val) => safeToStringImpl(val);
106551
106551
  function createPromiseCallback(cb) {
106552
106552
  let callback;
106553
- let resolve11;
106553
+ let resolve12;
106554
106554
  let reject;
106555
106555
  const promise = new Promise((_resolve, _reject) => {
106556
- resolve11 = _resolve;
106556
+ resolve12 = _resolve;
106557
106557
  reject = _reject;
106558
106558
  });
106559
106559
  if (typeof cb === "function") {
@@ -106569,7 +106569,7 @@ function createPromiseCallback(cb) {
106569
106569
  callback = (err, result) => {
106570
106570
  try {
106571
106571
  if (err) reject(err);
106572
- else resolve11(result);
106572
+ else resolve12(result);
106573
106573
  } catch (e) {
106574
106574
  reject(e instanceof Error ? e : new Error());
106575
106575
  }
@@ -106603,18 +106603,18 @@ var MemoryCookieStore = class extends Store {
106603
106603
  /**
106604
106604
  * @internal No doc because this is an overload that supports the implementation
106605
106605
  */
106606
- findCookie(domain, path13, key, callback) {
106606
+ findCookie(domain, path14, key, callback) {
106607
106607
  const promiseCallback = createPromiseCallback(callback);
106608
- if (domain == null || path13 == null || key == null) {
106608
+ if (domain == null || path14 == null || key == null) {
106609
106609
  return promiseCallback.resolve(void 0);
106610
106610
  }
106611
- const result = this.idx[domain]?.[path13]?.[key];
106611
+ const result = this.idx[domain]?.[path14]?.[key];
106612
106612
  return promiseCallback.resolve(result);
106613
106613
  }
106614
106614
  /**
106615
106615
  * @internal No doc because this is an overload that supports the implementation
106616
106616
  */
106617
- findCookies(domain, path13, allowSpecialUseDomain = false, callback) {
106617
+ findCookies(domain, path14, allowSpecialUseDomain = false, callback) {
106618
106618
  if (typeof allowSpecialUseDomain === "function") {
106619
106619
  callback = allowSpecialUseDomain;
106620
106620
  allowSpecialUseDomain = true;
@@ -106625,7 +106625,7 @@ var MemoryCookieStore = class extends Store {
106625
106625
  return promiseCallback.resolve([]);
106626
106626
  }
106627
106627
  let pathMatcher;
106628
- if (!path13) {
106628
+ if (!path14) {
106629
106629
  pathMatcher = function matchAll2(domainIndex) {
106630
106630
  for (const curPath in domainIndex) {
106631
106631
  const pathIndex = domainIndex[curPath];
@@ -106640,7 +106640,7 @@ var MemoryCookieStore = class extends Store {
106640
106640
  } else {
106641
106641
  pathMatcher = function matchRFC(domainIndex) {
106642
106642
  for (const cookiePath in domainIndex) {
106643
- if (pathMatch(path13, cookiePath)) {
106643
+ if (pathMatch(path14, cookiePath)) {
106644
106644
  const pathIndex = domainIndex[cookiePath];
106645
106645
  for (const key in pathIndex) {
106646
106646
  const value = pathIndex[key];
@@ -106668,14 +106668,14 @@ var MemoryCookieStore = class extends Store {
106668
106668
  */
106669
106669
  putCookie(cookie, callback) {
106670
106670
  const promiseCallback = createPromiseCallback(callback);
106671
- const { domain, path: path13, key } = cookie;
106672
- if (domain == null || path13 == null || key == null) {
106671
+ const { domain, path: path14, key } = cookie;
106672
+ if (domain == null || path14 == null || key == null) {
106673
106673
  return promiseCallback.resolve(void 0);
106674
106674
  }
106675
106675
  const domainEntry = this.idx[domain] ?? /* @__PURE__ */ Object.create(null);
106676
106676
  this.idx[domain] = domainEntry;
106677
- const pathEntry = domainEntry[path13] ?? /* @__PURE__ */ Object.create(null);
106678
- domainEntry[path13] = pathEntry;
106677
+ const pathEntry = domainEntry[path14] ?? /* @__PURE__ */ Object.create(null);
106678
+ domainEntry[path14] = pathEntry;
106679
106679
  pathEntry[key] = cookie;
106680
106680
  return promiseCallback.resolve(void 0);
106681
106681
  }
@@ -106689,20 +106689,20 @@ var MemoryCookieStore = class extends Store {
106689
106689
  /**
106690
106690
  * @internal No doc because this is an overload that supports the implementation
106691
106691
  */
106692
- removeCookie(domain, path13, key, callback) {
106692
+ removeCookie(domain, path14, key, callback) {
106693
106693
  const promiseCallback = createPromiseCallback(callback);
106694
- delete this.idx[domain]?.[path13]?.[key];
106694
+ delete this.idx[domain]?.[path14]?.[key];
106695
106695
  return promiseCallback.resolve(void 0);
106696
106696
  }
106697
106697
  /**
106698
106698
  * @internal No doc because this is an overload that supports the implementation
106699
106699
  */
106700
- removeCookies(domain, path13, callback) {
106700
+ removeCookies(domain, path14, callback) {
106701
106701
  const promiseCallback = createPromiseCallback(callback);
106702
106702
  const domainEntry = this.idx[domain];
106703
106703
  if (domainEntry) {
106704
- if (path13) {
106705
- delete domainEntry[path13];
106704
+ if (path14) {
106705
+ delete domainEntry[path14];
106706
106706
  } else {
106707
106707
  delete this.idx[domain];
106708
106708
  }
@@ -106728,8 +106728,8 @@ var MemoryCookieStore = class extends Store {
106728
106728
  domains.forEach((domain) => {
106729
106729
  const domainEntry = idx[domain] ?? {};
106730
106730
  const paths = Object.keys(domainEntry);
106731
- paths.forEach((path13) => {
106732
- const pathEntry = domainEntry[path13] ?? {};
106731
+ paths.forEach((path14) => {
106732
+ const pathEntry = domainEntry[path14] ?? {};
106733
106733
  const keys = Object.keys(pathEntry);
106734
106734
  keys.forEach((key) => {
106735
106735
  const keyEntry = pathEntry[key];
@@ -107613,18 +107613,18 @@ function cookieCompare(a, b) {
107613
107613
  cmp = (a.creationIndex || 0) - (b.creationIndex || 0);
107614
107614
  return cmp;
107615
107615
  }
107616
- function defaultPath(path13) {
107617
- if (!path13 || path13.slice(0, 1) !== "/") {
107616
+ function defaultPath(path14) {
107617
+ if (!path14 || path14.slice(0, 1) !== "/") {
107618
107618
  return "/";
107619
107619
  }
107620
- if (path13 === "/") {
107621
- return path13;
107620
+ if (path14 === "/") {
107621
+ return path14;
107622
107622
  }
107623
- const rightSlash = path13.lastIndexOf("/");
107623
+ const rightSlash = path14.lastIndexOf("/");
107624
107624
  if (rightSlash === 0) {
107625
107625
  return "/";
107626
107626
  }
107627
- return path13.slice(0, rightSlash);
107627
+ return path14.slice(0, rightSlash);
107628
107628
  }
107629
107629
  var IP_REGEX_LOWERCASE = /(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-f\d]{1,4}:){7}(?:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,2}|:)|(?:[a-f\d]{1,4}:){4}(?:(?::[a-f\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,3}|:)|(?:[a-f\d]{1,4}:){3}(?:(?::[a-f\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,4}|:)|(?:[a-f\d]{1,4}:){2}(?:(?::[a-f\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,5}|:)|(?:[a-f\d]{1,4}:){1}(?:(?::[a-f\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,6}|:)|(?::(?:(?::[a-f\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,7}|:)))$)/;
107630
107630
  function domainMatch(domain, cookieDomain, canonicalize) {
@@ -108026,7 +108026,7 @@ var CookieJar = class _CookieJar {
108026
108026
  return promiseCallback.reject(parameterError);
108027
108027
  }
108028
108028
  const host = canonicalDomain(context.hostname);
108029
- const path13 = context.pathname || "/";
108029
+ const path14 = context.pathname || "/";
108030
108030
  const potentiallyTrustworthy = isPotentiallyTrustworthy(
108031
108031
  url2,
108032
108032
  this.allowSecureOnLocal
@@ -108057,7 +108057,7 @@ var CookieJar = class _CookieJar {
108057
108057
  return false;
108058
108058
  }
108059
108059
  }
108060
- if (!allPaths && typeof c.path === "string" && !pathMatch(path13, c.path)) {
108060
+ if (!allPaths && typeof c.path === "string" && !pathMatch(path14, c.path)) {
108061
108061
  return false;
108062
108062
  }
108063
108063
  if (c.secure && !potentiallyTrustworthy) {
@@ -108089,7 +108089,7 @@ var CookieJar = class _CookieJar {
108089
108089
  }
108090
108090
  store.findCookies(
108091
108091
  host,
108092
- allPaths ? null : path13,
108092
+ allPaths ? null : path14,
108093
108093
  this.allowSpecialUseDomain,
108094
108094
  (err, cookies) => {
108095
108095
  if (err) {
@@ -108601,7 +108601,7 @@ async function sendRequest(request, retryOptions) {
108601
108601
  return sendRequestWithJar(request, sharedCookieJar, retryOptions);
108602
108602
  }
108603
108603
  function sleep(ms) {
108604
- return new Promise((resolve11) => setTimeout(resolve11, ms));
108604
+ return new Promise((resolve12) => setTimeout(resolve12, ms));
108605
108605
  }
108606
108606
  function shouldRetry(response, error) {
108607
108607
  if (error) return true;
@@ -109014,7 +109014,7 @@ async function runScript(type, scriptPath, args, workingDir, variables = {}, cap
109014
109014
  captureVar
109015
109015
  };
109016
109016
  }
109017
- return new Promise((resolve11) => {
109017
+ return new Promise((resolve12) => {
109018
109018
  const env3 = {
109019
109019
  ...process.env,
109020
109020
  // Pass variables as environment variables with NORN_ prefix
@@ -109038,7 +109038,7 @@ async function runScript(type, scriptPath, args, workingDir, variables = {}, cap
109038
109038
  stderr += data.toString();
109039
109039
  });
109040
109040
  child.on("error", (err) => {
109041
- resolve11({
109041
+ resolve12({
109042
109042
  success: false,
109043
109043
  output: cleanScriptOutput(stdout),
109044
109044
  error: `Failed to execute script: ${err.message}`,
@@ -109052,7 +109052,7 @@ async function runScript(type, scriptPath, args, workingDir, variables = {}, cap
109052
109052
  child.on("close", (code) => {
109053
109053
  const exitCode = code ?? 0;
109054
109054
  const cleanedOutput = cleanScriptOutput(stdout);
109055
- resolve11({
109055
+ resolve12({
109056
109056
  success: exitCode === 0,
109057
109057
  output: cleanedOutput,
109058
109058
  error: stderr.trim(),
@@ -109117,11 +109117,11 @@ function readJsonFile(filePath, workingDir) {
109117
109117
  };
109118
109118
  }
109119
109119
  }
109120
- function setNestedValue(obj, path13, value) {
109121
- if (!path13 || obj === null || obj === void 0 || typeof obj !== "object") {
109120
+ function setNestedValue(obj, path14, value) {
109121
+ if (!path14 || obj === null || obj === void 0 || typeof obj !== "object") {
109122
109122
  return false;
109123
109123
  }
109124
- const parts = path13.replace(/\[(\d+)\]/g, ".$1").split(".").filter((p) => p !== "");
109124
+ const parts = path14.replace(/\[(\d+)\]/g, ".$1").split(".").filter((p) => p !== "");
109125
109125
  if (parts.length === 0) {
109126
109126
  return false;
109127
109127
  }
@@ -109372,8 +109372,13 @@ function validatePreparedRequest(parsed, context) {
109372
109372
  init_quotedString();
109373
109373
 
109374
109374
  // src/sqlConfig.ts
109375
+ var fs9 = __toESM(require("fs"));
109376
+ var path7 = __toESM(require("path"));
109377
+
109378
+ // src/sqlBuiltInAdapters.ts
109375
109379
  var fs8 = __toESM(require("fs"));
109376
109380
  var path6 = __toESM(require("path"));
109381
+ var import_child_process2 = require("child_process");
109377
109382
 
109378
109383
  // node_modules/pg/esm/index.mjs
109379
109384
  var import_lib = __toESM(require_lib2(), 1);
@@ -109405,6 +109410,13 @@ var BUILT_IN_SQL_ADAPTERS = [
109405
109410
  description: "Built-in SQL Server adapter using a connection string.",
109406
109411
  connectionSetupSummary: "connectionString",
109407
109412
  optionalConnectionKeys: []
109413
+ },
109414
+ {
109415
+ id: "sqlserver-windows",
109416
+ label: "SQL Server (Integrated Auth)",
109417
+ description: "Built-in SQL Server adapter using PowerShell and Microsoft.Data.SqlClient for Windows/Trusted authentication.",
109418
+ connectionSetupSummary: "connectionString",
109419
+ optionalConnectionKeys: []
109408
109420
  }
109409
109421
  ];
109410
109422
  var BUILT_IN_SQL_ADAPTER_MAP = new Map(
@@ -109429,6 +109441,227 @@ function getConnectionString(values) {
109429
109441
  function buildMissingConnectionError(adapterLabel, profile) {
109430
109442
  return `Missing required ${adapterLabel} connection string. Expected 'connectionString ${profile} = ...' in .nornenv.`;
109431
109443
  }
109444
+ function getBundledSqlClientDirectory() {
109445
+ return path6.resolve(__dirname, "..", "vendor", "microsoft.data.sqlclient", "windows-netfx");
109446
+ }
109447
+ function ensureBundledSqlClientDirectory() {
109448
+ const sqlClientDir = getBundledSqlClientDirectory();
109449
+ const mainAssemblyPath = path6.join(sqlClientDir, "Microsoft.Data.SqlClient.dll");
109450
+ if (!fs8.existsSync(mainAssemblyPath)) {
109451
+ fail(`Missing bundled Microsoft.Data.SqlClient runtime at '${mainAssemblyPath}'.`);
109452
+ }
109453
+ return sqlClientDir;
109454
+ }
109455
+ var pwshAvailable2 = null;
109456
+ function isPwshAvailable2() {
109457
+ if (pwshAvailable2 !== null) {
109458
+ return pwshAvailable2;
109459
+ }
109460
+ try {
109461
+ const result = (0, import_child_process2.spawnSync)("pwsh", ["--version"], {
109462
+ timeout: 5e3,
109463
+ stdio: "pipe"
109464
+ });
109465
+ pwshAvailable2 = result.status === 0;
109466
+ } catch (error) {
109467
+ pwshAvailable2 = false;
109468
+ }
109469
+ return pwshAvailable2;
109470
+ }
109471
+ function getPowerShellCommand() {
109472
+ return isPwshAvailable2() ? "pwsh" : "powershell";
109473
+ }
109474
+ function getIntegratedPowerShellCommand() {
109475
+ if (process.platform === "win32") {
109476
+ return "powershell";
109477
+ }
109478
+ return getPowerShellCommand();
109479
+ }
109480
+ function encodePowerShellCommand(script) {
109481
+ return Buffer.from(script, "utf16le").toString("base64");
109482
+ }
109483
+ async function runSqlServerIntegratedViaPowerShell(request) {
109484
+ if (process.platform !== "win32") {
109485
+ fail("Built-in adapter sqlserver-windows is supported on Windows only.");
109486
+ }
109487
+ const sqlClientDir = ensureBundledSqlClientDirectory();
109488
+ const script = `
109489
+ $ErrorActionPreference = 'Stop'
109490
+ [Console]::InputEncoding = [System.Text.Encoding]::UTF8
109491
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
109492
+
109493
+ $raw = [Console]::In.ReadToEnd()
109494
+ if ([string]::IsNullOrWhiteSpace($raw)) {
109495
+ throw 'Missing SQL adapter payload.'
109496
+ }
109497
+
109498
+ $payload = $raw | ConvertFrom-Json -Depth 100
109499
+ $connectionString = [string]$payload.connection.values.connectionString
109500
+ if ([string]::IsNullOrWhiteSpace($connectionString)) {
109501
+ throw 'Missing SQL Server Integrated Auth connection string.'
109502
+ }
109503
+
109504
+ $sqlClientDir = [string]$env:NORN_SQLCLIENT_DIR
109505
+ if ([string]::IsNullOrWhiteSpace($sqlClientDir) -or -not (Test-Path $sqlClientDir)) {
109506
+ throw 'Missing bundled Microsoft.Data.SqlClient runtime files.'
109507
+ }
109508
+
109509
+ $env:PATH = "$sqlClientDir;$env:PATH"
109510
+
109511
+ $resolveHandler = [System.ResolveEventHandler]{
109512
+ param($sender, $eventArgs)
109513
+
109514
+ $assemblyName = ([System.Reflection.AssemblyName]$eventArgs.Name).Name + '.dll'
109515
+ $candidate = Join-Path $env:NORN_SQLCLIENT_DIR $assemblyName
109516
+ if (Test-Path $candidate) {
109517
+ return [System.Reflection.Assembly]::LoadFrom($candidate)
109518
+ }
109519
+
109520
+ return $null
109521
+ }
109522
+
109523
+ [System.AppDomain]::CurrentDomain.add_AssemblyResolve($resolveHandler)
109524
+ [void][System.Reflection.Assembly]::LoadFrom((Join-Path $sqlClientDir 'Microsoft.Data.SqlClient.dll'))
109525
+
109526
+ $sqlText = [string]$payload.operation.sql
109527
+ $mode = [string]$payload.mode
109528
+ $paramsObject = $payload.params
109529
+
109530
+ $connection = $null
109531
+ try {
109532
+ $connection = New-Object Microsoft.Data.SqlClient.SqlConnection $connectionString
109533
+ $command = $connection.CreateCommand()
109534
+ $command.CommandText = $sqlText
109535
+
109536
+ if ($null -ne $paramsObject) {
109537
+ foreach ($property in $paramsObject.PSObject.Properties) {
109538
+ $value = $property.Value
109539
+ if ($null -eq $value) {
109540
+ $value = [DBNull]::Value
109541
+ } elseif ($value -is [datetime]) {
109542
+ $value = $value.ToUniversalTime()
109543
+ } elseif ($value -is [System.Collections.IEnumerable] -and -not ($value -is [string]) -and -not ($value -is [byte[]])) {
109544
+ $value = ($value | ConvertTo-Json -Depth 100 -Compress)
109545
+ } elseif ($value -is [pscustomobject]) {
109546
+ $value = ($value | ConvertTo-Json -Depth 100 -Compress)
109547
+ }
109548
+ [void]$command.Parameters.AddWithValue("@$($property.Name)", $value)
109549
+ }
109550
+ }
109551
+
109552
+ $connection.Open()
109553
+
109554
+ if ($mode -eq 'query') {
109555
+ $reader = $command.ExecuteReader()
109556
+ $rows = @()
109557
+
109558
+ try {
109559
+ while ($reader.Read()) {
109560
+ $row = [ordered]@{}
109561
+ for ($i = 0; $i -lt $reader.FieldCount; $i++) {
109562
+ $value = $reader.GetValue($i)
109563
+ if ($value -is [DBNull]) {
109564
+ $value = $null
109565
+ } elseif ($value -is [datetime]) {
109566
+ $value = $value.ToString('o')
109567
+ } elseif ($value -is [byte[]]) {
109568
+ $value = [Convert]::ToBase64String($value)
109569
+ }
109570
+ $row[$reader.GetName($i)] = $value
109571
+ }
109572
+ $rows += [pscustomobject]$row
109573
+ }
109574
+ } finally {
109575
+ $reader.Close()
109576
+ }
109577
+
109578
+ $response = [pscustomobject]@{
109579
+ success = $true
109580
+ result = [pscustomobject]@{
109581
+ kind = 'rows'
109582
+ rowCount = @($rows).Count
109583
+ rows = @($rows)
109584
+ }
109585
+ }
109586
+ } else {
109587
+ $affectedRows = $command.ExecuteNonQuery()
109588
+ if ($affectedRows -lt 0) {
109589
+ $affectedRows = 0
109590
+ }
109591
+ $response = [pscustomobject]@{
109592
+ success = $true
109593
+ result = [pscustomobject]@{
109594
+ kind = 'exec'
109595
+ affectedRows = $affectedRows
109596
+ }
109597
+ }
109598
+ }
109599
+
109600
+ $response | ConvertTo-Json -Depth 100 -Compress
109601
+ }
109602
+ catch {
109603
+ $details = @()
109604
+ if ($_.Exception -and $_.Exception.GetType()) {
109605
+ $details += "type: $($_.Exception.GetType().FullName)"
109606
+ }
109607
+ if ($_.InvocationInfo -and $_.InvocationInfo.ScriptLineNumber) {
109608
+ $details += "line: $($_.InvocationInfo.ScriptLineNumber)"
109609
+ }
109610
+ if ($_.FullyQualifiedErrorId) {
109611
+ $details += "id: $($_.FullyQualifiedErrorId)"
109612
+ }
109613
+ $suffix = if ($details.Count -gt 0) { " ($($details -join ', '))" } else { '' }
109614
+ [Console]::Error.WriteLine("$($_.Exception.Message)$suffix")
109615
+ exit 1
109616
+ }
109617
+ finally {
109618
+ if ($null -ne $resolveHandler) {
109619
+ [System.AppDomain]::CurrentDomain.remove_AssemblyResolve($resolveHandler)
109620
+ }
109621
+ if ($null -ne $connection) {
109622
+ $connection.Dispose()
109623
+ }
109624
+ }
109625
+ `.trim();
109626
+ const payload = JSON.stringify(request);
109627
+ const command = getIntegratedPowerShellCommand();
109628
+ const commandArgs = ["-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-OutputFormat", "Text", "-EncodedCommand", encodePowerShellCommand(script)];
109629
+ return new Promise((resolve12, reject) => {
109630
+ const child = (0, import_child_process2.spawn)(command, commandArgs, {
109631
+ cwd: request.context?.workingDir || process.cwd(),
109632
+ shell: false,
109633
+ env: {
109634
+ ...process.env,
109635
+ NORN_SQLCLIENT_DIR: sqlClientDir
109636
+ }
109637
+ });
109638
+ let stdout = "";
109639
+ let stderr = "";
109640
+ child.stdout.on("data", (data) => {
109641
+ stdout += data.toString();
109642
+ });
109643
+ child.stderr.on("data", (data) => {
109644
+ stderr += data.toString();
109645
+ });
109646
+ child.on("error", (error) => {
109647
+ reject(new Error(`Failed to start PowerShell for SQL Server Integrated Auth: ${error.message}`));
109648
+ });
109649
+ child.on("close", (code) => {
109650
+ if (code !== 0) {
109651
+ reject(new Error((stderr || stdout || `PowerShell exited with code ${code}`).trim()));
109652
+ return;
109653
+ }
109654
+ try {
109655
+ const parsed = JSON.parse(stdout.trim());
109656
+ resolve12(parsed);
109657
+ } catch (error) {
109658
+ reject(new Error(`Invalid PowerShell SQL adapter response: ${error instanceof Error ? error.message : String(error)}`));
109659
+ }
109660
+ });
109661
+ child.stdin.write(payload);
109662
+ child.stdin.end();
109663
+ });
109664
+ }
109432
109665
  function shouldPassThroughError(error) {
109433
109666
  if (!(error instanceof Error)) {
109434
109667
  return false;
@@ -109573,6 +109806,27 @@ async function runBuiltInSqlServerAdapter(request) {
109573
109806
  await pool.close().catch(() => void 0);
109574
109807
  }
109575
109808
  }
109809
+ async function runBuiltInSqlServerIntegratedAdapter(request) {
109810
+ const values = request.connection.values;
109811
+ const connectionString = getConnectionString(values);
109812
+ if (!connectionString) {
109813
+ fail(buildMissingConnectionError("SQL Server Integrated Auth", request.connection.profile));
109814
+ }
109815
+ const compiled = compileSqlServerSql(request.operation.sql, request.params || {});
109816
+ const compiledRequest = {
109817
+ ...request,
109818
+ operation: {
109819
+ ...request.operation,
109820
+ sql: compiled.text
109821
+ },
109822
+ params: Object.fromEntries(compiled.names.map((name) => [name, request.params?.[name] ?? null]))
109823
+ };
109824
+ try {
109825
+ return await runSqlServerIntegratedViaPowerShell(compiledRequest);
109826
+ } catch (error) {
109827
+ throw formatBuiltInDriverError("SQL Server Integrated Auth", error);
109828
+ }
109829
+ }
109576
109830
  function isBuiltInSqlAdapter(adapterId) {
109577
109831
  return BUILT_IN_SQL_ADAPTER_MAP.has(adapterId.toLowerCase());
109578
109832
  }
@@ -109582,6 +109836,8 @@ async function runBuiltInSqlAdapter(adapterId, request) {
109582
109836
  return runBuiltInPostgresAdapter(request);
109583
109837
  case "sqlserver":
109584
109838
  return runBuiltInSqlServerAdapter(request);
109839
+ case "sqlserver-windows":
109840
+ return runBuiltInSqlServerIntegratedAdapter(request);
109585
109841
  default:
109586
109842
  fail(`Built-in SQL adapter '${adapterId}' is not supported`);
109587
109843
  }
@@ -109594,22 +109850,22 @@ function getSearchDirectory(startPath) {
109594
109850
  if (!startPath) {
109595
109851
  return process.cwd();
109596
109852
  }
109597
- const absolute = path6.resolve(startPath);
109853
+ const absolute = path7.resolve(startPath);
109598
109854
  try {
109599
- const stats = fs8.statSync(absolute);
109600
- return stats.isDirectory() ? absolute : path6.dirname(absolute);
109855
+ const stats = fs9.statSync(absolute);
109856
+ return stats.isDirectory() ? absolute : path7.dirname(absolute);
109601
109857
  } catch {
109602
- return path6.extname(absolute) ? path6.dirname(absolute) : absolute;
109858
+ return path7.extname(absolute) ? path7.dirname(absolute) : absolute;
109603
109859
  }
109604
109860
  }
109605
109861
  function findNearestConfigFile(startPath, fileName) {
109606
109862
  let currentDir = getSearchDirectory(startPath);
109607
109863
  while (true) {
109608
- const candidate = path6.join(currentDir, fileName);
109609
- if (fs8.existsSync(candidate)) {
109864
+ const candidate = path7.join(currentDir, fileName);
109865
+ if (fs9.existsSync(candidate)) {
109610
109866
  return candidate;
109611
109867
  }
109612
- const parentDir = path6.dirname(currentDir);
109868
+ const parentDir = path7.dirname(currentDir);
109613
109869
  if (parentDir === currentDir) {
109614
109870
  return void 0;
109615
109871
  }
@@ -109619,7 +109875,7 @@ function findNearestConfigFile(startPath, fileName) {
109619
109875
  function parseJsonFile(filePath, validator, label) {
109620
109876
  let raw;
109621
109877
  try {
109622
- raw = fs8.readFileSync(filePath, "utf-8");
109878
+ raw = fs9.readFileSync(filePath, "utf-8");
109623
109879
  } catch (error) {
109624
109880
  throw new Error(`Failed to read ${label}: ${error instanceof Error ? error.message : String(error)}`);
109625
109881
  }
@@ -109713,19 +109969,19 @@ function resolveSqlConnection(startPath, alias) {
109713
109969
  };
109714
109970
  }
109715
109971
  function resolveCommandParts(configPath, command) {
109716
- const configDir = path6.dirname(configPath);
109972
+ const configDir = path7.dirname(configPath);
109717
109973
  return command.map((part, index) => {
109718
109974
  if (!part) {
109719
109975
  return part;
109720
109976
  }
109721
109977
  if (index === 0) {
109722
- if (path6.isAbsolute(part) || !part.startsWith(".") && !part.includes(path6.sep) && !part.includes("/")) {
109978
+ if (path7.isAbsolute(part) || !part.startsWith(".") && !part.includes(path7.sep) && !part.includes("/")) {
109723
109979
  return part;
109724
109980
  }
109725
- return path6.resolve(configDir, part);
109981
+ return path7.resolve(configDir, part);
109726
109982
  }
109727
109983
  if (part.startsWith(".")) {
109728
- return path6.resolve(configDir, part);
109984
+ return path7.resolve(configDir, part);
109729
109985
  }
109730
109986
  return part;
109731
109987
  });
@@ -109759,7 +110015,7 @@ function resolveSqlAdapterTarget(startPath, adapterId) {
109759
110015
  }
109760
110016
 
109761
110017
  // src/sqlAdapterRunner.ts
109762
- var import_child_process2 = require("child_process");
110018
+ var import_child_process3 = require("child_process");
109763
110019
  function isRowsResult(value) {
109764
110020
  if (!value || typeof value !== "object" || Array.isArray(value)) {
109765
110021
  return false;
@@ -109798,8 +110054,8 @@ async function runExternalSqlAdapter(command, request, workingDir) {
109798
110054
  if (!command.length) {
109799
110055
  throw new Error("SQL adapter command is empty");
109800
110056
  }
109801
- return new Promise((resolve11, reject) => {
109802
- const child = (0, import_child_process2.spawn)(command[0], command.slice(1), {
110057
+ return new Promise((resolve12, reject) => {
110058
+ const child = (0, import_child_process3.spawn)(command[0], command.slice(1), {
109803
110059
  cwd: workingDir,
109804
110060
  env: process.env,
109805
110061
  shell: false
@@ -109819,7 +110075,7 @@ async function runExternalSqlAdapter(command, request, workingDir) {
109819
110075
  return;
109820
110076
  }
109821
110077
  settled = true;
109822
- resolve11(response);
110078
+ resolve12(response);
109823
110079
  };
109824
110080
  child.stdout.on("data", (chunk) => {
109825
110081
  stdout += chunk.toString();
@@ -110307,8 +110563,8 @@ function bindSequenceArguments(params, args, runtimeVariables) {
110307
110563
  }
110308
110564
  return { variables: result };
110309
110565
  }
110310
- function getVariableValueByPath(path13, variables) {
110311
- const parts = path13.split(".");
110566
+ function getVariableValueByPath(path14, variables) {
110567
+ const parts = path14.split(".");
110312
110568
  let current = variables;
110313
110569
  for (const part of parts) {
110314
110570
  if (current === null || current === void 0) {
@@ -110673,8 +110929,8 @@ function evaluateValueExpression(expr, runtimeVariables) {
110673
110929
  } else {
110674
110930
  return { value: String(varValue), error: `Cannot access path on non-object value` };
110675
110931
  }
110676
- const path13 = pathPart.replace(/^\./, "").replace(/\[(\d+)\]/g, ".$1");
110677
- const parts = path13.split(".").filter((p) => p !== "");
110932
+ const path14 = pathPart.replace(/^\./, "").replace(/\[(\d+)\]/g, ".$1");
110933
+ const parts = path14.split(".").filter((p) => p !== "");
110678
110934
  let current = dataToNavigate;
110679
110935
  for (const part of parts) {
110680
110936
  if (current === null || current === void 0) {
@@ -110795,8 +111051,8 @@ function resolveBareVariables(text, variables) {
110795
111051
  if (varName in variables) {
110796
111052
  const value = variables[varName];
110797
111053
  if (pathPart) {
110798
- const path13 = pathPart.replace(/^\./, "");
110799
- const nestedValue = getNestedValueFromObject(value, path13);
111054
+ const path14 = pathPart.replace(/^\./, "");
111055
+ const nestedValue = getNestedValueFromObject(value, path14);
110800
111056
  return valueToString2(nestedValue);
110801
111057
  }
110802
111058
  return valueToString2(value);
@@ -110816,8 +111072,8 @@ function resolveBareVariables(text, variables) {
110816
111072
  if (varName in variables) {
110817
111073
  const value = variables[varName];
110818
111074
  if (pathPart) {
110819
- const path13 = pathPart.replace(/^\./, "");
110820
- return valueToString2(getNestedValueFromObject(value, path13));
111075
+ const path14 = pathPart.replace(/^\./, "");
111076
+ return valueToString2(getNestedValueFromObject(value, path14));
110821
111077
  }
110822
111078
  return valueToString2(value);
110823
111079
  }
@@ -110865,11 +111121,11 @@ function splitExpressionParts(expr) {
110865
111121
  }
110866
111122
  return parts;
110867
111123
  }
110868
- function getNestedValueFromObject(obj, path13) {
110869
- if (!path13) {
111124
+ function getNestedValueFromObject(obj, path14) {
111125
+ if (!path14) {
110870
111126
  return obj;
110871
111127
  }
110872
- const parts = path13.split(/\.|\[(\d+)\]/).filter((p) => p !== "" && p !== void 0);
111128
+ const parts = path14.split(/\.|\[(\d+)\]/).filter((p) => p !== "" && p !== void 0);
110873
111129
  let current = obj;
110874
111130
  for (const part of parts) {
110875
111131
  if (current === null || current === void 0) {
@@ -110892,7 +111148,7 @@ function valueToString2(value) {
110892
111148
  return String(value);
110893
111149
  }
110894
111150
  function sleep2(ms) {
110895
- return new Promise((resolve11) => setTimeout(resolve11, ms));
111151
+ return new Promise((resolve12) => setTimeout(resolve12, ms));
110896
111152
  }
110897
111153
  function isIfCommand(line2) {
110898
111154
  return /^if\s+.+$/i.test(line2.trim());
@@ -111232,24 +111488,24 @@ function extractCaptureDirectives(content) {
111232
111488
  for (const line2 of content.split("\n")) {
111233
111489
  const match = line2.trim().match(captureRegex);
111234
111490
  if (match) {
111235
- let path13 = match[3] || "";
111236
- if (path13.startsWith(".")) {
111237
- path13 = path13.substring(1);
111491
+ let path14 = match[3] || "";
111492
+ if (path14.startsWith(".")) {
111493
+ path14 = path14.substring(1);
111238
111494
  }
111239
111495
  captures.push({
111240
111496
  varName: match[1],
111241
111497
  afterRequest: parseInt(match[2], 10),
111242
- path: path13
111498
+ path: path14
111243
111499
  });
111244
111500
  }
111245
111501
  }
111246
111502
  return captures;
111247
111503
  }
111248
- function getValueByPath(response, path13) {
111249
- if (!path13) {
111504
+ function getValueByPath(response, path14) {
111505
+ if (!path14) {
111250
111506
  return void 0;
111251
111507
  }
111252
- const parts = path13.replace(/\[(\d+)\]/g, ".$1").split(".").filter((p) => p !== "");
111508
+ const parts = path14.replace(/\[(\d+)\]/g, ".$1").split(".").filter((p) => p !== "");
111253
111509
  if (parts.length === 0) {
111254
111510
  return void 0;
111255
111511
  }
@@ -111628,8 +111884,8 @@ async function runSequenceWithJar(sequenceContent, fileVariables, cookieJar, wor
111628
111884
  }
111629
111885
  }
111630
111886
  if (pathPart) {
111631
- const path13 = pathPart.replace(/^\./, "");
111632
- newValue = getNestedValueFromObject(value, path13);
111887
+ const path14 = pathPart.replace(/^\./, "");
111888
+ newValue = getNestedValueFromObject(value, path14);
111633
111889
  } else {
111634
111890
  newValue = value;
111635
111891
  }
@@ -112140,8 +112396,8 @@ ${indentMultiline(userMessage)}`;
112140
112396
  if (sequenceSources) {
112141
112397
  const sourceFile = sequenceSources.get(targetName.toLowerCase());
112142
112398
  if (sourceFile) {
112143
- const path13 = await import("path");
112144
- subWorkingDir = path13.dirname(sourceFile);
112399
+ const path14 = await import("path");
112400
+ subWorkingDir = path14.dirname(sourceFile);
112145
112401
  }
112146
112402
  }
112147
112403
  const targetLocation = executionContext?.sequenceLocationIndex?.get(targetName.toLowerCase());
@@ -112499,8 +112755,8 @@ ${indentMultiline(userMessage)}`;
112499
112755
  if (sequenceSources) {
112500
112756
  const sourceFile = sequenceSources.get(sequenceName.toLowerCase());
112501
112757
  if (sourceFile) {
112502
- const path13 = await import("path");
112503
- subWorkingDir = path13.dirname(sourceFile);
112758
+ const path14 = await import("path");
112759
+ subWorkingDir = path14.dirname(sourceFile);
112504
112760
  }
112505
112761
  }
112506
112762
  const targetLocation = executionContext?.sequenceLocationIndex?.get(sequenceName.toLowerCase());
@@ -113301,7 +113557,7 @@ function formatRunSummary(results, totalDuration, colors) {
113301
113557
  }
113302
113558
 
113303
113559
  // src/cli/reporters/junit.ts
113304
- var fs9 = __toESM(require("fs"));
113560
+ var fs10 = __toESM(require("fs"));
113305
113561
  function escapeXml(text) {
113306
113562
  return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
113307
113563
  }
@@ -113321,7 +113577,7 @@ function generateJUnitReport(results, options) {
113321
113577
  xml += generateTestSuite(result, redaction);
113322
113578
  }
113323
113579
  xml += "</testsuites>\n";
113324
- fs9.writeFileSync(outputPath, xml, "utf-8");
113580
+ fs10.writeFileSync(outputPath, xml, "utf-8");
113325
113581
  }
113326
113582
  function generateTestSuite(result, redaction) {
113327
113583
  const assertions = result.assertionResults || [];
@@ -113434,11 +113690,11 @@ Response: ${bodyStr}`;
113434
113690
  xml += " </testcase>\n";
113435
113691
  xml += " </testsuite>\n";
113436
113692
  xml += "</testsuites>\n";
113437
- fs9.writeFileSync(outputPath, xml, "utf-8");
113693
+ fs10.writeFileSync(outputPath, xml, "utf-8");
113438
113694
  }
113439
113695
 
113440
113696
  // src/cli/reporters/html.ts
113441
- var fs10 = __toESM(require("fs"));
113697
+ var fs11 = __toESM(require("fs"));
113442
113698
  function escapeHtml(text) {
113443
113699
  return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
113444
113700
  }
@@ -113550,7 +113806,7 @@ function generateHtmlReport(results, options) {
113550
113806
  </script>
113551
113807
  </body>
113552
113808
  </html>`;
113553
- fs10.writeFileSync(outputPath, html, "utf-8");
113809
+ fs11.writeFileSync(outputPath, html, "utf-8");
113554
113810
  }
113555
113811
  function generateSequenceHtml(result, index, redaction) {
113556
113812
  const statusClass = result.success ? "passed" : "failed";
@@ -113967,8 +114223,8 @@ function generateHtmlReportFromResponse(response, testName, options) {
113967
114223
  }
113968
114224
 
113969
114225
  // src/environmentParser.ts
113970
- var fs13 = __toESM(require("fs"));
113971
- var path9 = __toESM(require("path"));
114226
+ var fs14 = __toESM(require("fs"));
114227
+ var path10 = __toESM(require("path"));
113972
114228
 
113973
114229
  // src/secrets/crypto.ts
113974
114230
  var crypto6 = __toESM(require("crypto"));
@@ -114036,33 +114292,33 @@ function decryptSecretValue(encryptedValue, sharedKey) {
114036
114292
  }
114037
114293
 
114038
114294
  // src/secrets/keyStore.ts
114039
- var fs12 = __toESM(require("fs"));
114040
- var path8 = __toESM(require("path"));
114295
+ var fs13 = __toESM(require("fs"));
114296
+ var path9 = __toESM(require("path"));
114041
114297
 
114042
114298
  // src/cacheDir.ts
114043
- var fs11 = __toESM(require("fs"));
114044
- var path7 = __toESM(require("path"));
114299
+ var fs12 = __toESM(require("fs"));
114300
+ var path8 = __toESM(require("path"));
114045
114301
  var NORN_CACHE_DIR = ".norn-cache";
114046
114302
  var CACHE_GITIGNORE_FILE = ".gitignore";
114047
114303
  var CACHE_GITIGNORE_CONTENT = "*\n";
114048
114304
  var PROJECT_ROOT_MARKERS = [".git", "package.json", "pnpm-workspace.yaml", "package-lock.json", "yarn.lock", ".nornenv"];
114049
114305
  function getSearchStartDirectory(targetPath) {
114050
- const resolvedPath = path7.resolve(targetPath);
114306
+ const resolvedPath = path8.resolve(targetPath);
114051
114307
  try {
114052
- const stats = fs11.statSync(resolvedPath);
114053
- return stats.isDirectory() ? resolvedPath : path7.dirname(resolvedPath);
114308
+ const stats = fs12.statSync(resolvedPath);
114309
+ return stats.isDirectory() ? resolvedPath : path8.dirname(resolvedPath);
114054
114310
  } catch {
114055
- return path7.dirname(resolvedPath);
114311
+ return path8.dirname(resolvedPath);
114056
114312
  }
114057
114313
  }
114058
114314
  function findProjectRoot(targetPath) {
114059
114315
  let dir = getSearchStartDirectory(targetPath);
114060
114316
  let projectRoot;
114061
114317
  while (true) {
114062
- if (PROJECT_ROOT_MARKERS.some((marker) => fs11.existsSync(path7.join(dir, marker)))) {
114318
+ if (PROJECT_ROOT_MARKERS.some((marker) => fs12.existsSync(path8.join(dir, marker)))) {
114063
114319
  projectRoot = dir;
114064
114320
  }
114065
- const parent = path7.dirname(dir);
114321
+ const parent = path8.dirname(dir);
114066
114322
  if (parent === dir) {
114067
114323
  break;
114068
114324
  }
@@ -114071,13 +114327,13 @@ function findProjectRoot(targetPath) {
114071
114327
  return projectRoot ?? getSearchStartDirectory(targetPath);
114072
114328
  }
114073
114329
  function ensureNornCacheGitignore(cacheDir) {
114074
- const gitignorePath = path7.join(cacheDir, CACHE_GITIGNORE_FILE);
114330
+ const gitignorePath = path8.join(cacheDir, CACHE_GITIGNORE_FILE);
114075
114331
  try {
114076
- const hasDesiredContent = fs11.existsSync(gitignorePath) && fs11.readFileSync(gitignorePath, "utf8") === CACHE_GITIGNORE_CONTENT;
114332
+ const hasDesiredContent = fs12.existsSync(gitignorePath) && fs12.readFileSync(gitignorePath, "utf8") === CACHE_GITIGNORE_CONTENT;
114077
114333
  if (hasDesiredContent) {
114078
114334
  return;
114079
114335
  }
114080
- fs11.writeFileSync(gitignorePath, CACHE_GITIGNORE_CONTENT, "utf8");
114336
+ fs12.writeFileSync(gitignorePath, CACHE_GITIGNORE_CONTENT, "utf8");
114081
114337
  } catch {
114082
114338
  }
114083
114339
  }
@@ -114089,12 +114345,12 @@ var CACHE_SCAN_IGNORED_DIRS = /* @__PURE__ */ new Set(["node_modules", ".git", "
114089
114345
  var sessionKeys = /* @__PURE__ */ new Map();
114090
114346
  var projectSecretKeyCacheDirs = /* @__PURE__ */ new Map();
114091
114347
  function getCacheFilePath(cacheDir) {
114092
- return path8.join(cacheDir, CACHE_FILE);
114348
+ return path9.join(cacheDir, CACHE_FILE);
114093
114349
  }
114094
114350
  function cacheFileExists(cacheDir) {
114095
114351
  const cacheFilePath = getCacheFilePath(cacheDir);
114096
114352
  try {
114097
- return fs12.existsSync(cacheFilePath) && fs12.statSync(cacheFilePath).isFile();
114353
+ return fs13.existsSync(cacheFilePath) && fs13.statSync(cacheFilePath).isFile();
114098
114354
  } catch {
114099
114355
  return false;
114100
114356
  }
@@ -114111,13 +114367,13 @@ function getProjectSecretKeyCacheDirs(projectRoot) {
114111
114367
  if (!dir) {
114112
114368
  continue;
114113
114369
  }
114114
- const cacheDir = path8.join(dir, NORN_CACHE_DIR);
114370
+ const cacheDir = path9.join(dir, NORN_CACHE_DIR);
114115
114371
  if (cacheFileExists(cacheDir)) {
114116
114372
  results.push(cacheDir);
114117
114373
  }
114118
114374
  let entries;
114119
114375
  try {
114120
- entries = fs12.readdirSync(dir, { withFileTypes: true });
114376
+ entries = fs13.readdirSync(dir, { withFileTypes: true });
114121
114377
  } catch {
114122
114378
  continue;
114123
114379
  }
@@ -114128,7 +114384,7 @@ function getProjectSecretKeyCacheDirs(projectRoot) {
114128
114384
  if (entry.name === NORN_CACHE_DIR || CACHE_SCAN_IGNORED_DIRS.has(entry.name)) {
114129
114385
  continue;
114130
114386
  }
114131
- queue.push(path8.join(dir, entry.name));
114387
+ queue.push(path9.join(dir, entry.name));
114132
114388
  }
114133
114389
  }
114134
114390
  results.sort();
@@ -114136,11 +114392,11 @@ function getProjectSecretKeyCacheDirs(projectRoot) {
114136
114392
  return results;
114137
114393
  }
114138
114394
  function getCacheDistance(targetPath, cacheDir) {
114139
- const relative5 = path8.relative(getSearchStartDirectory(targetPath), cacheDir);
114395
+ const relative5 = path9.relative(getSearchStartDirectory(targetPath), cacheDir);
114140
114396
  if (!relative5 || relative5 === ".") {
114141
114397
  return 0;
114142
114398
  }
114143
- return relative5.split(path8.sep).filter((segment) => segment !== "").length;
114399
+ return relative5.split(path9.sep).filter((segment) => segment !== "").length;
114144
114400
  }
114145
114401
  function findExistingSecretKeyCacheDir(targetPath) {
114146
114402
  const projectRoot = findProjectRoot(targetPath);
@@ -114167,9 +114423,9 @@ function rememberSecretKeyCacheDir(targetPath, cacheDir) {
114167
114423
  function ensureCacheDir(targetPath) {
114168
114424
  const existing = findExistingSecretKeyCacheDir(targetPath);
114169
114425
  const projectRoot = findProjectRoot(targetPath);
114170
- const cacheDir = existing ?? path8.join(projectRoot, NORN_CACHE_DIR);
114171
- if (!fs12.existsSync(cacheDir)) {
114172
- fs12.mkdirSync(cacheDir, { recursive: true });
114426
+ const cacheDir = existing ?? path9.join(projectRoot, NORN_CACHE_DIR);
114427
+ if (!fs13.existsSync(cacheDir)) {
114428
+ fs13.mkdirSync(cacheDir, { recursive: true });
114173
114429
  }
114174
114430
  ensureNornCacheGitignore(cacheDir);
114175
114431
  rememberSecretKeyCacheDir(targetPath, cacheDir);
@@ -114181,8 +114437,8 @@ function getReadCachePath(targetPath) {
114181
114437
  return getCacheFilePath(existing);
114182
114438
  }
114183
114439
  const projectRoot = findProjectRoot(targetPath);
114184
- const projectCacheDir = path8.join(projectRoot, NORN_CACHE_DIR);
114185
- if (fs12.existsSync(projectCacheDir) && fs12.statSync(projectCacheDir).isDirectory()) {
114440
+ const projectCacheDir = path9.join(projectRoot, NORN_CACHE_DIR);
114441
+ if (fs13.existsSync(projectCacheDir) && fs13.statSync(projectCacheDir).isDirectory()) {
114186
114442
  return getCacheFilePath(projectCacheDir);
114187
114443
  }
114188
114444
  return void 0;
@@ -114192,11 +114448,11 @@ function getWriteCachePath(targetPath) {
114192
114448
  }
114193
114449
  function readCache(targetPath) {
114194
114450
  const cachePath = getReadCachePath(targetPath);
114195
- if (!cachePath || !fs12.existsSync(cachePath)) {
114451
+ if (!cachePath || !fs13.existsSync(cachePath)) {
114196
114452
  return { version: CACHE_VERSION, keys: {} };
114197
114453
  }
114198
114454
  try {
114199
- const parsed = JSON.parse(fs12.readFileSync(cachePath, "utf8"));
114455
+ const parsed = JSON.parse(fs13.readFileSync(cachePath, "utf8"));
114200
114456
  if (parsed.version !== CACHE_VERSION || typeof parsed.keys !== "object" || parsed.keys === null) {
114201
114457
  return { version: CACHE_VERSION, keys: {} };
114202
114458
  }
@@ -114207,9 +114463,9 @@ function readCache(targetPath) {
114207
114463
  }
114208
114464
  function writeCache(targetPath, cache) {
114209
114465
  const cachePath = getWriteCachePath(targetPath);
114210
- fs12.writeFileSync(cachePath, JSON.stringify(cache, null, 2), { encoding: "utf8", mode: 384 });
114466
+ fs13.writeFileSync(cachePath, JSON.stringify(cache, null, 2), { encoding: "utf8", mode: 384 });
114211
114467
  try {
114212
- fs12.chmodSync(cachePath, 384);
114468
+ fs13.chmodSync(cachePath, 384);
114213
114469
  } catch {
114214
114470
  }
114215
114471
  }
@@ -114400,22 +114656,22 @@ function parseEnvFile(content, sourceFilePath) {
114400
114656
  return config;
114401
114657
  }
114402
114658
  function getEnvSearchStartDirectory(targetPath) {
114403
- const resolvedPath = path9.resolve(targetPath);
114659
+ const resolvedPath = path10.resolve(targetPath);
114404
114660
  try {
114405
- const stats = fs13.statSync(resolvedPath);
114406
- return stats.isDirectory() ? resolvedPath : path9.dirname(resolvedPath);
114661
+ const stats = fs14.statSync(resolvedPath);
114662
+ return stats.isDirectory() ? resolvedPath : path10.dirname(resolvedPath);
114407
114663
  } catch {
114408
- return path9.dirname(resolvedPath);
114664
+ return path10.dirname(resolvedPath);
114409
114665
  }
114410
114666
  }
114411
114667
  function findEnvFileFromPath(filePath) {
114412
114668
  let dir = getEnvSearchStartDirectory(filePath);
114413
114669
  while (true) {
114414
- const envPath = path9.join(dir, ENV_FILENAME);
114415
- if (fs13.existsSync(envPath)) {
114670
+ const envPath = path10.join(dir, ENV_FILENAME);
114671
+ if (fs14.existsSync(envPath)) {
114416
114672
  return envPath;
114417
114673
  }
114418
- const parentDir = path9.dirname(dir);
114674
+ const parentDir = path10.dirname(dir);
114419
114675
  if (parentDir === dir) {
114420
114676
  break;
114421
114677
  }
@@ -114440,7 +114696,7 @@ function resolveNornenvImports(config, baseDir, entryFilePath, readFile2, import
114440
114696
  }
114441
114697
  for (const imp of config.imports) {
114442
114698
  const resolvedImportPath = resolveImportPath(imp.path, baseDir);
114443
- if (!resolvedImportPath || !fs13.existsSync(resolvedImportPath)) {
114699
+ if (!resolvedImportPath || !fs14.existsSync(resolvedImportPath)) {
114444
114700
  errors.push({
114445
114701
  message: `Imported file not found: '${imp.path}'`,
114446
114702
  filePath: entryFilePath,
@@ -114456,10 +114712,10 @@ function resolveNornenvImports(config, baseDir, entryFilePath, readFile2, import
114456
114712
  });
114457
114713
  continue;
114458
114714
  }
114459
- const normalizedPath = path9.resolve(resolvedImportPath);
114715
+ const normalizedPath = path10.resolve(resolvedImportPath);
114460
114716
  if (stack.includes(normalizedPath)) {
114461
- const entryDir = path9.dirname(stack[0]);
114462
- const cycle = [...stack, normalizedPath].map((p) => path9.relative(entryDir, p) || path9.basename(p)).join(" \u2192 ");
114717
+ const entryDir = path10.dirname(stack[0]);
114718
+ const cycle = [...stack, normalizedPath].map((p) => path10.relative(entryDir, p) || path10.basename(p)).join(" \u2192 ");
114463
114719
  errors.push({
114464
114720
  message: `Circular import detected: ${cycle}`,
114465
114721
  filePath: entryFilePath,
@@ -114488,7 +114744,7 @@ function resolveNornenvImports(config, baseDir, entryFilePath, readFile2, import
114488
114744
  if (importedConfig.imports.length > 0) {
114489
114745
  const childResult = resolveNornenvImports(
114490
114746
  importedConfig,
114491
- path9.dirname(normalizedPath),
114747
+ path10.dirname(normalizedPath),
114492
114748
  normalizedPath,
114493
114749
  readFile2,
114494
114750
  [...stack, normalizedPath],
@@ -114506,7 +114762,7 @@ function resolveNornenvImports(config, baseDir, entryFilePath, readFile2, import
114506
114762
  }
114507
114763
  function resolveImportPath(importPath, baseDir) {
114508
114764
  const cleaned = importPath.replace(/^["']|["']$/g, "");
114509
- return path9.resolve(baseDir, cleaned);
114765
+ return path10.resolve(baseDir, cleaned);
114510
114766
  }
114511
114767
  function registerVariableOrigins(config, filePath, origins) {
114512
114768
  for (const varName of Object.keys(config.common)) {
@@ -114570,12 +114826,12 @@ function mergeConfigs(target, source, targetFilePath, sourceFilePath, variableOr
114570
114826
  }
114571
114827
  }
114572
114828
  function toDisplayPath(filePath, entryFilePath) {
114573
- const entryDir = path9.dirname(entryFilePath);
114574
- const relative5 = path9.relative(entryDir, filePath);
114575
- return relative5 && relative5 !== "" ? relative5 : path9.basename(filePath);
114829
+ const entryDir = path10.dirname(entryFilePath);
114830
+ const relative5 = path10.relative(entryDir, filePath);
114831
+ return relative5 && relative5 !== "" ? relative5 : path10.basename(filePath);
114576
114832
  }
114577
114833
  function loadAndResolveEnvFile(filePath) {
114578
- const content = fs13.readFileSync(filePath, "utf-8");
114834
+ const content = fs14.readFileSync(filePath, "utf-8");
114579
114835
  const config = parseEnvFile(content, filePath);
114580
114836
  if (config.imports.length === 0) {
114581
114837
  const secretErrors = resolveEncryptedSecretValues(config, filePath);
@@ -114583,9 +114839,9 @@ function loadAndResolveEnvFile(filePath) {
114583
114839
  }
114584
114840
  const result = resolveNornenvImports(
114585
114841
  config,
114586
- path9.dirname(filePath),
114842
+ path10.dirname(filePath),
114587
114843
  filePath,
114588
- (p) => fs13.readFileSync(p, "utf-8")
114844
+ (p) => fs14.readFileSync(p, "utf-8")
114589
114845
  );
114590
114846
  result.secretErrors.push(...resolveEncryptedSecretValues(result.config, filePath));
114591
114847
  return result;
@@ -114651,14 +114907,14 @@ function resolveEncryptedSecretValues(config, entryFilePath) {
114651
114907
  }
114652
114908
 
114653
114909
  // src/secrets/cliSecrets.ts
114654
- var fs15 = __toESM(require("fs"));
114655
- var path11 = __toESM(require("path"));
114910
+ var fs16 = __toESM(require("fs"));
114911
+ var path12 = __toESM(require("path"));
114656
114912
  var readline = __toESM(require("readline"));
114657
114913
  var import_process = require("process");
114658
114914
 
114659
114915
  // src/secrets/envFileSecrets.ts
114660
- var fs14 = __toESM(require("fs"));
114661
- var path10 = __toESM(require("path"));
114916
+ var fs15 = __toESM(require("fs"));
114917
+ var path11 = __toESM(require("path"));
114662
114918
  var envRegex2 = /^\s*\[env:([a-zA-Z_][a-zA-Z0-9_-]*)\]\s*$/;
114663
114919
  var secretConnectionStringRegex2 = /^(\s*secret\s+connectionString\s+)([a-zA-Z_][a-zA-Z0-9_]*)(\s*=\s*)(.+)$/;
114664
114920
  var secretRegex2 = /^(\s*secret\s+)([a-zA-Z_][a-zA-Z0-9_]*)(\s*=\s*)(.+)$/;
@@ -114669,7 +114925,7 @@ function detectEol(content) {
114669
114925
  return content.includes("\r\n") ? "\r\n" : "\n";
114670
114926
  }
114671
114927
  function isNornenvFilePath(filePath) {
114672
- return path10.basename(filePath).toLowerCase() === ".nornenv";
114928
+ return path11.basename(filePath).toLowerCase() === ".nornenv";
114673
114929
  }
114674
114930
  function extractSecretLines(content, filePath) {
114675
114931
  const lines = splitContentLines(content);
@@ -114743,7 +114999,7 @@ function findSecretLine(content, variableName, envName) {
114743
114999
  return secretLines.find((secret) => secret.name === variableName);
114744
115000
  }
114745
115001
  function loadSecretLine(filePath, variableName, envName) {
114746
- const content = fs14.readFileSync(filePath, "utf8");
115002
+ const content = fs15.readFileSync(filePath, "utf8");
114747
115003
  const secret = findSecretLine(content, variableName, envName);
114748
115004
  if (!secret) {
114749
115005
  const envLabel = envName ? ` in [env:${envName}]` : "";
@@ -114752,22 +115008,22 @@ function loadSecretLine(filePath, variableName, envName) {
114752
115008
  return { content, secret };
114753
115009
  }
114754
115010
  function writeSecretLine(filePath, content) {
114755
- fs14.writeFileSync(filePath, content, "utf8");
115011
+ fs15.writeFileSync(filePath, content, "utf8");
114756
115012
  }
114757
115013
  function discoverNornenvFiles(targetPath) {
114758
- const resolved = path10.resolve(targetPath);
114759
- if (!fs14.existsSync(resolved)) {
115014
+ const resolved = path11.resolve(targetPath);
115015
+ if (!fs15.existsSync(resolved)) {
114760
115016
  return [];
114761
115017
  }
114762
- const stats = fs14.statSync(resolved);
115018
+ const stats = fs15.statSync(resolved);
114763
115019
  if (stats.isFile()) {
114764
115020
  return isNornenvFilePath(resolved) ? [resolved] : [];
114765
115021
  }
114766
115022
  const results = [];
114767
115023
  const walk = (dir) => {
114768
- const entries = fs14.readdirSync(dir, { withFileTypes: true });
115024
+ const entries = fs15.readdirSync(dir, { withFileTypes: true });
114769
115025
  for (const entry of entries) {
114770
- const fullPath = path10.join(dir, entry.name);
115026
+ const fullPath = path11.join(dir, entry.name);
114771
115027
  if (entry.isDirectory()) {
114772
115028
  if (entry.name === "node_modules" || entry.name === ".git" || entry.name === "dist" || entry.name === "out") {
114773
115029
  continue;
@@ -114804,8 +115060,8 @@ async function promptLine(question) {
114804
115060
  }
114805
115061
  const rl = readline.createInterface({ input: import_process.stdin, output: import_process.stdout });
114806
115062
  try {
114807
- const answer = await new Promise((resolve11) => {
114808
- rl.question(question, resolve11);
115063
+ const answer = await new Promise((resolve12) => {
115064
+ rl.question(question, resolve12);
114809
115065
  });
114810
115066
  const trimmed = answer.trim();
114811
115067
  return trimmed === "" ? void 0 : trimmed;
@@ -114826,8 +115082,8 @@ function formatSecretError(err, envFilePath) {
114826
115082
  if (!envFilePath) {
114827
115083
  return `${err.message}`;
114828
115084
  }
114829
- const relative5 = path11.relative(path11.dirname(envFilePath), err.filePath);
114830
- const fileLabel = relative5 && relative5 !== "" ? relative5 : path11.basename(err.filePath);
115085
+ const relative5 = path12.relative(path12.dirname(envFilePath), err.filePath);
115086
+ const fileLabel = relative5 && relative5 !== "" ? relative5 : path12.basename(err.filePath);
114831
115087
  const lineLabel = err.line >= 0 ? `${fileLabel}:${err.line + 1}` : fileLabel;
114832
115088
  return `${lineLabel} - ${err.message}`;
114833
115089
  }
@@ -114923,7 +115179,7 @@ async function handleEncrypt(args) {
114923
115179
  console.error(`Error: encrypt requires --file and --var.`);
114924
115180
  return 1;
114925
115181
  }
114926
- const absoluteFilePath = path11.resolve(filePath);
115182
+ const absoluteFilePath = path12.resolve(filePath);
114927
115183
  const { content, secret } = loadSecretLine(absoluteFilePath, variableName, envName);
114928
115184
  if (secret.encrypted) {
114929
115185
  console.error(`Error: Secret '${variableName}' is already encrypted. Use rotate instead.`);
@@ -114955,7 +115211,7 @@ async function handleRotate(args) {
114955
115211
  console.error(`Error: rotate requires --file and --var.`);
114956
115212
  return 1;
114957
115213
  }
114958
- const absoluteFilePath = path11.resolve(filePath);
115214
+ const absoluteFilePath = path12.resolve(filePath);
114959
115215
  const { content, secret } = loadSecretLine(absoluteFilePath, variableName, envName);
114960
115216
  let kid = explicitKid;
114961
115217
  if (!kid && secret.encrypted) {
@@ -114986,7 +115242,7 @@ async function handleRotate(args) {
114986
115242
  }
114987
115243
  async function handleRekey(args) {
114988
115244
  const positional = args.filter((arg) => !arg.startsWith("-"));
114989
- const targetPath = positional[0] ? path11.resolve(positional[0]) : process.cwd();
115245
+ const targetPath = positional[0] ? path12.resolve(positional[0]) : process.cwd();
114990
115246
  const targetKid = getFlagValue(args, "--kid");
114991
115247
  const files = discoverNornenvFiles(targetPath);
114992
115248
  if (files.length === 0) {
@@ -114996,7 +115252,7 @@ async function handleRekey(args) {
114996
115252
  let updatedFiles = 0;
114997
115253
  let updatedSecrets = 0;
114998
115254
  for (const filePath of files) {
114999
- const original = fs15.readFileSync(filePath, "utf8");
115255
+ const original = fs16.readFileSync(filePath, "utf8");
115000
115256
  const secretLines = extractSecretLines(original, filePath);
115001
115257
  if (secretLines.length === 0) {
115002
115258
  continue;
@@ -115047,7 +115303,7 @@ async function handleRekey(args) {
115047
115303
  updatedSecrets += 1;
115048
115304
  }
115049
115305
  if (updated !== original) {
115050
- fs15.writeFileSync(filePath, updated, "utf8");
115306
+ fs16.writeFileSync(filePath, updated, "utf8");
115051
115307
  updatedFiles += 1;
115052
115308
  }
115053
115309
  }
@@ -115056,7 +115312,7 @@ async function handleRekey(args) {
115056
115312
  }
115057
115313
  async function handleAudit(args) {
115058
115314
  const positional = args.filter((arg) => !arg.startsWith("-"));
115059
- const targetPath = positional[0] ? path11.resolve(positional[0]) : process.cwd();
115315
+ const targetPath = positional[0] ? path12.resolve(positional[0]) : process.cwd();
115060
115316
  const files = discoverNornenvFiles(targetPath);
115061
115317
  if (files.length === 0) {
115062
115318
  console.log(`No .nornenv files found under ${targetPath}`);
@@ -115064,7 +115320,7 @@ async function handleAudit(args) {
115064
115320
  }
115065
115321
  const issues = [];
115066
115322
  for (const filePath of files) {
115067
- const content = fs15.readFileSync(filePath, "utf8");
115323
+ const content = fs16.readFileSync(filePath, "utf8");
115068
115324
  const secrets = extractSecretLines(content, filePath);
115069
115325
  for (const secret of secrets) {
115070
115326
  if (!secret.encrypted) {
@@ -115151,9 +115407,9 @@ function printSecretResolutionErrors(errors, envFilePath) {
115151
115407
 
115152
115408
  // src/cli.ts
115153
115409
  function formatNornenvErrorLocation(rootEnvFilePath, errorFilePath, line2) {
115154
- const baseDir = path12.dirname(rootEnvFilePath);
115155
- const relativePath = path12.relative(baseDir, errorFilePath);
115156
- const fileLabel = relativePath && relativePath !== "" ? relativePath : path12.basename(errorFilePath);
115410
+ const baseDir = path13.dirname(rootEnvFilePath);
115411
+ const relativePath = path13.relative(baseDir, errorFilePath);
115412
+ const fileLabel = relativePath && relativePath !== "" ? relativePath : path13.basename(errorFilePath);
115157
115413
  return line2 >= 0 ? `${fileLabel}:${line2 + 1}` : fileLabel;
115158
115414
  }
115159
115415
  function resolveEnvironmentForPath(targetPath, selectedEnv) {
@@ -115235,10 +115491,10 @@ function generateTimestamp() {
115235
115491
  return `${year}-${month}-${day}-${hours}${minutes}${seconds}`;
115236
115492
  }
115237
115493
  function generateReportPaths(outputDir, inputFile, timestamp) {
115238
- const baseName = path12.basename(inputFile, path12.extname(inputFile));
115494
+ const baseName = path13.basename(inputFile, path13.extname(inputFile));
115239
115495
  return {
115240
- junitPath: path12.join(outputDir, `${baseName}-${timestamp}-results.xml`),
115241
- htmlPath: path12.join(outputDir, `${baseName}-${timestamp}-report.html`)
115496
+ junitPath: path13.join(outputDir, `${baseName}-${timestamp}-results.xml`),
115497
+ htmlPath: path13.join(outputDir, `${baseName}-${timestamp}-report.html`)
115242
115498
  };
115243
115499
  }
115244
115500
  function parseArgs(args) {
@@ -115503,9 +115759,9 @@ async function runSingleRequest(fileContent, variables, cookieJar, apiDefinition
115503
115759
  function discoverNornFiles(dirPath) {
115504
115760
  const files = [];
115505
115761
  function walkDir(currentPath) {
115506
- const entries = fs16.readdirSync(currentPath, { withFileTypes: true });
115762
+ const entries = fs17.readdirSync(currentPath, { withFileTypes: true });
115507
115763
  for (const entry of entries) {
115508
- const fullPath = path12.join(currentPath, entry.name);
115764
+ const fullPath = path13.join(currentPath, entry.name);
115509
115765
  if (entry.isDirectory()) {
115510
115766
  if (!entry.name.startsWith(".") && entry.name !== "node_modules") {
115511
115767
  walkDir(fullPath);
@@ -115525,7 +115781,7 @@ function countTestSequences(fileContent, tagFilterOptions) {
115525
115781
  return { total: testSequences.length, filtered };
115526
115782
  }
115527
115783
  async function loadTheoryFile(theoryPath, workingDir) {
115528
- const absolutePath = path12.resolve(workingDir, theoryPath);
115784
+ const absolutePath = path13.resolve(workingDir, theoryPath);
115529
115785
  const content = await fsPromises.readFile(absolutePath, "utf-8");
115530
115786
  return JSON.parse(content);
115531
115787
  }
@@ -115646,12 +115902,12 @@ async function main() {
115646
115902
  if (options.insecure) {
115647
115903
  console.error(colors.warning("Warning: TLS certificate verification is disabled (--insecure). Use this only for local development."));
115648
115904
  }
115649
- const inputPath = path12.resolve(options.file);
115650
- if (!fs16.existsSync(inputPath)) {
115905
+ const inputPath = path13.resolve(options.file);
115906
+ if (!fs17.existsSync(inputPath)) {
115651
115907
  console.error(`Error: Path not found: ${inputPath}`);
115652
115908
  process.exit(1);
115653
115909
  }
115654
- const isDirectory = fs16.statSync(inputPath).isDirectory();
115910
+ const isDirectory = fs17.statSync(inputPath).isDirectory();
115655
115911
  let filesToRun;
115656
115912
  if (isDirectory) {
115657
115913
  filesToRun = discoverNornFiles(inputPath);
@@ -115718,11 +115974,11 @@ async function main() {
115718
115974
  }
115719
115975
  mergeSecrets(combinedSecretNames, combinedSecretValues, resolvedEnv.secretNames, resolvedEnv.secretValues);
115720
115976
  const redaction2 = createRedactionOptions(combinedSecretNames, combinedSecretValues, !options.noRedact);
115721
- const fileContent = fs16.readFileSync(filePath, "utf-8");
115977
+ const fileContent = fs17.readFileSync(filePath, "utf-8");
115722
115978
  const fileVariables = extractFileLevelVariables(fileContent);
115723
115979
  const variables = attachEnvironmentScope({ ...resolvedEnv.variables, ...fileVariables }, resolvedEnv.variables);
115724
115980
  const cookieJar = createCookieJar();
115725
- const workingDir = path12.dirname(filePath);
115981
+ const workingDir = path13.dirname(filePath);
115726
115982
  const importResult = await resolveImports(
115727
115983
  fileContent,
115728
115984
  workingDir,
@@ -115890,7 +116146,7 @@ ${fileContent}` : fileContent;
115890
116146
  let totalTestCount = 0;
115891
116147
  let filteredTestCount = 0;
115892
116148
  for (const filePath of filesToRun) {
115893
- const fileContent = fs16.readFileSync(filePath, "utf-8");
116149
+ const fileContent = fs17.readFileSync(filePath, "utf-8");
115894
116150
  const counts = countTestSequences(fileContent, tagFilterOptions);
115895
116151
  totalTestCount += counts.total;
115896
116152
  filteredTestCount += counts.filtered;
@@ -115932,16 +116188,16 @@ ${fileContent}` : fileContent;
115932
116188
  process.exit(1);
115933
116189
  }
115934
116190
  if (!resolvedEnv.envFilePath && options.env) {
115935
- const relPath = isDirectory ? path12.relative(inputPath, filePath) : path12.basename(filePath);
116191
+ const relPath = isDirectory ? path13.relative(inputPath, filePath) : path13.basename(filePath);
115936
116192
  console.error(colors.warning(`Warning: --env specified but no .nornenv file found for ${relPath}`));
115937
116193
  }
115938
116194
  mergeSecrets(combinedSecretNames, combinedSecretValues, resolvedEnv.secretNames, resolvedEnv.secretValues);
115939
116195
  const redaction2 = createRedactionOptions(combinedSecretNames, combinedSecretValues, !options.noRedact);
115940
- const fileContent = fs16.readFileSync(filePath, "utf-8");
116196
+ const fileContent = fs17.readFileSync(filePath, "utf-8");
115941
116197
  const fileVariables = extractFileLevelVariables(fileContent);
115942
116198
  const variables = attachEnvironmentScope({ ...resolvedEnv.variables, ...fileVariables }, resolvedEnv.variables);
115943
116199
  const cookieJar = createCookieJar();
115944
- const workingDir = path12.dirname(filePath);
116200
+ const workingDir = path13.dirname(filePath);
115945
116201
  const importResult = await resolveImports(
115946
116202
  fileContent,
115947
116203
  workingDir,
@@ -115974,7 +116230,7 @@ ${fileContent}` : fileContent;
115974
116230
  continue;
115975
116231
  }
115976
116232
  if (isDirectory && options.output !== "json") {
115977
- const relPath = path12.relative(inputPath, filePath);
116233
+ const relPath = path13.relative(inputPath, filePath);
115978
116234
  console.log(colors.info(`
115979
116235
  \u2501\u2501\u2501 ${relPath} \u2501\u2501\u2501`));
115980
116236
  }
@@ -116019,7 +116275,7 @@ ${fileContent}` : fileContent;
116019
116275
  let htmlOutputPath = options.htmlOutput;
116020
116276
  if (options.outputDir) {
116021
116277
  const timestamp = generateTimestamp();
116022
- const baseName = isDirectory ? path12.basename(inputPath) : path12.basename(inputPath, path12.extname(inputPath));
116278
+ const baseName = isDirectory ? path13.basename(inputPath) : path13.basename(inputPath, path13.extname(inputPath));
116023
116279
  const generatedPaths = generateReportPaths(options.outputDir, baseName + ".norn", timestamp);
116024
116280
  if (!junitOutputPath) {
116025
116281
  junitOutputPath = generatedPaths.junitPath;
@@ -116027,12 +116283,12 @@ ${fileContent}` : fileContent;
116027
116283
  if (!htmlOutputPath) {
116028
116284
  htmlOutputPath = generatedPaths.htmlPath;
116029
116285
  }
116030
- if (!fs16.existsSync(options.outputDir)) {
116031
- fs16.mkdirSync(options.outputDir, { recursive: true });
116286
+ if (!fs17.existsSync(options.outputDir)) {
116287
+ fs17.mkdirSync(options.outputDir, { recursive: true });
116032
116288
  }
116033
116289
  }
116034
116290
  if (junitOutputPath) {
116035
- const suiteName = isDirectory ? path12.basename(inputPath) : path12.basename(inputPath, path12.extname(inputPath));
116291
+ const suiteName = isDirectory ? path13.basename(inputPath) : path13.basename(inputPath, path13.extname(inputPath));
116036
116292
  if (result.type === "request") {
116037
116293
  generateJUnitReportFromResponse(
116038
116294
  result.results[0],
@@ -116048,11 +116304,11 @@ ${fileContent}` : fileContent;
116048
116304
  console.log(colors.info(`JUnit report written to: ${junitOutputPath}`));
116049
116305
  }
116050
116306
  if (htmlOutputPath) {
116051
- const title = `Norn Test Report - ${path12.basename(inputPath)}`;
116307
+ const title = `Norn Test Report - ${path13.basename(inputPath)}`;
116052
116308
  if (result.type === "request") {
116053
116309
  generateHtmlReportFromResponse(
116054
116310
  result.results[0],
116055
- options.request || path12.basename(inputPath),
116311
+ options.request || path13.basename(inputPath),
116056
116312
  { outputPath: htmlOutputPath, redaction, title }
116057
116313
  );
116058
116314
  } else {