@rockcarver/frodo-cli 4.0.0-5 → 4.0.0-6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [4.0.0-5] - 2026-02-06
11
+
10
12
  ## [4.0.0-4] - 2026-02-04
11
13
 
12
14
  ### Changed
@@ -2171,7 +2173,8 @@ Frodo CLI 2.x automatically refreshes session and access tokens before they expi
2171
2173
  - Fixed problem with adding connection profiles
2172
2174
  - Miscellaneous bug fixes
2173
2175
 
2174
- [unreleased]: https://github.com/rockcarver/frodo-cli/compare/v4.0.0-4...HEAD
2176
+ [unreleased]: https://github.com/rockcarver/frodo-cli/compare/v4.0.0-5...HEAD
2177
+ [4.0.0-5]: https://github.com/rockcarver/frodo-cli/compare/v4.0.0-4...v4.0.0-5
2175
2178
  [4.0.0-4]: https://github.com/rockcarver/frodo-cli/compare/v4.0.0-3...v4.0.0-4
2176
2179
  [4.0.0-3]: https://github.com/rockcarver/frodo-cli/compare/v4.0.0-2...v4.0.0-3
2177
2180
  [4.0.0-2]: https://github.com/rockcarver/frodo-cli/compare/v4.0.0-1...v4.0.0-2
