boomkin 0.9.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,25 +1,21 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- var __defProp = Object.defineProperty;
4
3
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
5
- var __returnValue = (v) => v;
6
- function __exportSetter(name, newValue) {
7
- this[name] = __returnValue.bind(null, newValue);
8
- }
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, {
12
- get: all[name],
13
- enumerable: true,
14
- configurable: true,
15
- set: __exportSetter.bind(all, name)
16
- });
4
+ var __esm = (fn, res, err) => () => {
5
+ if (fn)
6
+ try {
7
+ res = fn(fn = 0);
8
+ } catch (e) {
9
+ err = [e];
10
+ }
11
+ if (err)
12
+ throw err[0];
13
+ return res;
17
14
  };
18
- var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
19
15
  var __require = import.meta.require;
20
16
 
21
17
  // node_modules/yaml/dist/nodes/identity.js
22
- var require_identity = __commonJS((exports) => {
18
+ var require_identity = __commonJS(function(exports) {
23
19
  var ALIAS = Symbol.for("yaml.alias");
24
20
  var DOC = Symbol.for("yaml.document");
25
21
  var MAP = Symbol.for("yaml.map");
@@ -73,7 +69,7 @@ var require_identity = __commonJS((exports) => {
73
69
  });
74
70
 
75
71
  // node_modules/yaml/dist/visit.js
76
- var require_visit = __commonJS((exports) => {
72
+ var require_visit = __commonJS(function(exports) {
77
73
  var identity = require_identity();
78
74
  var BREAK = Symbol("break visit");
79
75
  var SKIP = Symbol("skip children");
@@ -228,7 +224,7 @@ var require_visit = __commonJS((exports) => {
228
224
  });
229
225
 
230
226
  // node_modules/yaml/dist/doc/directives.js
231
- var require_directives = __commonJS((exports) => {
227
+ var require_directives = __commonJS(function(exports) {
232
228
  var identity = require_identity();
233
229
  var visit = require_visit();
234
230
  var escapeChars = {
@@ -380,7 +376,7 @@ var require_directives = __commonJS((exports) => {
380
376
  });
381
377
 
382
378
  // node_modules/yaml/dist/doc/anchors.js
383
- var require_anchors = __commonJS((exports) => {
379
+ var require_anchors = __commonJS(function(exports) {
384
380
  var identity = require_identity();
385
381
  var visit = require_visit();
386
382
  function anchorIsValid(anchor) {
@@ -442,7 +438,7 @@ var require_anchors = __commonJS((exports) => {
442
438
  });
443
439
 
444
440
  // node_modules/yaml/dist/doc/applyReviver.js
445
- var require_applyReviver = __commonJS((exports) => {
441
+ var require_applyReviver = __commonJS(function(exports) {
446
442
  function applyReviver(reviver, obj, key, val) {
447
443
  if (val && typeof val === "object") {
448
444
  if (Array.isArray(val)) {
@@ -489,7 +485,7 @@ var require_applyReviver = __commonJS((exports) => {
489
485
  });
490
486
 
491
487
  // node_modules/yaml/dist/nodes/toJS.js
492
- var require_toJS = __commonJS((exports) => {
488
+ var require_toJS = __commonJS(function(exports) {
493
489
  var identity = require_identity();
494
490
  function toJS(value, arg, ctx) {
495
491
  if (Array.isArray(value))
@@ -499,8 +495,8 @@ var require_toJS = __commonJS((exports) => {
499
495
  return value.toJSON(arg, ctx);
500
496
  const data = { aliasCount: 0, count: 1, res: undefined };
501
497
  ctx.anchors.set(value, data);
502
- ctx.onCreate = (res2) => {
503
- data.res = res2;
498
+ ctx.onCreate = (res) => {
499
+ data.res = res;
504
500
  delete ctx.onCreate;
505
501
  };
506
502
  const res = value.toJSON(arg, ctx);
@@ -516,7 +512,7 @@ var require_toJS = __commonJS((exports) => {
516
512
  });
517
513
 
518
514
  // node_modules/yaml/dist/nodes/Node.js
519
- var require_Node = __commonJS((exports) => {
515
+ var require_Node = __commonJS(function(exports) {
520
516
  var applyReviver = require_applyReviver();
521
517
  var identity = require_identity();
522
518
  var toJS = require_toJS();
@@ -544,8 +540,8 @@ var require_Node = __commonJS((exports) => {
544
540
  };
545
541
  const res = toJS.toJS(this, "", ctx);
546
542
  if (typeof onAnchor === "function")
547
- for (const { count, res: res2 } of ctx.anchors.values())
548
- onAnchor(res2, count);
543
+ for (const { count, res } of ctx.anchors.values())
544
+ onAnchor(res, count);
549
545
  return typeof reviver === "function" ? applyReviver.applyReviver(reviver, { "": res }, "", res) : res;
550
546
  }
551
547
  }
@@ -553,7 +549,7 @@ var require_Node = __commonJS((exports) => {
553
549
  });
554
550
 
555
551
  // node_modules/yaml/dist/nodes/Alias.js
556
- var require_Alias = __commonJS((exports) => {
552
+ var require_Alias = __commonJS(function(exports) {
557
553
  var anchors = require_anchors();
558
554
  var visit = require_visit();
559
555
  var identity = require_identity();
@@ -595,11 +591,11 @@ var require_Alias = __commonJS((exports) => {
595
591
  found = node;
596
592
  }
597
593
  if (found && ctx) {
598
- const { anchors: anchors2, doc: doc2, maxAliasCount } = ctx;
599
- let data = anchors2.get(found);
594
+ const { anchors, doc, maxAliasCount } = ctx;
595
+ let data = anchors.get(found);
600
596
  if (!data) {
601
597
  toJS.toJS(found, null, ctx);
602
- data = anchors2.get(found);
598
+ data = anchors.get(found);
603
599
  }
604
600
  if (data?.res === undefined) {
605
601
  const msg = "This should not happen: Alias anchor was not resolved?";
@@ -608,7 +604,7 @@ var require_Alias = __commonJS((exports) => {
608
604
  if (maxAliasCount >= 0) {
609
605
  data.count += 1;
610
606
  if (data.aliasCount === 0)
611
- data.aliasCount = getAliasCount(doc2, found, anchors2);
607
+ data.aliasCount = getAliasCount(doc, found, anchors);
612
608
  if (data.count * data.aliasCount > maxAliasCount) {
613
609
  const msg = "Excessive alias count indicates a resource exhaustion attack";
614
610
  throw new ReferenceError(msg);
@@ -641,22 +637,22 @@ var require_Alias = __commonJS((exports) => {
641
637
  return src;
642
638
  }
643
639
  }
644
- function getAliasCount(doc, node, anchors2) {
640
+ function getAliasCount(doc, node, anchors) {
645
641
  if (identity.isAlias(node)) {
646
642
  const source = node.resolve(doc);
647
- const anchor = anchors2 && source && anchors2.get(source);
643
+ const anchor = anchors && source && anchors.get(source);
648
644
  return anchor ? anchor.count * anchor.aliasCount : 0;
649
645
  } else if (identity.isCollection(node)) {
650
646
  let count = 0;
651
647
  for (const item of node.items) {
652
- const c = getAliasCount(doc, item, anchors2);
648
+ const c = getAliasCount(doc, item, anchors);
653
649
  if (c > count)
654
650
  count = c;
655
651
  }
656
652
  return count;
657
653
  } else if (identity.isPair(node)) {
658
- const kc = getAliasCount(doc, node.key, anchors2);
659
- const vc = getAliasCount(doc, node.value, anchors2);
654
+ const kc = getAliasCount(doc, node.key, anchors);
655
+ const vc = getAliasCount(doc, node.value, anchors);
660
656
  return Math.max(kc, vc);
661
657
  }
662
658
  return 1;
@@ -665,7 +661,7 @@ var require_Alias = __commonJS((exports) => {
665
661
  });
666
662
 
667
663
  // node_modules/yaml/dist/nodes/Scalar.js
668
- var require_Scalar = __commonJS((exports) => {
664
+ var require_Scalar = __commonJS(function(exports) {
669
665
  var identity = require_identity();
670
666
  var Node = require_Node();
671
667
  var toJS = require_toJS();
@@ -693,7 +689,7 @@ var require_Scalar = __commonJS((exports) => {
693
689
  });
694
690
 
695
691
  // node_modules/yaml/dist/doc/createNode.js
696
- var require_createNode = __commonJS((exports) => {
692
+ var require_createNode = __commonJS(function(exports) {
697
693
  var Alias = require_Alias();
698
694
  var identity = require_identity();
699
695
  var Scalar = require_Scalar();
@@ -741,10 +737,10 @@ var require_createNode = __commonJS((exports) => {
741
737
  value = value.toJSON();
742
738
  }
743
739
  if (!value || typeof value !== "object") {
744
- const node2 = new Scalar.Scalar(value);
740
+ const node = new Scalar.Scalar(value);
745
741
  if (ref)
746
- ref.node = node2;
747
- return node2;
742
+ ref.node = node;
743
+ return node;
748
744
  }
749
745
  tagObj = value instanceof Map ? schema[identity.MAP] : (Symbol.iterator in Object(value)) ? schema[identity.SEQ] : schema[identity.MAP];
750
746
  }
@@ -765,7 +761,7 @@ var require_createNode = __commonJS((exports) => {
765
761
  });
766
762
 
767
763
  // node_modules/yaml/dist/nodes/Collection.js
768
- var require_Collection = __commonJS((exports) => {
764
+ var require_Collection = __commonJS(function(exports) {
769
765
  var createNode = require_createNode();
770
766
  var identity = require_identity();
771
767
  var Node = require_Node();
@@ -880,7 +876,7 @@ var require_Collection = __commonJS((exports) => {
880
876
  });
881
877
 
882
878
  // node_modules/yaml/dist/stringify/stringifyComment.js
883
- var require_stringifyComment = __commonJS((exports) => {
879
+ var require_stringifyComment = __commonJS(function(exports) {
884
880
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
885
881
  function indentComment(comment, indent) {
886
882
  if (/^\n+$/.test(comment))
@@ -897,7 +893,7 @@ var require_stringifyComment = __commonJS((exports) => {
897
893
  });
898
894
 
899
895
  // node_modules/yaml/dist/stringify/foldFlowLines.js
900
- var require_foldFlowLines = __commonJS((exports) => {
896
+ var require_foldFlowLines = __commonJS(function(exports) {
901
897
  var FOLD_FLOW = "flow";
902
898
  var FOLD_BLOCK = "block";
903
899
  var FOLD_QUOTED = "quoted";
@@ -993,17 +989,17 @@ var require_foldFlowLines = __commonJS((exports) => {
993
989
  if (onFold)
994
990
  onFold();
995
991
  let res = text.slice(0, folds[0]);
996
- for (let i2 = 0;i2 < folds.length; ++i2) {
997
- const fold = folds[i2];
998
- const end2 = folds[i2 + 1] || text.length;
992
+ for (let i = 0;i < folds.length; ++i) {
993
+ const fold = folds[i];
994
+ const end = folds[i + 1] || text.length;
999
995
  if (fold === 0)
1000
996
  res = `
1001
- ${indent}${text.slice(0, end2)}`;
997
+ ${indent}${text.slice(0, end)}`;
1002
998
  else {
1003
999
  if (mode === FOLD_QUOTED && escapedFolds[fold])
1004
1000
  res += `${text[fold]}\\`;
1005
1001
  res += `
1006
- ${indent}${text.slice(fold + 1, end2)}`;
1002
+ ${indent}${text.slice(fold + 1, end)}`;
1007
1003
  }
1008
1004
  }
1009
1005
  return res;
@@ -1034,7 +1030,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
1034
1030
  });
1035
1031
 
1036
1032
  // node_modules/yaml/dist/stringify/stringifyString.js
1037
- var require_stringifyString = __commonJS((exports) => {
1033
+ var require_stringifyString = __commonJS(function(exports) {
1038
1034
  var Scalar = require_Scalar();
1039
1035
  var foldFlowLines = require_foldFlowLines();
1040
1036
  var getFoldOptions = (ctx, isBlock) => ({
@@ -1332,7 +1328,7 @@ ${indent}`);
1332
1328
  });
1333
1329
 
1334
1330
  // node_modules/yaml/dist/stringify/stringify.js
1335
- var require_stringify = __commonJS((exports) => {
1331
+ var require_stringify = __commonJS(function(exports) {
1336
1332
  var anchors = require_anchors();
1337
1333
  var identity = require_identity();
1338
1334
  var stringifyComment = require_stringifyComment();
@@ -1453,7 +1449,7 @@ ${ctx.indent}${str}`;
1453
1449
  });
1454
1450
 
1455
1451
  // node_modules/yaml/dist/stringify/stringifyPair.js
1456
- var require_stringifyPair = __commonJS((exports) => {
1452
+ var require_stringifyPair = __commonJS(function(exports) {
1457
1453
  var identity = require_identity();
1458
1454
  var Scalar = require_Scalar();
1459
1455
  var stringify = require_stringify();
@@ -1589,7 +1585,7 @@ ${ctx.indent}`;
1589
1585
  });
1590
1586
 
1591
1587
  // node_modules/yaml/dist/log.js
1592
- var require_log = __commonJS((exports) => {
1588
+ var require_log = __commonJS(function(exports) {
1593
1589
  var node_process = __require("process");
1594
1590
  function debug(logLevel, ...messages) {
1595
1591
  if (logLevel === "debug")
@@ -1608,7 +1604,7 @@ var require_log = __commonJS((exports) => {
1608
1604
  });
1609
1605
 
1610
1606
  // node_modules/yaml/dist/schema/yaml-1.1/merge.js
1611
- var require_merge = __commonJS((exports) => {
1607
+ var require_merge = __commonJS(function(exports) {
1612
1608
  var identity = require_identity();
1613
1609
  var Scalar = require_Scalar();
1614
1610
  var MERGE_KEY = "<<";
@@ -1639,15 +1635,15 @@ var require_merge = __commonJS((exports) => {
1639
1635
  if (!identity.isMap(source))
1640
1636
  throw new Error("Merge sources must be maps or map aliases");
1641
1637
  const srcMap = source.toJSON(null, ctx, Map);
1642
- for (const [key, value2] of srcMap) {
1638
+ for (const [key, value] of srcMap) {
1643
1639
  if (map instanceof Map) {
1644
1640
  if (!map.has(key))
1645
- map.set(key, value2);
1641
+ map.set(key, value);
1646
1642
  } else if (map instanceof Set) {
1647
1643
  map.add(key);
1648
1644
  } else if (!Object.prototype.hasOwnProperty.call(map, key)) {
1649
1645
  Object.defineProperty(map, key, {
1650
- value: value2,
1646
+ value,
1651
1647
  writable: true,
1652
1648
  enumerable: true,
1653
1649
  configurable: true
@@ -1665,7 +1661,7 @@ var require_merge = __commonJS((exports) => {
1665
1661
  });
1666
1662
 
1667
1663
  // node_modules/yaml/dist/nodes/addPairToJSMap.js
1668
- var require_addPairToJSMap = __commonJS((exports) => {
1664
+ var require_addPairToJSMap = __commonJS(function(exports) {
1669
1665
  var log = require_log();
1670
1666
  var merge = require_merge();
1671
1667
  var stringify = require_stringify();
@@ -1726,7 +1722,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
1726
1722
  });
1727
1723
 
1728
1724
  // node_modules/yaml/dist/nodes/Pair.js
1729
- var require_Pair = __commonJS((exports) => {
1725
+ var require_Pair = __commonJS(function(exports) {
1730
1726
  var createNode = require_createNode();
1731
1727
  var stringifyPair = require_stringifyPair();
1732
1728
  var addPairToJSMap = require_addPairToJSMap();
@@ -1764,14 +1760,14 @@ var require_Pair = __commonJS((exports) => {
1764
1760
  });
1765
1761
 
1766
1762
  // node_modules/yaml/dist/stringify/stringifyCollection.js
1767
- var require_stringifyCollection = __commonJS((exports) => {
1763
+ var require_stringifyCollection = __commonJS(function(exports) {
1768
1764
  var identity = require_identity();
1769
1765
  var stringify = require_stringify();
1770
1766
  var stringifyComment = require_stringifyComment();
1771
1767
  function stringifyCollection(collection, ctx, options) {
1772
1768
  const flow = ctx.inFlow ?? collection.flow;
1773
- const stringify2 = flow ? stringifyFlowCollection : stringifyBlockCollection;
1774
- return stringify2(collection, ctx, options);
1769
+ const stringify = flow ? stringifyFlowCollection : stringifyBlockCollection;
1770
+ return stringify(collection, ctx, options);
1775
1771
  }
1776
1772
  function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, flowChars, itemIndent, onChompKeep, onComment }) {
1777
1773
  const { indent, options: { commentString } } = ctx;
@@ -1780,13 +1776,13 @@ var require_stringifyCollection = __commonJS((exports) => {
1780
1776
  const lines = [];
1781
1777
  for (let i = 0;i < items.length; ++i) {
1782
1778
  const item = items[i];
1783
- let comment2 = null;
1779
+ let comment = null;
1784
1780
  if (identity.isNode(item)) {
1785
1781
  if (!chompKeep && item.spaceBefore)
1786
1782
  lines.push("");
1787
1783
  addCommentBefore(ctx, lines, item.commentBefore, chompKeep);
1788
1784
  if (item.comment)
1789
- comment2 = item.comment;
1785
+ comment = item.comment;
1790
1786
  } else if (identity.isPair(item)) {
1791
1787
  const ik = identity.isNode(item.key) ? item.key : null;
1792
1788
  if (ik) {
@@ -1796,12 +1792,12 @@ var require_stringifyCollection = __commonJS((exports) => {
1796
1792
  }
1797
1793
  }
1798
1794
  chompKeep = false;
1799
- let str2 = stringify.stringify(item, itemCtx, () => comment2 = null, () => chompKeep = true);
1800
- if (comment2)
1801
- str2 += stringifyComment.lineComment(str2, itemIndent, commentString(comment2));
1802
- if (chompKeep && comment2)
1795
+ let str = stringify.stringify(item, itemCtx, () => comment = null, () => chompKeep = true);
1796
+ if (comment)
1797
+ str += stringifyComment.lineComment(str, itemIndent, commentString(comment));
1798
+ if (chompKeep && comment)
1803
1799
  chompKeep = false;
1804
- lines.push(blockItemPrefix + str2);
1800
+ lines.push(blockItemPrefix + str);
1805
1801
  }
1806
1802
  let str;
1807
1803
  if (lines.length === 0) {
@@ -1916,7 +1912,7 @@ ${indent}${end}`;
1916
1912
  });
1917
1913
 
1918
1914
  // node_modules/yaml/dist/nodes/YAMLMap.js
1919
- var require_YAMLMap = __commonJS((exports) => {
1915
+ var require_YAMLMap = __commonJS(function(exports) {
1920
1916
  var stringifyCollection = require_stringifyCollection();
1921
1917
  var addPairToJSMap = require_addPairToJSMap();
1922
1918
  var Collection = require_Collection();
@@ -2043,7 +2039,7 @@ var require_YAMLMap = __commonJS((exports) => {
2043
2039
  });
2044
2040
 
2045
2041
  // node_modules/yaml/dist/schema/common/map.js
2046
- var require_map = __commonJS((exports) => {
2042
+ var require_map = __commonJS(function(exports) {
2047
2043
  var identity = require_identity();
2048
2044
  var YAMLMap = require_YAMLMap();
2049
2045
  var map = {
@@ -2051,10 +2047,10 @@ var require_map = __commonJS((exports) => {
2051
2047
  default: true,
2052
2048
  nodeClass: YAMLMap.YAMLMap,
2053
2049
  tag: "tag:yaml.org,2002:map",
2054
- resolve(map2, onError) {
2055
- if (!identity.isMap(map2))
2050
+ resolve(map, onError) {
2051
+ if (!identity.isMap(map))
2056
2052
  onError("Expected a mapping for this tag");
2057
- return map2;
2053
+ return map;
2058
2054
  },
2059
2055
  createNode: (schema, obj, ctx) => YAMLMap.YAMLMap.from(schema, obj, ctx)
2060
2056
  };
@@ -2062,7 +2058,7 @@ var require_map = __commonJS((exports) => {
2062
2058
  });
2063
2059
 
2064
2060
  // node_modules/yaml/dist/nodes/YAMLSeq.js
2065
- var require_YAMLSeq = __commonJS((exports) => {
2061
+ var require_YAMLSeq = __commonJS(function(exports) {
2066
2062
  var createNode = require_createNode();
2067
2063
  var stringifyCollection = require_stringifyCollection();
2068
2064
  var Collection = require_Collection();
@@ -2155,7 +2151,7 @@ var require_YAMLSeq = __commonJS((exports) => {
2155
2151
  });
2156
2152
 
2157
2153
  // node_modules/yaml/dist/schema/common/seq.js
2158
- var require_seq = __commonJS((exports) => {
2154
+ var require_seq = __commonJS(function(exports) {
2159
2155
  var identity = require_identity();
2160
2156
  var YAMLSeq = require_YAMLSeq();
2161
2157
  var seq = {
@@ -2163,10 +2159,10 @@ var require_seq = __commonJS((exports) => {
2163
2159
  default: true,
2164
2160
  nodeClass: YAMLSeq.YAMLSeq,
2165
2161
  tag: "tag:yaml.org,2002:seq",
2166
- resolve(seq2, onError) {
2167
- if (!identity.isSeq(seq2))
2162
+ resolve(seq, onError) {
2163
+ if (!identity.isSeq(seq))
2168
2164
  onError("Expected a sequence for this tag");
2169
- return seq2;
2165
+ return seq;
2170
2166
  },
2171
2167
  createNode: (schema, obj, ctx) => YAMLSeq.YAMLSeq.from(schema, obj, ctx)
2172
2168
  };
@@ -2174,7 +2170,7 @@ var require_seq = __commonJS((exports) => {
2174
2170
  });
2175
2171
 
2176
2172
  // node_modules/yaml/dist/schema/common/string.js
2177
- var require_string = __commonJS((exports) => {
2173
+ var require_string = __commonJS(function(exports) {
2178
2174
  var stringifyString = require_stringifyString();
2179
2175
  var string = {
2180
2176
  identify: (value) => typeof value === "string",
@@ -2190,7 +2186,7 @@ var require_string = __commonJS((exports) => {
2190
2186
  });
2191
2187
 
2192
2188
  // node_modules/yaml/dist/schema/common/null.js
2193
- var require_null = __commonJS((exports) => {
2189
+ var require_null = __commonJS(function(exports) {
2194
2190
  var Scalar = require_Scalar();
2195
2191
  var nullTag = {
2196
2192
  identify: (value) => value == null,
@@ -2205,7 +2201,7 @@ var require_null = __commonJS((exports) => {
2205
2201
  });
2206
2202
 
2207
2203
  // node_modules/yaml/dist/schema/core/bool.js
2208
- var require_bool = __commonJS((exports) => {
2204
+ var require_bool = __commonJS(function(exports) {
2209
2205
  var Scalar = require_Scalar();
2210
2206
  var boolTag = {
2211
2207
  identify: (value) => typeof value === "boolean",
@@ -2226,7 +2222,7 @@ var require_bool = __commonJS((exports) => {
2226
2222
  });
2227
2223
 
2228
2224
  // node_modules/yaml/dist/stringify/stringifyNumber.js
2229
- var require_stringifyNumber = __commonJS((exports) => {
2225
+ var require_stringifyNumber = __commonJS(function(exports) {
2230
2226
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
2231
2227
  if (typeof value === "bigint")
2232
2228
  return String(value);
@@ -2250,7 +2246,7 @@ var require_stringifyNumber = __commonJS((exports) => {
2250
2246
  });
2251
2247
 
2252
2248
  // node_modules/yaml/dist/schema/core/float.js
2253
- var require_float = __commonJS((exports) => {
2249
+ var require_float = __commonJS(function(exports) {
2254
2250
  var Scalar = require_Scalar();
2255
2251
  var stringifyNumber = require_stringifyNumber();
2256
2252
  var floatNaN = {
@@ -2293,7 +2289,7 @@ var require_float = __commonJS((exports) => {
2293
2289
  });
2294
2290
 
2295
2291
  // node_modules/yaml/dist/schema/core/int.js
2296
- var require_int = __commonJS((exports) => {
2292
+ var require_int = __commonJS(function(exports) {
2297
2293
  var stringifyNumber = require_stringifyNumber();
2298
2294
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
2299
2295
  var intResolve = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
@@ -2335,7 +2331,7 @@ var require_int = __commonJS((exports) => {
2335
2331
  });
2336
2332
 
2337
2333
  // node_modules/yaml/dist/schema/core/schema.js
2338
- var require_schema = __commonJS((exports) => {
2334
+ var require_schema = __commonJS(function(exports) {
2339
2335
  var map = require_map();
2340
2336
  var _null = require_null();
2341
2337
  var seq = require_seq();
@@ -2360,7 +2356,7 @@ var require_schema = __commonJS((exports) => {
2360
2356
  });
2361
2357
 
2362
2358
  // node_modules/yaml/dist/schema/json/schema.js
2363
- var require_schema2 = __commonJS((exports) => {
2359
+ var require_schema2 = __commonJS(function(exports) {
2364
2360
  var Scalar = require_Scalar();
2365
2361
  var map = require_map();
2366
2362
  var seq = require_seq();
@@ -2424,7 +2420,7 @@ var require_schema2 = __commonJS((exports) => {
2424
2420
  });
2425
2421
 
2426
2422
  // node_modules/yaml/dist/schema/yaml-1.1/binary.js
2427
- var require_binary = __commonJS((exports) => {
2423
+ var require_binary = __commonJS(function(exports) {
2428
2424
  var node_buffer = __require("buffer");
2429
2425
  var Scalar = require_Scalar();
2430
2426
  var stringifyString = require_stringifyString();
@@ -2479,7 +2475,7 @@ var require_binary = __commonJS((exports) => {
2479
2475
  });
2480
2476
 
2481
2477
  // node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2482
- var require_pairs = __commonJS((exports) => {
2478
+ var require_pairs = __commonJS(function(exports) {
2483
2479
  var identity = require_identity();
2484
2480
  var Pair = require_Pair();
2485
2481
  var Scalar = require_Scalar();
@@ -2512,8 +2508,8 @@ ${cn.comment}` : item.comment;
2512
2508
  }
2513
2509
  function createPairs(schema, iterable, ctx) {
2514
2510
  const { replacer } = ctx;
2515
- const pairs2 = new YAMLSeq.YAMLSeq(schema);
2516
- pairs2.tag = "tag:yaml.org,2002:pairs";
2511
+ const pairs = new YAMLSeq.YAMLSeq(schema);
2512
+ pairs.tag = "tag:yaml.org,2002:pairs";
2517
2513
  let i = 0;
2518
2514
  if (iterable && Symbol.iterator in Object(iterable))
2519
2515
  for (let it of iterable) {
@@ -2537,9 +2533,9 @@ ${cn.comment}` : item.comment;
2537
2533
  } else {
2538
2534
  key = it;
2539
2535
  }
2540
- pairs2.items.push(Pair.createPair(key, value, ctx));
2536
+ pairs.items.push(Pair.createPair(key, value, ctx));
2541
2537
  }
2542
- return pairs2;
2538
+ return pairs;
2543
2539
  }
2544
2540
  var pairs = {
2545
2541
  collection: "seq",
@@ -2554,7 +2550,7 @@ ${cn.comment}` : item.comment;
2554
2550
  });
2555
2551
 
2556
2552
  // node_modules/yaml/dist/schema/yaml-1.1/omap.js
2557
- var require_omap = __commonJS((exports) => {
2553
+ var require_omap = __commonJS(function(exports) {
2558
2554
  var identity = require_identity();
2559
2555
  var toJS = require_toJS();
2560
2556
  var YAMLMap = require_YAMLMap();
@@ -2593,9 +2589,9 @@ var require_omap = __commonJS((exports) => {
2593
2589
  }
2594
2590
  static from(schema, iterable, ctx) {
2595
2591
  const pairs$1 = pairs.createPairs(schema, iterable, ctx);
2596
- const omap2 = new this;
2597
- omap2.items = pairs$1.items;
2598
- return omap2;
2592
+ const omap = new this;
2593
+ omap.items = pairs$1.items;
2594
+ return omap;
2599
2595
  }
2600
2596
  }
2601
2597
  YAMLOMap.tag = "tag:yaml.org,2002:omap";
@@ -2626,7 +2622,7 @@ var require_omap = __commonJS((exports) => {
2626
2622
  });
2627
2623
 
2628
2624
  // node_modules/yaml/dist/schema/yaml-1.1/bool.js
2629
- var require_bool2 = __commonJS((exports) => {
2625
+ var require_bool2 = __commonJS(function(exports) {
2630
2626
  var Scalar = require_Scalar();
2631
2627
  function boolStringify({ value, source }, ctx) {
2632
2628
  const boolObj = value ? trueTag : falseTag;
@@ -2655,7 +2651,7 @@ var require_bool2 = __commonJS((exports) => {
2655
2651
  });
2656
2652
 
2657
2653
  // node_modules/yaml/dist/schema/yaml-1.1/float.js
2658
- var require_float2 = __commonJS((exports) => {
2654
+ var require_float2 = __commonJS(function(exports) {
2659
2655
  var Scalar = require_Scalar();
2660
2656
  var stringifyNumber = require_stringifyNumber();
2661
2657
  var floatNaN = {
@@ -2701,7 +2697,7 @@ var require_float2 = __commonJS((exports) => {
2701
2697
  });
2702
2698
 
2703
2699
  // node_modules/yaml/dist/schema/yaml-1.1/int.js
2704
- var require_int2 = __commonJS((exports) => {
2700
+ var require_int2 = __commonJS(function(exports) {
2705
2701
  var stringifyNumber = require_stringifyNumber();
2706
2702
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
2707
2703
  function intResolve(str, offset, radix, { intAsBigInt }) {
@@ -2721,8 +2717,8 @@ var require_int2 = __commonJS((exports) => {
2721
2717
  str = `0x${str}`;
2722
2718
  break;
2723
2719
  }
2724
- const n2 = BigInt(str);
2725
- return sign === "-" ? BigInt(-1) * n2 : n2;
2720
+ const n = BigInt(str);
2721
+ return sign === "-" ? BigInt(-1) * n : n;
2726
2722
  }
2727
2723
  const n = parseInt(str, radix);
2728
2724
  return sign === "-" ? -1 * n : n;
@@ -2777,7 +2773,7 @@ var require_int2 = __commonJS((exports) => {
2777
2773
  });
2778
2774
 
2779
2775
  // node_modules/yaml/dist/schema/yaml-1.1/set.js
2780
- var require_set = __commonJS((exports) => {
2776
+ var require_set = __commonJS(function(exports) {
2781
2777
  var identity = require_identity();
2782
2778
  var Pair = require_Pair();
2783
2779
  var YAMLMap = require_YAMLMap();
@@ -2826,14 +2822,14 @@ var require_set = __commonJS((exports) => {
2826
2822
  }
2827
2823
  static from(schema, iterable, ctx) {
2828
2824
  const { replacer } = ctx;
2829
- const set2 = new this(schema);
2825
+ const set = new this(schema);
2830
2826
  if (iterable && Symbol.iterator in Object(iterable))
2831
2827
  for (let value of iterable) {
2832
2828
  if (typeof replacer === "function")
2833
2829
  value = replacer.call(iterable, value, value);
2834
- set2.items.push(Pair.createPair(value, null, ctx));
2830
+ set.items.push(Pair.createPair(value, null, ctx));
2835
2831
  }
2836
- return set2;
2832
+ return set;
2837
2833
  }
2838
2834
  }
2839
2835
  YAMLSet.tag = "tag:yaml.org,2002:set";
@@ -2860,13 +2856,13 @@ var require_set = __commonJS((exports) => {
2860
2856
  });
2861
2857
 
2862
2858
  // node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
2863
- var require_timestamp = __commonJS((exports) => {
2859
+ var require_timestamp = __commonJS(function(exports) {
2864
2860
  var stringifyNumber = require_stringifyNumber();
2865
2861
  function parseSexagesimal(str, asBigInt) {
2866
2862
  const sign = str[0];
2867
2863
  const parts = sign === "-" || sign === "+" ? str.substring(1) : str;
2868
2864
  const num = (n) => asBigInt ? BigInt(n) : Number(n);
2869
- const res = parts.replace(/_/g, "").split(":").reduce((res2, p) => res2 * num(60) + num(p), num(0));
2865
+ const res = parts.replace(/_/g, "").split(":").reduce((res, p) => res * num(60) + num(p), num(0));
2870
2866
  return sign === "-" ? num(-1) * res : res;
2871
2867
  }
2872
2868
  function stringifySexagesimal(node) {
@@ -2942,7 +2938,7 @@ var require_timestamp = __commonJS((exports) => {
2942
2938
  });
2943
2939
 
2944
2940
  // node_modules/yaml/dist/schema/yaml-1.1/schema.js
2945
- var require_schema3 = __commonJS((exports) => {
2941
+ var require_schema3 = __commonJS(function(exports) {
2946
2942
  var map = require_map();
2947
2943
  var _null = require_null();
2948
2944
  var seq = require_seq();
@@ -2983,7 +2979,7 @@ var require_schema3 = __commonJS((exports) => {
2983
2979
  });
2984
2980
 
2985
2981
  // node_modules/yaml/dist/schema/tags.js
2986
- var require_tags = __commonJS((exports) => {
2982
+ var require_tags = __commonJS(function(exports) {
2987
2983
  var map = require_map();
2988
2984
  var _null = require_null();
2989
2985
  var seq = require_seq();
@@ -3057,16 +3053,16 @@ var require_tags = __commonJS((exports) => {
3057
3053
  }
3058
3054
  if (addMergeTag)
3059
3055
  tags = tags.concat(merge.merge);
3060
- return tags.reduce((tags2, tag) => {
3056
+ return tags.reduce((tags, tag) => {
3061
3057
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
3062
3058
  if (!tagObj) {
3063
3059
  const tagName = JSON.stringify(tag);
3064
3060
  const keys = Object.keys(tagsByName).map((key) => JSON.stringify(key)).join(", ");
3065
3061
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
3066
3062
  }
3067
- if (!tags2.includes(tagObj))
3068
- tags2.push(tagObj);
3069
- return tags2;
3063
+ if (!tags.includes(tagObj))
3064
+ tags.push(tagObj);
3065
+ return tags;
3070
3066
  }, []);
3071
3067
  }
3072
3068
  exports.coreKnownTags = coreKnownTags;
@@ -3074,7 +3070,7 @@ var require_tags = __commonJS((exports) => {
3074
3070
  });
3075
3071
 
3076
3072
  // node_modules/yaml/dist/schema/Schema.js
3077
- var require_Schema = __commonJS((exports) => {
3073
+ var require_Schema = __commonJS(function(exports) {
3078
3074
  var identity = require_identity();
3079
3075
  var map = require_map();
3080
3076
  var seq = require_seq();
@@ -3104,7 +3100,7 @@ var require_Schema = __commonJS((exports) => {
3104
3100
  });
3105
3101
 
3106
3102
  // node_modules/yaml/dist/stringify/stringifyDocument.js
3107
- var require_stringifyDocument = __commonJS((exports) => {
3103
+ var require_stringifyDocument = __commonJS(function(exports) {
3108
3104
  var identity = require_identity();
3109
3105
  var stringify = require_stringify();
3110
3106
  var stringifyComment = require_stringifyComment();
@@ -3184,7 +3180,7 @@ var require_stringifyDocument = __commonJS((exports) => {
3184
3180
  });
3185
3181
 
3186
3182
  // node_modules/yaml/dist/doc/Document.js
3187
- var require_Document = __commonJS((exports) => {
3183
+ var require_Document = __commonJS(function(exports) {
3188
3184
  var Alias = require_Alias();
3189
3185
  var Collection = require_Collection();
3190
3186
  var identity = require_identity();
@@ -3393,8 +3389,8 @@ var require_Document = __commonJS((exports) => {
3393
3389
  };
3394
3390
  const res = toJS.toJS(this.contents, jsonArg ?? "", ctx);
3395
3391
  if (typeof onAnchor === "function")
3396
- for (const { count, res: res2 } of ctx.anchors.values())
3397
- onAnchor(res2, count);
3392
+ for (const { count, res } of ctx.anchors.values())
3393
+ onAnchor(res, count);
3398
3394
  return typeof reviver === "function" ? applyReviver.applyReviver(reviver, { "": res }, "", res) : res;
3399
3395
  }
3400
3396
  toJSON(jsonArg, onAnchor) {
@@ -3419,7 +3415,7 @@ var require_Document = __commonJS((exports) => {
3419
3415
  });
3420
3416
 
3421
3417
  // node_modules/yaml/dist/errors.js
3422
- var require_errors = __commonJS((exports) => {
3418
+ var require_errors = __commonJS(function(exports) {
3423
3419
  class YAMLError extends Error {
3424
3420
  constructor(name, pos, code, message) {
3425
3421
  super();
@@ -3484,7 +3480,7 @@ ${pointer}
3484
3480
  });
3485
3481
 
3486
3482
  // node_modules/yaml/dist/compose/resolve-props.js
3487
- var require_resolve_props = __commonJS((exports) => {
3483
+ var require_resolve_props = __commonJS(function(exports) {
3488
3484
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3489
3485
  let spaceBefore = false;
3490
3486
  let atNewline = startOnNewline;
@@ -3614,7 +3610,7 @@ var require_resolve_props = __commonJS((exports) => {
3614
3610
  });
3615
3611
 
3616
3612
  // node_modules/yaml/dist/compose/util-contains-newline.js
3617
- var require_util_contains_newline = __commonJS((exports) => {
3613
+ var require_util_contains_newline = __commonJS(function(exports) {
3618
3614
  function containsNewline(key) {
3619
3615
  if (!key)
3620
3616
  return null;
@@ -3654,7 +3650,7 @@ var require_util_contains_newline = __commonJS((exports) => {
3654
3650
  });
3655
3651
 
3656
3652
  // node_modules/yaml/dist/compose/util-flow-indent-check.js
3657
- var require_util_flow_indent_check = __commonJS((exports) => {
3653
+ var require_util_flow_indent_check = __commonJS(function(exports) {
3658
3654
  var utilContainsNewline = require_util_contains_newline();
3659
3655
  function flowIndentCheck(indent, fc, onError) {
3660
3656
  if (fc?.type === "flow-collection") {
@@ -3669,7 +3665,7 @@ var require_util_flow_indent_check = __commonJS((exports) => {
3669
3665
  });
3670
3666
 
3671
3667
  // node_modules/yaml/dist/compose/util-map-includes.js
3672
- var require_util_map_includes = __commonJS((exports) => {
3668
+ var require_util_map_includes = __commonJS(function(exports) {
3673
3669
  var identity = require_identity();
3674
3670
  function mapIncludes(ctx, items, search) {
3675
3671
  const { uniqueKeys } = ctx.options;
@@ -3682,7 +3678,7 @@ var require_util_map_includes = __commonJS((exports) => {
3682
3678
  });
3683
3679
 
3684
3680
  // node_modules/yaml/dist/compose/resolve-block-map.js
3685
- var require_resolve_block_map = __commonJS((exports) => {
3681
+ var require_resolve_block_map = __commonJS(function(exports) {
3686
3682
  var Pair = require_Pair();
3687
3683
  var YAMLMap = require_YAMLMap();
3688
3684
  var resolveProps = require_resolve_props();
@@ -3789,7 +3785,7 @@ var require_resolve_block_map = __commonJS((exports) => {
3789
3785
  });
3790
3786
 
3791
3787
  // node_modules/yaml/dist/compose/resolve-block-seq.js
3792
- var require_resolve_block_seq = __commonJS((exports) => {
3788
+ var require_resolve_block_seq = __commonJS(function(exports) {
3793
3789
  var YAMLSeq = require_YAMLSeq();
3794
3790
  var resolveProps = require_resolve_props();
3795
3791
  var utilFlowIndentCheck = require_util_flow_indent_check();
@@ -3837,7 +3833,7 @@ var require_resolve_block_seq = __commonJS((exports) => {
3837
3833
  });
3838
3834
 
3839
3835
  // node_modules/yaml/dist/compose/resolve-end.js
3840
- var require_resolve_end = __commonJS((exports) => {
3836
+ var require_resolve_end = __commonJS(function(exports) {
3841
3837
  function resolveEnd(end, offset, reqSpace, onError) {
3842
3838
  let comment = "";
3843
3839
  if (end) {
@@ -3877,7 +3873,7 @@ var require_resolve_end = __commonJS((exports) => {
3877
3873
  });
3878
3874
 
3879
3875
  // node_modules/yaml/dist/compose/resolve-flow-collection.js
3880
- var require_resolve_flow_collection = __commonJS((exports) => {
3876
+ var require_resolve_flow_collection = __commonJS(function(exports) {
3881
3877
  var identity = require_identity();
3882
3878
  var Pair = require_Pair();
3883
3879
  var YAMLMap = require_YAMLMap();
@@ -4068,7 +4064,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
4068
4064
  });
4069
4065
 
4070
4066
  // node_modules/yaml/dist/compose/compose-collection.js
4071
- var require_compose_collection = __commonJS((exports) => {
4067
+ var require_compose_collection = __commonJS(function(exports) {
4072
4068
  var identity = require_identity();
4073
4069
  var Scalar = require_Scalar();
4074
4070
  var YAMLMap = require_YAMLMap();
@@ -4130,7 +4126,7 @@ var require_compose_collection = __commonJS((exports) => {
4130
4126
  });
4131
4127
 
4132
4128
  // node_modules/yaml/dist/compose/resolve-block-scalar.js
4133
- var require_resolve_block_scalar = __commonJS((exports) => {
4129
+ var require_resolve_block_scalar = __commonJS(function(exports) {
4134
4130
  var Scalar = require_Scalar();
4135
4131
  function resolveBlockScalar(ctx, scalar, onError) {
4136
4132
  const start = scalar.offset;
@@ -4148,12 +4144,12 @@ var require_resolve_block_scalar = __commonJS((exports) => {
4148
4144
  break;
4149
4145
  }
4150
4146
  if (chompStart === 0) {
4151
- const value2 = header.chomp === "+" && lines.length > 0 ? `
4147
+ const value = header.chomp === "+" && lines.length > 0 ? `
4152
4148
  `.repeat(Math.max(1, lines.length - 1)) : "";
4153
- let end2 = start + header.length;
4149
+ let end = start + header.length;
4154
4150
  if (scalar.source)
4155
- end2 += scalar.source.length;
4156
- return { value: value2, type, comment: header.comment, range: [start, end2, end2] };
4151
+ end += scalar.source.length;
4152
+ return { value, type, comment: header.comment, range: [start, end, end] };
4157
4153
  }
4158
4154
  let trimIndent = scalar.indent + header.indent;
4159
4155
  let offset = scalar.offset + header.length;
@@ -4323,7 +4319,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
4323
4319
  });
4324
4320
 
4325
4321
  // node_modules/yaml/dist/compose/resolve-flow-scalar.js
4326
- var require_resolve_flow_scalar = __commonJS((exports) => {
4322
+ var require_resolve_flow_scalar = __commonJS(function(exports) {
4327
4323
  var Scalar = require_Scalar();
4328
4324
  var resolveEnd = require_resolve_end();
4329
4325
  function resolveFlowScalar(scalar, strict, onError) {
@@ -4539,7 +4535,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
4539
4535
  });
4540
4536
 
4541
4537
  // node_modules/yaml/dist/compose/compose-scalar.js
4542
- var require_compose_scalar = __commonJS((exports) => {
4538
+ var require_compose_scalar = __commonJS(function(exports) {
4543
4539
  var identity = require_identity();
4544
4540
  var Scalar = require_Scalar();
4545
4541
  var resolveBlockScalar = require_resolve_block_scalar();
@@ -4601,9 +4597,9 @@ var require_compose_scalar = __commonJS((exports) => {
4601
4597
  return schema[identity.SCALAR];
4602
4598
  }
4603
4599
  function findScalarTagByTest({ atKey, directives, schema }, value, token, onError) {
4604
- const tag = schema.tags.find((tag2) => (tag2.default === true || atKey && tag2.default === "key") && tag2.test?.test(value)) || schema[identity.SCALAR];
4600
+ const tag = schema.tags.find((tag) => (tag.default === true || atKey && tag.default === "key") && tag.test?.test(value)) || schema[identity.SCALAR];
4605
4601
  if (schema.compat) {
4606
- const compat = schema.compat.find((tag2) => tag2.default && tag2.test?.test(value)) ?? schema[identity.SCALAR];
4602
+ const compat = schema.compat.find((tag) => tag.default && tag.test?.test(value)) ?? schema[identity.SCALAR];
4607
4603
  if (tag.tag !== compat.tag) {
4608
4604
  const ts = directives.tagString(tag.tag);
4609
4605
  const cs = directives.tagString(compat.tag);
@@ -4617,7 +4613,7 @@ var require_compose_scalar = __commonJS((exports) => {
4617
4613
  });
4618
4614
 
4619
4615
  // node_modules/yaml/dist/compose/util-empty-scalar-position.js
4620
- var require_util_empty_scalar_position = __commonJS((exports) => {
4616
+ var require_util_empty_scalar_position = __commonJS(function(exports) {
4621
4617
  function emptyScalarPosition(offset, before, pos) {
4622
4618
  if (before) {
4623
4619
  pos ?? (pos = before.length);
@@ -4644,7 +4640,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
4644
4640
  });
4645
4641
 
4646
4642
  // node_modules/yaml/dist/compose/compose-node.js
4647
- var require_compose_node = __commonJS((exports) => {
4643
+ var require_compose_node = __commonJS(function(exports) {
4648
4644
  var Alias = require_Alias();
4649
4645
  var identity = require_identity();
4650
4646
  var composeCollection = require_compose_collection();
@@ -4747,7 +4743,7 @@ var require_compose_node = __commonJS((exports) => {
4747
4743
  });
4748
4744
 
4749
4745
  // node_modules/yaml/dist/compose/compose-doc.js
4750
- var require_compose_doc = __commonJS((exports) => {
4746
+ var require_compose_doc = __commonJS(function(exports) {
4751
4747
  var Document = require_Document();
4752
4748
  var composeNode = require_compose_node();
4753
4749
  var resolveEnd = require_resolve_end();
@@ -4787,7 +4783,7 @@ var require_compose_doc = __commonJS((exports) => {
4787
4783
  });
4788
4784
 
4789
4785
  // node_modules/yaml/dist/compose/composer.js
4790
- var require_composer = __commonJS((exports) => {
4786
+ var require_composer = __commonJS(function(exports) {
4791
4787
  var node_process = __require("process");
4792
4788
  var directives = require_directives();
4793
4789
  var Document = require_Document();
@@ -4978,7 +4974,7 @@ ${end.comment}` : end.comment;
4978
4974
  });
4979
4975
 
4980
4976
  // node_modules/yaml/dist/parse/cst-scalar.js
4981
- var require_cst_scalar = __commonJS((exports) => {
4977
+ var require_cst_scalar = __commonJS(function(exports) {
4982
4978
  var resolveBlockScalar = require_resolve_block_scalar();
4983
4979
  var resolveFlowScalar = require_resolve_flow_scalar();
4984
4980
  var errors = require_errors();
@@ -5168,7 +5164,7 @@ var require_cst_scalar = __commonJS((exports) => {
5168
5164
  });
5169
5165
 
5170
5166
  // node_modules/yaml/dist/parse/cst-stringify.js
5171
- var require_cst_stringify = __commonJS((exports) => {
5167
+ var require_cst_stringify = __commonJS(function(exports) {
5172
5168
  var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
5173
5169
  function stringifyToken(token) {
5174
5170
  switch (token.type) {
@@ -5226,7 +5222,7 @@ var require_cst_stringify = __commonJS((exports) => {
5226
5222
  });
5227
5223
 
5228
5224
  // node_modules/yaml/dist/parse/cst-visit.js
5229
- var require_cst_visit = __commonJS((exports) => {
5225
+ var require_cst_visit = __commonJS(function(exports) {
5230
5226
  var BREAK = Symbol("break visit");
5231
5227
  var SKIP = Symbol("skip children");
5232
5228
  var REMOVE = Symbol("remove item");
@@ -5285,7 +5281,7 @@ var require_cst_visit = __commonJS((exports) => {
5285
5281
  });
5286
5282
 
5287
5283
  // node_modules/yaml/dist/parse/cst.js
5288
- var require_cst = __commonJS((exports) => {
5284
+ var require_cst = __commonJS(function(exports) {
5289
5285
  var cstScalar = require_cst_scalar();
5290
5286
  var cstStringify = require_cst_stringify();
5291
5287
  var cstVisit = require_cst_visit();
@@ -5386,7 +5382,7 @@ var require_cst = __commonJS((exports) => {
5386
5382
  });
5387
5383
 
5388
5384
  // node_modules/yaml/dist/parse/lexer.js
5389
- var require_lexer = __commonJS((exports) => {
5385
+ var require_lexer = __commonJS(function(exports) {
5390
5386
  var cst = require_cst();
5391
5387
  function isEmpty(ch) {
5392
5388
  switch (ch) {
@@ -5759,18 +5755,18 @@ var require_lexer = __commonJS((exports) => {
5759
5755
  let indent = 0;
5760
5756
  let ch;
5761
5757
  loop:
5762
- for (let i2 = this.pos;ch = this.buffer[i2]; ++i2) {
5758
+ for (let i = this.pos;ch = this.buffer[i]; ++i) {
5763
5759
  switch (ch) {
5764
5760
  case " ":
5765
5761
  indent += 1;
5766
5762
  break;
5767
5763
  case `
5768
5764
  `:
5769
- nl = i2;
5765
+ nl = i;
5770
5766
  indent = 0;
5771
5767
  break;
5772
5768
  case "\r": {
5773
- const next = this.buffer[i2 + 1];
5769
+ const next = this.buffer[i + 1];
5774
5770
  if (!next && !this.atEnd)
5775
5771
  return this.setNext("block-scalar");
5776
5772
  if (next === `
@@ -5813,16 +5809,16 @@ var require_lexer = __commonJS((exports) => {
5813
5809
  nl = i - 1;
5814
5810
  } else if (!this.blockScalarKeep) {
5815
5811
  do {
5816
- let i2 = nl - 1;
5817
- let ch2 = this.buffer[i2];
5818
- if (ch2 === "\r")
5819
- ch2 = this.buffer[--i2];
5820
- const lastChar = i2;
5821
- while (ch2 === " ")
5822
- ch2 = this.buffer[--i2];
5823
- if (ch2 === `
5824
- ` && i2 >= this.pos && i2 + 1 + indent > lastChar)
5825
- nl = i2;
5812
+ let i = nl - 1;
5813
+ let ch = this.buffer[i];
5814
+ if (ch === "\r")
5815
+ ch = this.buffer[--i];
5816
+ const lastChar = i;
5817
+ while (ch === " ")
5818
+ ch = this.buffer[--i];
5819
+ if (ch === `
5820
+ ` && i >= this.pos && i + 1 + indent > lastChar)
5821
+ nl = i;
5826
5822
  else
5827
5823
  break;
5828
5824
  } while (true);
@@ -5983,7 +5979,7 @@ var require_lexer = __commonJS((exports) => {
5983
5979
  });
5984
5980
 
5985
5981
  // node_modules/yaml/dist/parse/line-counter.js
5986
- var require_line_counter = __commonJS((exports) => {
5982
+ var require_line_counter = __commonJS(function(exports) {
5987
5983
  class LineCounter {
5988
5984
  constructor() {
5989
5985
  this.lineStarts = [];
@@ -6011,7 +6007,7 @@ var require_line_counter = __commonJS((exports) => {
6011
6007
  });
6012
6008
 
6013
6009
  // node_modules/yaml/dist/parse/parser.js
6014
- var require_parser = __commonJS((exports) => {
6010
+ var require_parser = __commonJS(function(exports) {
6015
6011
  var node_process = __require("process");
6016
6012
  var cst = require_cst();
6017
6013
  var lexer = require_lexer();
@@ -6509,12 +6505,12 @@ var require_parser = __commonJS((exports) => {
6509
6505
  if (includesToken(it.start, "newline")) {
6510
6506
  Object.assign(it, { key: null, sep: [this.sourceToken] });
6511
6507
  } else {
6512
- const start2 = getFirstKeyStartProps(it.start);
6508
+ const start = getFirstKeyStartProps(it.start);
6513
6509
  this.stack.push({
6514
6510
  type: "block-map",
6515
6511
  offset: this.offset,
6516
6512
  indent: this.indent,
6517
- items: [{ start: start2, key: null, sep: [this.sourceToken] }]
6513
+ items: [{ start, key: null, sep: [this.sourceToken] }]
6518
6514
  });
6519
6515
  }
6520
6516
  } else if (it.value) {
@@ -6527,7 +6523,7 @@ var require_parser = __commonJS((exports) => {
6527
6523
  items: [{ start, key: null, sep: [this.sourceToken] }]
6528
6524
  });
6529
6525
  } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
6530
- const start2 = getFirstKeyStartProps(it.start);
6526
+ const start = getFirstKeyStartProps(it.start);
6531
6527
  const key = it.key;
6532
6528
  const sep = it.sep;
6533
6529
  sep.push(this.sourceToken);
@@ -6537,7 +6533,7 @@ var require_parser = __commonJS((exports) => {
6537
6533
  type: "block-map",
6538
6534
  offset: this.offset,
6539
6535
  indent: this.indent,
6540
- items: [{ start: start2, key, sep }]
6536
+ items: [{ start, key, sep }]
6541
6537
  });
6542
6538
  } else if (start.length > 0) {
6543
6539
  it.sep = it.sep.concat(start, this.sourceToken);
@@ -6867,7 +6863,7 @@ var require_parser = __commonJS((exports) => {
6867
6863
  });
6868
6864
 
6869
6865
  // node_modules/yaml/dist/public-api.js
6870
- var require_public_api = __commonJS((exports) => {
6866
+ var require_public_api = __commonJS(function(exports) {
6871
6867
  var composer = require_composer();
6872
6868
  var Document = require_Document();
6873
6869
  var errors = require_errors();
@@ -6881,22 +6877,22 @@ var require_public_api = __commonJS((exports) => {
6881
6877
  return { lineCounter: lineCounter$1, prettyErrors };
6882
6878
  }
6883
6879
  function parseAllDocuments(source, options = {}) {
6884
- const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options);
6885
- const parser$1 = new parser.Parser(lineCounter2?.addNewLine);
6880
+ const { lineCounter, prettyErrors } = parseOptions(options);
6881
+ const parser$1 = new parser.Parser(lineCounter?.addNewLine);
6886
6882
  const composer$1 = new composer.Composer(options);
6887
6883
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
6888
- if (prettyErrors && lineCounter2)
6884
+ if (prettyErrors && lineCounter)
6889
6885
  for (const doc of docs) {
6890
- doc.errors.forEach(errors.prettifyError(source, lineCounter2));
6891
- doc.warnings.forEach(errors.prettifyError(source, lineCounter2));
6886
+ doc.errors.forEach(errors.prettifyError(source, lineCounter));
6887
+ doc.warnings.forEach(errors.prettifyError(source, lineCounter));
6892
6888
  }
6893
6889
  if (docs.length > 0)
6894
6890
  return docs;
6895
6891
  return Object.assign([], { empty: true }, composer$1.streamInfo());
6896
6892
  }
6897
6893
  function parseDocument(source, options = {}) {
6898
- const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options);
6899
- const parser$1 = new parser.Parser(lineCounter2?.addNewLine);
6894
+ const { lineCounter, prettyErrors } = parseOptions(options);
6895
+ const parser$1 = new parser.Parser(lineCounter?.addNewLine);
6900
6896
  const composer$1 = new composer.Composer(options);
6901
6897
  let doc = null;
6902
6898
  for (const _doc of composer$1.compose(parser$1.parse(source), true, source.length)) {
@@ -6907,9 +6903,9 @@ var require_public_api = __commonJS((exports) => {
6907
6903
  break;
6908
6904
  }
6909
6905
  }
6910
- if (prettyErrors && lineCounter2) {
6911
- doc.errors.forEach(errors.prettifyError(source, lineCounter2));
6912
- doc.warnings.forEach(errors.prettifyError(source, lineCounter2));
6906
+ if (prettyErrors && lineCounter) {
6907
+ doc.errors.forEach(errors.prettifyError(source, lineCounter));
6908
+ doc.warnings.forEach(errors.prettifyError(source, lineCounter));
6913
6909
  }
6914
6910
  return doc;
6915
6911
  }
@@ -7015,6 +7011,46 @@ var init_workflows = __esm(() => {
7015
7011
  workflows_default = {
7016
7012
  schemaVersion: 1,
7017
7013
  workflows: [
7014
+ {
7015
+ id: "hyperliquid-wallet-audit",
7016
+ protocol: "Hyperliquid",
7017
+ title: "Find fees, funding costs and exposure in a public wallet",
7018
+ skill: "hyperliquid-wallet-audit",
7019
+ pack: "hyperliquid-skills",
7020
+ inputs: ["Public account address and mainnet or testnet", "UTC startTime and endTime for the activity window", "Maximum history pages and explicit coverage limits"],
7021
+ output: "Reproducible wallet diagnostics with captured source hashes, observed realized PnL, signed fees and funding, maker/taker costs, current exposure and explicit history gaps.",
7022
+ access: "Bounded official Hyperliquid public info reads; no trading key or wallet connection. Default perpetual activity is distinct from a complete portfolio or verified investment return."
7023
+ },
7024
+ {
7025
+ id: "strategy-validation",
7026
+ protocol: "Strategy research",
7027
+ title: "Validate a frozen rule with higher costs and a held-out period",
7028
+ skill: "galleon-defi-strategy-backtest",
7029
+ pack: "defi-strategy-skills",
7030
+ inputs: ["Absolute dataFile and specFile paths for a sourced daily USD series and frozen rule", "Optional splitIndex for the first held-out observation", "Baseline fees/slippage and higher-cost assumptions"],
7031
+ output: "Separate baseline and higher-cost results for development and held-out periods, same-cost benchmarks, trade logs, input hashes and explicit independent restart accounting.",
7032
+ access: "Local Node.js helper with no wallet or network request; no parameter optimization, live execution or forward-return claim."
7033
+ },
7034
+ {
7035
+ id: "hyperliquid-market",
7036
+ protocol: "Hyperliquid",
7037
+ title: "Research a Hyperliquid market before planning a trade",
7038
+ skill: "hyperliquid-analyze",
7039
+ pack: "hyperliquid-skills",
7040
+ inputs: ["Exact network, market and DEX identity", "Research question, observation window and freshness limit", "Liquidity, funding and catalyst evidence requirements"],
7041
+ output: "Cited market/funding/liquidity evidence, supported thesis and invalidation conditions with data gaps; historical, paper and live evidence stay separate.",
7042
+ access: "Existing official public info reads or explicitly configured tools; market analysis grants no financial authority."
7043
+ },
7044
+ {
7045
+ id: "hyperliquid-review",
7046
+ protocol: "Hyperliquid",
7047
+ title: "Review a completed trade against its original intent",
7048
+ skill: "hyperliquid-review",
7049
+ pack: "hyperliquid-skills",
7050
+ inputs: ["Account, market/DEX and completed trade window", "Original ticket, risk unit, order/fill identities and exchange history", "Signed fees/funding, position changes and incident record"],
7051
+ output: "Reconciled trade outcome and cost accounting with a separate process grade, incident findings and one supported follow-up test.",
7052
+ access: "Read-only exchange history and local arithmetic; a profitable result does not establish that controls or authorization were respected."
7053
+ },
7018
7054
  {
7019
7055
  id: "market-snapshot",
7020
7056
  protocol: "Market data",
@@ -7387,20 +7423,6 @@ var init_workflows = __esm(() => {
7387
7423
  });
7388
7424
 
7389
7425
  // src/core.ts
7390
- var exports_core = {};
7391
- __export(exports_core, {
7392
- selectPacks: () => selectPacks,
7393
- parseHarness: () => parseHarness,
7394
- parseConfig: () => parseConfig,
7395
- parseCatalog: () => parseCatalog,
7396
- installedVersion: () => installedVersion,
7397
- installArgs: () => installArgs,
7398
- identity: () => identity2,
7399
- harnesses: () => harnesses,
7400
- fetchCatalog: () => fetchCatalog,
7401
- compatibilitySetupMessage: () => compatibilitySetupMessage,
7402
- catalogChanges: () => catalogChanges
7403
- });
7404
7426
  import { resolve } from "path";
7405
7427
  function compatibilitySetupMessage(harness) {
7406
7428
  return harness === "hermes" ? undefined : harnesses[harness].setup;
@@ -7577,9 +7599,9 @@ var skills_default = {
7577
7599
  {
7578
7600
  id: "hyperliquid-skills",
7579
7601
  source: "galleonlabs/crypto-defi-skills",
7580
- description: "Agent skills for Hyperliquid setup, market analysis, trade planning and execution, monitoring, and performance review.",
7581
- version: "0.3.5",
7582
- revision: "9fe67c24efc0fd5796066605b29576f3b8f2de94",
7602
+ description: "Hyperliquid market research, trade planning, monitoring, performance review and reproducible public wallet cost audits.",
7603
+ version: "0.4.0",
7604
+ revision: "3f91a955d59a55b9927403ddc3c2e26660d48bf8",
7583
7605
  skills: [
7584
7606
  "hyperliquid-analyze",
7585
7607
  "hyperliquid-engineer",
@@ -7587,7 +7609,8 @@ var skills_default = {
7587
7609
  "hyperliquid-monitor",
7588
7610
  "hyperliquid-plan",
7589
7611
  "hyperliquid-review",
7590
- "hyperliquid-setup"
7612
+ "hyperliquid-setup",
7613
+ "hyperliquid-wallet-audit"
7591
7614
  ],
7592
7615
  path: "packages/hyperliquid",
7593
7616
  package: "galleon-hyperliquid-skills"
@@ -7755,9 +7778,9 @@ var skills_default = {
7755
7778
  {
7756
7779
  id: "defi-strategy-skills",
7757
7780
  source: "galleonlabs/crypto-defi-skills",
7758
- description: "Test daily spot rules with costs, cash flows, drawdown and a reproducible buy-and-hold benchmark.",
7759
- version: "0.1.1",
7760
- revision: "9fe67c24efc0fd5796066605b29576f3b8f2de94",
7781
+ description: "Test frozen daily spot rules with chronological held-out periods, higher trading costs and reproducible same-cost benchmarks.",
7782
+ version: "0.2.0",
7783
+ revision: "3f91a955d59a55b9927403ddc3c2e26660d48bf8",
7761
7784
  skills: [
7762
7785
  "galleon-defi-strategy-backtest"
7763
7786
  ],
@@ -7795,7 +7818,7 @@ var skills_default = {
7795
7818
  // package.json
7796
7819
  var package_default = {
7797
7820
  name: "boomkin",
7798
- version: "0.9.1",
7821
+ version: "0.10.0",
7799
7822
  description: "Your open-source DeFi desk: native Hermes research projects, verifiable evidence and independent financial skills.",
7800
7823
  type: "module",
7801
7824
  license: "MIT",
@@ -7901,10 +7924,10 @@ async function packageDirectory(pack, checkout) {
7901
7924
  const manifest = JSON.parse(await readFile(join(path, "package.json"), "utf8"));
7902
7925
  if (manifest.name !== pack.package || manifest.version !== pack.version)
7903
7926
  throw new Error(`Package release metadata mismatch: ${pack.id}`);
7904
- const { installedVersion: installedVersion2 } = await Promise.resolve().then(() => (init_core(), exports_core));
7927
+ await Promise.resolve().then(() => init_core());
7905
7928
  for (const skill of pack.skills) {
7906
7929
  const text = await readFile(join(path, "skills", skill, "SKILL.md"), "utf8");
7907
- if (installedVersion2(text) !== pack.version)
7930
+ if (installedVersion(text) !== pack.version)
7908
7931
  throw new Error(`Source skill version mismatch: ${skill}`);
7909
7932
  }
7910
7933
  return path;
@@ -8047,9 +8070,9 @@ async function ensureRuntime(directory, options) {
8047
8070
  const installed = await findRuntime(root);
8048
8071
  if (!installed || !installed.startsWith(runtime + "/"))
8049
8072
  throw new Error("The installer completed without a usable profile-managed Hermes executable");
8050
- const git2 = Bun.spawn(["git", "-C", runtime, "rev-parse", "HEAD"], { stdout: "pipe", stderr: "ignore" });
8051
- const revision = (await new Response(git2.stdout).text()).trim();
8052
- if (await git2.exited !== 0 || revision !== HERMES_COMMIT)
8073
+ const git = Bun.spawn(["git", "-C", runtime, "rev-parse", "HEAD"], { stdout: "pipe", stderr: "ignore" });
8074
+ const revision = (await new Response(git.stdout).text()).trim();
8075
+ if (await git.exited !== 0 || revision !== HERMES_COMMIT)
8053
8076
  throw new Error("Hermes installed revision differs from the reviewed pin. Existing runtime was preserved; review it before continuing.");
8054
8077
  if (!(await localProfileStatus(root)).runtime.available)
8055
8078
  throw new Error("Installed Hermes cannot report its version; runtime readiness is incomplete");
@@ -8058,12 +8081,12 @@ async function ensureRuntime(directory, options) {
8058
8081
  await rm(path, { force: true });
8059
8082
  }
8060
8083
  }
8061
- async function initializeProfile(directory, identity3) {
8084
+ async function initializeProfile(directory, identity) {
8062
8085
  const root = await profilePath(directory);
8063
8086
  await mkdir(root, { recursive: true, mode: 448 });
8064
8087
  await safePath(join(root, "SOUL.md"));
8065
8088
  try {
8066
- await writeFile(join(root, "SOUL.md"), identity3, { flag: "wx", mode: 384 });
8089
+ await writeFile(join(root, "SOUL.md"), identity, { flag: "wx", mode: 384 });
8067
8090
  return { createdSoul: true };
8068
8091
  } catch (error) {
8069
8092
  if (error.code === "EEXIST")
@@ -8092,7 +8115,7 @@ async function configureMcpServers(directory, servers) {
8092
8115
  for (const [name, server] of Object.entries(servers)) {
8093
8116
  if (!/^[a-z][a-z0-9_-]*$/.test(name))
8094
8117
  throw new Error("Invalid MCP server name");
8095
- if (server.trust !== "untrusted" || !Array.isArray(server.tools?.include) || server.tools.include.some((name2) => !name2 || /[*?\[\]]/.test(name2)) || server.tools.resources !== false || server.tools.prompts !== false)
8118
+ if (server.trust !== "untrusted" || !Array.isArray(server.tools?.include) || server.tools.include.some((name) => !name || /[*?\[\]]/.test(name)) || server.tools.resources !== false || server.tools.prompts !== false)
8096
8119
  throw new Error("Boomkin MCP setup requires untrusted servers, explicit tool names, and disabled resource/prompt utilities");
8097
8120
  if (Boolean(server.url) === Boolean(server.command))
8098
8121
  throw new Error("Choose one MCP transport");
@@ -11020,6 +11043,14 @@ function parseInputs(value) {
11020
11043
  }
11021
11044
  function workflowInputs(workflow, value) {
11022
11045
  const inputs = parseInputs(value);
11046
+ if (workflow.id === "hyperliquid-wallet-audit") {
11047
+ if (typeof inputs.account !== "string" || !/^0x[0-9a-fA-F]{40}$/.test(inputs.account) || /^0x0{40}$/.test(inputs.account) || !timestamp(inputs.startTime) || !timestamp(inputs.endTime) || Date.parse(inputs.startTime) >= Date.parse(inputs.endTime) || inputs.network !== undefined && (typeof inputs.network !== "string" || !["mainnet", "testnet"].includes(inputs.network)) || inputs.maxPages !== undefined && (!Number.isInteger(inputs.maxPages) || Number(inputs.maxPages) < 1 || Number(inputs.maxPages) > 50))
11048
+ throw new Error("Wallet audit requires a public account address, ordered UTC startTime/endTime, mainnet or testnet, and maxPages from 1 to 50");
11049
+ }
11050
+ if (workflow.id === "strategy-validation" && (!["dataFile", "specFile"].every((key) => text(inputs[key]) && String(inputs[key]).startsWith("/")) || inputs.splitIndex !== undefined && (!Number.isInteger(inputs.splitIndex) || Number(inputs.splitIndex) < 2)))
11051
+ throw new Error("Strategy validation requires absolute dataFile/specFile paths and an optional integer splitIndex of at least 2");
11052
+ if (workflow.id === "strategy-validation" && ["stressFeeBps", "stressSlippageBps"].some((key) => inputs[key] !== undefined && (typeof inputs[key] !== "number" || Number(inputs[key]) < 0 || Number(inputs[key]) > 1000)))
11053
+ throw new Error("Strategy stress fee/slippage assumptions must be numbers from 0 to 1000 basis points");
11023
11054
  if (workflow.id === "thesis-review" && (!["asset", "thesis", "evidenceStandard", "reviewFrequency", "notifyWhen"].every((key) => text(inputs[key])) || !Array.isArray(inputs.invalidationConditions) || !inputs.invalidationConditions.length || !inputs.invalidationConditions.every(text)))
11024
11055
  throw new Error("Thesis review requires asset, thesis, evidenceStandard, reviewFrequency, notifyWhen and nonempty invalidationConditions");
11025
11056
  return inputs;
@@ -11150,6 +11181,10 @@ Access: ${project.workflow.access}
11150
11181
  History: ${previous ? `Previous run ${JSON.stringify(join4(dirname(output), previous.id))} has state ${previous.state}. Review its report and evidence for comparison; never reuse old reads as current state.` : "This is the first run. Establish a cited baseline and disclose missing history."}
11151
11182
  ${project.workflow.id === "thesis-review" ? `Assess every explicit invalidation condition against the saved evidence standard. Report holds, weakened, invalidated or unknown, with observation IDs for each verdict. Ordinary volatility is not invalidation. Record a review/notification handoff from the saved preferences; this run does not create a schedule or send notifications.
11152
11183
  ` : ""}
11184
+ ${project.workflow.id === "hyperliquid-wallet-audit" ? `Use the installed skill's scripts/wallet-audit.mjs capture helper with --address from account, --start from startTime, --end from endTime, --network from network (default mainnet), and --max-pages from maxPages (default 10). Write its capture with --out into a new audit/ subdirectory inside this run. Preserve raw evidence under sources/ for the Boomkin observation contract; never label sampled activity a full portfolio return or assert missing stop protection from incomplete orders.
11185
+ ` : ""}
11186
+ ${project.workflow.id === "strategy-validation" ? `Use the installed backtest skill's scripts/validate-strategy.mjs with --data from dataFile, --spec from specFile, optional --split from splitIndex, --stress-fee-bps from stressFeeBps and --stress-slippage-bps from stressSlippageBps when supplied. Otherwise use the helper's disclosed higher-cost defaults. Freeze the supplied rule; do not optimize after viewing the held-out result. Report each period and cost scenario separately with independent restart accounting. Preserve the dataset, specification and validation result under sources/; local results cite the exact released engine source URL and explain the data provenance.
11187
+ ` : ""}
11153
11188
 
11154
11189
  This run is research and unsigned planning only. Do not sign, approve, fund, submit,
11155
11190
  place or cancel orders, or change financial authority. Public reads are allowed;
@@ -11321,6 +11356,80 @@ async function runProject(directory, projectName, options = {}) {
11321
11356
  await rm2(lock, { recursive: true, force: true });
11322
11357
  }
11323
11358
  }
11359
+ // catalog/templates.json
11360
+ var templates_default = {
11361
+ schemaVersion: 1,
11362
+ templates: [
11363
+ {
11364
+ id: "wallet-audit",
11365
+ title: "Find the costs in a Hyperliquid wallet",
11366
+ workflow: "hyperliquid-wallet-audit",
11367
+ description: "Reconcile a public account's realized activity, fees, funding and current exposure. Preserve raw sources and explain incomplete history.",
11368
+ defaults: { network: "mainnet", maxPages: 10 },
11369
+ requiredInputs: ["account", "startTime", "endTime"],
11370
+ exampleInputs: { account: "YOUR_PUBLIC_ACCOUNT_ADDRESS", startTime: "2026-10-01T00:00:00.000Z", endTime: "2026-10-08T00:00:00.000Z" }
11371
+ },
11372
+ {
11373
+ id: "strategy-validation",
11374
+ title: "Test a rule on an untouched period",
11375
+ workflow: "strategy-validation",
11376
+ description: "Freeze a daily spot rule, compare higher trading costs and inspect a separate held-out period against the same-cost benchmark.",
11377
+ defaults: {},
11378
+ requiredInputs: ["dataFile", "specFile"],
11379
+ exampleInputs: { dataFile: "/absolute/path/to/daily-prices.json", specFile: "/absolute/path/to/frozen-rule.json" }
11380
+ },
11381
+ {
11382
+ id: "stablecoin-yields",
11383
+ title: "Screen stablecoin income",
11384
+ workflow: "yield-screen",
11385
+ description: "Separate base income from incentives and collect the missing exit and liquidity evidence before a deposit decision.",
11386
+ defaults: { minimumTvlUsd: "10000000", limit: 5, yieldPreference: "Separate base yield from incentive emissions" },
11387
+ requiredInputs: ["chain", "asset"],
11388
+ exampleInputs: { chain: "Ethereum", asset: "USDC" }
11389
+ },
11390
+ {
11391
+ id: "thesis-review",
11392
+ title: "Keep an investment thesis accountable",
11393
+ workflow: "thesis-review",
11394
+ description: "Save explicit invalidation conditions and review preferences, then compare each research run with its captured baseline.",
11395
+ defaults: { reviewFrequency: "Weekly", notifyWhen: "An invalidation condition changes verdict" },
11396
+ requiredInputs: ["asset", "thesis", "invalidationConditions", "evidenceStandard"],
11397
+ exampleInputs: { asset: "YOUR_EXACT_ASSET_IDENTITY", thesis: "YOUR_THESIS", invalidationConditions: ["YOUR_MEASURABLE_INVALIDATION_CONDITION"], evidenceStandard: "YOUR_PRIMARY_SOURCE_REQUIREMENTS" }
11398
+ }
11399
+ ]
11400
+ };
11401
+
11402
+ // src/templates.ts
11403
+ var templates = templates_default.templates;
11404
+ function selectTemplate(id) {
11405
+ const template = templates.find((item) => item.id === id);
11406
+ if (!template)
11407
+ throw new Error(`Unknown template: ${id}. Run templates to list available starting points.`);
11408
+ selectWorkflow(template.workflow);
11409
+ return template;
11410
+ }
11411
+ function templateInputs(id, supplied) {
11412
+ const template = selectTemplate(id);
11413
+ const inputs = parseInputs({ ...template.defaults, ...parseInputs(supplied) });
11414
+ for (const key of template.requiredInputs) {
11415
+ const value = inputs[key];
11416
+ if (value === undefined || value === null || typeof template.exampleInputs[key] === "string" && typeof value !== "string" || Array.isArray(template.exampleInputs[key]) && !Array.isArray(value) || typeof value === "string" && (!value.trim() || /YOUR_|\/absolute\/path\/to\//.test(value)) || Array.isArray(value) && (!value.length || value.some((item) => typeof item !== "string" || !item.trim() || /YOUR_/.test(item)))) {
11417
+ throw new Error(`Template ${id} requires your ${key}; replace the example placeholders in the input file.`);
11418
+ }
11419
+ }
11420
+ return inputs;
11421
+ }
11422
+ function renderTemplate(template) {
11423
+ return `${template.id}: ${template.title}
11424
+ ${template.description}
11425
+ Workflow: ${template.workflow}
11426
+ Supply: ${template.requiredInputs.join(", ")}
11427
+ Example input (replace placeholders): ${JSON.stringify({ ...template.defaults, ...template.exampleInputs })}
11428
+ Create: boomkin project create --name my-research --template ${template.id} --input-file ./inputs.json
11429
+ Preview: boomkin project run --name my-research --dry-run
11430
+ Install: boomkin onboard --workflow ${template.workflow}
11431
+ Creation and preview make no model or data call. Live runs use your configured model and tools.`;
11432
+ }
11324
11433
 
11325
11434
  // src/cli.ts
11326
11435
  var help = `Boomkin \u2014 your Hermes DeFi agent.
@@ -11334,6 +11443,9 @@ boomkin providers --access keyless
11334
11443
  boomkin providers --provider blockscout
11335
11444
  boomkin workflows
11336
11445
  boomkin workflows --workflow aave-health
11446
+ boomkin templates
11447
+ boomkin templates --template wallet-audit --json
11448
+ boomkin project create --name wallet-review --template wallet-audit --input-file ./inputs.json
11337
11449
  boomkin project create --name my-research --workflow yield-screen --input-file ./inputs.json
11338
11450
  boomkin project run --name my-research --dry-run
11339
11451
  boomkin project run --name my-research
@@ -11357,6 +11469,8 @@ installs the selected Galleon skill packs and public CoinGecko MCP, then runs na
11357
11469
  --all-packs opts an existing onboarding profile into every pack in the current catalog.
11358
11470
  --workflow chooses one task's pack for onboarding; updates keep that selection.
11359
11471
  workflows lists inputs, concrete results and access requirements; --json emits structured data.
11472
+ templates lists reviewed starting points; --template inspects the required inputs and example.
11473
+ project create accepts either --template or --workflow with your --input-file.
11360
11474
  providers discovers sourced provider tools locally; --search, --capability and --access narrow results.
11361
11475
  --provider inspects one entry. Discovery does not install third-party skills or connect a service.
11362
11476
  project saves workflow inputs and keeps separate native Hermes runs, evidence and unsigned plans.
@@ -11389,6 +11503,7 @@ async function main() {
11389
11503
  objective: { type: "string" },
11390
11504
  "max-turns": { type: "string" },
11391
11505
  "run-id": { type: "string" },
11506
+ template: { type: "string" },
11392
11507
  version: { type: "boolean", short: "v" },
11393
11508
  action: { type: "string" },
11394
11509
  workflow: { type: "string" },
@@ -11421,8 +11536,12 @@ async function main() {
11421
11536
  throw new Error("Unexpected positional arguments");
11422
11537
  if (values.workflow !== undefined && !["workflows", "onboard", "project"].includes(command))
11423
11538
  throw new Error("--workflow is available for workflows, onboard and project create");
11424
- if (values.protocol !== undefined && command !== "workflows" || values.json && !["workflows", "project", "providers"].includes(command))
11425
- throw new Error("--protocol is available for workflows; --json for workflows, providers and project");
11539
+ if (values.protocol !== undefined && command !== "workflows" || values.json && !["workflows", "project", "providers", "templates"].includes(command))
11540
+ throw new Error("--protocol is available for workflows; --json for workflows, providers, templates and project");
11541
+ if (values.template !== undefined && !["templates", "project"].includes(command))
11542
+ throw new Error("--template is available for templates and project create");
11543
+ if (values.template !== undefined && values.workflow !== undefined)
11544
+ throw new Error("Choose --template or --workflow separately");
11426
11545
  if ([values.search, values.capability, values.access].some((value) => value !== undefined) && command !== "providers")
11427
11546
  throw new Error("--search, --capability and --access are only available for providers");
11428
11547
  if ([values.name, values["input-file"], values.objective, values["max-turns"], values["run-id"]].some((value) => value !== undefined) && command !== "project")
@@ -11445,8 +11564,8 @@ async function main() {
11445
11564
  throw new Error("Choose project create, list, show, run or check");
11446
11565
  if (values.pack || values.harness || values["offline-catalog"])
11447
11566
  throw new Error("Project commands use the selected Hermes profile; pack options belong to onboard");
11448
- if (action !== "create" && [values.workflow, values["input-file"], values.objective].some((value) => value !== undefined))
11449
- throw new Error("--workflow, --input-file and --objective are only available for project create");
11567
+ if (action !== "create" && [values.workflow, values.template, values["input-file"], values.objective].some((value) => value !== undefined))
11568
+ throw new Error("--workflow, --template, --input-file and --objective are only available for project create");
11450
11569
  if (action !== "run" && values["max-turns"] !== undefined)
11451
11570
  throw new Error("--max-turns is only available for project run");
11452
11571
  if (action !== "check" && values["run-id"] !== undefined)
@@ -11455,40 +11574,49 @@ async function main() {
11455
11574
  throw new Error("--dry-run is available for project create and run");
11456
11575
  if (action === "run" && values.json && !values["dry-run"])
11457
11576
  throw new Error("Live project run streams native Hermes output. Use --dry-run --json to preview, or project show/project check for saved JSON results");
11458
- const directory2 = await canonicalPath(resolve5(values.directory ?? defaultProfile()));
11577
+ const directory = await canonicalPath(resolve5(values.directory ?? defaultProfile()));
11459
11578
  if (action === "list") {
11460
11579
  if (values.name !== undefined)
11461
11580
  throw new Error("project list does not accept --name");
11462
- const projects = await listProjects(directory2);
11581
+ const projects = await listProjects(directory);
11463
11582
  return console.log(values.json ? JSON.stringify({ schemaVersion: 1, projects }, null, 2) : projects.length ? projects.map((project) => `${project.name}: ${project.workflow.title}`).join(`
11464
11583
  `) : "No saved projects. Use project create with a workflow and input file.");
11465
11584
  }
11466
11585
  if (!values.name)
11467
11586
  throw new Error("Pass --name with the saved project name");
11468
11587
  if (action === "create") {
11469
- if (!values.workflow || !values["input-file"])
11470
- throw new Error("project create requires --workflow and --input-file (a JSON object)");
11588
+ if (!(values.workflow || values.template) || !values["input-file"])
11589
+ throw new Error("project create requires --workflow or --template, and --input-file (a JSON object)");
11471
11590
  const file = Bun.file(resolve5(values["input-file"]));
11472
11591
  if (file.size > 65536)
11473
11592
  throw new Error("Project input file exceeds 64 KiB");
11474
- const project = await createProject(directory2, { name: values.name, workflow: values.workflow, inputs: await file.json(), objective: values.objective, dryRun: values["dry-run"] }, parseCatalog(skills_default));
11475
- return console.log(values.json ? JSON.stringify(project, null, 2) : `${values["dry-run"] ? "Would create" : "Saved"} ${project.name} in ${directory2}. Preview with project run --name ${project.name} --dry-run.`);
11593
+ const supplied = await file.json();
11594
+ const project = await createProject(directory, { name: values.name, workflow: values.template ? selectTemplate(values.template).workflow : values.workflow, inputs: values.template ? templateInputs(values.template, supplied) : supplied, objective: values.objective, dryRun: values["dry-run"] }, parseCatalog(skills_default));
11595
+ return console.log(values.json ? JSON.stringify(project, null, 2) : `${values["dry-run"] ? "Would create" : "Saved"} ${project.name} in ${directory}. Preview with project run --name ${project.name} --dry-run.`);
11476
11596
  }
11477
11597
  if (action === "show")
11478
- return console.log(JSON.stringify({ project: await readProject(directory2, values.name), runs: await projectRuns(directory2, values.name) }, null, 2));
11598
+ return console.log(JSON.stringify({ project: await readProject(directory, values.name), runs: await projectRuns(directory, values.name) }, null, 2));
11479
11599
  if (action === "run") {
11480
- const result2 = await runProject(directory2, values.name, { dryRun: values["dry-run"], maxTurns: values["max-turns"] === undefined ? undefined : Number(values["max-turns"]) });
11481
- return console.log(values.json ? JSON.stringify(result2, null, 2) : values["dry-run"] ? result2.prompt : `${result2.run.state}: ${result2.path}${result2.run.issues?.length ? `
11482
- ${result2.run.issues.join(`
11600
+ const result = await runProject(directory, values.name, { dryRun: values["dry-run"], maxTurns: values["max-turns"] === undefined ? undefined : Number(values["max-turns"]) });
11601
+ return console.log(values.json ? JSON.stringify(result, null, 2) : values["dry-run"] ? result.prompt : `${result.run.state}: ${result.path}${result.run.issues?.length ? `
11602
+ ${result.run.issues.join(`
11483
11603
  `)}` : `
11484
11604
  Captured files passed structural and hash checks. Review the findings and unsigned plan.`}`);
11485
11605
  }
11486
- const result = await checkProjectRun(directory2, values.name, values["run-id"]);
11606
+ const result = await checkProjectRun(directory, values.name, values["run-id"]);
11487
11607
  console.log(JSON.stringify(result, null, 2));
11488
11608
  if (result.issues.length)
11489
11609
  process.exitCode = 1;
11490
11610
  return;
11491
11611
  }
11612
+ if (command === "templates") {
11613
+ if (values.pack || values.harness || values.directory || values["offline-catalog"] || values.workflow)
11614
+ throw new Error("templates accepts --template and --json");
11615
+ const selected = values.template !== undefined ? [selectTemplate(values.template)] : templates;
11616
+ return console.log(values.json ? JSON.stringify({ schemaVersion: 1, templates: selected }, null, 2) : selected.map(renderTemplate).join(`
11617
+
11618
+ `));
11619
+ }
11492
11620
  if (command === "workflows") {
11493
11621
  if (values.pack || values.harness || values.directory)
11494
11622
  throw new Error("workflows accepts --workflow, --protocol and --json");
@@ -11511,7 +11639,7 @@ Captured files passed structural and hash checks. Review the findings and unsign
11511
11639
  if (["onboard", "doctor", "start", "connect", "model", "chatgpt"].includes(command)) {
11512
11640
  if (values.harness && values.harness !== "hermes")
11513
11641
  throw new Error("Boomkin onboarding uses Hermes. Use setup for skill-only compatibility with another harness.");
11514
- const directory2 = await canonicalPath(resolve5(values.directory ?? defaultProfile()));
11642
+ const directory = await canonicalPath(resolve5(values.directory ?? defaultProfile()));
11515
11643
  if (command === "onboard") {
11516
11644
  if (values.pack && values["all-packs"])
11517
11645
  throw new Error("Choose --pack or --all-packs, not both");
@@ -11523,36 +11651,36 @@ Captured files passed structural and hash checks. Review the findings and unsign
11523
11651
  "--harness",
11524
11652
  "hermes",
11525
11653
  "--directory",
11526
- directory2,
11654
+ directory,
11527
11655
  ...selected?.flatMap((id) => ["--pack", id]) ?? [],
11528
11656
  ...values["dry-run"] ? ["--dry-run"] : []
11529
11657
  ];
11530
11658
  const child = Bun.spawn(args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" });
11531
11659
  if (await child.exited !== 0)
11532
11660
  throw new Error("Skill setup did not finish. Resolve its reported issue and rerun onboard.");
11533
- console.log(`Hermes home: ${directory2}. Native model setup and keyless CoinGecko data; other providers are opt-in.`);
11534
- await prepareHermes(directory2, { install: !values["no-install"], dryRun: values["dry-run"], skipModelSetup: values["skip-model-setup"] });
11661
+ console.log(`Hermes home: ${directory}. Native model setup and keyless CoinGecko data; other providers are opt-in.`);
11662
+ await prepareHermes(directory, { install: !values["no-install"], dryRun: values["dry-run"], skipModelSetup: values["skip-model-setup"] });
11535
11663
  if (values["dry-run"])
11536
11664
  return;
11537
- console.log(JSON.stringify(await doctor(directory2, parseCatalog(skills_default)), null, 2));
11665
+ console.log(JSON.stringify(await doctor(directory, parseCatalog(skills_default)), null, 2));
11538
11666
  console.log("Onboarding saved. Use doctor --live to check public data, then start to launch Hermes. Complete any listed setup gaps first.");
11539
11667
  return;
11540
11668
  }
11541
11669
  if (values.pack || values["all-packs"] || values["skip-model-setup"] || values["no-install"])
11542
11670
  throw new Error("Pack and installer options are only available for onboard here");
11543
11671
  if (command === "chatgpt")
11544
- return runChatGpt(directory2, values.action ?? "status", values["dry-run"]);
11672
+ return runChatGpt(directory, values.action ?? "status", values["dry-run"]);
11545
11673
  if (command === "doctor")
11546
- return console.log(JSON.stringify(await doctor(directory2, parseCatalog(skills_default), values.live), null, 2));
11674
+ return console.log(JSON.stringify(await doctor(directory, parseCatalog(skills_default), values.live), null, 2));
11547
11675
  if (command === "connect")
11548
- return connectProvider(directory2, values.provider ?? "", values["dry-run"], values["key-file"] ? resolve5(values["key-file"]) : undefined);
11676
+ return connectProvider(directory, values.provider ?? "", values["dry-run"], values["key-file"] ? resolve5(values["key-file"]) : undefined);
11549
11677
  if (values["dry-run"])
11550
- return console.log(`Hermes ${command === "model" ? "setup model" : "chat"} in ${directory2}`);
11551
- return runHermes(directory2, command === "model" ? ["setup", "model"] : ["chat"]);
11678
+ return console.log(`Hermes ${command === "model" ? "setup model" : "chat"} in ${directory}`);
11679
+ return runHermes(directory, command === "model" ? ["setup", "model"] : ["chat"]);
11552
11680
  }
11553
11681
  if (command === "harnesses") {
11554
- for (const [name2, h] of Object.entries(harnesses))
11555
- console.log(`${name2}
11682
+ for (const [name, h] of Object.entries(harnesses))
11683
+ console.log(`${name}
11556
11684
  ${h.setup}
11557
11685
  ${h.docs}
11558
11686
  `);
@@ -11593,11 +11721,11 @@ Captured files passed structural and hash checks. Review the findings and unsign
11593
11721
  if (await child.exited !== 0)
11594
11722
  throw new Error("Upstream skills command failed. Completed packs remain installed; rerun after resolving the error.");
11595
11723
  }
11596
- async function verifyInstalled(catalog2) {
11597
- for (const pack of catalog2.packs) {
11724
+ async function verifyInstalled(catalog) {
11725
+ for (const pack of catalog.packs) {
11598
11726
  for (const skill of pack.skills) {
11599
- const text2 = await readFile5(join5(directory, adapter.skillsPath, skill, "SKILL.md"), "utf8");
11600
- const version = installedVersion(text2);
11727
+ const text = await readFile5(join5(directory, adapter.skillsPath, skill, "SKILL.md"), "utf8");
11728
+ const version = installedVersion(text);
11601
11729
  if (version !== pack.version)
11602
11730
  throw new Error(`Installed ${skill} has version ${version ?? "unknown"}; expected ${pack.version}. Sync not marked complete.`);
11603
11731
  }