@polka-codes/runner 0.9.77 → 0.9.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +266 -228
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4456,13 +4456,13 @@ var require_identity = __commonJS((exports) => {
4456
4456
 
4457
4457
  // ../../node_modules/yaml/dist/visit.js
4458
4458
  var require_visit = __commonJS((exports) => {
4459
- var identity2 = require_identity();
4459
+ var identity = require_identity();
4460
4460
  var BREAK = Symbol("break visit");
4461
4461
  var SKIP = Symbol("skip children");
4462
4462
  var REMOVE = Symbol("remove node");
4463
4463
  function visit(node, visitor) {
4464
4464
  const visitor_ = initVisitor(visitor);
4465
- if (identity2.isDocument(node)) {
4465
+ if (identity.isDocument(node)) {
4466
4466
  const cd = visit_(null, node.contents, visitor_, Object.freeze([node]));
4467
4467
  if (cd === REMOVE)
4468
4468
  node.contents = null;
@@ -4474,12 +4474,12 @@ var require_visit = __commonJS((exports) => {
4474
4474
  visit.REMOVE = REMOVE;
4475
4475
  function visit_(key, node, visitor, path) {
4476
4476
  const ctrl = callVisitor(key, node, visitor, path);
4477
- if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
4477
+ if (identity.isNode(ctrl) || identity.isPair(ctrl)) {
4478
4478
  replaceNode(key, path, ctrl);
4479
4479
  return visit_(key, ctrl, visitor, path);
4480
4480
  }
4481
4481
  if (typeof ctrl !== "symbol") {
4482
- if (identity2.isCollection(node)) {
4482
+ if (identity.isCollection(node)) {
4483
4483
  path = Object.freeze(path.concat(node));
4484
4484
  for (let i = 0;i < node.items.length; ++i) {
4485
4485
  const ci = visit_(i, node.items[i], visitor, path);
@@ -4492,7 +4492,7 @@ var require_visit = __commonJS((exports) => {
4492
4492
  i -= 1;
4493
4493
  }
4494
4494
  }
4495
- } else if (identity2.isPair(node)) {
4495
+ } else if (identity.isPair(node)) {
4496
4496
  path = Object.freeze(path.concat(node));
4497
4497
  const ck = visit_("key", node.key, visitor, path);
4498
4498
  if (ck === BREAK)
@@ -4510,7 +4510,7 @@ var require_visit = __commonJS((exports) => {
4510
4510
  }
4511
4511
  async function visitAsync(node, visitor) {
4512
4512
  const visitor_ = initVisitor(visitor);
4513
- if (identity2.isDocument(node)) {
4513
+ if (identity.isDocument(node)) {
4514
4514
  const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node]));
4515
4515
  if (cd === REMOVE)
4516
4516
  node.contents = null;
@@ -4522,12 +4522,12 @@ var require_visit = __commonJS((exports) => {
4522
4522
  visitAsync.REMOVE = REMOVE;
4523
4523
  async function visitAsync_(key, node, visitor, path) {
4524
4524
  const ctrl = await callVisitor(key, node, visitor, path);
4525
- if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
4525
+ if (identity.isNode(ctrl) || identity.isPair(ctrl)) {
4526
4526
  replaceNode(key, path, ctrl);
4527
4527
  return visitAsync_(key, ctrl, visitor, path);
4528
4528
  }
4529
4529
  if (typeof ctrl !== "symbol") {
4530
- if (identity2.isCollection(node)) {
4530
+ if (identity.isCollection(node)) {
4531
4531
  path = Object.freeze(path.concat(node));
4532
4532
  for (let i = 0;i < node.items.length; ++i) {
4533
4533
  const ci = await visitAsync_(i, node.items[i], visitor, path);
@@ -4540,7 +4540,7 @@ var require_visit = __commonJS((exports) => {
4540
4540
  i -= 1;
4541
4541
  }
4542
4542
  }
4543
- } else if (identity2.isPair(node)) {
4543
+ } else if (identity.isPair(node)) {
4544
4544
  path = Object.freeze(path.concat(node));
4545
4545
  const ck = await visitAsync_("key", node.key, visitor, path);
4546
4546
  if (ck === BREAK)
@@ -4577,31 +4577,31 @@ var require_visit = __commonJS((exports) => {
4577
4577
  function callVisitor(key, node, visitor, path) {
4578
4578
  if (typeof visitor === "function")
4579
4579
  return visitor(key, node, path);
4580
- if (identity2.isMap(node))
4580
+ if (identity.isMap(node))
4581
4581
  return visitor.Map?.(key, node, path);
4582
- if (identity2.isSeq(node))
4582
+ if (identity.isSeq(node))
4583
4583
  return visitor.Seq?.(key, node, path);
4584
- if (identity2.isPair(node))
4584
+ if (identity.isPair(node))
4585
4585
  return visitor.Pair?.(key, node, path);
4586
- if (identity2.isScalar(node))
4586
+ if (identity.isScalar(node))
4587
4587
  return visitor.Scalar?.(key, node, path);
4588
- if (identity2.isAlias(node))
4588
+ if (identity.isAlias(node))
4589
4589
  return visitor.Alias?.(key, node, path);
4590
4590
  return;
4591
4591
  }
4592
4592
  function replaceNode(key, path, node) {
4593
4593
  const parent = path[path.length - 1];
4594
- if (identity2.isCollection(parent)) {
4594
+ if (identity.isCollection(parent)) {
4595
4595
  parent.items[key] = node;
4596
- } else if (identity2.isPair(parent)) {
4596
+ } else if (identity.isPair(parent)) {
4597
4597
  if (key === "key")
4598
4598
  parent.key = node;
4599
4599
  else
4600
4600
  parent.value = node;
4601
- } else if (identity2.isDocument(parent)) {
4601
+ } else if (identity.isDocument(parent)) {
4602
4602
  parent.contents = node;
4603
4603
  } else {
4604
- const pt = identity2.isAlias(parent) ? "alias" : "scalar";
4604
+ const pt = identity.isAlias(parent) ? "alias" : "scalar";
4605
4605
  throw new Error(`Cannot replace node with ${pt} parent`);
4606
4606
  }
4607
4607
  }
@@ -4611,7 +4611,7 @@ var require_visit = __commonJS((exports) => {
4611
4611
 
4612
4612
  // ../../node_modules/yaml/dist/doc/directives.js
4613
4613
  var require_directives = __commonJS((exports) => {
4614
- var identity2 = require_identity();
4614
+ var identity = require_identity();
4615
4615
  var visit = require_visit();
4616
4616
  var escapeChars = {
4617
4617
  "!": "%21",
@@ -4737,10 +4737,10 @@ var require_directives = __commonJS((exports) => {
4737
4737
  const lines = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [];
4738
4738
  const tagEntries = Object.entries(this.tags);
4739
4739
  let tagNames;
4740
- if (doc2 && tagEntries.length > 0 && identity2.isNode(doc2.contents)) {
4740
+ if (doc2 && tagEntries.length > 0 && identity.isNode(doc2.contents)) {
4741
4741
  const tags = {};
4742
4742
  visit.visit(doc2.contents, (_key, node) => {
4743
- if (identity2.isNode(node) && node.tag)
4743
+ if (identity.isNode(node) && node.tag)
4744
4744
  tags[node.tag] = true;
4745
4745
  });
4746
4746
  tagNames = Object.keys(tags);
@@ -4763,7 +4763,7 @@ var require_directives = __commonJS((exports) => {
4763
4763
 
4764
4764
  // ../../node_modules/yaml/dist/doc/anchors.js
4765
4765
  var require_anchors = __commonJS((exports) => {
4766
- var identity2 = require_identity();
4766
+ var identity = require_identity();
4767
4767
  var visit = require_visit();
4768
4768
  function anchorIsValid(anchor) {
4769
4769
  if (/[\x00-\x19\s,[\]{}]/.test(anchor)) {
@@ -4773,9 +4773,9 @@ var require_anchors = __commonJS((exports) => {
4773
4773
  }
4774
4774
  return true;
4775
4775
  }
4776
- function anchorNames(root2) {
4776
+ function anchorNames(root) {
4777
4777
  const anchors = new Set;
4778
- visit.visit(root2, {
4778
+ visit.visit(root, {
4779
4779
  Value(_key, node) {
4780
4780
  if (node.anchor)
4781
4781
  anchors.add(node.anchor);
@@ -4805,7 +4805,7 @@ var require_anchors = __commonJS((exports) => {
4805
4805
  setAnchors: () => {
4806
4806
  for (const source of aliasObjects) {
4807
4807
  const ref = sourceObjects.get(source);
4808
- if (typeof ref === "object" && ref.anchor && (identity2.isScalar(ref.node) || identity2.isCollection(ref.node))) {
4808
+ if (typeof ref === "object" && ref.anchor && (identity.isScalar(ref.node) || identity.isCollection(ref.node))) {
4809
4809
  ref.node.anchor = ref.anchor;
4810
4810
  } else {
4811
4811
  const error46 = new Error("Failed to resolve repeated object (this should not happen)");
@@ -4872,12 +4872,12 @@ var require_applyReviver = __commonJS((exports) => {
4872
4872
 
4873
4873
  // ../../node_modules/yaml/dist/nodes/toJS.js
4874
4874
  var require_toJS = __commonJS((exports) => {
4875
- var identity2 = require_identity();
4875
+ var identity = require_identity();
4876
4876
  function toJS(value, arg, ctx) {
4877
4877
  if (Array.isArray(value))
4878
4878
  return value.map((v, i) => toJS(v, String(i), ctx));
4879
4879
  if (value && typeof value.toJSON === "function") {
4880
- if (!ctx || !identity2.hasAnchor(value))
4880
+ if (!ctx || !identity.hasAnchor(value))
4881
4881
  return value.toJSON(arg, ctx);
4882
4882
  const data = { aliasCount: 0, count: 1, res: undefined };
4883
4883
  ctx.anchors.set(value, data);
@@ -4900,12 +4900,12 @@ var require_toJS = __commonJS((exports) => {
4900
4900
  // ../../node_modules/yaml/dist/nodes/Node.js
4901
4901
  var require_Node = __commonJS((exports) => {
4902
4902
  var applyReviver = require_applyReviver();
4903
- var identity2 = require_identity();
4903
+ var identity = require_identity();
4904
4904
  var toJS = require_toJS();
4905
4905
 
4906
4906
  class NodeBase {
4907
4907
  constructor(type) {
4908
- Object.defineProperty(this, identity2.NODE_TYPE, { value: type });
4908
+ Object.defineProperty(this, identity.NODE_TYPE, { value: type });
4909
4909
  }
4910
4910
  clone() {
4911
4911
  const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
@@ -4914,7 +4914,7 @@ var require_Node = __commonJS((exports) => {
4914
4914
  return copy;
4915
4915
  }
4916
4916
  toJS(doc2, { mapAsMap, maxAliasCount, onAnchor, reviver } = {}) {
4917
- if (!identity2.isDocument(doc2))
4917
+ if (!identity.isDocument(doc2))
4918
4918
  throw new TypeError("A document argument is required");
4919
4919
  const ctx = {
4920
4920
  anchors: new Map,
@@ -4938,13 +4938,13 @@ var require_Node = __commonJS((exports) => {
4938
4938
  var require_Alias = __commonJS((exports) => {
4939
4939
  var anchors = require_anchors();
4940
4940
  var visit = require_visit();
4941
- var identity2 = require_identity();
4941
+ var identity = require_identity();
4942
4942
  var Node = require_Node();
4943
4943
  var toJS = require_toJS();
4944
4944
 
4945
4945
  class Alias extends Node.NodeBase {
4946
4946
  constructor(source) {
4947
- super(identity2.ALIAS);
4947
+ super(identity.ALIAS);
4948
4948
  this.source = source;
4949
4949
  Object.defineProperty(this, "tag", {
4950
4950
  set() {
@@ -4960,7 +4960,7 @@ var require_Alias = __commonJS((exports) => {
4960
4960
  nodes = [];
4961
4961
  visit.visit(doc2, {
4962
4962
  Node: (_key, node) => {
4963
- if (identity2.isAlias(node) || identity2.hasAnchor(node))
4963
+ if (identity.isAlias(node) || identity.hasAnchor(node))
4964
4964
  nodes.push(node);
4965
4965
  }
4966
4966
  });
@@ -5020,11 +5020,11 @@ var require_Alias = __commonJS((exports) => {
5020
5020
  }
5021
5021
  }
5022
5022
  function getAliasCount(doc2, node, anchors2) {
5023
- if (identity2.isAlias(node)) {
5023
+ if (identity.isAlias(node)) {
5024
5024
  const source = node.resolve(doc2);
5025
5025
  const anchor = anchors2 && source && anchors2.get(source);
5026
5026
  return anchor ? anchor.count * anchor.aliasCount : 0;
5027
- } else if (identity2.isCollection(node)) {
5027
+ } else if (identity.isCollection(node)) {
5028
5028
  let count = 0;
5029
5029
  for (const item of node.items) {
5030
5030
  const c = getAliasCount(doc2, item, anchors2);
@@ -5032,7 +5032,7 @@ var require_Alias = __commonJS((exports) => {
5032
5032
  count = c;
5033
5033
  }
5034
5034
  return count;
5035
- } else if (identity2.isPair(node)) {
5035
+ } else if (identity.isPair(node)) {
5036
5036
  const kc = getAliasCount(doc2, node.key, anchors2);
5037
5037
  const vc = getAliasCount(doc2, node.value, anchors2);
5038
5038
  return Math.max(kc, vc);
@@ -5044,14 +5044,14 @@ var require_Alias = __commonJS((exports) => {
5044
5044
 
5045
5045
  // ../../node_modules/yaml/dist/nodes/Scalar.js
5046
5046
  var require_Scalar = __commonJS((exports) => {
5047
- var identity2 = require_identity();
5047
+ var identity = require_identity();
5048
5048
  var Node = require_Node();
5049
5049
  var toJS = require_toJS();
5050
5050
  var isScalarValue = (value) => !value || typeof value !== "function" && typeof value !== "object";
5051
5051
 
5052
5052
  class Scalar extends Node.NodeBase {
5053
5053
  constructor(value) {
5054
- super(identity2.SCALAR);
5054
+ super(identity.SCALAR);
5055
5055
  this.value = value;
5056
5056
  }
5057
5057
  toJSON(arg, ctx) {
@@ -5073,7 +5073,7 @@ var require_Scalar = __commonJS((exports) => {
5073
5073
  // ../../node_modules/yaml/dist/doc/createNode.js
5074
5074
  var require_createNode = __commonJS((exports) => {
5075
5075
  var Alias = require_Alias();
5076
- var identity2 = require_identity();
5076
+ var identity = require_identity();
5077
5077
  var Scalar = require_Scalar();
5078
5078
  var defaultTagPrefix = "tag:yaml.org,2002:";
5079
5079
  function findTagObject(value, tagName, tags) {
@@ -5087,12 +5087,12 @@ var require_createNode = __commonJS((exports) => {
5087
5087
  return tags.find((t) => t.identify?.(value) && !t.format);
5088
5088
  }
5089
5089
  function createNode(value, tagName, ctx) {
5090
- if (identity2.isDocument(value))
5090
+ if (identity.isDocument(value))
5091
5091
  value = value.contents;
5092
- if (identity2.isNode(value))
5092
+ if (identity.isNode(value))
5093
5093
  return value;
5094
- if (identity2.isPair(value)) {
5095
- const map2 = ctx.schema[identity2.MAP].createNode?.(ctx.schema, null, ctx);
5094
+ if (identity.isPair(value)) {
5095
+ const map2 = ctx.schema[identity.MAP].createNode?.(ctx.schema, null, ctx);
5096
5096
  map2.items.push(value);
5097
5097
  return map2;
5098
5098
  }
@@ -5124,7 +5124,7 @@ var require_createNode = __commonJS((exports) => {
5124
5124
  ref.node = node2;
5125
5125
  return node2;
5126
5126
  }
5127
- tagObj = value instanceof Map ? schema[identity2.MAP] : (Symbol.iterator in Object(value)) ? schema[identity2.SEQ] : schema[identity2.MAP];
5127
+ tagObj = value instanceof Map ? schema[identity.MAP] : (Symbol.iterator in Object(value)) ? schema[identity.SEQ] : schema[identity.MAP];
5128
5128
  }
5129
5129
  if (onTagObj) {
5130
5130
  onTagObj(tagObj);
@@ -5145,7 +5145,7 @@ var require_createNode = __commonJS((exports) => {
5145
5145
  // ../../node_modules/yaml/dist/nodes/Collection.js
5146
5146
  var require_Collection = __commonJS((exports) => {
5147
5147
  var createNode = require_createNode();
5148
- var identity2 = require_identity();
5148
+ var identity = require_identity();
5149
5149
  var Node = require_Node();
5150
5150
  function collectionFromPath(schema, path, value) {
5151
5151
  let v = value;
@@ -5185,7 +5185,7 @@ var require_Collection = __commonJS((exports) => {
5185
5185
  const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
5186
5186
  if (schema)
5187
5187
  copy.schema = schema;
5188
- copy.items = copy.items.map((it) => identity2.isNode(it) || identity2.isPair(it) ? it.clone(schema) : it);
5188
+ copy.items = copy.items.map((it) => identity.isNode(it) || identity.isPair(it) ? it.clone(schema) : it);
5189
5189
  if (this.range)
5190
5190
  copy.range = this.range.slice();
5191
5191
  return copy;
@@ -5196,7 +5196,7 @@ var require_Collection = __commonJS((exports) => {
5196
5196
  else {
5197
5197
  const [key, ...rest] = path;
5198
5198
  const node = this.get(key, true);
5199
- if (identity2.isCollection(node))
5199
+ if (identity.isCollection(node))
5200
5200
  node.addIn(rest, value);
5201
5201
  else if (node === undefined && this.schema)
5202
5202
  this.set(key, collectionFromPath(this.schema, rest, value));
@@ -5209,7 +5209,7 @@ var require_Collection = __commonJS((exports) => {
5209
5209
  if (rest.length === 0)
5210
5210
  return this.delete(key);
5211
5211
  const node = this.get(key, true);
5212
- if (identity2.isCollection(node))
5212
+ if (identity.isCollection(node))
5213
5213
  return node.deleteIn(rest);
5214
5214
  else
5215
5215
  throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
@@ -5218,16 +5218,16 @@ var require_Collection = __commonJS((exports) => {
5218
5218
  const [key, ...rest] = path;
5219
5219
  const node = this.get(key, true);
5220
5220
  if (rest.length === 0)
5221
- return !keepScalar && identity2.isScalar(node) ? node.value : node;
5221
+ return !keepScalar && identity.isScalar(node) ? node.value : node;
5222
5222
  else
5223
- return identity2.isCollection(node) ? node.getIn(rest, keepScalar) : undefined;
5223
+ return identity.isCollection(node) ? node.getIn(rest, keepScalar) : undefined;
5224
5224
  }
5225
5225
  hasAllNullValues(allowScalar) {
5226
5226
  return this.items.every((node) => {
5227
- if (!identity2.isPair(node))
5227
+ if (!identity.isPair(node))
5228
5228
  return false;
5229
5229
  const n = node.value;
5230
- return n == null || allowScalar && identity2.isScalar(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
5230
+ return n == null || allowScalar && identity.isScalar(n) && n.value == null && !n.commentBefore && !n.comment && !n.tag;
5231
5231
  });
5232
5232
  }
5233
5233
  hasIn(path) {
@@ -5235,7 +5235,7 @@ var require_Collection = __commonJS((exports) => {
5235
5235
  if (rest.length === 0)
5236
5236
  return this.has(key);
5237
5237
  const node = this.get(key, true);
5238
- return identity2.isCollection(node) ? node.hasIn(rest) : false;
5238
+ return identity.isCollection(node) ? node.hasIn(rest) : false;
5239
5239
  }
5240
5240
  setIn(path, value) {
5241
5241
  const [key, ...rest] = path;
@@ -5243,7 +5243,7 @@ var require_Collection = __commonJS((exports) => {
5243
5243
  this.set(key, value);
5244
5244
  } else {
5245
5245
  const node = this.get(key, true);
5246
- if (identity2.isCollection(node))
5246
+ if (identity.isCollection(node))
5247
5247
  node.setIn(rest, value);
5248
5248
  else if (node === undefined && this.schema)
5249
5249
  this.set(key, collectionFromPath(this.schema, rest, value));
@@ -5712,7 +5712,7 @@ ${indent}`);
5712
5712
  // ../../node_modules/yaml/dist/stringify/stringify.js
5713
5713
  var require_stringify = __commonJS((exports) => {
5714
5714
  var anchors = require_anchors();
5715
- var identity2 = require_identity();
5715
+ var identity = require_identity();
5716
5716
  var stringifyComment = require_stringifyComment();
5717
5717
  var stringifyString = require_stringifyString();
5718
5718
  function createStringifyContext(doc2, options) {
@@ -5764,7 +5764,7 @@ var require_stringify = __commonJS((exports) => {
5764
5764
  }
5765
5765
  let tagObj = undefined;
5766
5766
  let obj;
5767
- if (identity2.isScalar(item)) {
5767
+ if (identity.isScalar(item)) {
5768
5768
  obj = item.value;
5769
5769
  let match = tags.filter((t) => t.identify?.(obj));
5770
5770
  if (match.length > 1) {
@@ -5787,7 +5787,7 @@ var require_stringify = __commonJS((exports) => {
5787
5787
  if (!doc2.directives)
5788
5788
  return "";
5789
5789
  const props = [];
5790
- const anchor = (identity2.isScalar(node) || identity2.isCollection(node)) && node.anchor;
5790
+ const anchor = (identity.isScalar(node) || identity.isCollection(node)) && node.anchor;
5791
5791
  if (anchor && anchors.anchorIsValid(anchor)) {
5792
5792
  anchors$1.add(anchor);
5793
5793
  props.push(`&${anchor}`);
@@ -5798,9 +5798,9 @@ var require_stringify = __commonJS((exports) => {
5798
5798
  return props.join(" ");
5799
5799
  }
5800
5800
  function stringify(item, ctx, onComment, onChompKeep) {
5801
- if (identity2.isPair(item))
5801
+ if (identity.isPair(item))
5802
5802
  return item.toString(ctx, onComment, onChompKeep);
5803
- if (identity2.isAlias(item)) {
5803
+ if (identity.isAlias(item)) {
5804
5804
  if (ctx.doc.directives)
5805
5805
  return item.toString(ctx);
5806
5806
  if (ctx.resolvedAliases?.has(item)) {
@@ -5814,15 +5814,15 @@ var require_stringify = __commonJS((exports) => {
5814
5814
  }
5815
5815
  }
5816
5816
  let tagObj = undefined;
5817
- const node = identity2.isNode(item) ? item : ctx.doc.createNode(item, { onTagObj: (o) => tagObj = o });
5817
+ const node = identity.isNode(item) ? item : ctx.doc.createNode(item, { onTagObj: (o) => tagObj = o });
5818
5818
  tagObj ?? (tagObj = getTagObject(ctx.doc.schema.tags, node));
5819
5819
  const props = stringifyProps(node, tagObj, ctx);
5820
5820
  if (props.length > 0)
5821
5821
  ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
5822
- const str = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : identity2.isScalar(node) ? stringifyString.stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
5822
+ const str = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : identity.isScalar(node) ? stringifyString.stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
5823
5823
  if (!props)
5824
5824
  return str;
5825
- return identity2.isScalar(node) || str[0] === "{" || str[0] === "[" ? `${props} ${str}` : `${props}
5825
+ return identity.isScalar(node) || str[0] === "{" || str[0] === "[" ? `${props} ${str}` : `${props}
5826
5826
  ${ctx.indent}${str}`;
5827
5827
  }
5828
5828
  exports.createStringifyContext = createStringifyContext;
@@ -5831,23 +5831,23 @@ ${ctx.indent}${str}`;
5831
5831
 
5832
5832
  // ../../node_modules/yaml/dist/stringify/stringifyPair.js
5833
5833
  var require_stringifyPair = __commonJS((exports) => {
5834
- var identity2 = require_identity();
5834
+ var identity = require_identity();
5835
5835
  var Scalar = require_Scalar();
5836
5836
  var stringify = require_stringify();
5837
5837
  var stringifyComment = require_stringifyComment();
5838
5838
  function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
5839
5839
  const { allNullValues, doc: doc2, indent, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
5840
- let keyComment = identity2.isNode(key) && key.comment || null;
5840
+ let keyComment = identity.isNode(key) && key.comment || null;
5841
5841
  if (simpleKeys) {
5842
5842
  if (keyComment) {
5843
5843
  throw new Error("With simple keys, key nodes cannot have comments");
5844
5844
  }
5845
- if (identity2.isCollection(key) || !identity2.isNode(key) && typeof key === "object") {
5845
+ if (identity.isCollection(key) || !identity.isNode(key) && typeof key === "object") {
5846
5846
  const msg = "With simple keys, collection cannot be used as a key value";
5847
5847
  throw new Error(msg);
5848
5848
  }
5849
5849
  }
5850
- let explicitKey = !simpleKeys && (!key || keyComment && value == null && !ctx.inFlow || identity2.isCollection(key) || (identity2.isScalar(key) ? key.type === Scalar.Scalar.BLOCK_FOLDED || key.type === Scalar.Scalar.BLOCK_LITERAL : typeof key === "object"));
5850
+ let explicitKey = !simpleKeys && (!key || keyComment && value == null && !ctx.inFlow || identity.isCollection(key) || (identity.isScalar(key) ? key.type === Scalar.Scalar.BLOCK_FOLDED || key.type === Scalar.Scalar.BLOCK_LITERAL : typeof key === "object"));
5851
5851
  ctx = Object.assign({}, ctx, {
5852
5852
  allNullValues: false,
5853
5853
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -5888,7 +5888,7 @@ ${indent}:`;
5888
5888
  str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
5889
5889
  }
5890
5890
  let vsb, vcb, valueComment;
5891
- if (identity2.isNode(value)) {
5891
+ if (identity.isNode(value)) {
5892
5892
  vsb = !!value.spaceBefore;
5893
5893
  vcb = value.commentBefore;
5894
5894
  valueComment = value.comment;
@@ -5900,10 +5900,10 @@ ${indent}:`;
5900
5900
  value = doc2.createNode(value);
5901
5901
  }
5902
5902
  ctx.implicitKey = false;
5903
- if (!explicitKey && !keyComment && identity2.isScalar(value))
5903
+ if (!explicitKey && !keyComment && identity.isScalar(value))
5904
5904
  ctx.indentAtStart = str.length + 1;
5905
5905
  chompKeep = false;
5906
- if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && identity2.isSeq(value) && !value.flow && !value.tag && !value.anchor) {
5906
+ if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && identity.isSeq(value) && !value.flow && !value.tag && !value.anchor) {
5907
5907
  ctx.indent = ctx.indent.substring(2);
5908
5908
  }
5909
5909
  let valueCommentDone = false;
@@ -5927,7 +5927,7 @@ ${stringifyComment.indentComment(cs, ctx.indent)}`;
5927
5927
  ws += `
5928
5928
  ${ctx.indent}`;
5929
5929
  }
5930
- } else if (!explicitKey && identity2.isCollection(value)) {
5930
+ } else if (!explicitKey && identity.isCollection(value)) {
5931
5931
  const vs0 = valueStr[0];
5932
5932
  const nl0 = valueStr.indexOf(`
5933
5933
  `);
@@ -5986,10 +5986,10 @@ var require_log = __commonJS((exports) => {
5986
5986
 
5987
5987
  // ../../node_modules/yaml/dist/schema/yaml-1.1/merge.js
5988
5988
  var require_merge = __commonJS((exports) => {
5989
- var identity2 = require_identity();
5989
+ var identity = require_identity();
5990
5990
  var Scalar = require_Scalar();
5991
5991
  var MERGE_KEY = "<<";
5992
- var merge3 = {
5992
+ var merge2 = {
5993
5993
  identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
5994
5994
  default: "key",
5995
5995
  tag: "tag:yaml.org,2002:merge",
@@ -5999,10 +5999,10 @@ var require_merge = __commonJS((exports) => {
5999
5999
  }),
6000
6000
  stringify: () => MERGE_KEY
6001
6001
  };
6002
- var isMergeKey = (ctx, key) => (merge3.identify(key) || identity2.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge3.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
6002
+ var isMergeKey = (ctx, key) => (merge2.identify(key) || identity.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge2.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge2.tag && tag.default);
6003
6003
  function addMergeToJSMap(ctx, map2, value) {
6004
- value = ctx && identity2.isAlias(value) ? value.resolve(ctx.doc) : value;
6005
- if (identity2.isSeq(value))
6004
+ value = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
6005
+ if (identity.isSeq(value))
6006
6006
  for (const it of value.items)
6007
6007
  mergeValue(ctx, map2, it);
6008
6008
  else if (Array.isArray(value))
@@ -6012,8 +6012,8 @@ var require_merge = __commonJS((exports) => {
6012
6012
  mergeValue(ctx, map2, value);
6013
6013
  }
6014
6014
  function mergeValue(ctx, map2, value) {
6015
- const source = ctx && identity2.isAlias(value) ? value.resolve(ctx.doc) : value;
6016
- if (!identity2.isMap(source))
6015
+ const source = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
6016
+ if (!identity.isMap(source))
6017
6017
  throw new Error("Merge sources must be maps or map aliases");
6018
6018
  const srcMap = source.toJSON(null, ctx, Map);
6019
6019
  for (const [key, value2] of srcMap) {
@@ -6035,21 +6035,21 @@ var require_merge = __commonJS((exports) => {
6035
6035
  }
6036
6036
  exports.addMergeToJSMap = addMergeToJSMap;
6037
6037
  exports.isMergeKey = isMergeKey;
6038
- exports.merge = merge3;
6038
+ exports.merge = merge2;
6039
6039
  });
6040
6040
 
6041
6041
  // ../../node_modules/yaml/dist/nodes/addPairToJSMap.js
6042
6042
  var require_addPairToJSMap = __commonJS((exports) => {
6043
6043
  var log = require_log();
6044
- var merge3 = require_merge();
6044
+ var merge2 = require_merge();
6045
6045
  var stringify = require_stringify();
6046
- var identity2 = require_identity();
6046
+ var identity = require_identity();
6047
6047
  var toJS = require_toJS();
6048
6048
  function addPairToJSMap(ctx, map2, { key, value }) {
6049
- if (identity2.isNode(key) && key.addToJSMap)
6049
+ if (identity.isNode(key) && key.addToJSMap)
6050
6050
  key.addToJSMap(ctx, map2, value);
6051
- else if (merge3.isMergeKey(ctx, key))
6052
- merge3.addMergeToJSMap(ctx, map2, value);
6051
+ else if (merge2.isMergeKey(ctx, key))
6052
+ merge2.addMergeToJSMap(ctx, map2, value);
6053
6053
  else {
6054
6054
  const jsKey = toJS.toJS(key, "", ctx);
6055
6055
  if (map2 instanceof Map) {
@@ -6077,7 +6077,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
6077
6077
  return "";
6078
6078
  if (typeof jsKey !== "object")
6079
6079
  return String(jsKey);
6080
- if (identity2.isNode(key) && ctx?.doc) {
6080
+ if (identity.isNode(key) && ctx?.doc) {
6081
6081
  const strCtx = stringify.createStringifyContext(ctx.doc, {});
6082
6082
  strCtx.anchors = new Set;
6083
6083
  for (const node of ctx.anchors.keys())
@@ -6104,7 +6104,7 @@ var require_Pair = __commonJS((exports) => {
6104
6104
  var createNode = require_createNode();
6105
6105
  var stringifyPair = require_stringifyPair();
6106
6106
  var addPairToJSMap = require_addPairToJSMap();
6107
- var identity2 = require_identity();
6107
+ var identity = require_identity();
6108
6108
  function createPair(key, value, ctx) {
6109
6109
  const k = createNode.createNode(key, undefined, ctx);
6110
6110
  const v = createNode.createNode(value, undefined, ctx);
@@ -6113,15 +6113,15 @@ var require_Pair = __commonJS((exports) => {
6113
6113
 
6114
6114
  class Pair {
6115
6115
  constructor(key, value = null) {
6116
- Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
6116
+ Object.defineProperty(this, identity.NODE_TYPE, { value: identity.PAIR });
6117
6117
  this.key = key;
6118
6118
  this.value = value;
6119
6119
  }
6120
6120
  clone(schema) {
6121
6121
  let { key, value } = this;
6122
- if (identity2.isNode(key))
6122
+ if (identity.isNode(key))
6123
6123
  key = key.clone(schema);
6124
- if (identity2.isNode(value))
6124
+ if (identity.isNode(value))
6125
6125
  value = value.clone(schema);
6126
6126
  return new Pair(key, value);
6127
6127
  }
@@ -6139,7 +6139,7 @@ var require_Pair = __commonJS((exports) => {
6139
6139
 
6140
6140
  // ../../node_modules/yaml/dist/stringify/stringifyCollection.js
6141
6141
  var require_stringifyCollection = __commonJS((exports) => {
6142
- var identity2 = require_identity();
6142
+ var identity = require_identity();
6143
6143
  var stringify = require_stringify();
6144
6144
  var stringifyComment = require_stringifyComment();
6145
6145
  function stringifyCollection(collection, ctx, options) {
@@ -6155,14 +6155,14 @@ var require_stringifyCollection = __commonJS((exports) => {
6155
6155
  for (let i = 0;i < items.length; ++i) {
6156
6156
  const item = items[i];
6157
6157
  let comment2 = null;
6158
- if (identity2.isNode(item)) {
6158
+ if (identity.isNode(item)) {
6159
6159
  if (!chompKeep && item.spaceBefore)
6160
6160
  lines.push("");
6161
6161
  addCommentBefore(ctx, lines, item.commentBefore, chompKeep);
6162
6162
  if (item.comment)
6163
6163
  comment2 = item.comment;
6164
- } else if (identity2.isPair(item)) {
6165
- const ik = identity2.isNode(item.key) ? item.key : null;
6164
+ } else if (identity.isPair(item)) {
6165
+ const ik = identity.isNode(item.key) ? item.key : null;
6166
6166
  if (ik) {
6167
6167
  if (!chompKeep && ik.spaceBefore)
6168
6168
  lines.push("");
@@ -6212,14 +6212,14 @@ ${indent}${line}` : `
6212
6212
  for (let i = 0;i < items.length; ++i) {
6213
6213
  const item = items[i];
6214
6214
  let comment = null;
6215
- if (identity2.isNode(item)) {
6215
+ if (identity.isNode(item)) {
6216
6216
  if (item.spaceBefore)
6217
6217
  lines.push("");
6218
6218
  addCommentBefore(ctx, lines, item.commentBefore, false);
6219
6219
  if (item.comment)
6220
6220
  comment = item.comment;
6221
- } else if (identity2.isPair(item)) {
6222
- const ik = identity2.isNode(item.key) ? item.key : null;
6221
+ } else if (identity.isPair(item)) {
6222
+ const ik = identity.isNode(item.key) ? item.key : null;
6223
6223
  if (ik) {
6224
6224
  if (ik.spaceBefore)
6225
6225
  lines.push("");
@@ -6227,7 +6227,7 @@ ${indent}${line}` : `
6227
6227
  if (ik.comment)
6228
6228
  reqNewline = true;
6229
6229
  }
6230
- const iv = identity2.isNode(item.value) ? item.value : null;
6230
+ const iv = identity.isNode(item.value) ? item.value : null;
6231
6231
  if (iv) {
6232
6232
  if (iv.comment)
6233
6233
  comment = iv.comment;
@@ -6287,16 +6287,16 @@ var require_YAMLMap = __commonJS((exports) => {
6287
6287
  var stringifyCollection = require_stringifyCollection();
6288
6288
  var addPairToJSMap = require_addPairToJSMap();
6289
6289
  var Collection = require_Collection();
6290
- var identity2 = require_identity();
6290
+ var identity = require_identity();
6291
6291
  var Pair = require_Pair();
6292
6292
  var Scalar = require_Scalar();
6293
6293
  function findPair(items, key) {
6294
- const k = identity2.isScalar(key) ? key.value : key;
6294
+ const k = identity.isScalar(key) ? key.value : key;
6295
6295
  for (const it of items) {
6296
- if (identity2.isPair(it)) {
6296
+ if (identity.isPair(it)) {
6297
6297
  if (it.key === key || it.key === k)
6298
6298
  return it;
6299
- if (identity2.isScalar(it.key) && it.key.value === k)
6299
+ if (identity.isScalar(it.key) && it.key.value === k)
6300
6300
  return it;
6301
6301
  }
6302
6302
  }
@@ -6308,7 +6308,7 @@ var require_YAMLMap = __commonJS((exports) => {
6308
6308
  return "tag:yaml.org,2002:map";
6309
6309
  }
6310
6310
  constructor(schema) {
6311
- super(identity2.MAP, schema);
6311
+ super(identity.MAP, schema);
6312
6312
  this.items = [];
6313
6313
  }
6314
6314
  static from(schema, obj, ctx) {
@@ -6336,7 +6336,7 @@ var require_YAMLMap = __commonJS((exports) => {
6336
6336
  }
6337
6337
  add(pair, overwrite) {
6338
6338
  let _pair;
6339
- if (identity2.isPair(pair))
6339
+ if (identity.isPair(pair))
6340
6340
  _pair = pair;
6341
6341
  else if (!pair || typeof pair !== "object" || !("key" in pair)) {
6342
6342
  _pair = new Pair.Pair(pair, pair?.value);
@@ -6347,7 +6347,7 @@ var require_YAMLMap = __commonJS((exports) => {
6347
6347
  if (prev) {
6348
6348
  if (!overwrite)
6349
6349
  throw new Error(`Key ${_pair.key} already set`);
6350
- if (identity2.isScalar(prev.value) && Scalar.isScalarValue(_pair.value))
6350
+ if (identity.isScalar(prev.value) && Scalar.isScalarValue(_pair.value))
6351
6351
  prev.value.value = _pair.value;
6352
6352
  else
6353
6353
  prev.value = _pair.value;
@@ -6371,7 +6371,7 @@ var require_YAMLMap = __commonJS((exports) => {
6371
6371
  get(key, keepScalar) {
6372
6372
  const it = findPair(this.items, key);
6373
6373
  const node = it?.value;
6374
- return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
6374
+ return (!keepScalar && identity.isScalar(node) ? node.value : node) ?? undefined;
6375
6375
  }
6376
6376
  has(key) {
6377
6377
  return !!findPair(this.items, key);
@@ -6391,7 +6391,7 @@ var require_YAMLMap = __commonJS((exports) => {
6391
6391
  if (!ctx)
6392
6392
  return JSON.stringify(this);
6393
6393
  for (const item of this.items) {
6394
- if (!identity2.isPair(item))
6394
+ if (!identity.isPair(item))
6395
6395
  throw new Error(`Map items must all be pairs; found ${JSON.stringify(item)} instead`);
6396
6396
  }
6397
6397
  if (!ctx.allNullValues && this.hasAllNullValues(false))
@@ -6411,7 +6411,7 @@ var require_YAMLMap = __commonJS((exports) => {
6411
6411
 
6412
6412
  // ../../node_modules/yaml/dist/schema/common/map.js
6413
6413
  var require_map = __commonJS((exports) => {
6414
- var identity2 = require_identity();
6414
+ var identity = require_identity();
6415
6415
  var YAMLMap = require_YAMLMap();
6416
6416
  var map2 = {
6417
6417
  collection: "map",
@@ -6419,7 +6419,7 @@ var require_map = __commonJS((exports) => {
6419
6419
  nodeClass: YAMLMap.YAMLMap,
6420
6420
  tag: "tag:yaml.org,2002:map",
6421
6421
  resolve(map3, onError) {
6422
- if (!identity2.isMap(map3))
6422
+ if (!identity.isMap(map3))
6423
6423
  onError("Expected a mapping for this tag");
6424
6424
  return map3;
6425
6425
  },
@@ -6433,7 +6433,7 @@ var require_YAMLSeq = __commonJS((exports) => {
6433
6433
  var createNode = require_createNode();
6434
6434
  var stringifyCollection = require_stringifyCollection();
6435
6435
  var Collection = require_Collection();
6436
- var identity2 = require_identity();
6436
+ var identity = require_identity();
6437
6437
  var Scalar = require_Scalar();
6438
6438
  var toJS = require_toJS();
6439
6439
 
@@ -6442,7 +6442,7 @@ var require_YAMLSeq = __commonJS((exports) => {
6442
6442
  return "tag:yaml.org,2002:seq";
6443
6443
  }
6444
6444
  constructor(schema) {
6445
- super(identity2.SEQ, schema);
6445
+ super(identity.SEQ, schema);
6446
6446
  this.items = [];
6447
6447
  }
6448
6448
  add(value) {
@@ -6460,7 +6460,7 @@ var require_YAMLSeq = __commonJS((exports) => {
6460
6460
  if (typeof idx !== "number")
6461
6461
  return;
6462
6462
  const it = this.items[idx];
6463
- return !keepScalar && identity2.isScalar(it) ? it.value : it;
6463
+ return !keepScalar && identity.isScalar(it) ? it.value : it;
6464
6464
  }
6465
6465
  has(key) {
6466
6466
  const idx = asItemIndex(key);
@@ -6471,7 +6471,7 @@ var require_YAMLSeq = __commonJS((exports) => {
6471
6471
  if (typeof idx !== "number")
6472
6472
  throw new Error(`Expected a valid index, not ${key}.`);
6473
6473
  const prev = this.items[idx];
6474
- if (identity2.isScalar(prev) && Scalar.isScalarValue(value))
6474
+ if (identity.isScalar(prev) && Scalar.isScalarValue(value))
6475
6475
  prev.value = value;
6476
6476
  else
6477
6477
  this.items[idx] = value;
@@ -6513,7 +6513,7 @@ var require_YAMLSeq = __commonJS((exports) => {
6513
6513
  }
6514
6514
  }
6515
6515
  function asItemIndex(key) {
6516
- let idx = identity2.isScalar(key) ? key.value : key;
6516
+ let idx = identity.isScalar(key) ? key.value : key;
6517
6517
  if (idx && typeof idx === "string")
6518
6518
  idx = Number(idx);
6519
6519
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -6523,7 +6523,7 @@ var require_YAMLSeq = __commonJS((exports) => {
6523
6523
 
6524
6524
  // ../../node_modules/yaml/dist/schema/common/seq.js
6525
6525
  var require_seq = __commonJS((exports) => {
6526
- var identity2 = require_identity();
6526
+ var identity = require_identity();
6527
6527
  var YAMLSeq = require_YAMLSeq();
6528
6528
  var seq = {
6529
6529
  collection: "seq",
@@ -6531,7 +6531,7 @@ var require_seq = __commonJS((exports) => {
6531
6531
  nodeClass: YAMLSeq.YAMLSeq,
6532
6532
  tag: "tag:yaml.org,2002:seq",
6533
6533
  resolve(seq2, onError) {
6534
- if (!identity2.isSeq(seq2))
6534
+ if (!identity.isSeq(seq2))
6535
6535
  onError("Expected a sequence for this tag");
6536
6536
  return seq2;
6537
6537
  },
@@ -6559,29 +6559,29 @@ var require_string = __commonJS((exports) => {
6559
6559
  // ../../node_modules/yaml/dist/schema/common/null.js
6560
6560
  var require_null = __commonJS((exports) => {
6561
6561
  var Scalar = require_Scalar();
6562
- var nullTag2 = {
6562
+ var nullTag = {
6563
6563
  identify: (value) => value == null,
6564
6564
  createNode: () => new Scalar.Scalar(null),
6565
6565
  default: true,
6566
6566
  tag: "tag:yaml.org,2002:null",
6567
6567
  test: /^(?:~|[Nn]ull|NULL)?$/,
6568
6568
  resolve: () => new Scalar.Scalar(null),
6569
- stringify: ({ source }, ctx) => typeof source === "string" && nullTag2.test.test(source) ? source : ctx.options.nullStr
6569
+ stringify: ({ source }, ctx) => typeof source === "string" && nullTag.test.test(source) ? source : ctx.options.nullStr
6570
6570
  };
6571
- exports.nullTag = nullTag2;
6571
+ exports.nullTag = nullTag;
6572
6572
  });
6573
6573
 
6574
6574
  // ../../node_modules/yaml/dist/schema/core/bool.js
6575
6575
  var require_bool = __commonJS((exports) => {
6576
6576
  var Scalar = require_Scalar();
6577
- var boolTag2 = {
6577
+ var boolTag = {
6578
6578
  identify: (value) => typeof value === "boolean",
6579
6579
  default: true,
6580
6580
  tag: "tag:yaml.org,2002:bool",
6581
6581
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
6582
6582
  resolve: (str) => new Scalar.Scalar(str[0] === "t" || str[0] === "T"),
6583
6583
  stringify({ source, value }, ctx) {
6584
- if (source && boolTag2.test.test(source)) {
6584
+ if (source && boolTag.test.test(source)) {
6585
6585
  const sv = source[0] === "t" || source[0] === "T";
6586
6586
  if (value === sv)
6587
6587
  return source;
@@ -6589,7 +6589,7 @@ var require_bool = __commonJS((exports) => {
6589
6589
  return value ? ctx.options.trueStr : ctx.options.falseStr;
6590
6590
  }
6591
6591
  };
6592
- exports.boolTag = boolTag2;
6592
+ exports.boolTag = boolTag;
6593
6593
  });
6594
6594
 
6595
6595
  // ../../node_modules/yaml/dist/stringify/stringifyNumber.js
@@ -6847,17 +6847,17 @@ var require_binary = __commonJS((exports) => {
6847
6847
 
6848
6848
  // ../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js
6849
6849
  var require_pairs = __commonJS((exports) => {
6850
- var identity2 = require_identity();
6850
+ var identity = require_identity();
6851
6851
  var Pair = require_Pair();
6852
6852
  var Scalar = require_Scalar();
6853
6853
  var YAMLSeq = require_YAMLSeq();
6854
6854
  function resolvePairs(seq, onError) {
6855
- if (identity2.isSeq(seq)) {
6855
+ if (identity.isSeq(seq)) {
6856
6856
  for (let i = 0;i < seq.items.length; ++i) {
6857
6857
  let item = seq.items[i];
6858
- if (identity2.isPair(item))
6858
+ if (identity.isPair(item))
6859
6859
  continue;
6860
- else if (identity2.isMap(item)) {
6860
+ else if (identity.isMap(item)) {
6861
6861
  if (item.items.length > 1)
6862
6862
  onError("Each pair must have its own sequence indicator");
6863
6863
  const pair = item.items[0] || new Pair.Pair(new Scalar.Scalar(null));
@@ -6871,7 +6871,7 @@ ${cn.comment}` : item.comment;
6871
6871
  }
6872
6872
  item = pair;
6873
6873
  }
6874
- seq.items[i] = identity2.isPair(item) ? item : new Pair.Pair(item);
6874
+ seq.items[i] = identity.isPair(item) ? item : new Pair.Pair(item);
6875
6875
  }
6876
6876
  } else
6877
6877
  onError("Expected a sequence for this tag");
@@ -6922,7 +6922,7 @@ ${cn.comment}` : item.comment;
6922
6922
 
6923
6923
  // ../../node_modules/yaml/dist/schema/yaml-1.1/omap.js
6924
6924
  var require_omap = __commonJS((exports) => {
6925
- var identity2 = require_identity();
6925
+ var identity = require_identity();
6926
6926
  var toJS = require_toJS();
6927
6927
  var YAMLMap = require_YAMLMap();
6928
6928
  var YAMLSeq = require_YAMLSeq();
@@ -6946,7 +6946,7 @@ var require_omap = __commonJS((exports) => {
6946
6946
  ctx.onCreate(map2);
6947
6947
  for (const pair of this.items) {
6948
6948
  let key, value;
6949
- if (identity2.isPair(pair)) {
6949
+ if (identity.isPair(pair)) {
6950
6950
  key = toJS.toJS(pair.key, "", ctx);
6951
6951
  value = toJS.toJS(pair.value, key, ctx);
6952
6952
  } else {
@@ -6976,7 +6976,7 @@ var require_omap = __commonJS((exports) => {
6976
6976
  const pairs$1 = pairs.resolvePairs(seq, onError);
6977
6977
  const seenKeys = [];
6978
6978
  for (const { key } of pairs$1.items) {
6979
- if (identity2.isScalar(key)) {
6979
+ if (identity.isScalar(key)) {
6980
6980
  if (seenKeys.includes(key.value)) {
6981
6981
  onError(`Ordered maps must not include duplicate keys: ${key.value}`);
6982
6982
  } else {
@@ -7145,7 +7145,7 @@ var require_int2 = __commonJS((exports) => {
7145
7145
 
7146
7146
  // ../../node_modules/yaml/dist/schema/yaml-1.1/set.js
7147
7147
  var require_set = __commonJS((exports) => {
7148
- var identity2 = require_identity();
7148
+ var identity = require_identity();
7149
7149
  var Pair = require_Pair();
7150
7150
  var YAMLMap = require_YAMLMap();
7151
7151
 
@@ -7156,7 +7156,7 @@ var require_set = __commonJS((exports) => {
7156
7156
  }
7157
7157
  add(key) {
7158
7158
  let pair;
7159
- if (identity2.isPair(key))
7159
+ if (identity.isPair(key))
7160
7160
  pair = key;
7161
7161
  else if (key && typeof key === "object" && "key" in key && "value" in key && key.value === null)
7162
7162
  pair = new Pair.Pair(key.key, null);
@@ -7168,7 +7168,7 @@ var require_set = __commonJS((exports) => {
7168
7168
  }
7169
7169
  get(key, keepPair) {
7170
7170
  const pair = YAMLMap.findPair(this.items, key);
7171
- return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
7171
+ return !keepPair && identity.isPair(pair) ? identity.isScalar(pair.key) ? pair.key.value : pair.key : pair;
7172
7172
  }
7173
7173
  set(key, value) {
7174
7174
  if (typeof value !== "boolean")
@@ -7212,7 +7212,7 @@ var require_set = __commonJS((exports) => {
7212
7212
  tag: "tag:yaml.org,2002:set",
7213
7213
  createNode: (schema, iterable, ctx) => YAMLSet.from(schema, iterable, ctx),
7214
7214
  resolve(map2, onError) {
7215
- if (identity2.isMap(map2)) {
7215
+ if (identity.isMap(map2)) {
7216
7216
  if (map2.hasAllNullValues(true))
7217
7217
  return Object.assign(new YAMLSet, map2);
7218
7218
  else
@@ -7318,7 +7318,7 @@ var require_schema3 = __commonJS((exports) => {
7318
7318
  var bool = require_bool2();
7319
7319
  var float = require_float2();
7320
7320
  var int2 = require_int2();
7321
- var merge3 = require_merge();
7321
+ var merge2 = require_merge();
7322
7322
  var omap = require_omap();
7323
7323
  var pairs = require_pairs();
7324
7324
  var set2 = require_set();
@@ -7338,7 +7338,7 @@ var require_schema3 = __commonJS((exports) => {
7338
7338
  float.floatExp,
7339
7339
  float.float,
7340
7340
  binary.binary,
7341
- merge3.merge,
7341
+ merge2.merge,
7342
7342
  omap.omap,
7343
7343
  pairs.pairs,
7344
7344
  set2.set,
@@ -7361,7 +7361,7 @@ var require_tags = __commonJS((exports) => {
7361
7361
  var schema = require_schema();
7362
7362
  var schema$1 = require_schema2();
7363
7363
  var binary = require_binary();
7364
- var merge3 = require_merge();
7364
+ var merge2 = require_merge();
7365
7365
  var omap = require_omap();
7366
7366
  var pairs = require_pairs();
7367
7367
  var schema$2 = require_schema3();
@@ -7386,7 +7386,7 @@ var require_tags = __commonJS((exports) => {
7386
7386
  intOct: int2.intOct,
7387
7387
  intTime: timestamp.intTime,
7388
7388
  map: map2.map,
7389
- merge: merge3.merge,
7389
+ merge: merge2.merge,
7390
7390
  null: _null4.nullTag,
7391
7391
  omap: omap.omap,
7392
7392
  pairs: pairs.pairs,
@@ -7396,7 +7396,7 @@ var require_tags = __commonJS((exports) => {
7396
7396
  };
7397
7397
  var coreKnownTags = {
7398
7398
  "tag:yaml.org,2002:binary": binary.binary,
7399
- "tag:yaml.org,2002:merge": merge3.merge,
7399
+ "tag:yaml.org,2002:merge": merge2.merge,
7400
7400
  "tag:yaml.org,2002:omap": omap.omap,
7401
7401
  "tag:yaml.org,2002:pairs": pairs.pairs,
7402
7402
  "tag:yaml.org,2002:set": set2.set,
@@ -7405,7 +7405,7 @@ var require_tags = __commonJS((exports) => {
7405
7405
  function getTags(customTags, schemaName, addMergeTag) {
7406
7406
  const schemaTags = schemas3.get(schemaName);
7407
7407
  if (schemaTags && !customTags) {
7408
- return addMergeTag && !schemaTags.includes(merge3.merge) ? schemaTags.concat(merge3.merge) : schemaTags.slice();
7408
+ return addMergeTag && !schemaTags.includes(merge2.merge) ? schemaTags.concat(merge2.merge) : schemaTags.slice();
7409
7409
  }
7410
7410
  let tags = schemaTags;
7411
7411
  if (!tags) {
@@ -7423,7 +7423,7 @@ var require_tags = __commonJS((exports) => {
7423
7423
  tags = customTags(tags.slice());
7424
7424
  }
7425
7425
  if (addMergeTag)
7426
- tags = tags.concat(merge3.merge);
7426
+ tags = tags.concat(merge2.merge);
7427
7427
  return tags.reduce((tags2, tag) => {
7428
7428
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
7429
7429
  if (!tagObj) {
@@ -7442,7 +7442,7 @@ var require_tags = __commonJS((exports) => {
7442
7442
 
7443
7443
  // ../../node_modules/yaml/dist/schema/Schema.js
7444
7444
  var require_Schema = __commonJS((exports) => {
7445
- var identity2 = require_identity();
7445
+ var identity = require_identity();
7446
7446
  var map2 = require_map();
7447
7447
  var seq = require_seq();
7448
7448
  var string4 = require_string();
@@ -7450,15 +7450,15 @@ var require_Schema = __commonJS((exports) => {
7450
7450
  var sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
7451
7451
 
7452
7452
  class Schema {
7453
- constructor({ compat: compat2, customTags, merge: merge3, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
7453
+ constructor({ compat: compat2, customTags, merge: merge2, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
7454
7454
  this.compat = Array.isArray(compat2) ? tags.getTags(compat2, "compat") : compat2 ? tags.getTags(null, compat2) : null;
7455
7455
  this.name = typeof schema === "string" && schema || "core";
7456
7456
  this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
7457
- this.tags = tags.getTags(customTags, this.name, merge3);
7457
+ this.tags = tags.getTags(customTags, this.name, merge2);
7458
7458
  this.toStringOptions = toStringDefaults ?? null;
7459
- Object.defineProperty(this, identity2.MAP, { value: map2.map });
7460
- Object.defineProperty(this, identity2.SCALAR, { value: string4.string });
7461
- Object.defineProperty(this, identity2.SEQ, { value: seq.seq });
7459
+ Object.defineProperty(this, identity.MAP, { value: map2.map });
7460
+ Object.defineProperty(this, identity.SCALAR, { value: string4.string });
7461
+ Object.defineProperty(this, identity.SEQ, { value: seq.seq });
7462
7462
  this.sortMapEntries = typeof sortMapEntries === "function" ? sortMapEntries : sortMapEntries === true ? sortMapEntriesByKey : null;
7463
7463
  }
7464
7464
  clone() {
@@ -7472,7 +7472,7 @@ var require_Schema = __commonJS((exports) => {
7472
7472
 
7473
7473
  // ../../node_modules/yaml/dist/stringify/stringifyDocument.js
7474
7474
  var require_stringifyDocument = __commonJS((exports) => {
7475
- var identity2 = require_identity();
7475
+ var identity = require_identity();
7476
7476
  var stringify = require_stringify();
7477
7477
  var stringifyComment = require_stringifyComment();
7478
7478
  function stringifyDocument(doc2, options) {
@@ -7499,7 +7499,7 @@ var require_stringifyDocument = __commonJS((exports) => {
7499
7499
  let chompKeep = false;
7500
7500
  let contentComment = null;
7501
7501
  if (doc2.contents) {
7502
- if (identity2.isNode(doc2.contents)) {
7502
+ if (identity.isNode(doc2.contents)) {
7503
7503
  if (doc2.contents.spaceBefore && hasDirectives)
7504
7504
  lines.push("");
7505
7505
  if (doc2.contents.commentBefore) {
@@ -7554,7 +7554,7 @@ var require_stringifyDocument = __commonJS((exports) => {
7554
7554
  var require_Document = __commonJS((exports) => {
7555
7555
  var Alias = require_Alias();
7556
7556
  var Collection = require_Collection();
7557
- var identity2 = require_identity();
7557
+ var identity = require_identity();
7558
7558
  var Pair = require_Pair();
7559
7559
  var toJS = require_toJS();
7560
7560
  var Schema = require_Schema();
@@ -7570,7 +7570,7 @@ var require_Document = __commonJS((exports) => {
7570
7570
  this.comment = null;
7571
7571
  this.errors = [];
7572
7572
  this.warnings = [];
7573
- Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.DOC });
7573
+ Object.defineProperty(this, identity.NODE_TYPE, { value: identity.DOC });
7574
7574
  let _replacer = null;
7575
7575
  if (typeof replacer === "function" || Array.isArray(replacer)) {
7576
7576
  _replacer = replacer;
@@ -7601,7 +7601,7 @@ var require_Document = __commonJS((exports) => {
7601
7601
  }
7602
7602
  clone() {
7603
7603
  const copy = Object.create(Document.prototype, {
7604
- [identity2.NODE_TYPE]: { value: identity2.DOC }
7604
+ [identity.NODE_TYPE]: { value: identity.DOC }
7605
7605
  });
7606
7606
  copy.commentBefore = this.commentBefore;
7607
7607
  copy.comment = this.comment;
@@ -7611,7 +7611,7 @@ var require_Document = __commonJS((exports) => {
7611
7611
  if (this.directives)
7612
7612
  copy.directives = this.directives.clone();
7613
7613
  copy.schema = this.schema.clone();
7614
- copy.contents = identity2.isNode(this.contents) ? this.contents.clone(copy.schema) : this.contents;
7614
+ copy.contents = identity.isNode(this.contents) ? this.contents.clone(copy.schema) : this.contents;
7615
7615
  if (this.range)
7616
7616
  copy.range = this.range.slice();
7617
7617
  return copy;
@@ -7658,7 +7658,7 @@ var require_Document = __commonJS((exports) => {
7658
7658
  sourceObjects
7659
7659
  };
7660
7660
  const node = createNode.createNode(value, tag, ctx);
7661
- if (flow && identity2.isCollection(node))
7661
+ if (flow && identity.isCollection(node))
7662
7662
  node.flow = true;
7663
7663
  setAnchors();
7664
7664
  return node;
@@ -7681,20 +7681,20 @@ var require_Document = __commonJS((exports) => {
7681
7681
  return assertCollection(this.contents) ? this.contents.deleteIn(path) : false;
7682
7682
  }
7683
7683
  get(key, keepScalar) {
7684
- return identity2.isCollection(this.contents) ? this.contents.get(key, keepScalar) : undefined;
7684
+ return identity.isCollection(this.contents) ? this.contents.get(key, keepScalar) : undefined;
7685
7685
  }
7686
7686
  getIn(path, keepScalar) {
7687
7687
  if (Collection.isEmptyPath(path))
7688
- return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
7689
- return identity2.isCollection(this.contents) ? this.contents.getIn(path, keepScalar) : undefined;
7688
+ return !keepScalar && identity.isScalar(this.contents) ? this.contents.value : this.contents;
7689
+ return identity.isCollection(this.contents) ? this.contents.getIn(path, keepScalar) : undefined;
7690
7690
  }
7691
7691
  has(key) {
7692
- return identity2.isCollection(this.contents) ? this.contents.has(key) : false;
7692
+ return identity.isCollection(this.contents) ? this.contents.has(key) : false;
7693
7693
  }
7694
7694
  hasIn(path) {
7695
7695
  if (Collection.isEmptyPath(path))
7696
7696
  return this.contents !== undefined;
7697
- return identity2.isCollection(this.contents) ? this.contents.hasIn(path) : false;
7697
+ return identity.isCollection(this.contents) ? this.contents.hasIn(path) : false;
7698
7698
  }
7699
7699
  set(key, value) {
7700
7700
  if (this.contents == null) {
@@ -7778,7 +7778,7 @@ var require_Document = __commonJS((exports) => {
7778
7778
  }
7779
7779
  }
7780
7780
  function assertCollection(contents) {
7781
- if (identity2.isCollection(contents))
7781
+ if (identity.isCollection(contents))
7782
7782
  return true;
7783
7783
  throw new Error("Expected a YAML collection as document contents");
7784
7784
  }
@@ -8037,12 +8037,12 @@ var require_util_flow_indent_check = __commonJS((exports) => {
8037
8037
 
8038
8038
  // ../../node_modules/yaml/dist/compose/util-map-includes.js
8039
8039
  var require_util_map_includes = __commonJS((exports) => {
8040
- var identity2 = require_identity();
8040
+ var identity = require_identity();
8041
8041
  function mapIncludes(ctx, items, search) {
8042
8042
  const { uniqueKeys } = ctx.options;
8043
8043
  if (uniqueKeys === false)
8044
8044
  return false;
8045
- const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a, b) => a === b || identity2.isScalar(a) && identity2.isScalar(b) && a.value === b.value;
8045
+ const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a, b) => a === b || identity.isScalar(a) && identity.isScalar(b) && a.value === b.value;
8046
8046
  return items.some((pair) => isEqual(pair.key, search));
8047
8047
  }
8048
8048
  exports.mapIncludes = mapIncludes;
@@ -8245,7 +8245,7 @@ var require_resolve_end = __commonJS((exports) => {
8245
8245
 
8246
8246
  // ../../node_modules/yaml/dist/compose/resolve-flow-collection.js
8247
8247
  var require_resolve_flow_collection = __commonJS((exports) => {
8248
- var identity2 = require_identity();
8248
+ var identity = require_identity();
8249
8249
  var Pair = require_Pair();
8250
8250
  var YAMLMap = require_YAMLMap();
8251
8251
  var YAMLSeq = require_YAMLSeq();
@@ -8321,7 +8321,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
8321
8321
  }
8322
8322
  if (prevItemComment) {
8323
8323
  let prev = coll.items[coll.items.length - 1];
8324
- if (identity2.isPair(prev))
8324
+ if (identity.isPair(prev))
8325
8325
  prev = prev.value ?? prev.key;
8326
8326
  if (prev.comment)
8327
8327
  prev.comment += `
@@ -8436,7 +8436,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
8436
8436
 
8437
8437
  // ../../node_modules/yaml/dist/compose/compose-collection.js
8438
8438
  var require_compose_collection = __commonJS((exports) => {
8439
- var identity2 = require_identity();
8439
+ var identity = require_identity();
8440
8440
  var Scalar = require_Scalar();
8441
8441
  var YAMLMap = require_YAMLMap();
8442
8442
  var YAMLSeq = require_YAMLSeq();
@@ -8486,7 +8486,7 @@ var require_compose_collection = __commonJS((exports) => {
8486
8486
  }
8487
8487
  const coll = resolveCollection(CN, ctx, token, onError, tagName, tag);
8488
8488
  const res = tag.resolve?.(coll, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg), ctx.options) ?? coll;
8489
- const node = identity2.isNode(res) ? res : new Scalar.Scalar(res);
8489
+ const node = identity.isNode(res) ? res : new Scalar.Scalar(res);
8490
8490
  node.range = coll.range;
8491
8491
  node.tag = tagName;
8492
8492
  if (tag?.format)
@@ -8907,7 +8907,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
8907
8907
 
8908
8908
  // ../../node_modules/yaml/dist/compose/compose-scalar.js
8909
8909
  var require_compose_scalar = __commonJS((exports) => {
8910
- var identity2 = require_identity();
8910
+ var identity = require_identity();
8911
8911
  var Scalar = require_Scalar();
8912
8912
  var resolveBlockScalar = require_resolve_block_scalar();
8913
8913
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -8916,17 +8916,17 @@ var require_compose_scalar = __commonJS((exports) => {
8916
8916
  const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
8917
8917
  let tag;
8918
8918
  if (ctx.options.stringKeys && ctx.atKey) {
8919
- tag = ctx.schema[identity2.SCALAR];
8919
+ tag = ctx.schema[identity.SCALAR];
8920
8920
  } else if (tagName)
8921
8921
  tag = findScalarTagByName(ctx.schema, value, tagName, tagToken, onError);
8922
8922
  else if (token.type === "scalar")
8923
8923
  tag = findScalarTagByTest(ctx, value, token, onError);
8924
8924
  else
8925
- tag = ctx.schema[identity2.SCALAR];
8925
+ tag = ctx.schema[identity.SCALAR];
8926
8926
  let scalar;
8927
8927
  try {
8928
8928
  const res = tag.resolve(value, (msg) => onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg), ctx.options);
8929
- scalar = identity2.isScalar(res) ? res : new Scalar.Scalar(res);
8929
+ scalar = identity.isScalar(res) ? res : new Scalar.Scalar(res);
8930
8930
  } catch (error46) {
8931
8931
  const msg = error46 instanceof Error ? error46.message : String(error46);
8932
8932
  onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
@@ -8946,7 +8946,7 @@ var require_compose_scalar = __commonJS((exports) => {
8946
8946
  }
8947
8947
  function findScalarTagByName(schema, value, tagName, tagToken, onError) {
8948
8948
  if (tagName === "!")
8949
- return schema[identity2.SCALAR];
8949
+ return schema[identity.SCALAR];
8950
8950
  const matchWithTest = [];
8951
8951
  for (const tag of schema.tags) {
8952
8952
  if (!tag.collection && tag.tag === tagName) {
@@ -8965,12 +8965,12 @@ var require_compose_scalar = __commonJS((exports) => {
8965
8965
  return kt;
8966
8966
  }
8967
8967
  onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, tagName !== "tag:yaml.org,2002:str");
8968
- return schema[identity2.SCALAR];
8968
+ return schema[identity.SCALAR];
8969
8969
  }
8970
8970
  function findScalarTagByTest({ atKey, directives, schema }, value, token, onError) {
8971
- const tag = schema.tags.find((tag2) => (tag2.default === true || atKey && tag2.default === "key") && tag2.test?.test(value)) || schema[identity2.SCALAR];
8971
+ const tag = schema.tags.find((tag2) => (tag2.default === true || atKey && tag2.default === "key") && tag2.test?.test(value)) || schema[identity.SCALAR];
8972
8972
  if (schema.compat) {
8973
- const compat2 = schema.compat.find((tag2) => tag2.default && tag2.test?.test(value)) ?? schema[identity2.SCALAR];
8973
+ const compat2 = schema.compat.find((tag2) => tag2.default && tag2.test?.test(value)) ?? schema[identity.SCALAR];
8974
8974
  if (tag.tag !== compat2.tag) {
8975
8975
  const ts = directives.tagString(tag.tag);
8976
8976
  const cs = directives.tagString(compat2.tag);
@@ -9013,7 +9013,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
9013
9013
  // ../../node_modules/yaml/dist/compose/compose-node.js
9014
9014
  var require_compose_node = __commonJS((exports) => {
9015
9015
  var Alias = require_Alias();
9016
- var identity2 = require_identity();
9016
+ var identity = require_identity();
9017
9017
  var composeCollection = require_compose_collection();
9018
9018
  var composeScalar = require_compose_scalar();
9019
9019
  var resolveEnd = require_resolve_end();
@@ -9054,7 +9054,7 @@ var require_compose_node = __commonJS((exports) => {
9054
9054
  }
9055
9055
  if (anchor && node.anchor === "")
9056
9056
  onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
9057
- if (atKey && ctx.options.stringKeys && (!identity2.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) {
9057
+ if (atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) {
9058
9058
  const msg = "With stringKeys, all keys must be strings";
9059
9059
  onError(tag ?? token, "NON_STRING_KEY", msg);
9060
9060
  }
@@ -9154,7 +9154,7 @@ var require_composer = __commonJS((exports) => {
9154
9154
  var directives = require_directives();
9155
9155
  var Document = require_Document();
9156
9156
  var errors3 = require_errors();
9157
- var identity2 = require_identity();
9157
+ var identity = require_identity();
9158
9158
  var composeDoc = require_compose_doc();
9159
9159
  var resolveEnd = require_resolve_end();
9160
9160
  function getErrorPos(src) {
@@ -9220,9 +9220,9 @@ var require_composer = __commonJS((exports) => {
9220
9220
  ${comment}` : comment;
9221
9221
  } else if (afterEmptyLine || doc2.directives.docStart || !dc) {
9222
9222
  doc2.commentBefore = comment;
9223
- } else if (identity2.isCollection(dc) && !dc.flow && dc.items.length > 0) {
9223
+ } else if (identity.isCollection(dc) && !dc.flow && dc.items.length > 0) {
9224
9224
  let it = dc.items[0];
9225
- if (identity2.isPair(it))
9225
+ if (identity.isPair(it))
9226
9226
  it = it.key;
9227
9227
  const cb = it.commentBefore;
9228
9228
  it.commentBefore = cb ? `${comment}
@@ -11214,7 +11214,7 @@ var require_public_api = __commonJS((exports) => {
11214
11214
  var Document = require_Document();
11215
11215
  var errors3 = require_errors();
11216
11216
  var log = require_log();
11217
- var identity2 = require_identity();
11217
+ var identity = require_identity();
11218
11218
  var lineCounter = require_line_counter();
11219
11219
  var parser = require_parser();
11220
11220
  function parseOptions(options) {
@@ -11292,7 +11292,7 @@ var require_public_api = __commonJS((exports) => {
11292
11292
  if (!keepUndefined)
11293
11293
  return;
11294
11294
  }
11295
- if (identity2.isDocument(value) && !_replacer)
11295
+ if (identity.isDocument(value) && !_replacer)
11296
11296
  return value.toString(options);
11297
11297
  return new Document.Document(value, _replacer, options).toString(options);
11298
11298
  }
@@ -40499,7 +40499,7 @@ var {
40499
40499
  Help
40500
40500
  } = import__.default;
40501
40501
  // package.json
40502
- var version = "0.9.77";
40502
+ var version = "0.9.79";
40503
40503
 
40504
40504
  // src/runner.ts
40505
40505
  import { execSync } from "node:child_process";
@@ -64239,6 +64239,90 @@ var uiMessagesSchema = lazyValidator(() => zodSchema(exports_external.array(expo
64239
64239
  })
64240
64240
  ])).nonempty("Message must contain at least one part")
64241
64241
  })).nonempty("Messages array must not be empty")));
64242
+ // ../../node_modules/yaml/dist/index.js
64243
+ var composer = require_composer();
64244
+ var Document = require_Document();
64245
+ var Schema = require_Schema();
64246
+ var errors3 = require_errors();
64247
+ var Alias = require_Alias();
64248
+ var identity = require_identity();
64249
+ var Pair = require_Pair();
64250
+ var Scalar = require_Scalar();
64251
+ var YAMLMap = require_YAMLMap();
64252
+ var YAMLSeq = require_YAMLSeq();
64253
+ var cst = require_cst();
64254
+ var lexer = require_lexer();
64255
+ var lineCounter = require_line_counter();
64256
+ var parser = require_parser();
64257
+ var publicApi = require_public_api();
64258
+ var visit = require_visit();
64259
+ var $Composer = composer.Composer;
64260
+ var $Document = Document.Document;
64261
+ var $Schema = Schema.Schema;
64262
+ var $YAMLError = errors3.YAMLError;
64263
+ var $YAMLParseError = errors3.YAMLParseError;
64264
+ var $YAMLWarning = errors3.YAMLWarning;
64265
+ var $Alias = Alias.Alias;
64266
+ var $isAlias = identity.isAlias;
64267
+ var $isCollection = identity.isCollection;
64268
+ var $isDocument = identity.isDocument;
64269
+ var $isMap = identity.isMap;
64270
+ var $isNode = identity.isNode;
64271
+ var $isPair = identity.isPair;
64272
+ var $isScalar = identity.isScalar;
64273
+ var $isSeq = identity.isSeq;
64274
+ var $Pair = Pair.Pair;
64275
+ var $Scalar = Scalar.Scalar;
64276
+ var $YAMLMap = YAMLMap.YAMLMap;
64277
+ var $YAMLSeq = YAMLSeq.YAMLSeq;
64278
+ var $Lexer = lexer.Lexer;
64279
+ var $LineCounter = lineCounter.LineCounter;
64280
+ var $Parser = parser.Parser;
64281
+ var $parse = publicApi.parse;
64282
+ var $parseAllDocuments = publicApi.parseAllDocuments;
64283
+ var $parseDocument = publicApi.parseDocument;
64284
+ var $stringify = publicApi.stringify;
64285
+ var $visit = visit.visit;
64286
+ var $visitAsync = visit.visitAsync;
64287
+
64288
+ // ../core/src/workflow/dynamic-types.ts
64289
+ var WorkflowInputDefinitionSchema = exports_external.object({
64290
+ id: exports_external.string(),
64291
+ description: exports_external.string().nullish(),
64292
+ default: exports_external.any().nullish()
64293
+ });
64294
+ var WorkflowStepDefinitionSchema = exports_external.object({
64295
+ id: exports_external.string(),
64296
+ tools: exports_external.array(exports_external.string()).nullish(),
64297
+ task: exports_external.string(),
64298
+ output: exports_external.string().nullish(),
64299
+ expected_outcome: exports_external.string().nullish(),
64300
+ code: exports_external.string().nullish(),
64301
+ outputSchema: exports_external.any().nullish()
64302
+ });
64303
+ var WorkflowDefinitionSchema = exports_external.object({
64304
+ task: exports_external.string(),
64305
+ inputs: exports_external.array(WorkflowInputDefinitionSchema).nullish(),
64306
+ steps: exports_external.array(WorkflowStepDefinitionSchema),
64307
+ output: exports_external.string().nullish()
64308
+ });
64309
+ var WorkflowFileSchema = exports_external.object({
64310
+ workflows: exports_external.record(exports_external.string(), WorkflowDefinitionSchema)
64311
+ });
64312
+
64313
+ // ../core/src/workflow/dynamic.ts
64314
+ var AsyncFunction = Object.getPrototypeOf(async () => {}).constructor;
64315
+ // ../core/src/workflow/dynamic-generator.workflow.ts
64316
+ var GenerateWorkflowDefinitionInputSchema = exports_external.object({
64317
+ prompt: exports_external.string(),
64318
+ availableTools: exports_external.array(exports_external.object({
64319
+ name: exports_external.string(),
64320
+ description: exports_external.string()
64321
+ })).optional()
64322
+ });
64323
+ var GenerateWorkflowCodeInputSchema = exports_external.object({
64324
+ workflow: WorkflowFileSchema
64325
+ });
64242
64326
  // ../../node_modules/lodash-es/_freeGlobal.js
64243
64327
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
64244
64328
  var _freeGlobal_default = freeGlobal;
@@ -64313,10 +64397,10 @@ function isObject2(value) {
64313
64397
  var isObject_default = isObject2;
64314
64398
 
64315
64399
  // ../../node_modules/lodash-es/identity.js
64316
- function identity(value) {
64400
+ function identity2(value) {
64317
64401
  return value;
64318
64402
  }
64319
- var identity_default = identity;
64403
+ var identity_default = identity2;
64320
64404
 
64321
64405
  // ../../node_modules/lodash-es/isFunction.js
64322
64406
  var asyncTag = "[object AsyncFunction]";
@@ -65279,52 +65363,6 @@ var merge2 = _createAssigner_default(function(object3, source, srcIndex) {
65279
65363
  _baseMerge_default(object3, source, srcIndex);
65280
65364
  });
65281
65365
  var merge_default = merge2;
65282
- // ../../node_modules/yaml/dist/index.js
65283
- var composer = require_composer();
65284
- var Document = require_Document();
65285
- var Schema = require_Schema();
65286
- var errors3 = require_errors();
65287
- var Alias = require_Alias();
65288
- var identity2 = require_identity();
65289
- var Pair = require_Pair();
65290
- var Scalar = require_Scalar();
65291
- var YAMLMap = require_YAMLMap();
65292
- var YAMLSeq = require_YAMLSeq();
65293
- var cst = require_cst();
65294
- var lexer = require_lexer();
65295
- var lineCounter = require_line_counter();
65296
- var parser = require_parser();
65297
- var publicApi = require_public_api();
65298
- var visit = require_visit();
65299
- var $Composer = composer.Composer;
65300
- var $Document = Document.Document;
65301
- var $Schema = Schema.Schema;
65302
- var $YAMLError = errors3.YAMLError;
65303
- var $YAMLParseError = errors3.YAMLParseError;
65304
- var $YAMLWarning = errors3.YAMLWarning;
65305
- var $Alias = Alias.Alias;
65306
- var $isAlias = identity2.isAlias;
65307
- var $isCollection = identity2.isCollection;
65308
- var $isDocument = identity2.isDocument;
65309
- var $isMap = identity2.isMap;
65310
- var $isNode = identity2.isNode;
65311
- var $isPair = identity2.isPair;
65312
- var $isScalar = identity2.isScalar;
65313
- var $isSeq = identity2.isSeq;
65314
- var $Pair = Pair.Pair;
65315
- var $Scalar = Scalar.Scalar;
65316
- var $YAMLMap = YAMLMap.YAMLMap;
65317
- var $YAMLSeq = YAMLSeq.YAMLSeq;
65318
- var $Lexer = lexer.Lexer;
65319
- var $LineCounter = lineCounter.LineCounter;
65320
- var $Parser = parser.Parser;
65321
- var $parse = publicApi.parse;
65322
- var $parseAllDocuments = publicApi.parseAllDocuments;
65323
- var $parseDocument = publicApi.parseDocument;
65324
- var $stringify = publicApi.stringify;
65325
- var $visit = visit.visit;
65326
- var $visitAsync = visit.visitAsync;
65327
-
65328
65366
  // ../cli-shared/src/config.ts
65329
65367
  function getGlobalConfigPath(home = homedir()) {
65330
65368
  return join(home, ".config", "polkacodes", "config.yml");