package/dist/app.cjs CHANGED
@@ -82690,7 +82690,7 @@ var require_utils7 = __commonJS2({
82690
82690
  var hexTable = (function() {
82691
82691
  var array = [];
82692
82692
  for (var i2 = 0; i2 < 256; ++i2) {
82693
- array.push("%" + ((i2 < 16 ? "0" : "") + i2.toString(16)).toUpperCase());
82693
+ array[array.length] = "%" + ((i2 < 16 ? "0" : "") + i2.toString(16)).toUpperCase();
82694
82694
  }
82695
82695
  return array;
82696
82696
  })();
@@ -82702,7 +82702,7 @@ var require_utils7 = __commonJS2({
82702
82702
  var compacted = [];
82703
82703
  for (var j2 = 0; j2 < obj.length; ++j2) {
82704
82704
  if (typeof obj[j2] !== "undefined") {
82705
- compacted.push(obj[j2]);
82705
+ compacted[compacted.length] = obj[j2];
82706
82706
  }
82707
82707
  }
82708
82708
  item.obj[item.prop] = compacted;
@@ -82724,7 +82724,11 @@ var require_utils7 = __commonJS2({
82724
82724
  }
82725
82725
  if (typeof source !== "object" && typeof source !== "function") {
82726
82726
  if (isArray14(target)) {
82727
- target.push(source);
82727
+ var nextIndex = target.length;
82728
+ if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
82729
+ return markOverflow(arrayToObject2(target.concat(source), options), nextIndex);
82730
+ }
82731
+ target[nextIndex] = source;
82728
82732
  } else if (target && typeof target === "object") {
82729
82733
  if (isOverflow(target)) {
82730
82734
  var newIndex = getMaxIndex(target) + 1;
@@ -82748,7 +82752,11 @@ var require_utils7 = __commonJS2({
82748
82752
  }
82749
82753
  return markOverflow(result, getMaxIndex(source) + 1);
82750
82754
  }
82751
- return [target].concat(source);
82755
+ var combined = [target].concat(source);
82756
+ if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
82757
+ return markOverflow(arrayToObject2(combined, options), combined.length - 1);
82758
+ }
82759
+ return combined;
82752
82760
  }
82753
82761
  var mergeTarget = target;
82754
82762
  if (isArray14(target) && !isArray14(source)) {
@@ -82761,7 +82769,7 @@ var require_utils7 = __commonJS2({
82761
82769
  if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
82762
82770
  target[i2] = merge3(targetItem, item, options);
82763
82771
  } else {
82764
- target.push(item);
82772
+ target[target.length] = item;
82765
82773
  }
82766
82774
  } else {
82767
82775
  target[i2] = item;
@@ -82776,6 +82784,15 @@ var require_utils7 = __commonJS2({
82776
82784
  } else {
82777
82785
  acc[key] = value;
82778
82786
  }
82787
+ if (isOverflow(source) && !isOverflow(acc)) {
82788
+ markOverflow(acc, getMaxIndex(source));
82789
+ }
82790
+ if (isOverflow(acc)) {
82791
+ var keyNum = parseInt(key, 10);
82792
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
82793
+ setMaxIndex(acc, keyNum);
82794
+ }
82795
+ }
82779
82796
  return acc;
82780
82797
  }, mergeTarget);
82781
82798
  };
@@ -82853,8 +82870,8 @@ var require_utils7 = __commonJS2({
82853
82870
  var key = keys13[j2];
82854
82871
  var val = obj[key];
82855
82872
  if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
82856
- queue5.push({ obj, prop: key });
82857
- refs.push(val);
82873
+ queue5[queue5.length] = { obj, prop: key };
82874
+ refs[refs.length] = val;
82858
82875
  }
82859
82876
  }
82860
82877
  }
@@ -82887,7 +82904,7 @@ var require_utils7 = __commonJS2({
82887
82904
  if (isArray14(val)) {
82888
82905
  var mapped = [];
82889
82906
  for (var i2 = 0; i2 < val.length; i2 += 1) {
82890
- mapped.push(fn(val[i2]));
82907
+ mapped[mapped.length] = fn(val[i2]);
82891
82908
  }
82892
82909
  return mapped;
82893
82910
  }
@@ -82903,6 +82920,7 @@ var require_utils7 = __commonJS2({
82903
82920
  isBuffer: isBuffer3,
82904
82921
  isOverflow,
82905
82922
  isRegExp: isRegExp2,
82923
+ markOverflow,
82906
82924
  maybeMap,
82907
82925
  merge: merge2
82908
82926
  };
@@ -83295,6 +83313,12 @@ var require_parse = __commonJS2({
83295
83313
  if (part.indexOf("[]=") > -1) {
83296
83314
  val = isArray14(val) ? [val] : val;
83297
83315
  }
83316
+ if (options.comma && isArray14(val) && val.length > options.arrayLimit) {
83317
+ if (options.throwOnLimitExceeded) {
83318
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
83319
+ }
83320
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects);
83321
+ }
83298
83322
  if (key !== null) {
83299
83323
  var existing = has.call(obj, key);
83300
83324
  if (existing && options.duplicates === "combine") {
@@ -83337,11 +83361,17 @@ var require_parse = __commonJS2({
83337
83361
  var cleanRoot = root4.charAt(0) === "[" && root4.charAt(root4.length - 1) === "]" ? root4.slice(1, -1) : root4;
83338
83362
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
83339
83363
  var index2 = parseInt(decodedRoot, 10);
83364
+ var isValidArrayIndex = !isNaN(index2) && root4 !== decodedRoot && String(index2) === decodedRoot && index2 >= 0 && options.parseArrays;
83340
83365
  if (!options.parseArrays && decodedRoot === "") {
83341
83366
  obj = { 0: leaf };
83342
- } else if (!isNaN(index2) && root4 !== decodedRoot && String(index2) === decodedRoot && index2 >= 0 && (options.parseArrays && index2 <= options.arrayLimit)) {
83367
+ } else if (isValidArrayIndex && index2 < options.arrayLimit) {
83343
83368
  obj = [];
83344
83369
  obj[index2] = leaf;
83370
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) {
83371
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
83372
+ } else if (isValidArrayIndex) {
83373
+ obj[index2] = leaf;
83374
+ utils.markOverflow(obj, index2);
83345
83375
  } else if (decodedRoot !== "__proto__") {
83346
83376
  obj[decodedRoot] = leaf;
83347
83377
  }
@@ -83371,7 +83401,7 @@ var require_parse = __commonJS2({
83371
83401
  return;
83372
83402
  }
83373
83403
  }
83374
- keys13.push(parent);
83404
+ keys13[keys13.length] = parent;
83375
83405
  }
83376
83406
  var i2 = 0;
83377
83407
  while ((segment = child.exec(key)) !== null && i2 < options.depth) {
@@ -83382,13 +83412,13 @@ var require_parse = __commonJS2({
83382
83412
  return;
83383
83413
  }
83384
83414
  }
83385
- keys13.push(segment[1]);
83415
+ keys13[keys13.length] = segment[1];
83386
83416
  }
83387
83417
  if (segment) {
83388
83418
  if (options.strictDepth === true) {
83389
83419
  throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
83390
83420
  }
83391
- keys13.push("[" + key.slice(segment.index) + "]");
83421
+ keys13[keys13.length] = "[" + key.slice(segment.index) + "]";
83392
83422
  }
83393
83423
  return keys13;
83394
83424
  };
@@ -135317,7 +135347,12 @@ var isFormData = (thing) => {
135317
135347
  kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
135318
135348
  };
135319
135349
  var isURLSearchParams = kindOfTest("URLSearchParams");
135320
- var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
135350
+ var [isReadableStream, isRequest, isResponse, isHeaders] = [
135351
+ "ReadableStream",
135352
+ "Request",
135353
+ "Response",
135354
+ "Headers"
135355
+ ].map(kindOfTest);
135321
135356
  var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
135322
135357
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
135323
135358
  if (obj === null || typeof obj === "undefined") {
@@ -135370,6 +135405,9 @@ function merge() {
135370
135405
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
135371
135406
  const result = {};
135372
135407
  const assignValue3 = (val, key) => {
135408
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
135409
+ return;
135410
+ }
135373
135411
  const targetKey = caseless && findKey(result, key) || key;
135374
135412
  if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
135375
135413
  result[targetKey] = merge(result[targetKey], val);
@@ -135387,23 +135425,27 @@ function merge() {
135387
135425
  return result;
135388
135426
  }
135389
135427
  var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
135390
- forEach(b, (val, key) => {
135391
- if (thisArg && isFunction(val)) {
135392
- Object.defineProperty(a, key, {
135393
- value: bind(val, thisArg),
135394
- writable: true,
135395
- enumerable: true,
135396
- configurable: true
135397
- });
135398
- } else {
135399
- Object.defineProperty(a, key, {
135400
- value: val,
135401
- writable: true,
135402
- enumerable: true,
135403
- configurable: true
135404
- });
135405
- }
135406
- }, { allOwnKeys });
135428
+ forEach(
135429
+ b,
135430
+ (val, key) => {
135431
+ if (thisArg && isFunction(val)) {
135432
+ Object.defineProperty(a, key, {
135433
+ value: bind(val, thisArg),
135434
+ writable: true,
135435
+ enumerable: true,
135436
+ configurable: true
135437
+ });
135438
+ } else {
135439
+ Object.defineProperty(a, key, {
135440
+ value: val,
135441
+ writable: true,
135442
+ enumerable: true,
135443
+ configurable: true
135444
+ });
135445
+ }
135446
+ },
135447
+ { allOwnKeys }
135448
+ );
135407
135449
  return a;
135408
135450
  };
135409
135451
  var stripBOM = (content) => {
@@ -135413,7 +135455,10 @@ var stripBOM = (content) => {
135413
135455
  return content;
135414
135456
  };
135415
135457
  var inherits = (constructor, superConstructor, props, descriptors) => {
135416
- constructor.prototype = Object.create(superConstructor.prototype, descriptors);
135458
+ constructor.prototype = Object.create(
135459
+ superConstructor.prototype,
135460
+ descriptors
135461
+ );
135417
135462
  Object.defineProperty(constructor.prototype, "constructor", {
135418
135463
  value: constructor,
135419
135464
  writable: true,
@@ -135490,12 +135535,9 @@ var matchAll = (regExp, str) => {
135490
135535
  };
135491
135536
  var isHTMLForm = kindOfTest("HTMLFormElement");
135492
135537
  var toCamelCase = (str) => {
135493
- return str.toLowerCase().replace(
135494
- /[-_\s]([a-z\d])(\w*)/g,
135495
- function replacer2(m2, p1, p2) {
135496
- return p1.toUpperCase() + p2;
135497
- }
135498
- );
135538
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer2(m2, p1, p2) {
135539
+ return p1.toUpperCase() + p2;
135540
+ });
135499
135541
  };
135500
135542
  var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty9 }) => (obj, prop) => hasOwnProperty9.call(obj, prop))(Object.prototype);
135501
135543
  var isRegExp = kindOfTest("RegExp");
@@ -135579,20 +135621,21 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
135579
135621
  return setImmediate;
135580
135622
  }
135581
135623
  return postMessageSupported ? ((token2, callbacks) => {
135582
- _global.addEventListener("message", ({ source, data: data2 }) => {
135583
- if (source === _global && data2 === token2) {
135584
- callbacks.length && callbacks.shift()();
135585
- }
135586
- }, false);
135624
+ _global.addEventListener(
135625
+ "message",
135626
+ ({ source, data: data2 }) => {
135627
+ if (source === _global && data2 === token2) {
135628
+ callbacks.length && callbacks.shift()();
135629
+ }
135630
+ },
135631
+ false
135632
+ );
135587
135633
  return (cb) => {
135588
135634
  callbacks.push(cb);
135589
135635
  _global.postMessage(token2, "*");
135590
135636
  };
135591
135637
  })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
135592
- })(
135593
- typeof setImmediate === "function",
135594
- isFunction(_global.postMessage)
135595
- );
135638
+ })(typeof setImmediate === "function", isFunction(_global.postMessage));
135596
135639
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
135597
135640
  var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
135598
135641
  var utils_default = {
@@ -135958,7 +136001,8 @@ var InterceptorManager_default = InterceptorManager;
135958
136001
  var transitional_default = {
135959
136002
  silentJSONParsing: true,
135960
136003
  forcedJSONParsing: true,
135961
- clarifyTimeoutError: false
136004
+ clarifyTimeoutError: false,
136005
+ legacyInterceptorReqResOrdering: true
135962
136006
  };
135963
136007
  var URLSearchParams_default = _url2.default.URLSearchParams;
135964
136008
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
@@ -136495,6 +136539,9 @@ function settle(resolve52, reject5, response) {
136495
136539
  }
136496
136540
  }
136497
136541
  function isAbsoluteURL(url4) {
136542
+ if (typeof url4 !== "string") {
136543
+ return false;
136544
+ }
136498
136545
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url4);
136499
136546
  }
136500
136547
  function combineURLs(baseURL, relativeURL) {
@@ -136509,7 +136556,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
136509
136556
  }
136510
136557
  var import_proxy_from_env = __toESM2(require_proxy_from_env(), 1);
136511
136558
  var import_follow_redirects = __toESM2(require_follow_redirects(), 1);
136512
- var VERSION = "1.13.4";
136559
+ var VERSION = "1.13.5";
136513
136560
  function parseProtocol(url4) {
136514
136561
  const match2 = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url4);
136515
136562
  return match2 && match2[1] || "";
@@ -137689,11 +137736,16 @@ function mergeConfig(config1, config22) {
137689
137736
  validateStatus: mergeDirectKeys,
137690
137737
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
137691
137738
  };
137692
- utils_default.forEach(Object.keys({ ...config1, ...config22 }), function computeConfigValue(prop) {
137693
- const merge2 = mergeMap[prop] || mergeDeepProperties;
137694
- const configValue = merge2(config1[prop], config22[prop], prop);
137695
- utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config4[prop] = configValue);
137696
- });
137739
+ utils_default.forEach(
137740
+ Object.keys({ ...config1, ...config22 }),
137741
+ function computeConfigValue(prop) {
137742
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
137743
+ return;
137744
+ const merge2 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
137745
+ const configValue = merge2(config1[prop], config22[prop], prop);
137746
+ utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config4[prop] = configValue);
137747
+ }
137748
+ );
137697
137749
  return config4;
137698
137750
  }
137699
137751
  var resolveConfig_default = (config4) => {
@@ -138146,13 +138198,13 @@ var factory = (env22) => {
138146
138198
  unsubscribe && unsubscribe();
138147
138199
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
138148
138200
  throw Object.assign(
138149
- new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config4, request),
138201
+ new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config4, request, err && err.response),
138150
138202
  {
138151
138203
  cause: err.cause || err
138152
138204
  }
138153
138205
  );
138154
138206
  }
