@salesforce/core-bundle 7.3.3 → 7.3.9

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/lib/index.js CHANGED
@@ -7826,7 +7826,8 @@ var require_filters = __commonJS({
7826
7826
  { name: "Authorization" },
7827
7827
  // Any json attribute that contains the words "refresh" and "token" will have the attribute/value hidden
7828
7828
  { name: "refresh_token", regex: `refresh[^'"]*token` },
7829
- { name: "clientsecret" }
7829
+ { name: "clientsecret" },
7830
+ { name: "authcode" }
7830
7831
  ];
7831
7832
  var FILTERED_KEYS_FOR_PROCESSING = FILTERED_KEYS.map((key) => ({
7832
7833
  ...key,
@@ -7842,7 +7843,9 @@ var require_filters = __commonJS({
7842
7843
  ]).concat([
7843
7844
  // plus any "generalized" functions that are matching contents regardless of keys
7844
7845
  // use these for secrets with known patterns
7845
- (input) => input.replace(new RegExp(sfdc_1.accessTokenRegex, "g"), "<REDACTED ACCESS TOKEN>").replace(new RegExp(sfdc_1.sfdxAuthUrlRegex, "g"), "<REDACTED AUTH URL TOKEN>")
7846
+ (input) => input.replace(new RegExp(sfdc_1.accessTokenRegex, "g"), "<REDACTED ACCESS TOKEN>").replace(new RegExp(sfdc_1.sfdxAuthUrlRegex, "g"), "<REDACTED AUTH URL TOKEN>"),
7847
+ // conditional replacement for clientId: leave the value if it's the PlatformCLI, otherwise redact it
7848
+ (input) => input.replace(/(['"]client.*Id['"])\s*:\s*(['"][^'"]*['"])/gi, (all, key, value) => value.includes("PlatformCLI") ? `${key}:${value}` : `${key}:"<REDACTED CLIENT ID>"`)
7846
7849
  ]);
7847
7850
  var fullReplacementChain = compose(...replacementFunctions);
7848
7851
  var filterSecrets = (...args) => args.map((arg) => {
@@ -10482,7 +10485,7 @@ var require_semver = __commonJS({
10482
10485
  do {
10483
10486
  const a = this.build[i];
10484
10487
  const b = other.build[i];
10485
- debug("prerelease compare", i, a, b);
10488
+ debug("build compare", i, a, b);
10486
10489
  if (a === void 0 && b === void 0) {
10487
10490
  return 0;
10488
10491
  } else if (b === void 0) {
@@ -10953,654 +10956,38 @@ var require_coerce2 = __commonJS({
10953
10956
  }
10954
10957
  });
10955
10958
 
10956
- // node_modules/yallist/iterator.js
10957
- var require_iterator = __commonJS({
10958
- "node_modules/yallist/iterator.js"(exports2, module2) {
10959
- "use strict";
10960
- module2.exports = function(Yallist) {
10961
- Yallist.prototype[Symbol.iterator] = function* () {
10962
- for (let walker = this.head; walker; walker = walker.next) {
10963
- yield walker.value;
10964
- }
10965
- };
10966
- };
10967
- }
10968
- });
10969
-
10970
- // node_modules/yallist/yallist.js
10971
- var require_yallist = __commonJS({
10972
- "node_modules/yallist/yallist.js"(exports2, module2) {
10973
- "use strict";
10974
- module2.exports = Yallist;
10975
- Yallist.Node = Node;
10976
- Yallist.create = Yallist;
10977
- function Yallist(list) {
10978
- var self2 = this;
10979
- if (!(self2 instanceof Yallist)) {
10980
- self2 = new Yallist();
10981
- }
10982
- self2.tail = null;
10983
- self2.head = null;
10984
- self2.length = 0;
10985
- if (list && typeof list.forEach === "function") {
10986
- list.forEach(function(item) {
10987
- self2.push(item);
10988
- });
10989
- } else if (arguments.length > 0) {
10990
- for (var i = 0, l = arguments.length; i < l; i++) {
10991
- self2.push(arguments[i]);
10992
- }
10993
- }
10994
- return self2;
10995
- }
10996
- Yallist.prototype.removeNode = function(node) {
10997
- if (node.list !== this) {
10998
- throw new Error("removing node which does not belong to this list");
10999
- }
11000
- var next = node.next;
11001
- var prev = node.prev;
11002
- if (next) {
11003
- next.prev = prev;
11004
- }
11005
- if (prev) {
11006
- prev.next = next;
11007
- }
11008
- if (node === this.head) {
11009
- this.head = next;
11010
- }
11011
- if (node === this.tail) {
11012
- this.tail = prev;
11013
- }
11014
- node.list.length--;
11015
- node.next = null;
11016
- node.prev = null;
11017
- node.list = null;
11018
- return next;
11019
- };
11020
- Yallist.prototype.unshiftNode = function(node) {
11021
- if (node === this.head) {
11022
- return;
11023
- }
11024
- if (node.list) {
11025
- node.list.removeNode(node);
11026
- }
11027
- var head = this.head;
11028
- node.list = this;
11029
- node.next = head;
11030
- if (head) {
11031
- head.prev = node;
11032
- }
11033
- this.head = node;
11034
- if (!this.tail) {
11035
- this.tail = node;
11036
- }
11037
- this.length++;
11038
- };
11039
- Yallist.prototype.pushNode = function(node) {
11040
- if (node === this.tail) {
11041
- return;
11042
- }
11043
- if (node.list) {
11044
- node.list.removeNode(node);
11045
- }
11046
- var tail = this.tail;
11047
- node.list = this;
11048
- node.prev = tail;
11049
- if (tail) {
11050
- tail.next = node;
11051
- }
11052
- this.tail = node;
11053
- if (!this.head) {
11054
- this.head = node;
11055
- }
11056
- this.length++;
11057
- };
11058
- Yallist.prototype.push = function() {
11059
- for (var i = 0, l = arguments.length; i < l; i++) {
11060
- push(this, arguments[i]);
11061
- }
11062
- return this.length;
11063
- };
11064
- Yallist.prototype.unshift = function() {
11065
- for (var i = 0, l = arguments.length; i < l; i++) {
11066
- unshift(this, arguments[i]);
11067
- }
11068
- return this.length;
11069
- };
11070
- Yallist.prototype.pop = function() {
11071
- if (!this.tail) {
11072
- return void 0;
11073
- }
11074
- var res = this.tail.value;
11075
- this.tail = this.tail.prev;
11076
- if (this.tail) {
11077
- this.tail.next = null;
11078
- } else {
11079
- this.head = null;
11080
- }
11081
- this.length--;
11082
- return res;
11083
- };
11084
- Yallist.prototype.shift = function() {
11085
- if (!this.head) {
11086
- return void 0;
11087
- }
11088
- var res = this.head.value;
11089
- this.head = this.head.next;
11090
- if (this.head) {
11091
- this.head.prev = null;
11092
- } else {
11093
- this.tail = null;
11094
- }
11095
- this.length--;
11096
- return res;
11097
- };
11098
- Yallist.prototype.forEach = function(fn, thisp) {
11099
- thisp = thisp || this;
11100
- for (var walker = this.head, i = 0; walker !== null; i++) {
11101
- fn.call(thisp, walker.value, i, this);
11102
- walker = walker.next;
11103
- }
11104
- };
11105
- Yallist.prototype.forEachReverse = function(fn, thisp) {
11106
- thisp = thisp || this;
11107
- for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
11108
- fn.call(thisp, walker.value, i, this);
11109
- walker = walker.prev;
11110
- }
11111
- };
11112
- Yallist.prototype.get = function(n) {
11113
- for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
11114
- walker = walker.next;
11115
- }
11116
- if (i === n && walker !== null) {
11117
- return walker.value;
11118
- }
11119
- };
11120
- Yallist.prototype.getReverse = function(n) {
11121
- for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
11122
- walker = walker.prev;
11123
- }
11124
- if (i === n && walker !== null) {
11125
- return walker.value;
11126
- }
11127
- };
11128
- Yallist.prototype.map = function(fn, thisp) {
11129
- thisp = thisp || this;
11130
- var res = new Yallist();
11131
- for (var walker = this.head; walker !== null; ) {
11132
- res.push(fn.call(thisp, walker.value, this));
11133
- walker = walker.next;
11134
- }
11135
- return res;
11136
- };
11137
- Yallist.prototype.mapReverse = function(fn, thisp) {
11138
- thisp = thisp || this;
11139
- var res = new Yallist();
11140
- for (var walker = this.tail; walker !== null; ) {
11141
- res.push(fn.call(thisp, walker.value, this));
11142
- walker = walker.prev;
11143
- }
11144
- return res;
11145
- };
11146
- Yallist.prototype.reduce = function(fn, initial) {
11147
- var acc;
11148
- var walker = this.head;
11149
- if (arguments.length > 1) {
11150
- acc = initial;
11151
- } else if (this.head) {
11152
- walker = this.head.next;
11153
- acc = this.head.value;
11154
- } else {
11155
- throw new TypeError("Reduce of empty list with no initial value");
11156
- }
11157
- for (var i = 0; walker !== null; i++) {
11158
- acc = fn(acc, walker.value, i);
11159
- walker = walker.next;
11160
- }
11161
- return acc;
11162
- };
11163
- Yallist.prototype.reduceReverse = function(fn, initial) {
11164
- var acc;
11165
- var walker = this.tail;
11166
- if (arguments.length > 1) {
11167
- acc = initial;
11168
- } else if (this.tail) {
11169
- walker = this.tail.prev;
11170
- acc = this.tail.value;
11171
- } else {
11172
- throw new TypeError("Reduce of empty list with no initial value");
11173
- }
11174
- for (var i = this.length - 1; walker !== null; i--) {
11175
- acc = fn(acc, walker.value, i);
11176
- walker = walker.prev;
11177
- }
11178
- return acc;
11179
- };
11180
- Yallist.prototype.toArray = function() {
11181
- var arr = new Array(this.length);
11182
- for (var i = 0, walker = this.head; walker !== null; i++) {
11183
- arr[i] = walker.value;
11184
- walker = walker.next;
11185
- }
11186
- return arr;
11187
- };
11188
- Yallist.prototype.toArrayReverse = function() {
11189
- var arr = new Array(this.length);
11190
- for (var i = 0, walker = this.tail; walker !== null; i++) {
11191
- arr[i] = walker.value;
11192
- walker = walker.prev;
11193
- }
11194
- return arr;
11195
- };
11196
- Yallist.prototype.slice = function(from, to) {
11197
- to = to || this.length;
11198
- if (to < 0) {
11199
- to += this.length;
11200
- }
11201
- from = from || 0;
11202
- if (from < 0) {
11203
- from += this.length;
11204
- }
11205
- var ret = new Yallist();
11206
- if (to < from || to < 0) {
11207
- return ret;
11208
- }
11209
- if (from < 0) {
11210
- from = 0;
11211
- }
11212
- if (to > this.length) {
11213
- to = this.length;
11214
- }
11215
- for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
11216
- walker = walker.next;
11217
- }
11218
- for (; walker !== null && i < to; i++, walker = walker.next) {
11219
- ret.push(walker.value);
11220
- }
11221
- return ret;
11222
- };
11223
- Yallist.prototype.sliceReverse = function(from, to) {
11224
- to = to || this.length;
11225
- if (to < 0) {
11226
- to += this.length;
11227
- }
11228
- from = from || 0;
11229
- if (from < 0) {
11230
- from += this.length;
11231
- }
11232
- var ret = new Yallist();
11233
- if (to < from || to < 0) {
11234
- return ret;
11235
- }
11236
- if (from < 0) {
11237
- from = 0;
11238
- }
11239
- if (to > this.length) {
11240
- to = this.length;
11241
- }
11242
- for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
11243
- walker = walker.prev;
11244
- }
11245
- for (; walker !== null && i > from; i--, walker = walker.prev) {
11246
- ret.push(walker.value);
11247
- }
11248
- return ret;
11249
- };
11250
- Yallist.prototype.splice = function(start, deleteCount, ...nodes) {
11251
- if (start > this.length) {
11252
- start = this.length - 1;
11253
- }
11254
- if (start < 0) {
11255
- start = this.length + start;
11256
- }
11257
- for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
11258
- walker = walker.next;
11259
- }
11260
- var ret = [];
11261
- for (var i = 0; walker && i < deleteCount; i++) {
11262
- ret.push(walker.value);
11263
- walker = this.removeNode(walker);
11264
- }
11265
- if (walker === null) {
11266
- walker = this.tail;
11267
- }
11268
- if (walker !== this.head && walker !== this.tail) {
11269
- walker = walker.prev;
11270
- }
11271
- for (var i = 0; i < nodes.length; i++) {
11272
- walker = insert(this, walker, nodes[i]);
11273
- }
11274
- return ret;
11275
- };
11276
- Yallist.prototype.reverse = function() {
11277
- var head = this.head;
11278
- var tail = this.tail;
11279
- for (var walker = head; walker !== null; walker = walker.prev) {
11280
- var p = walker.prev;
11281
- walker.prev = walker.next;
11282
- walker.next = p;
11283
- }
11284
- this.head = tail;
11285
- this.tail = head;
11286
- return this;
11287
- };
11288
- function insert(self2, node, value) {
11289
- var inserted = node === self2.head ? new Node(value, null, node, self2) : new Node(value, node, node.next, self2);
11290
- if (inserted.next === null) {
11291
- self2.tail = inserted;
11292
- }
11293
- if (inserted.prev === null) {
11294
- self2.head = inserted;
11295
- }
11296
- self2.length++;
11297
- return inserted;
11298
- }
11299
- function push(self2, item) {
11300
- self2.tail = new Node(item, self2.tail, null, self2);
11301
- if (!self2.head) {
11302
- self2.head = self2.tail;
11303
- }
11304
- self2.length++;
11305
- }
11306
- function unshift(self2, item) {
11307
- self2.head = new Node(item, null, self2.head, self2);
11308
- if (!self2.tail) {
11309
- self2.tail = self2.head;
11310
- }
11311
- self2.length++;
11312
- }
11313
- function Node(value, prev, next, list) {
11314
- if (!(this instanceof Node)) {
11315
- return new Node(value, prev, next, list);
11316
- }
11317
- this.list = list;
11318
- this.value = value;
11319
- if (prev) {
11320
- prev.next = this;
11321
- this.prev = prev;
11322
- } else {
11323
- this.prev = null;
11324
- }
11325
- if (next) {
11326
- next.prev = this;
11327
- this.next = next;
11328
- } else {
11329
- this.next = null;
11330
- }
11331
- }
11332
- try {
11333
- require_iterator()(Yallist);
11334
- } catch (er) {
11335
- }
11336
- }
11337
- });
11338
-
11339
- // node_modules/lru-cache/index.js
11340
- var require_lru_cache = __commonJS({
11341
- "node_modules/lru-cache/index.js"(exports2, module2) {
11342
- "use strict";
11343
- var Yallist = require_yallist();
11344
- var MAX = Symbol("max");
11345
- var LENGTH = Symbol("length");
11346
- var LENGTH_CALCULATOR = Symbol("lengthCalculator");
11347
- var ALLOW_STALE = Symbol("allowStale");
11348
- var MAX_AGE = Symbol("maxAge");
11349
- var DISPOSE = Symbol("dispose");
11350
- var NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
11351
- var LRU_LIST = Symbol("lruList");
11352
- var CACHE = Symbol("cache");
11353
- var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
11354
- var naiveLength = () => 1;
10959
+ // node_modules/semver/internal/lrucache.js
10960
+ var require_lrucache = __commonJS({
10961
+ "node_modules/semver/internal/lrucache.js"(exports2, module2) {
11355
10962
  var LRUCache = class {
11356
- constructor(options) {
11357
- if (typeof options === "number")
11358
- options = { max: options };
11359
- if (!options)
11360
- options = {};
11361
- if (options.max && (typeof options.max !== "number" || options.max < 0))
11362
- throw new TypeError("max must be a non-negative number");
11363
- const max = this[MAX] = options.max || Infinity;
11364
- const lc = options.length || naiveLength;
11365
- this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
11366
- this[ALLOW_STALE] = options.stale || false;
11367
- if (options.maxAge && typeof options.maxAge !== "number")
11368
- throw new TypeError("maxAge must be a number");
11369
- this[MAX_AGE] = options.maxAge || 0;
11370
- this[DISPOSE] = options.dispose;
11371
- this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
11372
- this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
11373
- this.reset();
11374
- }
11375
- // resize the cache when the max changes.
11376
- set max(mL) {
11377
- if (typeof mL !== "number" || mL < 0)
11378
- throw new TypeError("max must be a non-negative number");
11379
- this[MAX] = mL || Infinity;
11380
- trim(this);
11381
- }
11382
- get max() {
11383
- return this[MAX];
11384
- }
11385
- set allowStale(allowStale) {
11386
- this[ALLOW_STALE] = !!allowStale;
11387
- }
11388
- get allowStale() {
11389
- return this[ALLOW_STALE];
11390
- }
11391
- set maxAge(mA) {
11392
- if (typeof mA !== "number")
11393
- throw new TypeError("maxAge must be a non-negative number");
11394
- this[MAX_AGE] = mA;
11395
- trim(this);
11396
- }
11397
- get maxAge() {
11398
- return this[MAX_AGE];
11399
- }
11400
- // resize the cache when the lengthCalculator changes.
11401
- set lengthCalculator(lC) {
11402
- if (typeof lC !== "function")
11403
- lC = naiveLength;
11404
- if (lC !== this[LENGTH_CALCULATOR]) {
11405
- this[LENGTH_CALCULATOR] = lC;
11406
- this[LENGTH] = 0;
11407
- this[LRU_LIST].forEach((hit) => {
11408
- hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
11409
- this[LENGTH] += hit.length;
11410
- });
11411
- }
11412
- trim(this);
11413
- }
11414
- get lengthCalculator() {
11415
- return this[LENGTH_CALCULATOR];
11416
- }
11417
- get length() {
11418
- return this[LENGTH];
11419
- }
11420
- get itemCount() {
11421
- return this[LRU_LIST].length;
11422
- }
11423
- rforEach(fn, thisp) {
11424
- thisp = thisp || this;
11425
- for (let walker = this[LRU_LIST].tail; walker !== null; ) {
11426
- const prev = walker.prev;
11427
- forEachStep(this, fn, walker, thisp);
11428
- walker = prev;
11429
- }
11430
- }
11431
- forEach(fn, thisp) {
11432
- thisp = thisp || this;
11433
- for (let walker = this[LRU_LIST].head; walker !== null; ) {
11434
- const next = walker.next;
11435
- forEachStep(this, fn, walker, thisp);
11436
- walker = next;
11437
- }
11438
- }
11439
- keys() {
11440
- return this[LRU_LIST].toArray().map((k) => k.key);
11441
- }
11442
- values() {
11443
- return this[LRU_LIST].toArray().map((k) => k.value);
11444
- }
11445
- reset() {
11446
- if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
11447
- this[LRU_LIST].forEach((hit) => this[DISPOSE](hit.key, hit.value));
11448
- }
11449
- this[CACHE] = /* @__PURE__ */ new Map();
11450
- this[LRU_LIST] = new Yallist();
11451
- this[LENGTH] = 0;
11452
- }
11453
- dump() {
11454
- return this[LRU_LIST].map((hit) => isStale(this, hit) ? false : {
11455
- k: hit.key,
11456
- v: hit.value,
11457
- e: hit.now + (hit.maxAge || 0)
11458
- }).toArray().filter((h) => h);
11459
- }
11460
- dumpLru() {
11461
- return this[LRU_LIST];
11462
- }
11463
- set(key, value, maxAge) {
11464
- maxAge = maxAge || this[MAX_AGE];
11465
- if (maxAge && typeof maxAge !== "number")
11466
- throw new TypeError("maxAge must be a number");
11467
- const now = maxAge ? Date.now() : 0;
11468
- const len = this[LENGTH_CALCULATOR](value, key);
11469
- if (this[CACHE].has(key)) {
11470
- if (len > this[MAX]) {
11471
- del(this, this[CACHE].get(key));
11472
- return false;
11473
- }
11474
- const node = this[CACHE].get(key);
11475
- const item = node.value;
11476
- if (this[DISPOSE]) {
11477
- if (!this[NO_DISPOSE_ON_SET])
11478
- this[DISPOSE](key, item.value);
11479
- }
11480
- item.now = now;
11481
- item.maxAge = maxAge;
11482
- item.value = value;
11483
- this[LENGTH] += len - item.length;
11484
- item.length = len;
11485
- this.get(key);
11486
- trim(this);
11487
- return true;
11488
- }
11489
- const hit = new Entry(key, value, len, now, maxAge);
11490
- if (hit.length > this[MAX]) {
11491
- if (this[DISPOSE])
11492
- this[DISPOSE](key, value);
11493
- return false;
11494
- }
11495
- this[LENGTH] += hit.length;
11496
- this[LRU_LIST].unshift(hit);
11497
- this[CACHE].set(key, this[LRU_LIST].head);
11498
- trim(this);
11499
- return true;
11500
- }
11501
- has(key) {
11502
- if (!this[CACHE].has(key))
11503
- return false;
11504
- const hit = this[CACHE].get(key).value;
11505
- return !isStale(this, hit);
10963
+ constructor() {
10964
+ this.max = 1e3;
10965
+ this.map = /* @__PURE__ */ new Map();
11506
10966
  }
11507
10967
  get(key) {
11508
- return get(this, key, true);
11509
- }
11510
- peek(key) {
11511
- return get(this, key, false);
11512
- }
11513
- pop() {
11514
- const node = this[LRU_LIST].tail;
11515
- if (!node)
11516
- return null;
11517
- del(this, node);
11518
- return node.value;
11519
- }
11520
- del(key) {
11521
- del(this, this[CACHE].get(key));
11522
- }
11523
- load(arr) {
11524
- this.reset();
11525
- const now = Date.now();
11526
- for (let l = arr.length - 1; l >= 0; l--) {
11527
- const hit = arr[l];
11528
- const expiresAt = hit.e || 0;
11529
- if (expiresAt === 0)
11530
- this.set(hit.k, hit.v);
11531
- else {
11532
- const maxAge = expiresAt - now;
11533
- if (maxAge > 0) {
11534
- this.set(hit.k, hit.v, maxAge);
11535
- }
11536
- }
10968
+ const value = this.map.get(key);
10969
+ if (value === void 0) {
10970
+ return void 0;
10971
+ } else {
10972
+ this.map.delete(key);
10973
+ this.map.set(key, value);
10974
+ return value;
11537
10975
  }
11538
10976
  }
11539
- prune() {
11540
- this[CACHE].forEach((value, key) => get(this, key, false));
10977
+ delete(key) {
10978
+ return this.map.delete(key);
11541
10979
  }
11542
- };
11543
- var get = (self2, key, doUse) => {
11544
- const node = self2[CACHE].get(key);
11545
- if (node) {
11546
- const hit = node.value;
11547
- if (isStale(self2, hit)) {
11548
- del(self2, node);
11549
- if (!self2[ALLOW_STALE])
11550
- return void 0;
11551
- } else {
11552
- if (doUse) {
11553
- if (self2[UPDATE_AGE_ON_GET])
11554
- node.value.now = Date.now();
11555
- self2[LRU_LIST].unshiftNode(node);
10980
+ set(key, value) {
10981
+ const deleted = this.delete(key);
10982
+ if (!deleted && value !== void 0) {
10983
+ if (this.map.size >= this.max) {
10984
+ const firstKey = this.map.keys().next().value;
10985
+ this.delete(firstKey);
11556
10986
  }
10987
+ this.map.set(key, value);
11557
10988
  }
11558
- return hit.value;
11559
- }
11560
- };
11561
- var isStale = (self2, hit) => {
11562
- if (!hit || !hit.maxAge && !self2[MAX_AGE])
11563
- return false;
11564
- const diff = Date.now() - hit.now;
11565
- return hit.maxAge ? diff > hit.maxAge : self2[MAX_AGE] && diff > self2[MAX_AGE];
11566
- };
11567
- var trim = (self2) => {
11568
- if (self2[LENGTH] > self2[MAX]) {
11569
- for (let walker = self2[LRU_LIST].tail; self2[LENGTH] > self2[MAX] && walker !== null; ) {
11570
- const prev = walker.prev;
11571
- del(self2, walker);
11572
- walker = prev;
11573
- }
11574
- }
11575
- };
11576
- var del = (self2, node) => {
11577
- if (node) {
11578
- const hit = node.value;
11579
- if (self2[DISPOSE])
11580
- self2[DISPOSE](hit.key, hit.value);
11581
- self2[LENGTH] -= hit.length;
11582
- self2[CACHE].delete(hit.key);
11583
- self2[LRU_LIST].removeNode(node);
11584
- }
11585
- };
11586
- var Entry = class {
11587
- constructor(key, value, length, now, maxAge) {
11588
- this.key = key;
11589
- this.value = value;
11590
- this.length = length;
11591
- this.now = now;
11592
- this.maxAge = maxAge || 0;
11593
- }
11594
- };
11595
- var forEachStep = (self2, fn, node, thisp) => {
11596
- let hit = node.value;
11597
- if (isStale(self2, hit)) {
11598
- del(self2, node);
11599
- if (!self2[ALLOW_STALE])
11600
- hit = void 0;
10989
+ return this;
11601
10990
  }
11602
- if (hit)
11603
- fn.call(thisp, hit.value, hit.key, self2);
11604
10991
  };
11605
10992
  module2.exports = LRUCache;
11606
10993
  }
@@ -11731,8 +11118,8 @@ var require_range = __commonJS({
11731
11118
  }
11732
11119
  };
11733
11120
  module2.exports = Range;
11734
- var LRU = require_lru_cache();
11735
- var cache = new LRU({ max: 1e3 });
11121
+ var LRU = require_lrucache();
11122
+ var cache = new LRU();
11736
11123
  var parseOptions = require_parse_options();
11737
11124
  var Comparator = require_comparator();
11738
11125
  var debug = require_debug();
@@ -11910,7 +11297,7 @@ var require_range = __commonJS({
11910
11297
  debug("replaceGTE0", comp, options);
11911
11298
  return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
11912
11299
  };
11913
- var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) => {
11300
+ var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
11914
11301
  if (isX(fM)) {
11915
11302
  from = "";
11916
11303
  } else if (isX(fm)) {
@@ -12636,7 +12023,7 @@ var require_package2 = __commonJS({
12636
12023
  "package.json"(exports2, module2) {
12637
12024
  module2.exports = {
12638
12025
  name: "@salesforce/core-bundle",
12639
- version: "7.3.3",
12026
+ version: "7.3.9",
12640
12027
  description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
12641
12028
  main: "lib/index",
12642
12029
  types: "lib/index.d.ts",
@@ -12674,9 +12061,9 @@ var require_package2 = __commonJS({
12674
12061
  dependencies: {
12675
12062
  "@jsforce/jsforce-node": "^3.2.0",
12676
12063
  "@salesforce/kit": "^3.1.1",
12677
- "@salesforce/schemas": "^1.7.0",
12064
+ "@salesforce/schemas": "^1.9.0",
12678
12065
  "@salesforce/ts-types": "^2.0.9",
12679
- ajv: "^8.12.0",
12066
+ ajv: "^8.13.0",
12680
12067
  "change-case": "^4.1.2",
12681
12068
  faye: "^1.4.0",
12682
12069
  "form-data": "^4.0.0",
@@ -12687,7 +12074,7 @@ var require_package2 = __commonJS({
12687
12074
  "pino-abstract-transport": "^1.1.0",
12688
12075
  "pino-pretty": "^10.3.1",
12689
12076
  "proper-lockfile": "^4.1.2",
12690
- semver: "^7.6.0",
12077
+ semver: "^7.6.2",
12691
12078
  "ts-retry-promise": "^0.7.1"
12692
12079
  },
12693
12080
  devDependencies: {
@@ -86038,7 +85425,7 @@ var require_scope = __commonJS({
86038
85425
  (function(UsedValueState2) {
86039
85426
  UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
86040
85427
  UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
86041
- })(UsedValueState = exports2.UsedValueState || (exports2.UsedValueState = {}));
85428
+ })(UsedValueState || (exports2.UsedValueState = UsedValueState = {}));
86042
85429
  exports2.varKinds = {
86043
85430
  const: new code_1.Name("const"),
86044
85431
  let: new code_1.Name("let"),
@@ -87032,7 +86419,7 @@ var require_util2 = __commonJS({
87032
86419
  (function(Type2) {
87033
86420
  Type2[Type2["Num"] = 0] = "Num";
87034
86421
  Type2[Type2["Str"] = 1] = "Str";
87035
- })(Type = exports2.Type || (exports2.Type = {}));
86422
+ })(Type || (exports2.Type = Type = {}));
87036
86423
  function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
87037
86424
  if (dataProp instanceof codegen_1.Name) {
87038
86425
  const isNumber = dataPropType === Type.Num;
@@ -87062,16 +86449,22 @@ var require_names = __commonJS({
87062
86449
  var names = {
87063
86450
  // validation function arguments
87064
86451
  data: new codegen_1.Name("data"),
86452
+ // data passed to validation function
87065
86453
  // args passed from referencing schema
87066
86454
  valCxt: new codegen_1.Name("valCxt"),
86455
+ // validation/data context - should not be used directly, it is destructured to the names below
87067
86456
  instancePath: new codegen_1.Name("instancePath"),
87068
86457
  parentData: new codegen_1.Name("parentData"),
87069
86458
  parentDataProperty: new codegen_1.Name("parentDataProperty"),
87070
86459
  rootData: new codegen_1.Name("rootData"),
86460
+ // root data - same as the data passed to the first/top validation function
87071
86461
  dynamicAnchors: new codegen_1.Name("dynamicAnchors"),
86462
+ // used to support recursiveRef and dynamicRef
87072
86463
  // function scoped variables
87073
86464
  vErrors: new codegen_1.Name("vErrors"),
86465
+ // null or array of validation errors
87074
86466
  errors: new codegen_1.Name("errors"),
86467
+ // counter of validation errors
87075
86468
  this: new codegen_1.Name("this"),
87076
86469
  // "globals"
87077
86470
  self: new codegen_1.Name("self"),
@@ -87159,6 +86552,7 @@ var require_errors4 = __commonJS({
87159
86552
  var E = {
87160
86553
  keyword: new codegen_1.Name("keyword"),
87161
86554
  schemaPath: new codegen_1.Name("schemaPath"),
86555
+ // also used in JTD errors
87162
86556
  params: new codegen_1.Name("params"),
87163
86557
  propertyName: new codegen_1.Name("propertyName"),
87164
86558
  message: new codegen_1.Name("message"),
@@ -87327,7 +86721,7 @@ var require_dataType = __commonJS({
87327
86721
  (function(DataType2) {
87328
86722
  DataType2[DataType2["Correct"] = 0] = "Correct";
87329
86723
  DataType2[DataType2["Wrong"] = 1] = "Wrong";
87330
- })(DataType = exports2.DataType || (exports2.DataType = {}));
86724
+ })(DataType || (exports2.DataType = DataType = {}));
87331
86725
  function getSchemaTypes(schema) {
87332
86726
  const types = getJSONTypes(schema.type);
87333
86727
  const hasNull = types.includes("null");
@@ -88108,15 +87502,15 @@ var require_resolve = __commonJS({
88108
87502
  if (parentJsonPtr === void 0)
88109
87503
  return;
88110
87504
  const fullPath = pathPrefix + jsonPtr;
88111
- let baseId2 = baseIds[parentJsonPtr];
87505
+ let innerBaseId = baseIds[parentJsonPtr];
88112
87506
  if (typeof sch[schemaId] == "string")
88113
- baseId2 = addRef.call(this, sch[schemaId]);
87507
+ innerBaseId = addRef.call(this, sch[schemaId]);
88114
87508
  addAnchor.call(this, sch.$anchor);
88115
87509
  addAnchor.call(this, sch.$dynamicAnchor);
88116
- baseIds[jsonPtr] = baseId2;
87510
+ baseIds[jsonPtr] = innerBaseId;
88117
87511
  function addRef(ref) {
88118
87512
  const _resolve = this.opts.uriResolver.resolve;
88119
- ref = normalizeId(baseId2 ? _resolve(baseId2, ref) : ref);
87513
+ ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref);
88120
87514
  if (schemaRefs.has(ref))
88121
87515
  throw ambiguos(ref);
88122
87516
  schemaRefs.add(ref);
@@ -88754,6 +88148,7 @@ var require_compile = __commonJS({
88754
88148
  parentDataProperty: names_1.default.parentDataProperty,
88755
88149
  dataNames: [names_1.default.data],
88756
88150
  dataPathArr: [codegen_1.nil],
88151
+ // TODO can its length be used as dataLevel if nil is removed?
88757
88152
  dataLevel: 0,
88758
88153
  dataTypes: [],
88759
88154
  definedProperties: /* @__PURE__ */ new Set(),
@@ -90464,9 +89859,9 @@ var require_core2 = __commonJS({
90464
89859
  }
90465
89860
  }
90466
89861
  };
90467
- exports2.default = Ajv;
90468
89862
  Ajv.ValidationError = validation_error_1.default;
90469
89863
  Ajv.MissingRefError = ref_error_1.default;
89864
+ exports2.default = Ajv;
90470
89865
  function checkOptions(checkOpts, options, msg, log = "error") {
90471
89866
  for (const key in checkOpts) {
90472
89867
  const opt = key;
@@ -92290,7 +91685,7 @@ var require_types3 = __commonJS({
92290
91685
  (function(DiscrError2) {
92291
91686
  DiscrError2["Tag"] = "tag";
92292
91687
  DiscrError2["Mapping"] = "mapping";
92293
- })(DiscrError = exports2.DiscrError || (exports2.DiscrError = {}));
91688
+ })(DiscrError || (exports2.DiscrError = DiscrError = {}));
92294
91689
  }
92295
91690
  });
92296
91691
 
@@ -92557,7 +91952,7 @@ var require_ajv = __commonJS({
92557
91952
  "node_modules/ajv/dist/ajv.js"(exports2, module2) {
92558
91953
  "use strict";
92559
91954
  Object.defineProperty(exports2, "__esModule", { value: true });
92560
- exports2.MissingRefError = exports2.ValidationError = exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = void 0;
91955
+ exports2.MissingRefError = exports2.ValidationError = exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = exports2.Ajv = void 0;
92561
91956
  var core_1 = require_core2();
92562
91957
  var draft7_1 = require_draft7();
92563
91958
  var discriminator_1 = require_discriminator();
@@ -92583,7 +91978,9 @@ var require_ajv = __commonJS({
92583
91978
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
92584
91979
  }
92585
91980
  };
91981
+ exports2.Ajv = Ajv;
92586
91982
  module2.exports = exports2 = Ajv;
91983
+ module2.exports.Ajv = Ajv;
92587
91984
  Object.defineProperty(exports2, "__esModule", { value: true });
92588
91985
  exports2.default = Ajv;
92589
91986
  var validate_1 = require_validate();
@@ -92849,390 +92246,141 @@ __export(sfdx_project_schema_exports, {
92849
92246
  title: () => title,
92850
92247
  type: () => type
92851
92248
  });
92852
- var $schema, $id, title, description, type, additionalProperties, required, properties, definitions, sfdx_project_schema_default;
92249
+ var $id, $schema, additionalProperties, definitions, description, properties, required, title, type, sfdx_project_schema_default;
92853
92250
  var init_sfdx_project_schema = __esm({
92854
92251
  "node_modules/@salesforce/schemas/sfdx-project.schema.json"() {
92855
- $schema = "http://json-schema.org/draft-07/schema#";
92856
92252
  $id = "http://schemas.salesforce.com/sfdx-project.json";
92857
- title = "Salesforce DX Project File";
92858
- description = "The properties and shape of the SFDX project";
92859
- type = "object";
92253
+ $schema = "http://json-schema.org/draft-07/schema#";
92860
92254
  additionalProperties = false;
92861
- required = [
92862
- "packageDirectories"
92863
- ];
92864
- properties = {
92865
- packageDirectories: {
92866
- title: "Package Directories",
92867
- type: "array",
92868
- description: "Package directories indicate which directories to target when syncing source to and from the scratch org. These directories can contain source from your managed package, unmanaged package, or unpackaged source, for example, ant tool or change set.",
92869
- $comment: "The properties ancestorId & ancestorVersion cannot be included together, but this schema optimizes for VS Code code completion rather than pure validation.",
92870
- minItems: 1,
92871
- items: {
92872
- type: "object",
92873
- dependencies: {
92874
- ancestorId: [
92875
- "package",
92876
- "versionNumber"
92877
- ],
92878
- ancestorVersion: [
92879
- "package",
92880
- "versionNumber"
92881
- ],
92882
- apexTestAccess: [
92883
- "package",
92884
- "versionNumber"
92885
- ],
92886
- packageMetadataAccess: [
92887
- "package",
92888
- "versionNumber"
92889
- ],
92890
- definitionFile: [
92891
- "package",
92892
- "versionNumber"
92893
- ],
92894
- dependencies: [
92895
- "package",
92896
- "versionNumber"
92897
- ],
92898
- functions: [
92899
- "package",
92900
- "versionNumber"
92901
- ],
92902
- package: [
92903
- "versionNumber"
92904
- ],
92905
- postInstallScript: [
92906
- "package",
92907
- "versionNumber"
92908
- ],
92909
- postInstallUrl: [
92910
- "package",
92911
- "versionNumber"
92912
- ],
92913
- releaseNotesUrl: [
92914
- "package",
92915
- "versionNumber"
92916
- ],
92917
- seedMetadata: [
92918
- "package",
92919
- "versionNumber"
92920
- ],
92921
- uninstallScript: [
92922
- "package",
92923
- "versionNumber"
92924
- ],
92925
- unpackagedMetadata: [
92926
- "package",
92927
- "versionNumber"
92928
- ],
92929
- versionDescription: [
92930
- "package",
92931
- "versionNumber"
92932
- ],
92933
- versionName: [
92934
- "package",
92935
- "versionNumber"
92936
- ],
92937
- versionNumber: [
92938
- "package"
92939
- ]
92940
- },
92941
- required: [
92942
- "path"
92943
- ],
92944
- additionalProperties: false,
92945
- properties: {
92946
- ancestorId: {
92947
- $ref: "#/definitions/packageDirectory.ancestorId"
92948
- },
92949
- ancestorVersion: {
92950
- $ref: "#/definitions/packageDirectory.ancestorVersion"
92951
- },
92952
- apexTestAccess: {
92953
- $ref: "#/definitions/packageDirectory.apexTestAccess"
92954
- },
92955
- packageMetadataAccess: {
92956
- $ref: "#/definitions/packageDirectory.packageMetadataAccess"
92957
- },
92958
- default: {
92959
- $ref: "#/definitions/packageDirectory.default"
92960
- },
92961
- definitionFile: {
92962
- $ref: "#/definitions/packageDirectory.definitionFile"
92963
- },
92964
- dependencies: {
92965
- $ref: "#/definitions/packageDirectory.dependencies"
92966
- },
92967
- functions: {
92968
- $ref: "#/definitions/packageDirectory.functions"
92969
- },
92970
- includeProfileUserLicenses: {
92971
- $ref: "#/definitions/packageDirectory.includeProfileUserLicenses"
92972
- },
92973
- package: {
92974
- $ref: "#/definitions/packageDirectory.package"
92975
- },
92976
- path: {
92977
- $ref: "#/definitions/packageDirectory.path"
92978
- },
92979
- postInstallScript: {
92980
- $ref: "#/definitions/packageDirectory.postInstallScript"
92981
- },
92982
- postInstallUrl: {
92983
- $ref: "#/definitions/packageDirectory.postInstallUrl"
92984
- },
92985
- releaseNotesUrl: {
92986
- $ref: "#/definitions/packageDirectory.releaseNotesUrl"
92987
- },
92988
- scopeProfiles: {
92989
- $ref: "#/definitions/packageDirectory.scopeProfiles"
92990
- },
92991
- seedMetadata: {
92992
- $ref: "#/definitions/packageDirectory.seedMetadata"
92993
- },
92994
- uninstallScript: {
92995
- $ref: "#/definitions/packageDirectory.uninstallScript"
92996
- },
92997
- unpackagedMetadata: {
92998
- $ref: "#/definitions/packageDirectory.unpackagedMetadata"
92999
- },
93000
- versionDescription: {
93001
- $ref: "#/definitions/packageDirectory.versionDescription"
92255
+ definitions = {
92256
+ MetadataRegistry: {
92257
+ additionalProperties: false,
92258
+ properties: {
92259
+ childTypes: {
92260
+ additionalProperties: {
92261
+ type: "string"
93002
92262
  },
93003
- versionName: {
93004
- $ref: "#/definitions/packageDirectory.versionName"
92263
+ type: "object"
92264
+ },
92265
+ strictDirectoryNames: {
92266
+ additionalProperties: {
92267
+ type: "string"
93005
92268
  },
93006
- versionNumber: {
93007
- $ref: "#/definitions/packageDirectory.versionNumber"
92269
+ type: "object"
92270
+ },
92271
+ suffixes: {
92272
+ additionalProperties: {
92273
+ type: "string"
93008
92274
  },
93009
- branch: {
93010
- $ref: "#/definitions/packageDirectory.branch"
93011
- }
93012
- }
93013
- }
93014
- },
93015
- name: {
93016
- title: "name",
93017
- type: "string",
93018
- description: "The name of your Salesforce project."
93019
- },
93020
- namespace: {
93021
- title: "Namespace",
93022
- type: "string",
93023
- description: "A namespace is an alphanumeric identifier that distinguishes your package and its contents from other packages in your customer\u2019s org. For steps on how to register a namespace and link it to your Dev Hub org, see Create and Register Your Namespace for Second-Generation Managed Packages on developer.salesforce.com. If you\u2019re creating an unlocked package, you can create it without a namespace."
93024
- },
93025
- sourceApiVersion: {
93026
- title: "Source API Version",
93027
- type: "string",
93028
- description: "The API version that the source is compatible with. By default it matches the API version.",
93029
- default: "48.0"
93030
- },
93031
- sfdcLoginUrl: {
93032
- title: "SFDC Login URL",
93033
- type: "string",
93034
- description: "The login URL that the force:auth commands use. If not specified, the default is login.salesforce.com. Override the default value if you want users to authorize to a specific Salesforce instance. For example, if you want to authorize into a sandbox org, set this parameter to test.salesforce.com.",
93035
- default: "https://login.salesforce.com"
93036
- },
93037
- signupTargetLoginUrl: {
93038
- type: "string",
93039
- description: "The url that is used when creating new scratch orgs. This is typically only used for testing prerelease environments."
93040
- },
93041
- oauthLocalPort: {
93042
- type: "number",
93043
- description: "By default, the OAuth port is 1717. However, change this port if this port is already in use, and you plan to create a connected app in your Dev Hub org to support JWT-based authorization."
93044
- },
93045
- plugins: {
93046
- title: "CLI Plugins custom settings",
93047
- type: "object",
93048
- description: "Salesforce CLI plugin configurations used with this project.",
93049
- additionalProperties: true
93050
- },
93051
- packageAliases: {
93052
- title: "Aliases for packaging ids",
93053
- type: "object",
93054
- description: "The Salesforce CLI updates this file with the aliases when you create a package or package version. You can also manually update this section for existing packages or package versions. You can use the alias instead of the cryptic package ID when running CLI force:package commands.",
93055
- patternProperties: {
93056
- "^[ -~]+$": {
93057
- type: "string",
93058
- pattern: "^(0Ho|033|05i|04t)([a-zA-Z0-9]{15}|[a-zA-Z0-9]{12})$"
93059
- }
93060
- }
93061
- },
93062
- registryCustomizations: {
93063
- type: "object",
93064
- properties: {
92275
+ type: "object"
92276
+ },
93065
92277
  types: {
93066
- type: "object",
93067
92278
  additionalProperties: {
93068
- type: "object",
92279
+ additionalProperties: false,
93069
92280
  properties: {
93070
- id: {
92281
+ aliasFor: {
93071
92282
  type: "string"
93072
92283
  },
93073
- name: {
93074
- type: "string"
92284
+ children: {
92285
+ additionalProperties: false,
92286
+ properties: {
92287
+ directories: {
92288
+ additionalProperties: {
92289
+ type: "string"
92290
+ },
92291
+ type: "object"
92292
+ },
92293
+ suffixes: {
92294
+ additionalProperties: {
92295
+ type: "string"
92296
+ },
92297
+ type: "object"
92298
+ },
92299
+ types: {
92300
+ $ref: "#/definitions/alias-147831185-257-1138-147831185-0-1202"
92301
+ }
92302
+ },
92303
+ required: [
92304
+ "types",
92305
+ "suffixes"
92306
+ ],
92307
+ type: "object"
93075
92308
  },
93076
92309
  directoryName: {
93077
92310
  type: "string"
93078
92311
  },
93079
- suffix: {
93080
- type: "string"
93081
- },
93082
- strictDirectoryName: {
93083
- type: "boolean"
93084
- },
93085
- ignoreParsedFullName: {
93086
- type: "boolean"
93087
- },
93088
92312
  folderContentType: {
93089
92313
  type: "string"
93090
92314
  },
93091
92315
  folderType: {
93092
92316
  type: "string"
93093
92317
  },
93094
- xmlElementName: {
93095
- type: "string"
93096
- },
93097
- uniqueIdElement: {
92318
+ id: {
93098
92319
  type: "string"
93099
92320
  },
93100
- isAddressable: {
93101
- type: "boolean"
93102
- },
93103
- unaddressableWithoutParent: {
93104
- type: "boolean"
93105
- },
93106
- supportsWildcardAndName: {
92321
+ ignoreParsedFullName: {
93107
92322
  type: "boolean"
93108
92323
  },
93109
- supportsPartialDelete: {
92324
+ isAddressable: {
93110
92325
  type: "boolean"
93111
92326
  },
93112
- aliasFor: {
92327
+ name: {
93113
92328
  type: "string"
93114
92329
  },
93115
- children: {
93116
- type: "object",
93117
- additionalProperties: {
93118
- type: "object",
93119
- properties: {
93120
- id: {
93121
- type: "string"
93122
- },
93123
- name: {
93124
- type: "string"
93125
- },
93126
- directoryName: {
93127
- type: "string"
93128
- },
93129
- suffix: {
93130
- type: "string"
93131
- },
93132
- strictDirectoryName: {
93133
- type: "boolean"
93134
- },
93135
- ignoreParsedFullName: {
93136
- type: "boolean"
93137
- },
93138
- folderContentType: {
93139
- type: "string"
93140
- },
93141
- folderType: {
93142
- type: "string"
93143
- },
93144
- xmlElementName: {
93145
- type: "string"
93146
- },
93147
- uniqueIdElement: {
93148
- type: "string"
93149
- },
93150
- isAddressable: {
93151
- type: "boolean"
93152
- },
93153
- unaddressableWithoutParent: {
93154
- type: "boolean"
93155
- },
93156
- supportsWildcardAndName: {
93157
- type: "boolean"
93158
- },
93159
- supportsPartialDelete: {
93160
- type: "boolean"
93161
- },
93162
- aliasFor: {
93163
- type: "string"
93164
- },
93165
- strategies: {
93166
- type: "object",
93167
- properties: {
93168
- adapter: {
93169
- type: "string",
93170
- enum: [
93171
- "mixedContent",
93172
- "matchingContentFile",
93173
- "decomposed",
93174
- "bundle",
93175
- "default"
93176
- ]
93177
- },
93178
- transformer: {
93179
- type: "string",
93180
- enum: [
93181
- "decomposed",
93182
- "staticResource",
93183
- "standard"
93184
- ]
93185
- },
93186
- decomposition: {
93187
- type: "string",
93188
- enum: [
93189
- "topLevel",
93190
- "folderPerType"
93191
- ]
93192
- }
93193
- },
93194
- required: [
93195
- "adapter"
93196
- ],
93197
- additionalProperties: false
93198
- }
93199
- },
93200
- additionalProperties: true
93201
- }
93202
- },
93203
92330
  strategies: {
93204
- type: "object",
92331
+ additionalProperties: false,
93205
92332
  properties: {
93206
92333
  adapter: {
93207
- type: "string",
93208
92334
  enum: [
93209
92335
  "mixedContent",
93210
92336
  "matchingContentFile",
93211
92337
  "decomposed",
93212
92338
  "bundle",
93213
92339
  "default"
93214
- ]
92340
+ ],
92341
+ type: "string"
92342
+ },
92343
+ decomposition: {
92344
+ enum: [
92345
+ "topLevel",
92346
+ "folderPerType"
92347
+ ],
92348
+ type: "string"
93215
92349
  },
93216
92350
  transformer: {
93217
- type: "string",
93218
92351
  enum: [
93219
92352
  "decomposed",
93220
92353
  "staticResource",
93221
92354
  "standard"
93222
- ]
93223
- },
93224
- decomposition: {
93225
- type: "string",
93226
- enum: [
93227
- "topLevel",
93228
- "folderPerType"
93229
- ]
92355
+ ],
92356
+ type: "string"
93230
92357
  }
93231
92358
  },
93232
92359
  required: [
93233
92360
  "adapter"
93234
92361
  ],
93235
- additionalProperties: false
92362
+ type: "object"
92363
+ },
92364
+ strictDirectoryName: {
92365
+ type: "boolean"
92366
+ },
92367
+ suffix: {
92368
+ type: "string"
92369
+ },
92370
+ supportsPartialDelete: {
92371
+ type: "boolean"
92372
+ },
92373
+ supportsWildcardAndName: {
92374
+ type: "boolean"
92375
+ },
92376
+ unaddressableWithoutParent: {
92377
+ type: "boolean"
92378
+ },
92379
+ uniqueIdElement: {
92380
+ type: "string"
92381
+ },
92382
+ xmlElementName: {
92383
+ type: "string"
93236
92384
  }
93237
92385
  },
93238
92386
  required: [
@@ -93240,26 +92388,9 @@ var init_sfdx_project_schema = __esm({
93240
92388
  "name",
93241
92389
  "directoryName"
93242
92390
  ],
93243
- additionalProperties: false
93244
- }
93245
- },
93246
- suffixes: {
93247
- type: "object",
93248
- additionalProperties: {
93249
- type: "string"
93250
- }
93251
- },
93252
- strictDirectoryNames: {
93253
- type: "object",
93254
- additionalProperties: {
93255
- type: "string"
93256
- }
93257
- },
93258
- childTypes: {
93259
- type: "object",
93260
- additionalProperties: {
93261
- type: "string"
93262
- }
92391
+ type: "object"
92392
+ },
92393
+ type: "object"
93263
92394
  }
93264
92395
  },
93265
92396
  required: [
@@ -93268,628 +92399,824 @@ var init_sfdx_project_schema = __esm({
93268
92399
  "strictDirectoryNames",
93269
92400
  "childTypes"
93270
92401
  ],
93271
- additionalProperties: false,
93272
- title: "Fully customizable controls over how metadata types are decomposed",
93273
- description: "Gives full control to the user to specify everything they can for controlling metadata type's decomposition"
92402
+ type: "object"
93274
92403
  },
93275
- registryPresets: {
93276
- title: "Custom predefined presets for decomposing metadata types",
93277
- description: "filenames from https://github.com/forcedotcom/source-deploy-retrieve/tree/main/src/registry/presets ",
93278
- type: "array",
93279
- items: {
93280
- type: "string"
93281
- }
92404
+ PackageDir: {
92405
+ anyOf: [
92406
+ {
92407
+ additionalProperties: false,
92408
+ description: "type required just for projects, regardless of 1gp/2gp package use",
92409
+ properties: {
92410
+ default: {
92411
+ default: true,
92412
+ description: "If you have specified more than one path, include this parameter for the default path to indicate which is the default package directory.",
92413
+ title: "default",
92414
+ type: "boolean"
92415
+ },
92416
+ path: {
92417
+ description: "If you don\u2019t specify a path, the Salesforce CLI uses a placeholder when you create a package.",
92418
+ title: "Path",
92419
+ type: "string"
92420
+ }
92421
+ },
92422
+ required: [
92423
+ "path"
92424
+ ],
92425
+ type: "object"
92426
+ },
92427
+ {
92428
+ $ref: "#/definitions/PackagePackageDir"
92429
+ }
92430
+ ]
93282
92431
  },
93283
- replacements: {
93284
- title: "Replacements for metadata that are executed during deployments",
93285
- type: "array",
93286
- description: "The Salesforce CLI will conditionally replace portions of your metadata during a deployment",
93287
- items: {
93288
- anyOf: [
93289
- {
93290
- type: "object",
93291
- additionalProperties: false,
93292
- properties: {
93293
- replaceWithFile: {
93294
- type: "string"
93295
- },
93296
- stringToReplace: {
93297
- type: "string"
93298
- },
93299
- filename: {
93300
- type: "string"
93301
- },
93302
- replaceWhenEnv: {
93303
- type: "array",
93304
- items: {
93305
- type: "object",
93306
- properties: {
93307
- env: {
93308
- type: "string"
93309
- },
93310
- value: {
93311
- type: "string"
93312
- }
92432
+ PackageDirDependency: {
92433
+ additionalProperties: {},
92434
+ description: "from packaging library. Where does this go? export type PackageDescriptorJson = Partial<NamedPackageDir> & Partial<{ - id: string; - features: string[]; - orgPreferences: string[]; - snapshot: string; apexTestAccess: { permissionSets: string[] | string; permissionSetLicenses: string[] | string }; - permissionSetNames: string[]; - permissionSetLicenseDeveloperNames: string[]; - branch: string; subscriberPackageVersionId: string; packageId: string; versionName: string; language?: string; }>;",
92435
+ properties: {
92436
+ branch: {
92437
+ type: "string"
92438
+ },
92439
+ package: {
92440
+ type: "string"
92441
+ },
92442
+ versionNumber: {
92443
+ type: "string"
92444
+ }
92445
+ },
92446
+ required: [
92447
+ "package"
92448
+ ],
92449
+ type: "object"
92450
+ },
92451
+ PackagePackageDir: {
92452
+ additionalProperties: false,
92453
+ description: 'has the "full" info used for packaging.',
92454
+ properties: {
92455
+ ancestorId: {
92456
+ description: "The ancestor that\u2019s the immediate parent of the version that you\u2019re creating. The package version ID to supply starts with '05i'.",
92457
+ title: "Ancestor ID",
92458
+ type: "string"
92459
+ },
92460
+ ancestorVersion: {
92461
+ description: "The ancestor that\u2019s the immediate parent of the version that you\u2019re creating. The ancestor version uses the format major.minor.patch.build.",
92462
+ title: "Ancestor Version",
92463
+ type: "string"
92464
+ },
92465
+ apexTestAccess: {
92466
+ additionalProperties: false,
92467
+ description: "Additional access that should be granted to the user when running package Apex tests",
92468
+ properties: {
92469
+ permissionSetLicenses: {
92470
+ anyOf: [
92471
+ {
92472
+ items: {
92473
+ type: "string"
93313
92474
  },
93314
- required: [
93315
- "env",
93316
- "value"
93317
- ],
93318
- additionalProperties: false
92475
+ type: "array"
92476
+ },
92477
+ {
92478
+ type: "string"
93319
92479
  }
93320
- }
92480
+ ],
92481
+ description: "The list of permission sets licenses to enable while running Apex tests",
92482
+ title: "Permission Set Licenses"
93321
92483
  },
93322
- required: [
93323
- "filename",
93324
- "replaceWithFile",
93325
- "stringToReplace"
93326
- ]
93327
- },
93328
- {
93329
- type: "object",
93330
- additionalProperties: false,
93331
- properties: {
93332
- replaceWithEnv: {
93333
- type: "string"
93334
- },
93335
- allowUnsetEnvVariable: {
93336
- type: "boolean"
93337
- },
93338
- stringToReplace: {
93339
- type: "string"
93340
- },
93341
- filename: {
93342
- type: "string"
93343
- },
93344
- replaceWhenEnv: {
93345
- type: "array",
93346
- items: {
93347
- type: "object",
93348
- properties: {
93349
- env: {
93350
- type: "string"
93351
- },
93352
- value: {
93353
- type: "string"
93354
- }
92484
+ permissionSets: {
92485
+ anyOf: [
92486
+ {
92487
+ items: {
92488
+ type: "string"
93355
92489
  },
93356
- required: [
93357
- "env",
93358
- "value"
93359
- ],
93360
- additionalProperties: false
92490
+ type: "array"
92491
+ },
92492
+ {
92493
+ type: "string"
93361
92494
  }
93362
- }
93363
- },
93364
- required: [
93365
- "filename",
93366
- "replaceWithEnv",
93367
- "stringToReplace"
93368
- ]
92495
+ ],
92496
+ description: "The list of permission sets to enable while running Apex tests",
92497
+ title: "Permission Sets"
92498
+ }
93369
92499
  },
93370
- {
93371
- type: "object",
93372
- additionalProperties: false,
93373
- properties: {
93374
- replaceWithFile: {
93375
- type: "string"
93376
- },
93377
- regexToReplace: {
93378
- type: "string"
93379
- },
93380
- filename: {
93381
- type: "string"
93382
- },
93383
- replaceWhenEnv: {
93384
- type: "array",
93385
- items: {
93386
- type: "object",
93387
- properties: {
93388
- env: {
93389
- type: "string"
93390
- },
93391
- value: {
93392
- type: "string"
93393
- }
92500
+ required: [
92501
+ "permissionSets",
92502
+ "permissionSetLicenses"
92503
+ ],
92504
+ type: "object"
92505
+ },
92506
+ default: {
92507
+ default: true,
92508
+ description: "If you have specified more than one path, include this parameter for the default path to indicate which is the default package directory.",
92509
+ title: "default",
92510
+ type: "boolean"
92511
+ },
92512
+ definitionFile: {
92513
+ description: "Reference an external .json file to specify the features and org preferences required for the metadata of your package, such as the scratch org definition.",
92514
+ title: "Definition File",
92515
+ type: "string"
92516
+ },
92517
+ dependencies: {
92518
+ description: "To specify dependencies for 2GP within the same Dev Hub, use either the package version alias or a combination of the package name and the version number.",
92519
+ items: {
92520
+ $ref: "#/definitions/PackageDirDependency"
92521
+ },
92522
+ type: "array"
92523
+ },
92524
+ functions: {
92525
+ deprecated: true,
92526
+ items: {
92527
+ type: "string"
92528
+ },
92529
+ type: "array"
92530
+ },
92531
+ includeProfileUserLicenses: {
92532
+ default: false,
92533
+ description: "Whether to include <userLicense> elements in profile metadata. Defaults to false.",
92534
+ title: "Include Profile User Licenses",
92535
+ type: "boolean"
92536
+ },
92537
+ package: {
92538
+ description: "The package name you specified when creating the package.",
92539
+ title: "Package Identifier",
92540
+ type: "string"
92541
+ },
92542
+ packageMetadataAccess: {
92543
+ additionalProperties: false,
92544
+ description: "Additional access that should be granted to the user while deploying package metadata, available in Salesforce API version 61.0 and above",
92545
+ properties: {
92546
+ permissionSetLicenses: {
92547
+ anyOf: [
92548
+ {
92549
+ type: "string"
92550
+ },
92551
+ {
92552
+ items: {
92553
+ type: "string"
93394
92554
  },
93395
- required: [
93396
- "env",
93397
- "value"
93398
- ],
93399
- additionalProperties: false
92555
+ type: "array"
93400
92556
  }
93401
- }
92557
+ ],
92558
+ description: "The list of permission set licenses to enable while deploying package metadata",
92559
+ title: "Permission Set Licenses"
93402
92560
  },
93403
- required: [
93404
- "filename",
93405
- "regexToReplace",
93406
- "replaceWithFile"
93407
- ]
93408
- },
93409
- {
93410
- type: "object",
93411
- additionalProperties: false,
93412
- properties: {
93413
- replaceWithEnv: {
93414
- type: "string"
93415
- },
93416
- allowUnsetEnvVariable: {
93417
- type: "boolean"
93418
- },
93419
- regexToReplace: {
93420
- type: "string"
93421
- },
93422
- filename: {
93423
- type: "string"
93424
- },
93425
- replaceWhenEnv: {
93426
- type: "array",
93427
- items: {
93428
- type: "object",
93429
- properties: {
93430
- env: {
93431
- type: "string"
93432
- },
93433
- value: {
93434
- type: "string"
93435
- }
92561
+ permissionSets: {
92562
+ anyOf: [
92563
+ {
92564
+ type: "string"
92565
+ },
92566
+ {
92567
+ items: {
92568
+ type: "string"
93436
92569
  },
93437
- required: [
93438
- "env",
93439
- "value"
93440
- ],
93441
- additionalProperties: false
92570
+ type: "array"
93442
92571
  }
93443
- }
93444
- },
93445
- required: [
93446
- "filename",
93447
- "regexToReplace",
93448
- "replaceWithEnv"
93449
- ]
92572
+ ],
92573
+ description: "The list of permission sets to enable while deploying package metadata",
92574
+ title: "Permission Sets"
92575
+ }
93450
92576
  },
93451
- {
93452
- type: "object",
93453
- additionalProperties: false,
93454
- properties: {
93455
- replaceWithFile: {
93456
- type: "string"
93457
- },
93458
- stringToReplace: {
93459
- type: "string"
92577
+ required: [
92578
+ "permissionSets",
92579
+ "permissionSetLicenses"
92580
+ ],
92581
+ title: "Package Metadata Access",
92582
+ type: "object"
92583
+ },
92584
+ path: {
92585
+ description: "If you don\u2019t specify a path, the Salesforce CLI uses a placeholder when you create a package.",
92586
+ title: "Path",
92587
+ type: "string"
92588
+ },
92589
+ postInstallScript: {
92590
+ description: "The post install script.",
92591
+ title: "Post Install Script",
92592
+ type: "string"
92593
+ },
92594
+ postInstallUrl: {
92595
+ description: "The post install url.",
92596
+ title: "Post Install Url",
92597
+ type: "string"
92598
+ },
92599
+ releaseNotesUrl: {
92600
+ description: "The release notes url.",
92601
+ title: "Release Notes Url",
92602
+ type: "string"
92603
+ },
92604
+ scopeProfiles: {
92605
+ default: false,
92606
+ description: "Determines whether to include profile settings from only the directory being packaged (true), or whether to include profile settings from all package directories (false). If not specified, the default is false.",
92607
+ title: "Scope Profiles",
92608
+ type: "boolean"
92609
+ },
92610
+ seedMetadata: {
92611
+ additionalProperties: false,
92612
+ description: "Metadata not meant to be packaged, but deployed before deploying packaged metadata",
92613
+ properties: {
92614
+ path: {
92615
+ description: "The path name of the package directory containing the seed metadata",
92616
+ title: "Path",
92617
+ type: "string"
92618
+ }
92619
+ },
92620
+ required: [
92621
+ "path"
92622
+ ],
92623
+ title: "Seed Metadata",
92624
+ type: "object"
92625
+ },
92626
+ uninstallScript: {
92627
+ description: "The uninstall script.",
92628
+ title: "Uninstall Script",
92629
+ type: "string"
92630
+ },
92631
+ unpackagedMetadata: {
92632
+ additionalProperties: false,
92633
+ description: "Metadata not meant to be packaged, but deployed when testing packaged metadata",
92634
+ properties: {
92635
+ path: {
92636
+ description: "The path name of the package directory containing the unpackaged metadata",
92637
+ title: "Path",
92638
+ type: "string"
92639
+ }
92640
+ },
92641
+ required: [
92642
+ "path"
92643
+ ],
92644
+ title: "Unpackaged Metadata",
92645
+ type: "object"
92646
+ },
92647
+ versionDescription: {
92648
+ description: "Human readable version information, format not specified.",
92649
+ title: "Version Description",
92650
+ type: "string"
92651
+ },
92652
+ versionName: {
92653
+ description: "If not specified, the CLI uses versionNumber as the version name.",
92654
+ title: "Version Name",
92655
+ type: "string"
92656
+ },
92657
+ versionNumber: {
92658
+ description: "Version numbers are formatted as major.minor.patch.build. For example, 1.2.1.8.",
92659
+ title: "Version Number",
92660
+ type: "string"
92661
+ }
92662
+ },
92663
+ required: [
92664
+ "package",
92665
+ "path",
92666
+ "versionNumber"
92667
+ ],
92668
+ type: "object"
92669
+ },
92670
+ RegistryPresets: {
92671
+ items: {
92672
+ type: "string"
92673
+ },
92674
+ type: "array"
92675
+ },
92676
+ Replacements: {
92677
+ anyOf: [
92678
+ {
92679
+ additionalProperties: false,
92680
+ properties: {
92681
+ filename: {
92682
+ type: "string"
92683
+ },
92684
+ replaceWhenEnv: {
92685
+ items: {
92686
+ additionalProperties: false,
92687
+ properties: {
92688
+ env: {
92689
+ type: "string"
92690
+ },
92691
+ value: {
92692
+ type: "string"
92693
+ }
92694
+ },
92695
+ required: [
92696
+ "env",
92697
+ "value"
92698
+ ],
92699
+ type: "object"
93460
92700
  },
93461
- glob: {
93462
- type: "string"
92701
+ type: "array"
92702
+ },
92703
+ replaceWithFile: {
92704
+ type: "string"
92705
+ },
92706
+ stringToReplace: {
92707
+ type: "string"
92708
+ }
92709
+ },
92710
+ required: [
92711
+ "filename",
92712
+ "replaceWithFile",
92713
+ "stringToReplace"
92714
+ ],
92715
+ type: "object"
92716
+ },
92717
+ {
92718
+ additionalProperties: false,
92719
+ properties: {
92720
+ allowUnsetEnvVariable: {
92721
+ type: "boolean"
92722
+ },
92723
+ filename: {
92724
+ type: "string"
92725
+ },
92726
+ replaceWhenEnv: {
92727
+ items: {
92728
+ additionalProperties: false,
92729
+ properties: {
92730
+ env: {
92731
+ type: "string"
92732
+ },
92733
+ value: {
92734
+ type: "string"
92735
+ }
92736
+ },
92737
+ required: [
92738
+ "env",
92739
+ "value"
92740
+ ],
92741
+ type: "object"
93463
92742
  },
93464
- replaceWhenEnv: {
93465
- type: "array",
93466
- items: {
93467
- type: "object",
93468
- properties: {
93469
- env: {
93470
- type: "string"
93471
- },
93472
- value: {
93473
- type: "string"
93474
- }
92743
+ type: "array"
92744
+ },
92745
+ replaceWithEnv: {
92746
+ type: "string"
92747
+ },
92748
+ stringToReplace: {
92749
+ type: "string"
92750
+ }
92751
+ },
92752
+ required: [
92753
+ "filename",
92754
+ "replaceWithEnv",
92755
+ "stringToReplace"
92756
+ ],
92757
+ type: "object"
92758
+ },
92759
+ {
92760
+ additionalProperties: false,
92761
+ properties: {
92762
+ filename: {
92763
+ type: "string"
92764
+ },
92765
+ regexToReplace: {
92766
+ type: "string"
92767
+ },
92768
+ replaceWhenEnv: {
92769
+ items: {
92770
+ additionalProperties: false,
92771
+ properties: {
92772
+ env: {
92773
+ type: "string"
93475
92774
  },
93476
- required: [
93477
- "env",
93478
- "value"
93479
- ],
93480
- additionalProperties: false
93481
- }
93482
- }
92775
+ value: {
92776
+ type: "string"
92777
+ }
92778
+ },
92779
+ required: [
92780
+ "env",
92781
+ "value"
92782
+ ],
92783
+ type: "object"
92784
+ },
92785
+ type: "array"
93483
92786
  },
93484
- required: [
93485
- "glob",
93486
- "replaceWithFile",
93487
- "stringToReplace"
93488
- ]
92787
+ replaceWithFile: {
92788
+ type: "string"
92789
+ }
93489
92790
  },
93490
- {
93491
- type: "object",
93492
- additionalProperties: false,
93493
- properties: {
93494
- replaceWithEnv: {
93495
- type: "string"
92791
+ required: [
92792
+ "filename",
92793
+ "regexToReplace",
92794
+ "replaceWithFile"
92795
+ ],
92796
+ type: "object"
92797
+ },
92798
+ {
92799
+ additionalProperties: false,
92800
+ properties: {
92801
+ allowUnsetEnvVariable: {
92802
+ type: "boolean"
92803
+ },
92804
+ filename: {
92805
+ type: "string"
92806
+ },
92807
+ regexToReplace: {
92808
+ type: "string"
92809
+ },
92810
+ replaceWhenEnv: {
92811
+ items: {
92812
+ additionalProperties: false,
92813
+ properties: {
92814
+ env: {
92815
+ type: "string"
92816
+ },
92817
+ value: {
92818
+ type: "string"
92819
+ }
92820
+ },
92821
+ required: [
92822
+ "env",
92823
+ "value"
92824
+ ],
92825
+ type: "object"
93496
92826
  },
93497
- allowUnsetEnvVariable: {
93498
- type: "boolean"
92827
+ type: "array"
92828
+ },
92829
+ replaceWithEnv: {
92830
+ type: "string"
92831
+ }
92832
+ },
92833
+ required: [
92834
+ "filename",
92835
+ "regexToReplace",
92836
+ "replaceWithEnv"
92837
+ ],
92838
+ type: "object"
92839
+ },
92840
+ {
92841
+ additionalProperties: false,
92842
+ properties: {
92843
+ glob: {
92844
+ type: "string"
92845
+ },
92846
+ replaceWhenEnv: {
92847
+ items: {
92848
+ additionalProperties: false,
92849
+ properties: {
92850
+ env: {
92851
+ type: "string"
92852
+ },
92853
+ value: {
92854
+ type: "string"
92855
+ }
92856
+ },
92857
+ required: [
92858
+ "env",
92859
+ "value"
92860
+ ],
92861
+ type: "object"
93499
92862
  },
93500
- stringToReplace: {
93501
- type: "string"
92863
+ type: "array"
92864
+ },
92865
+ replaceWithFile: {
92866
+ type: "string"
92867
+ },
92868
+ stringToReplace: {
92869
+ type: "string"
92870
+ }
92871
+ },
92872
+ required: [
92873
+ "glob",
92874
+ "replaceWithFile",
92875
+ "stringToReplace"
92876
+ ],
92877
+ type: "object"
92878
+ },
92879
+ {
92880
+ additionalProperties: false,
92881
+ properties: {
92882
+ allowUnsetEnvVariable: {
92883
+ type: "boolean"
92884
+ },
92885
+ glob: {
92886
+ type: "string"
92887
+ },
92888
+ replaceWhenEnv: {
92889
+ items: {
92890
+ additionalProperties: false,
92891
+ properties: {
92892
+ env: {
92893
+ type: "string"
92894
+ },
92895
+ value: {
92896
+ type: "string"
92897
+ }
92898
+ },
92899
+ required: [
92900
+ "env",
92901
+ "value"
92902
+ ],
92903
+ type: "object"
93502
92904
  },
93503
- glob: {
93504
- type: "string"
92905
+ type: "array"
92906
+ },
92907
+ replaceWithEnv: {
92908
+ type: "string"
92909
+ },
92910
+ stringToReplace: {
92911
+ type: "string"
92912
+ }
92913
+ },
92914
+ required: [
92915
+ "glob",
92916
+ "replaceWithEnv",
92917
+ "stringToReplace"
92918
+ ],
92919
+ type: "object"
92920
+ },
92921
+ {
92922
+ additionalProperties: false,
92923
+ properties: {
92924
+ glob: {
92925
+ type: "string"
92926
+ },
92927
+ regexToReplace: {
92928
+ type: "string"
92929
+ },
92930
+ replaceWhenEnv: {
92931
+ items: {
92932
+ additionalProperties: false,
92933
+ properties: {
92934
+ env: {
92935
+ type: "string"
92936
+ },
92937
+ value: {
92938
+ type: "string"
92939
+ }
92940
+ },
92941
+ required: [
92942
+ "env",
92943
+ "value"
92944
+ ],
92945
+ type: "object"
93505
92946
  },
93506
- replaceWhenEnv: {
93507
- type: "array",
93508
- items: {
93509
- type: "object",
93510
- properties: {
93511
- env: {
93512
- type: "string"
93513
- },
93514
- value: {
93515
- type: "string"
93516
- }
92947
+ type: "array"
92948
+ },
92949
+ replaceWithFile: {
92950
+ type: "string"
92951
+ }
92952
+ },
92953
+ required: [
92954
+ "glob",
92955
+ "regexToReplace",
92956
+ "replaceWithFile"
92957
+ ],
92958
+ type: "object"
92959
+ },
92960
+ {
92961
+ additionalProperties: false,
92962
+ properties: {
92963
+ allowUnsetEnvVariable: {
92964
+ type: "boolean"
92965
+ },
92966
+ glob: {
92967
+ type: "string"
92968
+ },
92969
+ regexToReplace: {
92970
+ type: "string"
92971
+ },
92972
+ replaceWhenEnv: {
92973
+ items: {
92974
+ additionalProperties: false,
92975
+ properties: {
92976
+ env: {
92977
+ type: "string"
93517
92978
  },
93518
- required: [
93519
- "env",
93520
- "value"
93521
- ],
93522
- additionalProperties: false
93523
- }
93524
- }
92979
+ value: {
92980
+ type: "string"
92981
+ }
92982
+ },
92983
+ required: [
92984
+ "env",
92985
+ "value"
92986
+ ],
92987
+ type: "object"
92988
+ },
92989
+ type: "array"
93525
92990
  },
93526
- required: [
93527
- "glob",
93528
- "replaceWithEnv",
93529
- "stringToReplace"
93530
- ]
92991
+ replaceWithEnv: {
92992
+ type: "string"
92993
+ }
93531
92994
  },
93532
- {
93533
- type: "object",
92995
+ required: [
92996
+ "glob",
92997
+ "regexToReplace",
92998
+ "replaceWithEnv"
92999
+ ],
93000
+ type: "object"
93001
+ }
93002
+ ]
93003
+ },
93004
+ "alias-147831185-257-1138-147831185-0-1202": {
93005
+ additionalProperties: {
93006
+ additionalProperties: false,
93007
+ properties: {
93008
+ aliasFor: {
93009
+ type: "string"
93010
+ },
93011
+ children: {
93534
93012
  additionalProperties: false,
93535
93013
  properties: {
93536
- replaceWithFile: {
93537
- type: "string"
93538
- },
93539
- regexToReplace: {
93540
- type: "string"
93014
+ directories: {
93015
+ additionalProperties: {
93016
+ type: "string"
93017
+ },
93018
+ type: "object"
93541
93019
  },
93542
- glob: {
93543
- type: "string"
93020
+ suffixes: {
93021
+ additionalProperties: {
93022
+ type: "string"
93023
+ },
93024
+ type: "object"
93544
93025
  },
93545
- replaceWhenEnv: {
93546
- type: "array",
93547
- items: {
93548
- type: "object",
93549
- properties: {
93550
- env: {
93551
- type: "string"
93552
- },
93553
- value: {
93554
- type: "string"
93555
- }
93556
- },
93557
- required: [
93558
- "env",
93559
- "value"
93560
- ],
93561
- additionalProperties: false
93562
- }
93026
+ types: {
93027
+ $ref: "#/definitions/alias-147831185-257-1138-147831185-0-1202"
93563
93028
  }
93564
93029
  },
93565
93030
  required: [
93566
- "glob",
93567
- "regexToReplace",
93568
- "replaceWithFile"
93569
- ]
93031
+ "types",
93032
+ "suffixes"
93033
+ ],
93034
+ type: "object"
93570
93035
  },
93571
- {
93572
- type: "object",
93036
+ directoryName: {
93037
+ type: "string"
93038
+ },
93039
+ folderContentType: {
93040
+ type: "string"
93041
+ },
93042
+ folderType: {
93043
+ type: "string"
93044
+ },
93045
+ id: {
93046
+ type: "string"
93047
+ },
93048
+ ignoreParsedFullName: {
93049
+ type: "boolean"
93050
+ },
93051
+ isAddressable: {
93052
+ type: "boolean"
93053
+ },
93054
+ name: {
93055
+ type: "string"
93056
+ },
93057
+ strategies: {
93573
93058
  additionalProperties: false,
93574
93059
  properties: {
93575
- replaceWithEnv: {
93060
+ adapter: {
93061
+ enum: [
93062
+ "mixedContent",
93063
+ "matchingContentFile",
93064
+ "decomposed",
93065
+ "bundle",
93066
+ "default"
93067
+ ],
93576
93068
  type: "string"
93577
93069
  },
93578
- allowUnsetEnvVariable: {
93579
- type: "boolean"
93580
- },
93581
- regexToReplace: {
93070
+ decomposition: {
93071
+ enum: [
93072
+ "topLevel",
93073
+ "folderPerType"
93074
+ ],
93582
93075
  type: "string"
93583
93076
  },
93584
- glob: {
93077
+ transformer: {
93078
+ enum: [
93079
+ "decomposed",
93080
+ "staticResource",
93081
+ "standard"
93082
+ ],
93585
93083
  type: "string"
93586
- },
93587
- replaceWhenEnv: {
93588
- type: "array",
93589
- items: {
93590
- type: "object",
93591
- properties: {
93592
- env: {
93593
- type: "string"
93594
- },
93595
- value: {
93596
- type: "string"
93597
- }
93598
- },
93599
- required: [
93600
- "env",
93601
- "value"
93602
- ],
93603
- additionalProperties: false
93604
- }
93605
93084
  }
93606
93085
  },
93607
93086
  required: [
93608
- "glob",
93609
- "regexToReplace",
93610
- "replaceWithEnv"
93611
- ]
93612
- }
93613
- ]
93614
- }
93615
- }
93616
- };
93617
- definitions = {
93618
- "packageDirectory.path": {
93619
- title: "Path",
93620
- type: "string",
93621
- description: "If you don\u2019t specify a path, the Salesforce CLI uses a placeholder when you create a package."
93622
- },
93623
- "packageDirectory.default": {
93624
- title: "Default",
93625
- type: "boolean",
93626
- description: "If you have specified more than one path, include this parameter for the default path to indicate which is the default package directory.",
93627
- default: true
93628
- },
93629
- "packageDirectory.package": {
93630
- title: "Package Identifier",
93631
- type: "string",
93632
- description: "The package name you specified when creating the package."
93633
- },
93634
- "packageDirectory.versionName": {
93635
- title: "Version Name",
93636
- type: "string",
93637
- description: "If not specified, the CLI uses versionNumber as the version name."
93638
- },
93639
- "packageDirectory.versionDescription": {
93640
- title: "Version Description",
93641
- type: "string",
93642
- description: "Human readable version information, format not specified."
93643
- },
93644
- "packageDirectory.versionNumber": {
93645
- title: "Version Number",
93646
- type: "string",
93647
- description: "Version numbers are formatted as major.minor.patch.build. For example, 1.2.1.8."
93648
- },
93649
- "packageDirectory.definitionFile": {
93650
- title: "Definition File",
93651
- type: "string",
93652
- description: "Reference an external .json file to specify the features and org preferences required for the metadata of your package, such as the scratch org definition."
93653
- },
93654
- "packageDirectory.dependencies": {
93655
- type: "array",
93656
- description: "To specify dependencies for 2GP within the same Dev Hub, use either the package version alias or a combination of the package name and the version number.",
93657
- items: {
93658
- type: "object",
93659
- required: [
93660
- "package"
93661
- ],
93662
- properties: {
93663
- package: {
93087
+ "adapter"
93088
+ ],
93089
+ type: "object"
93090
+ },
93091
+ strictDirectoryName: {
93092
+ type: "boolean"
93093
+ },
93094
+ suffix: {
93664
93095
  type: "string"
93665
93096
  },
93666
- versionNumber: {
93097
+ supportsPartialDelete: {
93098
+ type: "boolean"
93099
+ },
93100
+ supportsWildcardAndName: {
93101
+ type: "boolean"
93102
+ },
93103
+ unaddressableWithoutParent: {
93104
+ type: "boolean"
93105
+ },
93106
+ uniqueIdElement: {
93667
93107
  type: "string"
93668
93108
  },
93669
- branch: {
93109
+ xmlElementName: {
93670
93110
  type: "string"
93671
93111
  }
93672
- }
93673
- }
93674
- },
93675
- "packageDirectory.functions": {
93676
- title: "Functions To Package",
93677
- type: "array",
93678
- description: "Relative path to function directories to be packaged.",
93679
- items: {
93680
- type: "string"
93681
- }
93112
+ },
93113
+ required: [
93114
+ "id",
93115
+ "name",
93116
+ "directoryName"
93117
+ ],
93118
+ type: "object"
93119
+ },
93120
+ type: "object"
93121
+ }
93122
+ };
93123
+ description = "The properties and shape of the SFDX project";
93124
+ properties = {
93125
+ name: {
93126
+ description: "The name of your Salesforce project.",
93127
+ title: "name",
93128
+ type: "string"
93682
93129
  },
93683
- "packageDirectory.ancestorId": {
93684
- title: "Ancestor ID",
93685
- type: "string",
93686
- description: "The ancestor that\u2019s the immediate parent of the version that you\u2019re creating. The package version ID to supply starts with '05i'."
93687
- },
93688
- "packageDirectory.ancestorVersion": {
93689
- title: "Ancestor Version",
93690
- type: "string",
93691
- description: "The ancestor that\u2019s the immediate parent of the version that you\u2019re creating. The ancestor version uses the format major.minor.patch.build."
93692
- },
93693
- "packageDirectory.releaseNotesUrl": {
93694
- type: "string",
93695
- title: "Release Notes Url",
93696
- description: "The release notes url."
93697
- },
93698
- "packageDirectory.postInstallUrl": {
93699
- type: "string",
93700
- title: "Post Install Url",
93701
- description: "The post install url."
93702
- },
93703
- "packageDirectory.postInstallScript": {
93704
- type: "string",
93705
- title: "Post Install Script",
93706
- description: "The post install script."
93707
- },
93708
- "packageDirectory.scopeProfiles": {
93709
- type: "boolean",
93710
- title: "Scope Profiles",
93711
- description: "Determines whether to include profile settings from only the directory being packaged (true), or whether to include profile settings from all package directories (false). If not specified, the default is false.",
93712
- default: false
93713
- },
93714
- "packageDirectory.seedMetadata": {
93715
- type: "object",
93716
- title: "Seed Metadata",
93717
- description: "Metadata not meant to be packaged, but deployed before deploying packaged metadata",
93718
- required: [
93719
- "path"
93720
- ],
93721
- properties: {
93722
- path: {
93723
- type: "string",
93724
- title: "Path",
93725
- description: "The path name of the package directory containing the seed metadata"
93726
- }
93727
- }
93130
+ namespace: {
93131
+ description: "A namespace is an alphanumeric identifier that distinguishes your package and its contents from other packages in your customer\u2019s org. For steps on how to register a namespace and link it to your Dev Hub org, see Create and Register Your Namespace for Second-Generation Managed Packages on developer.salesforce.com. If you\u2019re creating an unlocked package, you can create it without a namespace.",
93132
+ title: "Namespace",
93133
+ type: "string"
93728
93134
  },
93729
- "packageDirectory.uninstallScript": {
93730
- type: "string",
93731
- title: "Uninstall Script",
93732
- description: "The uninstall script."
93135
+ oauthLocalPort: {
93136
+ default: 1717,
93137
+ description: "By default, the OAuth port is 1717. However, change this port if this port is already in use, and you plan to create a connected app in your Dev Hub org to support JWT-based authorization.",
93138
+ type: "number"
93733
93139
  },
93734
- "packageDirectory.unpackagedMetadata": {
93735
- type: "object",
93736
- title: "Unpackaged Metadata",
93737
- description: "Metadata not meant to be packaged, but deployed when testing packaged metadata",
93738
- required: [
93739
- "path"
93740
- ],
93741
- properties: {
93742
- path: {
93743
- type: "string",
93744
- title: "Path",
93745
- description: "The path name of the package directory containing the unpackaged metadata"
93746
- }
93747
- }
93140
+ packageAliases: {
93141
+ additionalProperties: {
93142
+ type: "string"
93143
+ },
93144
+ description: "The Salesforce CLI updates this file with the aliases when you create a package or package version. You can also manually update this section for existing packages or package versions. You can use the alias instead of the cryptic package ID when running CLI force:package commands.",
93145
+ title: "Aliases for packaging ids",
93146
+ type: "object"
93748
93147
  },
93749
- "packageDirectory.includeProfileUserLicenses": {
93750
- type: "boolean",
93751
- title: "Include Profile User Licenses",
93752
- description: "Whether to include <userLicense> elements in profile metadata. Defaults to false.",
93753
- default: false
93148
+ packageDirectories: {
93149
+ $comment: "The properties ancestorId & ancestorVersion cannot be included together, but this schema optimizes for VS Code code completion rather than pure validation.",
93150
+ description: "Package directories indicate which directories to target when syncing source to and from the scratch org. These directories can contain source from your managed package, unmanaged package, or unpackaged source, for example, ant tool or change set.",
93151
+ items: {
93152
+ $ref: "#/definitions/PackageDir"
93153
+ },
93154
+ minItems: 1,
93155
+ title: "Package Directories",
93156
+ type: "array"
93754
93157
  },
93755
- "packageDirectory.apexTestAccess": {
93756
- type: "object",
93757
- title: "Apex Test Access",
93758
- description: "Additional access that should be granted to the user when running package Apex tests",
93759
- properties: {
93760
- permissionSets: {
93761
- title: "Permission Sets",
93762
- description: "The list of permission sets to enable while running Apex tests",
93763
- oneOf: [
93764
- {
93765
- type: "string",
93766
- title: "Permission Set String",
93767
- description: "The list of permission sets to enable while running Apex tests as a string"
93768
- },
93769
- {
93770
- type: "array",
93771
- title: "Permission Set Array",
93772
- description: "The list of permission sets to enable while running Apex tests as an array",
93773
- items: {
93774
- type: "string",
93775
- title: "Permission Set Name",
93776
- description: "Name of the permission set to enable while running Apex tests"
93777
- }
93778
- }
93779
- ]
93780
- },
93781
- permissionSetLicenses: {
93782
- title: "Permission Set License",
93783
- description: "The list of permission sets licenses to enable while running Apex tests",
93784
- oneOf: [
93785
- {
93786
- type: "string",
93787
- title: "Permission Set Licenses String",
93788
- description: "The list of permission set licenses to enable while running Apex tests as a string"
93789
- },
93790
- {
93791
- type: "array",
93792
- title: "Permission Set Licenses Array",
93793
- description: "The list of permission set licenses to enable while running Apex tests as an array",
93794
- items: {
93795
- type: "string",
93796
- title: "Permission Set Licenses Developer Name",
93797
- description: "Name of the permission set to enable while running Apex tests"
93798
- }
93799
- }
93800
- ]
93801
- }
93802
- }
93158
+ plugins: {
93159
+ additionalProperties: {},
93160
+ description: "Salesforce CLI plugin configurations used with this project.",
93161
+ title: "CLI Plugins custom settings",
93162
+ type: "object"
93803
93163
  },
93804
- "packageDirectory.packageMetadataAccess": {
93805
- type: "object",
93806
- title: "Package Metadata Access",
93807
- description: "Additional access that should be granted to the user while deploying package metadata, available in Salesforce API version 61.0 and above",
93808
- properties: {
93809
- permissionSets: {
93810
- title: "Permission Sets",
93811
- description: "The list of permission sets to enable while deploying package metadata",
93812
- oneOf: [
93813
- {
93814
- type: "string",
93815
- title: "Permission Set String",
93816
- description: "The list of permission sets to enable while deploying package metadata as a string"
93817
- },
93818
- {
93819
- type: "array",
93820
- title: "Permission Set Array",
93821
- description: "The list of permission sets to enable while deploying package metadata as an array",
93822
- items: {
93823
- type: "string",
93824
- title: "Permission Set Name",
93825
- description: "Name of the permission set to enable while deploying package metadata"
93826
- }
93827
- }
93828
- ]
93829
- },
93830
- permissionSetLicenses: {
93831
- title: "Permission Set License",
93832
- description: "The list of permission sets licenses to enable while deploying package metadata",
93833
- oneOf: [
93834
- {
93835
- type: "string",
93836
- title: "Permission Set Licenses String",
93837
- description: "The list of permission set licenses to enable while deploying package metadata as a string"
93838
- },
93839
- {
93840
- type: "array",
93841
- title: "Permission Set Licenses Array",
93842
- description: "The list of permission set licenses to enable while deploying package metadata as an array",
93843
- items: {
93844
- type: "string",
93845
- title: "Permission Set Licenses Developer Name",
93846
- description: "Name of the permission set license to enable while deploying package metadata"
93847
- }
93848
- }
93849
- ]
93850
- }
93851
- }
93164
+ pushPackageDirectoriesSequentially: {
93165
+ deprecated: "only works with deprecated commands. See https://github.com/forcedotcom/cli/discussions/2402",
93166
+ type: "boolean"
93852
93167
  },
93853
- "packageDirectory.branch": {
93854
- type: "string",
93855
- title: "Branch",
93856
- description: "The name of the branch to be assigned to the package version"
93168
+ registryCustomizations: {
93169
+ $ref: "#/definitions/MetadataRegistry"
93857
93170
  },
93858
- "replacements.filename": {
93859
- type: "string",
93860
- description: "an exact filename that contains the text to replace. Use posix-style forward slashes"
93171
+ registryPresets: {
93172
+ $ref: "#/definitions/RegistryPresets",
93173
+ deprecated: "use `sourceBehaviorOptions`\nfilenames from https://github.com/forcedotcom/source-deploy-retrieve/tree/main/src/registry/presets",
93174
+ title: "Custom predefined presets for decomposing metadata types"
93861
93175
  },
93862
- "replacements.regexToReplace": {
93863
- type: "string",
93864
- description: "a regular expression that, if found, should be replaced. Escape any \\ with an additional \\"
93176
+ replacements: {
93177
+ description: 'The Salesforce CLI will conditionally replace portions of your metadata during a deployment"',
93178
+ items: {
93179
+ $ref: "#/definitions/Replacements"
93180
+ },
93181
+ title: 'Replacements for metadata that are executed during deployments"',
93182
+ type: "array"
93865
93183
  },
93866
- "replacements.glob": {
93867
- type: "string",
93868
- description: "A glob pattern to match files against. Use posix-style forward slashes"
93184
+ sfdcLoginUrl: {
93185
+ description: "The login URL that the force:auth commands use. If not specified, the default is login.salesforce.com. Override the default value if you want users to authorize to a specific Salesforce instance. For example, if you want to authorize into a sandbox org, set this parameter to test.salesforce.com.",
93186
+ title: "SFDC Login URL",
93187
+ type: "string"
93869
93188
  },
93870
- "replacements.stringToReplace": {
93871
- type: "string",
93872
- description: "An exact string that, when found, will be replaced"
93189
+ signupTargetLoginUrl: {
93190
+ description: "The url that is used when creating new scratch orgs. This is typically only used for testing prerelease environments.",
93191
+ type: "string"
93873
93192
  },
93874
- "replacements.replaceWithEnv": {
93875
- type: "string",
93876
- description: "Use the value of this environment variable to replace the target"
93193
+ sourceApiVersion: {
93194
+ default: "48.0",
93195
+ description: "The API version that the source is compatible with. By default it matches the API version.",
93196
+ title: "Source API Version",
93197
+ type: "string"
93877
93198
  },
93878
- "replacements.replaceWithFile": {
93879
- type: "string",
93880
- description: "Use the contents of this file to replace the target"
93199
+ sourceBehaviorOptions: {
93200
+ $ref: "#/definitions/RegistryPresets",
93201
+ description: "filenames from https://github.com/forcedotcom/source-deploy-retrieve/tree/main/src/registry/presets",
93202
+ title: "Custom predefined presets for decomposing metadata types"
93881
93203
  }
93882
93204
  };
93205
+ required = [
93206
+ "packageDirectories"
93207
+ ];
93208
+ title = "Salesforce DX Project File";
93209
+ type = "object";
93883
93210
  sfdx_project_schema_default = {
93884
- $schema,
93885
93211
  $id,
93886
- title,
93887
- description,
93888
- type,
93212
+ $schema,
93889
93213
  additionalProperties,
93890
- required,
93214
+ definitions,
93215
+ description,
93891
93216
  properties,
93892
- definitions
93217
+ required,
93218
+ title,
93219
+ type
93893
93220
  };
93894
93221
  }
93895
93222
  });
@@ -108040,12 +107367,14 @@ var require_scratchOrgInfoGenerator = __commonJS({
108040
107367
  sfProject = await sfProject_12.SfProjectJson.create({});
108041
107368
  } catch (e) {
108042
107369
  }
107370
+ const { namespace: originalNamespace, ...payload } = scratchOrgInfoPayload;
107371
+ const namespace = originalNamespace ?? sfProject?.get("namespace");
108043
107372
  return {
108044
- ...scratchOrgInfoPayload,
107373
+ ...payload,
108045
107374
  orgName: scratchOrgInfoPayload.orgName ?? "Company",
108046
107375
  // we already have the info, and want to get rid of configApi, so this doesn't use that
108047
107376
  connectedAppCallbackUrl: `http://localhost:${await webOAuthServer_12.WebOAuthServer.determineOauthPort()}/OauthRedirect`,
108048
- ...!nonamespace && sfProject?.get("namespace") ? { namespace: sfProject.get("namespace") } : {},
107377
+ ...!nonamespace && namespace ? { namespace } : {},
108049
107378
  // Use the Hub org's client ID value, if one wasn't provided to us, or the default
108050
107379
  connectedAppConsumerKey: scratchOrgInfoPayload.connectedAppConsumerKey ?? hubOrg.getConnection().getAuthInfoFields().clientId ?? authInfo_12.DEFAULT_CONNECTED_APP_INFO.clientId,
108051
107380
  package2AncestorIds: !ignoreAncestorIds && sfProject?.hasPackages() ? await (0, exports2.getAncestorIds)(scratchOrgInfoPayload, sfProject, hubOrg) : ""
@@ -109605,6 +108934,7 @@ var require_authInfo = __commonJS({
109605
108934
  var sfError_12 = require_sfError();
109606
108935
  var sfdc_1 = require_sfdc();
109607
108936
  var stateAggregator_12 = require_stateAggregator();
108937
+ var filters_1 = require_filters();
109608
108938
  var messages_12 = require_messages();
109609
108939
  var sfdcUrl_12 = require_sfdcUrl();
109610
108940
  var connection_12 = require_connection3();
@@ -110301,7 +109631,14 @@ var require_authInfo = __commonJS({
110301
109631
  this.logger.info(`Exchanging auth code for access token using loginUrl: ${options.loginUrl}`);
110302
109632
  authFields = await oauth2.requestToken((0, ts_types_1.ensure)(options.authCode));
110303
109633
  } catch (err) {
110304
- throw messages.createError("authCodeExchangeError", [err.message]);
109634
+ const msg = err instanceof Error ? `${err.name}::${err.message}` : typeof err === "string" ? err : "UNKNOWN";
109635
+ const redacted = (0, filters_1.filterSecrets)(options);
109636
+ throw sfError_12.SfError.create({
109637
+ message: messages.getMessage("authCodeExchangeError", [msg]),
109638
+ name: "AuthCodeExchangeError",
109639
+ ...err instanceof Error ? { cause: err } : {},
109640
+ data: (0, ts_types_1.isArray)(redacted) ? redacted[0] : redacted
109641
+ });
110305
109642
  }
110306
109643
  const { orgId } = parseIdUrl(authFields.id);
110307
109644
  let username = this.getUsername();