@gander-labs/package-crafting-playground 0.3.5 → 0.3.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.
@@ -331,16 +331,16 @@ var annotationWrapperKeys = new Set([
331
331
  annotationWrapperKey
332
332
  ]);
333
333
  var injectedAnnotationWrappers = /* @__PURE__ */ new WeakSet;
334
- function hasInjectedAnnotationWrapperShape(value) {
335
- const valueRecord = value;
334
+ function hasInjectedAnnotationWrapperShape(value2) {
335
+ const valueRecord = value2;
336
336
  if (valueRecord[annotationWrapperKey] !== true)
337
337
  return false;
338
338
  const ownKeys = Reflect.ownKeys(valueRecord);
339
339
  if (ownKeys.length !== 3 || !ownKeys.every((key) => annotationWrapperKeys.has(key)))
340
340
  return false;
341
- const annotations = Object.getOwnPropertyDescriptor(value, annotationKey);
342
- const wrappedState = Object.getOwnPropertyDescriptor(value, annotationStateValueKey);
343
- const wrapper = Object.getOwnPropertyDescriptor(value, annotationWrapperKey);
341
+ const annotations = Object.getOwnPropertyDescriptor(value2, annotationKey);
342
+ const wrappedState = Object.getOwnPropertyDescriptor(value2, annotationStateValueKey);
343
+ const wrapper = Object.getOwnPropertyDescriptor(value2, annotationWrapperKey);
344
344
  return annotations?.enumerable === true && annotations.writable === true && annotations.configurable === true && annotations.value != null && typeof annotations.value === "object" && wrappedState?.enumerable === false && wrappedState.writable === true && wrappedState.configurable === true && wrapper?.enumerable === false && wrapper.writable === true && wrapper.configurable === true && wrapper.value === true;
345
345
  }
346
346
  function getAnnotations(state) {
@@ -476,23 +476,23 @@ function injectAnnotations(state, annotations) {
476
476
  cloned[annotationKey] = annotations;
477
477
  return cloned;
478
478
  }
479
- function unwrapInjectedAnnotationWrapper(value) {
480
- if (value == null || typeof value !== "object")
481
- return value;
482
- if (!hasInjectedAnnotationWrapperShape(value))
483
- return value;
484
- const valueRecord = value;
479
+ function unwrapInjectedAnnotationWrapper(value2) {
480
+ if (value2 == null || typeof value2 !== "object")
481
+ return value2;
482
+ if (!hasInjectedAnnotationWrapperShape(value2))
483
+ return value2;
484
+ const valueRecord = value2;
485
485
  return valueRecord[annotationStateValueKey];
486
486
  }
487
- function isInjectedAnnotationWrapper(value) {
488
- return value != null && typeof value === "object" && (injectedAnnotationWrappers.has(value) || hasInjectedAnnotationWrapperShape(value));
487
+ function isInjectedAnnotationWrapper(value2) {
488
+ return value2 != null && typeof value2 === "object" && (injectedAnnotationWrappers.has(value2) || hasInjectedAnnotationWrapperShape(value2));
489
489
  }
490
490
 
491
491
  // node_modules/@optique/core/dist/validate.js
492
492
  var CONTROL_CHAR_RE = /[\x00-\x1f\x7f-\x9f\u2028\u2029]/;
493
493
  var CONTROL_CHAR_RE_GLOBAL = new RegExp(CONTROL_CHAR_RE.source, "g");
494
- function escapeControlChars(value) {
495
- return value.replace(CONTROL_CHAR_RE_GLOBAL, (ch) => {
494
+ function escapeControlChars(value2) {
495
+ return value2.replace(CONTROL_CHAR_RE_GLOBAL, (ch) => {
496
496
  const code = ch.charCodeAt(0);
497
497
  switch (code) {
498
498
  case 9:
@@ -721,7 +721,7 @@ function formatUsage(programName, usage, options = {}) {
721
721
  let output = options.colors ? `\x1B[1m${programName}\x1B[0m` : programName;
722
722
  let lineWidth = getDisplayWidth(programName);
723
723
  let first = true;
724
- for (const { text, width } of formatUsageTerms(usage, options)) {
724
+ for (const { text: text2, width } of formatUsageTerms(usage, options)) {
725
725
  if (first) {
726
726
  first = false;
727
727
  if (options.maxWidth != null && lineWidth + 1 + width > options.maxWidth) {
@@ -738,10 +738,10 @@ function formatUsage(programName, usage, options = {}) {
738
738
  output += `
739
739
  `;
740
740
  lineWidth = 0;
741
- if (text === " ")
741
+ if (text2 === " ")
742
742
  continue;
743
743
  }
744
- output += text;
744
+ output += text2;
745
745
  lineWidth += width;
746
746
  }
747
747
  return output;
@@ -971,17 +971,17 @@ function formatUsageTerm(term, options = {}) {
971
971
  return "";
972
972
  let lineWidth = 0;
973
973
  let output = "";
974
- for (const { text, width } of formatUsageTermInternal(visibleTerms[0], options)) {
974
+ for (const { text: text2, width } of formatUsageTermInternal(visibleTerms[0], options)) {
975
975
  if (options.maxWidth != null && lineWidth > 0 && lineWidth + width > options.maxWidth) {
976
976
  if (output.endsWith(" "))
977
977
  output = output.slice(0, -1);
978
978
  output += `
979
979
  `;
980
980
  lineWidth = 0;
981
- if (text === " ")
981
+ if (text2 === " ")
982
982
  continue;
983
983
  }
984
- output += text;
984
+ output += text2;
985
985
  lineWidth += width;
986
986
  }
987
987
  return output;
@@ -1002,15 +1002,15 @@ function* formatUsageTermInternal(term, options) {
1002
1002
  };
1003
1003
  } else {
1004
1004
  let i = 0;
1005
- for (const optionName of term.names) {
1005
+ for (const optionName2 of term.names) {
1006
1006
  if (i > 0)
1007
1007
  yield {
1008
1008
  text: options?.colors ? `\x1B[2m${optionsSeparator}\x1B[0m` : optionsSeparator,
1009
1009
  width: getDisplayWidth(optionsSeparator)
1010
1010
  };
1011
1011
  yield {
1012
- text: options?.colors ? `\x1B[3m${optionName}\x1B[0m` : optionName,
1013
- width: getDisplayWidth(optionName)
1012
+ text: options?.colors ? `\x1B[3m${optionName2}\x1B[0m` : optionName2,
1013
+ width: getDisplayWidth(optionName2)
1014
1014
  };
1015
1015
  i++;
1016
1016
  }
@@ -1099,15 +1099,15 @@ function* formatUsageTermInternal(term, options) {
1099
1099
  width: getDisplayWidth(term.value)
1100
1100
  };
1101
1101
  else if (term.type === "passthrough") {
1102
- const text = "[...]";
1102
+ const text2 = "[...]";
1103
1103
  yield {
1104
- text: options?.colors ? `\x1B[2m${text}\x1B[0m` : text,
1104
+ text: options?.colors ? `\x1B[2m${text2}\x1B[0m` : text2,
1105
1105
  width: 5
1106
1106
  };
1107
1107
  } else if (term.type === "ellipsis") {
1108
- const text = "...";
1108
+ const text2 = "...";
1109
1109
  yield {
1110
- text: options?.colors ? `\x1B[2m${text}\x1B[0m` : text,
1110
+ text: options?.colors ? `\x1B[2m${text2}\x1B[0m` : text2,
1111
1111
  width: 3
1112
1112
  };
1113
1113
  } else
@@ -1598,19 +1598,19 @@ function dispatchByMode(mode, syncFn, asyncFn) {
1598
1598
  return asyncFn();
1599
1599
  return syncFn();
1600
1600
  }
1601
- function wrapForMode(mode, value) {
1601
+ function wrapForMode(mode, value2) {
1602
1602
  if (mode === "async")
1603
- return Promise.resolve(value);
1604
- if (value instanceof Promise)
1603
+ return Promise.resolve(value2);
1604
+ if (value2 instanceof Promise)
1605
1605
  throw new TypeError("Synchronous mode cannot wrap Promise value.");
1606
- return value;
1606
+ return value2;
1607
1607
  }
1608
- function mapModeValue(mode, value, mapFn) {
1608
+ function mapModeValue(mode, value2, mapFn) {
1609
1609
  if (mode === "async")
1610
- return Promise.resolve(value).then(mapFn);
1611
- if (value instanceof Promise)
1610
+ return Promise.resolve(value2).then(mapFn);
1611
+ if (value2 instanceof Promise)
1612
1612
  throw new TypeError("Synchronous mode cannot map Promise value.");
1613
- return mapFn(value);
1613
+ return mapFn(value2);
1614
1614
  }
1615
1615
  function dispatchIterableByMode(mode, syncFn, asyncFn) {
1616
1616
  if (mode === "async")
@@ -1638,8 +1638,8 @@ function getSnapshottedDefaultDependencyValues(result) {
1638
1638
  return result[defaultDependencyValueSnapshot];
1639
1639
  }
1640
1640
  var deferredParseMarker = Symbol.for("@optique/core/dependency/deferredParseMarker");
1641
- function isDeferredParseState(value) {
1642
- return typeof value === "object" && value !== null && deferredParseMarker in value && value[deferredParseMarker] === true;
1641
+ function isDeferredParseState(value2) {
1642
+ return typeof value2 === "object" && value2 !== null && deferredParseMarker in value2 && value2[deferredParseMarker] === true;
1643
1643
  }
1644
1644
  function getDependencyIds(parser) {
1645
1645
  if (dependencyIds in parser)
@@ -1652,8 +1652,8 @@ function getDefaultValuesFunction(parser) {
1652
1652
  return;
1653
1653
  }
1654
1654
  var dependencySourceStateMarker = Symbol.for("@optique/core/dependency/dependencySourceStateMarker");
1655
- function isDependencySourceState(value) {
1656
- return typeof value === "object" && value !== null && dependencySourceStateMarker in value && value[dependencySourceStateMarker] === true;
1655
+ function isDependencySourceState(value2) {
1656
+ return typeof value2 === "object" && value2 !== null && dependencySourceStateMarker in value2 && value2[dependencySourceStateMarker] === true;
1657
1657
  }
1658
1658
  function createDependencySourceState(result, depId) {
1659
1659
  return {
@@ -1663,8 +1663,8 @@ function createDependencySourceState(result, depId) {
1663
1663
  };
1664
1664
  }
1665
1665
  var pendingDependencySourceStateMarker = Symbol.for("@optique/core/dependency/pendingDependencySourceStateMarker");
1666
- function isPendingDependencySourceState(value) {
1667
- return typeof value === "object" && value !== null && pendingDependencySourceStateMarker in value && value[pendingDependencySourceStateMarker] === true;
1666
+ function isPendingDependencySourceState(value2) {
1667
+ return typeof value2 === "object" && value2 !== null && pendingDependencySourceStateMarker in value2 && value2[pendingDependencySourceStateMarker] === true;
1668
1668
  }
1669
1669
  var wrappedDependencySourceMarker = Symbol.for("@optique/core/dependency/wrappedDependencySourceMarker");
1670
1670
  var transformsDependencyValueMarker = Symbol.for("@optique/core/dependency/transformsDependencyValueMarker");
@@ -1698,7 +1698,7 @@ function serializePath(path) {
1698
1698
  return "";
1699
1699
  return path.map(serializeKey).join("");
1700
1700
  }
1701
- var InputTraceImpl = class InputTraceImpl {
1701
+ var InputTraceImpl = class InputTraceImpl2 {
1702
1702
  #entries;
1703
1703
  constructor(entries) {
1704
1704
  this.#entries = entries ?? /* @__PURE__ */ new Map;
@@ -1709,12 +1709,12 @@ var InputTraceImpl = class InputTraceImpl {
1709
1709
  set(path, entry) {
1710
1710
  const copy = new Map(this.#entries);
1711
1711
  copy.set(serializePath(path), entry);
1712
- return new InputTraceImpl(copy);
1712
+ return new InputTraceImpl2(copy);
1713
1713
  }
1714
1714
  delete(path) {
1715
1715
  const copy = new Map(this.#entries);
1716
1716
  copy.delete(serializePath(path));
1717
- return new InputTraceImpl(copy);
1717
+ return new InputTraceImpl2(copy);
1718
1718
  }
1719
1719
  };
1720
1720
  function createInputTrace() {
@@ -2117,8 +2117,8 @@ var DependencyRuntimeContextImpl = class {
2117
2117
  }
2118
2118
  this.registry = new FailedAwareRegistry(registry, this.#failedSources);
2119
2119
  }
2120
- registerSource(sourceId, value, _origin) {
2121
- this.registry.set(sourceId, value);
2120
+ registerSource(sourceId, value2, _origin) {
2121
+ this.registry.set(sourceId, value2);
2122
2122
  }
2123
2123
  hasSource(sourceId) {
2124
2124
  return this.registry.has(sourceId);
@@ -2145,15 +2145,15 @@ var DependencyRuntimeContextImpl = class {
2145
2145
  return resolveRequest(this, request);
2146
2146
  }
2147
2147
  };
2148
- var FailedAwareRegistry = class FailedAwareRegistry {
2148
+ var FailedAwareRegistry = class FailedAwareRegistry2 {
2149
2149
  #inner;
2150
2150
  #failedSources;
2151
2151
  constructor(inner, failedSources) {
2152
2152
  this.#inner = inner;
2153
2153
  this.#failedSources = failedSources;
2154
2154
  }
2155
- set(id, value) {
2156
- this.#inner.set(id, value);
2155
+ set(id, value2) {
2156
+ this.#inner.set(id, value2);
2157
2157
  this.#failedSources.delete(id);
2158
2158
  }
2159
2159
  get(id) {
@@ -2172,12 +2172,12 @@ var FailedAwareRegistry = class FailedAwareRegistry {
2172
2172
  }
2173
2173
  rebindFailedSources(target) {
2174
2174
  this.copyFailedSources(target);
2175
- return new FailedAwareRegistry(this.#inner, target);
2175
+ return new FailedAwareRegistry2(this.#inner, target);
2176
2176
  }
2177
2177
  clone() {
2178
2178
  const failedSources = new Set(this.#failedSources);
2179
2179
  const innerClone = this.#inner.clone();
2180
- return innerClone instanceof FailedAwareRegistry ? innerClone.rebindFailedSources(failedSources) : new FailedAwareRegistry(innerClone, failedSources);
2180
+ return innerClone instanceof FailedAwareRegistry2 ? innerClone.rebindFailedSources(failedSources) : new FailedAwareRegistry2(innerClone, failedSources);
2181
2181
  }
2182
2182
  };
2183
2183
  function resolveRequest(ctx, request) {
@@ -2232,10 +2232,10 @@ function serializeReplayKey(key) {
2232
2232
  const pathStr = key.path.map(serializePathSegment).join("");
2233
2233
  return `${pathStr}\x01${lengthPrefix2(key.rawInput)}\x01${key.dependencyFingerprint}\x01${key.parserFingerprint}`;
2234
2234
  }
2235
- var SimpleRegistry = class SimpleRegistry {
2235
+ var SimpleRegistry = class SimpleRegistry2 {
2236
2236
  #map = /* @__PURE__ */ new Map;
2237
- set(id, value) {
2238
- this.#map.set(id, value);
2237
+ set(id, value2) {
2238
+ this.#map.set(id, value2);
2239
2239
  }
2240
2240
  get(id) {
2241
2241
  return this.#map.get(id);
@@ -2244,7 +2244,7 @@ var SimpleRegistry = class SimpleRegistry {
2244
2244
  return this.#map.has(id);
2245
2245
  }
2246
2246
  clone() {
2247
- const copy = new SimpleRegistry;
2247
+ const copy = new SimpleRegistry2;
2248
2248
  for (const [k, v] of this.#map)
2249
2249
  copy.set(k, v);
2250
2250
  return copy;
@@ -2326,8 +2326,8 @@ function registerExplicitSourceValue(sourceId, result, runtime) {
2326
2326
  else
2327
2327
  runtime.markSourceFailed(sourceId);
2328
2328
  }
2329
- function isPromiseLike(value) {
2330
- return value != null && (typeof value === "object" || typeof value === "function") && "then" in value && typeof value.then === "function";
2329
+ function isPromiseLike(value2) {
2330
+ return value2 != null && (typeof value2 === "object" || typeof value2 === "function") && "then" in value2 && typeof value2.then === "function";
2331
2331
  }
2332
2332
  async function collectExplicitSourceValuesAsync(nodes, runtime) {
2333
2333
  for (const node of nodes) {
@@ -2396,10 +2396,10 @@ async function replayDerivedParserAsync(node, rawInput, runtime) {
2396
2396
  runtime.setReplayResult(key, result);
2397
2397
  return result;
2398
2398
  }
2399
- function isPlainObject(value) {
2400
- if (typeof value !== "object" || value === null)
2399
+ function isPlainObject(value2) {
2400
+ if (typeof value2 !== "object" || value2 === null)
2401
2401
  return false;
2402
- const proto = Object.getPrototypeOf(value);
2402
+ const proto = Object.getPrototypeOf(value2);
2403
2403
  return proto === Object.prototype || proto === null;
2404
2404
  }
2405
2405
  function resolveSingleDeferred(deferred, runtime) {
@@ -2491,11 +2491,11 @@ function resolveDeferredInState(state, runtime, visited = /* @__PURE__ */ new We
2491
2491
  if (isPlainObject(state)) {
2492
2492
  const keys = Reflect.ownKeys(state);
2493
2493
  const resolvedEntries = keys.map((key) => [key, resolveDeferredInState(state[key], runtime, visited, deferredCache)]);
2494
- if (resolvedEntries.every(([key, value]) => value === state[key]))
2494
+ if (resolvedEntries.every(([key, value2]) => value2 === state[key]))
2495
2495
  return state;
2496
2496
  const resolved = Object.create(Object.getPrototypeOf(state));
2497
- for (const [key, value] of resolvedEntries)
2498
- resolved[key] = value;
2497
+ for (const [key, value2] of resolvedEntries)
2498
+ resolved[key] = value2;
2499
2499
  return resolved;
2500
2500
  }
2501
2501
  return state;
@@ -2531,11 +2531,11 @@ async function resolveDeferredInStateAsync(state, runtime, visited = /* @__PURE_
2531
2531
  const resolvedEntries = await Promise.all(keys.map(async (key) => {
2532
2532
  return [key, await resolveDeferredInStateAsync(state[key], runtime, visited, deferredCache)];
2533
2533
  }));
2534
- if (resolvedEntries.every(([key, value]) => value === state[key]))
2534
+ if (resolvedEntries.every(([key, value2]) => value2 === state[key]))
2535
2535
  return state;
2536
2536
  const resolved = Object.create(Object.getPrototypeOf(state));
2537
- for (const [key, value] of resolvedEntries)
2538
- resolved[key] = value;
2537
+ for (const [key, value2] of resolvedEntries)
2538
+ resolved[key] = value2;
2539
2539
  return resolved;
2540
2540
  }
2541
2541
  return state;
@@ -2579,8 +2579,8 @@ function encodePattern(pattern) {
2579
2579
  function encodeExtensions(extensions) {
2580
2580
  return extensions?.map((ext) => ext.replace(/^\./, "")).join(",") ?? "";
2581
2581
  }
2582
- function sanitizeForTransport(text) {
2583
- return text.replace(/[\t\n\r\0]/g, " ");
2582
+ function sanitizeForTransport(text2) {
2583
+ return text2.replace(/[\t\n\r\0]/g, " ");
2584
2584
  }
2585
2585
  var bash = {
2586
2586
  name: "bash",
@@ -3801,8 +3801,8 @@ ${escapedArgs ? ` $completionArgs += @(${escapedArgs})
3801
3801
  `;
3802
3802
  if (suggestion.kind === "literal") {
3803
3803
  const description = suggestion.description == null ? "" : sanitizeForTransport(formatMessage(suggestion.description, { colors: false }));
3804
- const text = sanitizeForTransport(suggestion.text);
3805
- yield `${text} ${text} ${description}`;
3804
+ const text2 = sanitizeForTransport(suggestion.text);
3805
+ yield `${text2} ${text2} ${description}`;
3806
3806
  } else {
3807
3807
  const extensions = encodeExtensions(suggestion.extensions);
3808
3808
  const hidden = suggestion.includeHidden ? "1" : "0";
@@ -3854,15 +3854,15 @@ function completeOrExtractPhase2Seed(parser, state, exec) {
3854
3854
  // node_modules/@optique/core/dist/annotation-state.js
3855
3855
  var annotationViewTargets = /* @__PURE__ */ new WeakMap;
3856
3856
  var delegatedAnnotationCloneTargets = /* @__PURE__ */ new WeakMap;
3857
- function unwrapAnnotationView(value) {
3858
- if (value == null || typeof value !== "object")
3859
- return value;
3860
- return annotationViewTargets.get(value) ?? value;
3857
+ function unwrapAnnotationView(value2) {
3858
+ if (value2 == null || typeof value2 !== "object")
3859
+ return value2;
3860
+ return annotationViewTargets.get(value2) ?? value2;
3861
3861
  }
3862
- function unwrapDelegatedAnnotationClone(value) {
3863
- if (value == null || typeof value !== "object")
3864
- return value;
3865
- return delegatedAnnotationCloneTargets.get(value) ?? value;
3862
+ function unwrapDelegatedAnnotationClone(value2) {
3863
+ if (value2 == null || typeof value2 !== "object")
3864
+ return value2;
3865
+ return delegatedAnnotationCloneTargets.get(value2) ?? value2;
3866
3866
  }
3867
3867
  function withAnnotationView(state, annotations) {
3868
3868
  const target = unwrapAnnotationView(state);
@@ -3870,8 +3870,8 @@ function withAnnotationView(state, annotations) {
3870
3870
  get(target$1, key) {
3871
3871
  if (key === annotationKey)
3872
3872
  return annotations;
3873
- const value = Reflect.get(target$1, key, target$1);
3874
- return typeof value === "function" ? value.bind(target$1) : value;
3873
+ const value2 = Reflect.get(target$1, key, target$1);
3874
+ return typeof value2 === "function" ? value2.bind(target$1) : value2;
3875
3875
  },
3876
3876
  has(target$1, key) {
3877
3877
  return key === annotationKey || Reflect.has(target$1, key);
@@ -3996,17 +3996,17 @@ function normalizeNestedDelegatedMapState(source, seen, preferPendingClone) {
3996
3996
  const overrides = /* @__PURE__ */ new Map;
3997
3997
  let changed = false;
3998
3998
  let hasPendingAliasOverride = false;
3999
- for (const [key, value] of source) {
3999
+ for (const [key, value2] of source) {
4000
4000
  const nextKey = normalizeNestedDelegatedAnnotationState(key, seen, true);
4001
- const nextValue = normalizeNestedDelegatedAnnotationState(value, seen, true);
4001
+ const nextValue = normalizeNestedDelegatedAnnotationState(value2, seen, true);
4002
4002
  normalizedEntries.push([nextKey, nextValue]);
4003
4003
  if (nextKey !== key)
4004
4004
  if (getPendingNestedNormalizationEntry(key, nextKey, seen) == null)
4005
4005
  changed = true;
4006
4006
  else
4007
4007
  hasPendingAliasOverride = true;
4008
- if (nextValue !== value)
4009
- if (getPendingNestedNormalizationEntry(value, nextValue, seen) == null)
4008
+ if (nextValue !== value2)
4009
+ if (getPendingNestedNormalizationEntry(value2, nextValue, seen) == null)
4010
4010
  changed = true;
4011
4011
  else
4012
4012
  hasPendingAliasOverride = true;
@@ -4030,8 +4030,8 @@ function normalizeNestedDelegatedMapState(source, seen, preferPendingClone) {
4030
4030
  return source;
4031
4031
  }
4032
4032
  const clone = getOrCreateNestedNormalizationClone(entry);
4033
- for (const [key, value] of normalizedEntries)
4034
- clone.set(key, value);
4033
+ for (const [key, value2] of normalizedEntries)
4034
+ clone.set(key, value2);
4035
4035
  const descriptors = Object.getOwnPropertyDescriptors(source);
4036
4036
  for (const [key, nextValue] of overrides) {
4037
4037
  const descriptor = descriptors[key];
@@ -4061,12 +4061,12 @@ function normalizeNestedDelegatedSetState(source, seen, preferPendingClone) {
4061
4061
  const overrides = /* @__PURE__ */ new Map;
4062
4062
  let changed = false;
4063
4063
  let hasPendingAliasOverride = false;
4064
- for (const value of source) {
4065
- const nextValue = normalizeNestedDelegatedAnnotationState(value, seen, true);
4064
+ for (const value2 of source) {
4065
+ const nextValue = normalizeNestedDelegatedAnnotationState(value2, seen, true);
4066
4066
  normalizedValues.push(nextValue);
4067
- if (nextValue === value)
4067
+ if (nextValue === value2)
4068
4068
  continue;
4069
- if (getPendingNestedNormalizationEntry(value, nextValue, seen) == null)
4069
+ if (getPendingNestedNormalizationEntry(value2, nextValue, seen) == null)
4070
4070
  changed = true;
4071
4071
  else
4072
4072
  hasPendingAliasOverride = true;
@@ -4090,8 +4090,8 @@ function normalizeNestedDelegatedSetState(source, seen, preferPendingClone) {
4090
4090
  return source;
4091
4091
  }
4092
4092
  const clone = getOrCreateNestedNormalizationClone(entry);
4093
- for (const value of normalizedValues)
4094
- clone.add(value);
4093
+ for (const value2 of normalizedValues)
4094
+ clone.add(value2);
4095
4095
  const descriptors = Object.getOwnPropertyDescriptors(source);
4096
4096
  for (const [key, nextValue] of overrides) {
4097
4097
  const descriptor = descriptors[key];
@@ -4108,8 +4108,8 @@ function normalizeNestedDelegatedSetState(source, seen, preferPendingClone) {
4108
4108
  entry.result = changed ? clone : source;
4109
4109
  return changed || preferPendingClone ? clone : source;
4110
4110
  }
4111
- function normalizeNestedDelegatedAnnotationState(value, seen = /* @__PURE__ */ new WeakMap, preferPendingClone = false) {
4112
- const normalized = normalizeDelegatedAnnotationState(value);
4111
+ function normalizeNestedDelegatedAnnotationState(value2, seen = /* @__PURE__ */ new WeakMap, preferPendingClone = false) {
4112
+ const normalized = normalizeDelegatedAnnotationState(value2);
4113
4113
  if (normalized == null || typeof normalized !== "object")
4114
4114
  return normalized;
4115
4115
  const source = normalized;
@@ -4371,8 +4371,8 @@ function unwrapMultipleItemState(state) {
4371
4371
  };
4372
4372
  }
4373
4373
  }
4374
- function isPromiseLike2(value) {
4375
- return value != null && (typeof value === "object" || typeof value === "function") && "then" in value && typeof value.then === "function";
4374
+ function isPromiseLike2(value2) {
4375
+ return value2 != null && (typeof value2 === "object" || typeof value2 === "function") && "then" in value2 && typeof value2.then === "function";
4376
4376
  }
4377
4377
  function normalizeOptionalLikeCompleteResult(result, shouldNormalize) {
4378
4378
  return result.success && shouldNormalize ? {
@@ -4876,10 +4876,10 @@ function withDefault(parser, defaultValue, options) {
4876
4876
  return mapModeValue(parser.mode, innerResult, handleInnerResult);
4877
4877
  }
4878
4878
  try {
4879
- const value = evaluateDefault();
4879
+ const value2 = evaluateDefault();
4880
4880
  return {
4881
4881
  success: true,
4882
- value
4882
+ value: value2
4883
4883
  };
4884
4884
  } catch (error) {
4885
4885
  return {
@@ -5123,8 +5123,8 @@ function brandDeferredValue(call, source) {
5123
5123
  });
5124
5124
  return call;
5125
5125
  }
5126
- function makeSpecifiedDeferredValue(value) {
5127
- return brandDeferredValue((_ctx) => value, "specified");
5126
+ function makeSpecifiedDeferredValue(value2) {
5127
+ return brandDeferredValue((_ctx) => value2, "specified");
5128
5128
  }
5129
5129
  function makeFallbackDeferredValue(fallback, memoize) {
5130
5130
  if (!memoize)
@@ -5163,14 +5163,14 @@ function deferredValue(parser, fallback, options) {
5163
5163
  const complete = (state, exec) => wrapForMode(base.mode, mapModeValue(base.mode, base.complete(state, exec), (result) => {
5164
5164
  if (!result.success)
5165
5165
  return result;
5166
- const value = result.value === undefined ? makeFallbackDeferredValue(fallback, memoize) : makeSpecifiedDeferredValue(result.value);
5166
+ const value2 = result.value === undefined ? makeFallbackDeferredValue(fallback, memoize) : makeSpecifiedDeferredValue(result.value);
5167
5167
  return result.deferred ? {
5168
5168
  success: true,
5169
- value,
5169
+ value: value2,
5170
5170
  deferred: true
5171
5171
  } : {
5172
5172
  success: true,
5173
- value
5173
+ value: value2
5174
5174
  };
5175
5175
  }));
5176
5176
  const descriptors = Object.getOwnPropertyDescriptors(base);
@@ -6224,14 +6224,14 @@ function deduplicateSuggestions(suggestions) {
6224
6224
  }
6225
6225
 
6226
6226
  // node_modules/@optique/core/dist/usage-internals.js
6227
- function collectLeadingCandidates(terms, optionNames, commandNames, includeHidden = false) {
6227
+ function collectLeadingCandidates(terms, optionNames2, commandNames, includeHidden = false) {
6228
6228
  if (!terms || !Array.isArray(terms))
6229
6229
  return true;
6230
6230
  for (const term of terms) {
6231
6231
  if (term.type === "option") {
6232
6232
  if (includeHidden || !isSuggestionHidden(term.hidden))
6233
6233
  for (const name of term.names)
6234
- optionNames.add(name);
6234
+ optionNames2.add(name);
6235
6235
  return false;
6236
6236
  }
6237
6237
  if (term.type === "command") {
@@ -6247,24 +6247,24 @@ function collectLeadingCandidates(terms, optionNames, commandNames, includeHidde
6247
6247
  if (term.type === "argument")
6248
6248
  return false;
6249
6249
  if (term.type === "optional") {
6250
- collectLeadingCandidates(term.terms, optionNames, commandNames, includeHidden);
6250
+ collectLeadingCandidates(term.terms, optionNames2, commandNames, includeHidden);
6251
6251
  continue;
6252
6252
  }
6253
6253
  if (term.type === "multiple") {
6254
- collectLeadingCandidates(term.terms, optionNames, commandNames, includeHidden);
6254
+ collectLeadingCandidates(term.terms, optionNames2, commandNames, includeHidden);
6255
6255
  if (term.min === 0)
6256
6256
  continue;
6257
6257
  return false;
6258
6258
  }
6259
6259
  if (term.type === "sequence") {
6260
- if (collectLeadingCandidates(term.terms, optionNames, commandNames, includeHidden))
6260
+ if (collectLeadingCandidates(term.terms, optionNames2, commandNames, includeHidden))
6261
6261
  continue;
6262
6262
  return false;
6263
6263
  }
6264
6264
  if (term.type === "exclusive") {
6265
6265
  let allSkippable = true;
6266
6266
  for (const branch of term.terms) {
6267
- const branchSkippable = collectLeadingCandidates(branch, optionNames, commandNames, includeHidden);
6267
+ const branchSkippable = collectLeadingCandidates(branch, optionNames2, commandNames, includeHidden);
6268
6268
  allSkippable = allSkippable && branchSkippable;
6269
6269
  }
6270
6270
  if (allSkippable)
@@ -6351,10 +6351,10 @@ function sharedBufferLeadingNames(parsers) {
6351
6351
  return names.size === 0 ? EMPTY_LEADING_NAMES : names;
6352
6352
  }
6353
6353
  var fieldParsersKey = Symbol("fieldParsers");
6354
- function containsAnnotationView(value, seen = /* @__PURE__ */ new WeakSet) {
6355
- if (value == null || typeof value !== "object")
6354
+ function containsAnnotationView(value2, seen = /* @__PURE__ */ new WeakSet) {
6355
+ if (value2 == null || typeof value2 !== "object")
6356
6356
  return false;
6357
- const candidate = value;
6357
+ const candidate = value2;
6358
6358
  if (annotationViewTargets.has(candidate))
6359
6359
  return true;
6360
6360
  const source = unwrapAnnotationView(candidate);
@@ -6372,10 +6372,10 @@ function containsAnnotationView(value, seen = /* @__PURE__ */ new WeakSet) {
6372
6372
  return descriptor != null && "value" in descriptor ? containsAnnotationView(descriptor.value, seen) : false;
6373
6373
  });
6374
6374
  }
6375
- function unwrapNestedAnnotationViews(value, seen = /* @__PURE__ */ new WeakMap) {
6376
- if (value == null || typeof value !== "object")
6377
- return value;
6378
- const source = unwrapAnnotationView(value);
6375
+ function unwrapNestedAnnotationViews(value2, seen = /* @__PURE__ */ new WeakMap) {
6376
+ if (value2 == null || typeof value2 !== "object")
6377
+ return value2;
6378
+ const source = unwrapAnnotationView(value2);
6379
6379
  if (seen.has(source))
6380
6380
  return seen.get(source);
6381
6381
  if (Array.isArray(source)) {
@@ -6426,10 +6426,10 @@ function unwrapCompleteResult(result) {
6426
6426
  const unwrappedResult = isDependencySourceState(result) ? result.result : result;
6427
6427
  if (!unwrappedResult.success || !containsAnnotationView(unwrappedResult.value))
6428
6428
  return unwrappedResult;
6429
- const value = unwrapNestedAnnotationViews(unwrappedResult.value);
6430
- return value === unwrappedResult.value ? unwrappedResult : {
6429
+ const value2 = unwrapNestedAnnotationViews(unwrappedResult.value);
6430
+ return value2 === unwrappedResult.value ? unwrappedResult : {
6431
6431
  ...unwrappedResult,
6432
- value
6432
+ value: value2
6433
6433
  };
6434
6434
  }
6435
6435
  function reusePreCompletedPhase2Seed(parser, state, preCompletedResult, exec) {
@@ -8283,19 +8283,19 @@ function group(label, parser, options = {}) {
8283
8283
  }
8284
8284
 
8285
8285
  // node_modules/@optique/core/dist/nonempty.js
8286
- function ensureNonEmptyString(value) {
8287
- if (value === "")
8286
+ function ensureNonEmptyString(value2) {
8287
+ if (value2 === "")
8288
8288
  throw new TypeError("Expected a non-empty string.");
8289
8289
  }
8290
8290
 
8291
8291
  // node_modules/@optique/core/dist/valueparser.js
8292
- function isValueParser(object) {
8293
- if (typeof object !== "object" || object == null || !("mode" in object) || object.mode !== "sync" && object.mode !== "async")
8292
+ function isValueParser(object2) {
8293
+ if (typeof object2 !== "object" || object2 == null || !("mode" in object2) || object2.mode !== "sync" && object2.mode !== "async")
8294
8294
  return false;
8295
- const hasMetavar = "metavar" in object && typeof object.metavar === "string";
8296
- const hasParse = "parse" in object && typeof object.parse === "function";
8297
- const hasFormat = "format" in object && typeof object.format === "function";
8298
- const hasPlaceholder = "placeholder" in object;
8295
+ const hasMetavar = "metavar" in object2 && typeof object2.metavar === "string";
8296
+ const hasParse = "parse" in object2 && typeof object2.parse === "function";
8297
+ const hasFormat = "format" in object2 && typeof object2.format === "function";
8298
+ const hasPlaceholder = "placeholder" in object2;
8299
8299
  if (hasMetavar && hasParse && hasFormat && !hasPlaceholder)
8300
8300
  throw new TypeError("Value parser is missing the required placeholder property. All value parsers must define a placeholder value.");
8301
8301
  return hasMetavar && hasParse && hasFormat && hasPlaceholder;
@@ -8330,8 +8330,8 @@ function string(options = {}) {
8330
8330
  value: input
8331
8331
  };
8332
8332
  },
8333
- format(value) {
8334
- return value;
8333
+ format(value2) {
8334
+ return value2;
8335
8335
  }
8336
8336
  };
8337
8337
  }
@@ -9456,7 +9456,7 @@ async function resolveDerivedCompletionAsync(derivedMetadata, state, exec) {
9456
9456
  }, traceEntry.rawInput, exec.dependencyRuntime);
9457
9457
  return replayed ?? traceEntry.preliminaryResult ?? state;
9458
9458
  }
9459
- function constant(value) {
9459
+ function constant(value2) {
9460
9460
  const result = {
9461
9461
  $valueType: [],
9462
9462
  $stateType: [],
@@ -9465,7 +9465,7 @@ function constant(value) {
9465
9465
  usage: [],
9466
9466
  leadingNames: EMPTY_LEADING_NAMES2,
9467
9467
  acceptingAnyToken: false,
9468
- initialState: value,
9468
+ initialState: value2,
9469
9469
  canSkip() {
9470
9470
  return true;
9471
9471
  },
@@ -9490,7 +9490,7 @@ function constant(value) {
9490
9490
  }
9491
9491
  };
9492
9492
  Object.defineProperty(result, "placeholder", {
9493
- value,
9493
+ value: value2,
9494
9494
  configurable: true,
9495
9495
  enumerable: false,
9496
9496
  writable: false
@@ -10138,11 +10138,11 @@ function flag(...args) {
10138
10138
  const prefixes = optionNames$1.filter((name) => name.startsWith("--") || name.startsWith("/") || name.startsWith("-") && name.length > 2).map((name) => name.startsWith("/") ? `${name}:` : `${name}=`);
10139
10139
  for (const prefix of prefixes)
10140
10140
  if (context.buffer[0].startsWith(prefix)) {
10141
- const value = context.buffer[0].slice(prefix.length);
10141
+ const value2 = context.buffer[0].slice(prefix.length);
10142
10142
  return {
10143
10143
  success: false,
10144
10144
  consumed: 1,
10145
- error: message`Flag ${optionName(prefix.slice(0, -1))} does not accept a value, but got: ${value}.`
10145
+ error: message`Flag ${optionName(prefix.slice(0, -1))} does not accept a value, but got: ${value2}.`
10146
10146
  };
10147
10147
  }
10148
10148
  const shortOptions = optionNames$1.filter((name) => name.match(/^-[^-]$/));
@@ -10505,11 +10505,11 @@ function getHiddenCommandAliases(options) {
10505
10505
  throw new TypeError("Hidden command aliases must be a non-empty array of strings.");
10506
10506
  return hiddenAliases;
10507
10507
  }
10508
- function isNonEmptyStringArray(value) {
10509
- if (!Array.isArray(value) || value.length === 0)
10508
+ function isNonEmptyStringArray(value2) {
10509
+ if (!Array.isArray(value2) || value2.length === 0)
10510
10510
  return false;
10511
- for (let i = 0;i < value.length; i++)
10512
- if (typeof value[i] !== "string")
10511
+ for (let i = 0;i < value2.length; i++)
10512
+ if (typeof value2[i] !== "string")
10513
10513
  return false;
10514
10514
  return true;
10515
10515
  }
@@ -11656,17 +11656,17 @@ function isCompletionBufferUnchanged(before, after) {
11656
11656
  return before.length === after.length && before.every((arg, index) => arg === after[index]);
11657
11657
  }
11658
11658
  function collectActiveValueOptionNames(usage, commandPath, includeDirectAfterCommandOptions, rootLeadingNames) {
11659
- const optionNames = {
11659
+ const optionNames2 = {
11660
11660
  value: /* @__PURE__ */ new Set,
11661
11661
  flag: /* @__PURE__ */ new Set
11662
11662
  };
11663
11663
  if (commandPath.length === 0) {
11664
- collectRootOptionNames(usage, optionNames, rootLeadingNames);
11665
- return optionNames.value;
11664
+ collectRootOptionNames(usage, optionNames2, rootLeadingNames);
11665
+ return optionNames2.value;
11666
11666
  } else
11667
- collectActiveOptionNames(usage, commandPath, optionNames, false, includeDirectAfterCommandOptions);
11668
- const names = new Set(optionNames.value);
11669
- for (const name of optionNames.flag)
11667
+ collectActiveOptionNames(usage, commandPath, optionNames2, false, includeDirectAfterCommandOptions);
11668
+ const names = new Set(optionNames2.value);
11669
+ for (const name of optionNames2.flag)
11670
11670
  names.delete(name);
11671
11671
  return names;
11672
11672
  }
@@ -12572,9 +12572,13 @@ var parser = optional(command("update", object({
12572
12572
  // package.json
12573
12573
  var package_default = {
12574
12574
  name: "@gander-labs/package-crafting-playground",
12575
- version: "0.3.5",
12575
+ version: "0.3.6",
12576
12576
  license: "AGPL-3.0-only",
12577
12577
  type: "module",
12578
+ repository: {
12579
+ type: "git",
12580
+ url: "git+https://github.com/gander-labs/package-crafting-playground.git"
12581
+ },
12578
12582
  bin: {
12579
12583
  "package-crafting-playground": "dist/package-crafting-playground.js"
12580
12584
  },
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@gander-labs/package-crafting-playground",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/gander-labs/package-crafting-playground.git"
9
+ },
6
10
  "bin": {
7
11
  "package-crafting-playground": "dist/package-crafting-playground.js"
8
12
  },