138155
- throw AxiosError_default.from(err, err && err.code, config4, request);
138207
+ throw AxiosError_default.from(err, err && err.code, config4, request, err && err.response);
138156
138208
  }
138157
138209
  };
138158
138210
  };
@@ -138393,7 +138445,8 @@ var Axios = class {
138393
138445
  validator_default.assertOptions(transitional2, {
138394
138446
  silentJSONParsing: validators2.transitional(validators2.boolean),
138395
138447
  forcedJSONParsing: validators2.transitional(validators2.boolean),
138396
- clarifyTimeoutError: validators2.transitional(validators2.boolean)
138448
+ clarifyTimeoutError: validators2.transitional(validators2.boolean),
138449
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
138397
138450
  }, false);
138398
138451
  }
138399
138452
  if (paramsSerializer != null) {
@@ -138437,7 +138490,13 @@ var Axios = class {
138437
138490
  return;
138438
138491
  }
138439
138492
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
138440
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
138493
+ const transitional3 = config4.transitional || transitional_default;
138494
+ const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
138495
+ if (legacyInterceptorReqResOrdering) {
138496
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
138497
+ } else {
138498
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
138499
+ }
138441
138500
  });
138442
138501
  const responseInterceptorChain = [];
138443
138502
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
@@ -139375,7 +139434,7 @@ function stringify(obj) {
139375
139434
  }
139376
139435
  var package_default = {
139377
139436
  name: "@rockcarver/frodo-lib",
139378
- version: "4.0.0-6",
139437
+ version: "4.0.0-7",
139379
139438
  type: "commonjs",
139380
139439
  main: "./dist/index.js",
139381
139440
  module: "./dist/index.mjs",
@@ -139555,8 +139614,8 @@ var State_default = (initialState) => {
139555
139614
  getRealm() {
139556
139615
  return state2.realm || process.env.FRODO_REALM;
139557
139616
  },
139558
- setUseRealmPrefixOnManagedObjects(useRealmPrefixOnManagedObjects) {
139559
- state2.useRealmPrefixOnManagedObjects = useRealmPrefixOnManagedObjects;
139617
+ setUseRealmPrefixOnManagedObjects(useRealmPrefixOnManagedObjects2) {
139618
+ state2.useRealmPrefixOnManagedObjects = useRealmPrefixOnManagedObjects2;
139560
139619
  },
139561
139620
  getUseRealmPrefixOnManagedObjects() {
139562
139621
  return state2.useRealmPrefixOnManagedObjects || false;
@@ -158790,7 +158849,7 @@ function getCurrentRealmManagedUser({
158790
158849
  state: state2
158791
158850
  }) {
158792
158851
  let realmManagedUser = "user";
158793
- if (state2.getDeploymentType() === Constants_default.CLOUD_DEPLOYMENT_TYPE_KEY || state2.getUseRealmPrefixOnManagedObjects() === true) {
158852
+ if (state2.getDeploymentType() === Constants_default.CLOUD_DEPLOYMENT_TYPE_KEY || state2.getUseRealmPrefixOnManagedObjects() === true && getCurrentRealmName(state2) !== "/") {
158794
158853
  realmManagedUser = `${getCurrentRealmName(state2)}_user`;
158795
158854
  debugMessage({
158796
158855
  message: `DeploymentType === cloud or UseRealmPrefixOnManagedObjects is true, returning '${realmManagedUser}'`,
@@ -163842,8 +163901,8 @@ var OrganizationOps_default = (state2) => {
163842
163901
  };
163843
163902
  function getRealmManagedOrganization({ state: state2 }) {
163844
163903
  let realmManagedOrg = "organization";
163845
- if (state2.getDeploymentType() === Constants_default.CLOUD_DEPLOYMENT_TYPE_KEY || state2.getUseRealmPrefixOnManagedObjects() === true) {
163846
- realmManagedOrg = `${state2.getRealm()}_organization`;
163904
+ if (state2.getDeploymentType() === Constants_default.CLOUD_DEPLOYMENT_TYPE_KEY || state2.getUseRealmPrefixOnManagedObjects() === true && getCurrentRealmName(state2) !== "/") {
163905
+ realmManagedOrg = `${getCurrentRealmName(state2)}_organization`;
163847
163906
  debugMessage({
163848
163907
  message: `DeploymentType === cloud or UseRealmPrefixOnManagedObjects is true, returning '${realmManagedOrg}'`,
163849
163908
  state: state2
@@ -170813,7 +170872,7 @@ function createApplicationExportTemplate({
170813
170872
  }
170814
170873
  function getRealmManagedApplication({ state: state2 }) {
170815
170874
  let realmManagedApp = "application";
170816
- if (state2.getDeploymentType() === Constants_default.CLOUD_DEPLOYMENT_TYPE_KEY || state2.getUseRealmPrefixOnManagedObjects() === true) {
170875
+ if (state2.getDeploymentType() === Constants_default.CLOUD_DEPLOYMENT_TYPE_KEY || state2.getUseRealmPrefixOnManagedObjects() === true && getCurrentRealmName(state2) !== "/") {
170817
170876
  realmManagedApp = `${getCurrentRealmName(state2)}_application`;
170818
170877
  debugMessage({
170819
170878
  message: `DeploymentType === cloud or UseRealmPrefixOnManagedObjects is true, returning '${realmManagedApp}'`,
@@ -191389,6 +191448,10 @@ var noCacheOption = new Option(
191389
191448
  "--no-cache",
191390
191449
  "Disable token cache for this operation."
191391
191450
  );
191451
+ var useRealmPrefixOnManagedObjects = new Option(
191452
+ "--use-realm-prefix-on-managed-objects",
191453
+ 'Set to true if you want to use the realm name as a prefix on managed object configuration, e.g. managed/alpha_user, managed/alpha_application or managed/bravo_organization. When false, the default behaviour of using managed/user etc. is retained. This option is ignored when the deployment type is "cloud".'
191454
+ );
191392
191455
  var flushCacheOption = new Option("--flush-cache", "Flush token cache.");
191393
191456
  var retryOption = new Option(
191394
191457
  "--retry <strategy>",
@@ -191420,7 +191483,8 @@ var defaultOpts = [
191420
191483
  curlirizeOption,
191421
191484
  noCacheOption,
191422
191485
  flushCacheOption,
191423
- retryOption
191486
+ retryOption,
191487
+ useRealmPrefixOnManagedObjects
191424
191488
  ];
191425
191489
  var stateMap = {
191426
191490
  [hostArgument.name()]: (host) => state.setHost(host),
@@ -191470,6 +191534,7 @@ var stateMap = {
191470
191534
  [debugOption.attributeName()]: (debug3) => state.setDebug(debug3),
191471
191535
  [curlirizeOption.attributeName()]: (curlirize3) => state.setCurlirize(curlirize3),
191472
191536
  [noCacheOption.attributeName()]: (cache) => state.setUseTokenCache(cache),
191537
+ [useRealmPrefixOnManagedObjects.attributeName()]: () => state.setUseRealmPrefixOnManagedObjects(true),
191473
191538
  [flushCacheOption.attributeName()]: (flush2) => {
191474
191539
  if (flush2) frodo.cache.flush();
191475
191540
  },
@@ -223383,7 +223448,7 @@ var compareVersions = (v12, v2) => {
223383
223448
  // package.json
223384
223449
  var package_default2 = {
223385
223450
  name: "@rockcarver/frodo-cli",
223386
- version: "4.0.0-5",
223451
+ version: "4.0.0-6",
223387
223452
  type: "module",
223388
223453
  description: "A command line interface to manage ForgeRock Identity Cloud tenants, ForgeOps deployments, and classic deployments.",
223389
223454
  keywords: [
@@ -223478,7 +223543,7 @@ var package_default2 = {
223478
223543
  ]
223479
223544
  },
223480
223545
  devDependencies: {
223481
- "@rockcarver/frodo-lib": "4.0.0-6",
223546
+ "@rockcarver/frodo-lib": "4.0.0-7",
223482
223547
  "@types/colors": "^1.2.1",
223483
223548
  "@types/fs-extra": "^11.0.1",
223484
223549
  "@types/jest": "^29.2.3",