boomkin 0.13.1 → 0.13.2

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,21 +1,25 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
+ var __defProp = Object.defineProperty;
3
4
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
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;
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
+ });
14
17
  };
18
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
15
19
  var __require = import.meta.require;
16
20
 
17
21
  // node_modules/yaml/dist/nodes/identity.js
18
- var require_identity = __commonJS(function(exports) {
22
+ var require_identity = __commonJS((exports) => {
19
23
  var ALIAS = Symbol.for("yaml.alias");
20
24
  var DOC = Symbol.for("yaml.document");
21
25
  var MAP = Symbol.for("yaml.map");
@@ -69,7 +73,7 @@ var require_identity = __commonJS(function(exports) {
69
73
  });
70
74
 
71
75
  // node_modules/yaml/dist/visit.js
72
- var require_visit = __commonJS(function(exports) {
76
+ var require_visit = __commonJS((exports) => {
73
77
  var identity = require_identity();
74
78
  var BREAK = Symbol("break visit");
75
79
  var SKIP = Symbol("skip children");
@@ -224,7 +228,7 @@ var require_visit = __commonJS(function(exports) {
224
228
  });
225
229
 
226
230
  // node_modules/yaml/dist/doc/directives.js
227
- var require_directives = __commonJS(function(exports) {
231
+ var require_directives = __commonJS((exports) => {
228
232
  var identity = require_identity();
229
233
  var visit = require_visit();
230
234
  var escapeChars = {
@@ -376,7 +380,7 @@ var require_directives = __commonJS(function(exports) {
376
380
  });
377
381
 
378
382
  // node_modules/yaml/dist/doc/anchors.js
379
- var require_anchors = __commonJS(function(exports) {
383
+ var require_anchors = __commonJS((exports) => {
380
384
  var identity = require_identity();
381
385
  var visit = require_visit();
382
386
  function anchorIsValid(anchor) {
@@ -438,7 +442,7 @@ var require_anchors = __commonJS(function(exports) {
438
442
  });
439
443
 
440
444
  // node_modules/yaml/dist/doc/applyReviver.js
441
- var require_applyReviver = __commonJS(function(exports) {
445
+ var require_applyReviver = __commonJS((exports) => {
442
446
  function applyReviver(reviver, obj, key, val) {
443
447
  if (val && typeof val === "object") {
444
448
  if (Array.isArray(val)) {
@@ -485,7 +489,7 @@ var require_applyReviver = __commonJS(function(exports) {
485
489
  });
486
490
 
487
491
  // node_modules/yaml/dist/nodes/toJS.js
488
- var require_toJS = __commonJS(function(exports) {
492
+ var require_toJS = __commonJS((exports) => {
489
493
  var identity = require_identity();
490
494
  function toJS(value, arg, ctx) {
491
495
  if (Array.isArray(value))
@@ -495,8 +499,8 @@ var require_toJS = __commonJS(function(exports) {
495
499
  return value.toJSON(arg, ctx);
496
500
  const data = { aliasCount: 0, count: 1, res: undefined };
497
501
  ctx.anchors.set(value, data);
498
- ctx.onCreate = (res) => {
499
- data.res = res;
502
+ ctx.onCreate = (res2) => {
503
+ data.res = res2;
500
504
  delete ctx.onCreate;
501
505
  };
502
506
  const res = value.toJSON(arg, ctx);
@@ -512,7 +516,7 @@ var require_toJS = __commonJS(function(exports) {
512
516
  });
513
517
 
514
518
  // node_modules/yaml/dist/nodes/Node.js
515
- var require_Node = __commonJS(function(exports) {
519
+ var require_Node = __commonJS((exports) => {
516
520
  var applyReviver = require_applyReviver();
517
521
  var identity = require_identity();
518
522
  var toJS = require_toJS();
@@ -540,8 +544,8 @@ var require_Node = __commonJS(function(exports) {
540
544
  };
541
545
  const res = toJS.toJS(this, "", ctx);
542
546
  if (typeof onAnchor === "function")
543
- for (const { count, res } of ctx.anchors.values())
544
- onAnchor(res, count);
547
+ for (const { count, res: res2 } of ctx.anchors.values())
548
+ onAnchor(res2, count);
545
549
  return typeof reviver === "function" ? applyReviver.applyReviver(reviver, { "": res }, "", res) : res;
546
550
  }
547
551
  }
@@ -549,7 +553,7 @@ var require_Node = __commonJS(function(exports) {
549
553
  });
550
554
 
551
555
  // node_modules/yaml/dist/nodes/Alias.js
552
- var require_Alias = __commonJS(function(exports) {
556
+ var require_Alias = __commonJS((exports) => {
553
557
  var anchors = require_anchors();
554
558
  var visit = require_visit();
555
559
  var identity = require_identity();
@@ -591,11 +595,11 @@ var require_Alias = __commonJS(function(exports) {
591
595
  found = node;
592
596
  }
593
597
  if (found && ctx) {
594
- const { anchors, doc, maxAliasCount } = ctx;
595
- let data = anchors.get(found);
598
+ const { anchors: anchors2, doc: doc2, maxAliasCount } = ctx;
599
+ let data = anchors2.get(found);
596
600
  if (!data) {
597
601
  toJS.toJS(found, null, ctx);
598
- data = anchors.get(found);
602
+ data = anchors2.get(found);
599
603
  }
600
604
  if (data?.res === undefined) {
601
605
  const msg = "This should not happen: Alias anchor was not resolved?";
@@ -604,7 +608,7 @@ var require_Alias = __commonJS(function(exports) {
604
608
  if (maxAliasCount >= 0) {
605
609
  data.count += 1;
606
610
  if (data.aliasCount === 0)
607
- data.aliasCount = getAliasCount(doc, found, anchors);
611
+ data.aliasCount = getAliasCount(doc2, found, anchors2);
608
612
  if (data.count * data.aliasCount > maxAliasCount) {
609
613
  const msg = "Excessive alias count indicates a resource exhaustion attack";
610
614
  throw new ReferenceError(msg);
@@ -637,22 +641,22 @@ var require_Alias = __commonJS(function(exports) {
637
641
  return src;
638
642
  }
639
643
  }
640
- function getAliasCount(doc, node, anchors) {
644
+ function getAliasCount(doc, node, anchors2) {
641
645
  if (identity.isAlias(node)) {
642
646
  const source = node.resolve(doc);
643
- const anchor = anchors && source && anchors.get(source);
647
+ const anchor = anchors2 && source && anchors2.get(source);
644
648
  return anchor ? anchor.count * anchor.aliasCount : 0;
645
649
  } else if (identity.isCollection(node)) {
646
650
  let count = 0;
647
651
  for (const item of node.items) {
648
- const c = getAliasCount(doc, item, anchors);
652
+ const c = getAliasCount(doc, item, anchors2);
649
653
  if (c > count)
650
654
  count = c;
651
655
  }
652
656
  return count;
653
657
  } else if (identity.isPair(node)) {
654
- const kc = getAliasCount(doc, node.key, anchors);
655
- const vc = getAliasCount(doc, node.value, anchors);
658
+ const kc = getAliasCount(doc, node.key, anchors2);
659
+ const vc = getAliasCount(doc, node.value, anchors2);
656
660
  return Math.max(kc, vc);
657
661
  }
658
662
  return 1;
@@ -661,7 +665,7 @@ var require_Alias = __commonJS(function(exports) {
661
665
  });
662
666
 
663
667
  // node_modules/yaml/dist/nodes/Scalar.js
664
- var require_Scalar = __commonJS(function(exports) {
668
+ var require_Scalar = __commonJS((exports) => {
665
669
  var identity = require_identity();
666
670
  var Node = require_Node();
667
671
  var toJS = require_toJS();
@@ -689,7 +693,7 @@ var require_Scalar = __commonJS(function(exports) {
689
693
  });
690
694
 
691
695
  // node_modules/yaml/dist/doc/createNode.js
692
- var require_createNode = __commonJS(function(exports) {
696
+ var require_createNode = __commonJS((exports) => {
693
697
  var Alias = require_Alias();
694
698
  var identity = require_identity();
695
699
  var Scalar = require_Scalar();
@@ -737,10 +741,10 @@ var require_createNode = __commonJS(function(exports) {
737
741
  value = value.toJSON();
738
742
  }
739
743
  if (!value || typeof value !== "object") {
740
- const node = new Scalar.Scalar(value);
744
+ const node2 = new Scalar.Scalar(value);
741
745
  if (ref)
742
- ref.node = node;
743
- return node;
746
+ ref.node = node2;
747
+ return node2;
744
748
  }
745
749
  tagObj = value instanceof Map ? schema[identity.MAP] : (Symbol.iterator in Object(value)) ? schema[identity.SEQ] : schema[identity.MAP];
746
750
  }
@@ -761,7 +765,7 @@ var require_createNode = __commonJS(function(exports) {
761
765
  });
762
766
 
763
767
  // node_modules/yaml/dist/nodes/Collection.js
764
- var require_Collection = __commonJS(function(exports) {
768
+ var require_Collection = __commonJS((exports) => {
765
769
  var createNode = require_createNode();
766
770
  var identity = require_identity();
767
771
  var Node = require_Node();
@@ -876,7 +880,7 @@ var require_Collection = __commonJS(function(exports) {
876
880
  });
877
881
 
878
882
  // node_modules/yaml/dist/stringify/stringifyComment.js
879
- var require_stringifyComment = __commonJS(function(exports) {
883
+ var require_stringifyComment = __commonJS((exports) => {
880
884
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
881
885
  function indentComment(comment, indent) {
882
886
  if (/^\n+$/.test(comment))
@@ -893,7 +897,7 @@ var require_stringifyComment = __commonJS(function(exports) {
893
897
  });
894
898
 
895
899
  // node_modules/yaml/dist/stringify/foldFlowLines.js
896
- var require_foldFlowLines = __commonJS(function(exports) {
900
+ var require_foldFlowLines = __commonJS((exports) => {
897
901
  var FOLD_FLOW = "flow";
898
902
  var FOLD_BLOCK = "block";
899
903
  var FOLD_QUOTED = "quoted";
@@ -989,17 +993,17 @@ var require_foldFlowLines = __commonJS(function(exports) {
989
993
  if (onFold)
990
994
  onFold();
991
995
  let res = text.slice(0, folds[0]);
992
- for (let i = 0;i < folds.length; ++i) {
993
- const fold = folds[i];
994
- const end = folds[i + 1] || text.length;
996
+ for (let i2 = 0;i2 < folds.length; ++i2) {
997
+ const fold = folds[i2];
998
+ const end2 = folds[i2 + 1] || text.length;
995
999
  if (fold === 0)
996
1000
  res = `
997
- ${indent}${text.slice(0, end)}`;
1001
+ ${indent}${text.slice(0, end2)}`;
998
1002
  else {
999
1003
  if (mode === FOLD_QUOTED && escapedFolds[fold])
1000
1004
  res += `${text[fold]}\\`;
1001
1005
  res += `
1002
- ${indent}${text.slice(fold + 1, end)}`;
1006
+ ${indent}${text.slice(fold + 1, end2)}`;
1003
1007
  }
1004
1008
  }
1005
1009
  return res;
@@ -1030,7 +1034,7 @@ ${indent}${text.slice(fold + 1, end)}`;
1030
1034
  });
1031
1035
 
1032
1036
  // node_modules/yaml/dist/stringify/stringifyString.js
1033
- var require_stringifyString = __commonJS(function(exports) {
1037
+ var require_stringifyString = __commonJS((exports) => {
1034
1038
  var Scalar = require_Scalar();
1035
1039
  var foldFlowLines = require_foldFlowLines();
1036
1040
  var getFoldOptions = (ctx, isBlock) => ({
@@ -1328,7 +1332,7 @@ ${indent}`);
1328
1332
  });
1329
1333
 
1330
1334
  // node_modules/yaml/dist/stringify/stringify.js
1331
- var require_stringify = __commonJS(function(exports) {
1335
+ var require_stringify = __commonJS((exports) => {
1332
1336
  var anchors = require_anchors();
1333
1337
  var identity = require_identity();
1334
1338
  var stringifyComment = require_stringifyComment();
@@ -1449,7 +1453,7 @@ ${ctx.indent}${str}`;
1449
1453
  });
1450
1454
 
1451
1455
  // node_modules/yaml/dist/stringify/stringifyPair.js
1452
- var require_stringifyPair = __commonJS(function(exports) {
1456
+ var require_stringifyPair = __commonJS((exports) => {
1453
1457
  var identity = require_identity();
1454
1458
  var Scalar = require_Scalar();
1455
1459
  var stringify = require_stringify();
@@ -1585,7 +1589,7 @@ ${ctx.indent}`;
1585
1589
  });
1586
1590
 
1587
1591
  // node_modules/yaml/dist/log.js
1588
- var require_log = __commonJS(function(exports) {
1592
+ var require_log = __commonJS((exports) => {
1589
1593
  var node_process = __require("process");
1590
1594
  function debug(logLevel, ...messages) {
1591
1595
  if (logLevel === "debug")
@@ -1604,7 +1608,7 @@ var require_log = __commonJS(function(exports) {
1604
1608
  });
1605
1609
 
1606
1610
  // node_modules/yaml/dist/schema/yaml-1.1/merge.js
1607
- var require_merge = __commonJS(function(exports) {
1611
+ var require_merge = __commonJS((exports) => {
1608
1612
  var identity = require_identity();
1609
1613
  var Scalar = require_Scalar();
1610
1614
  var MERGE_KEY = "<<";
@@ -1635,15 +1639,15 @@ var require_merge = __commonJS(function(exports) {
1635
1639
  if (!identity.isMap(source))
1636
1640
  throw new Error("Merge sources must be maps or map aliases");
1637
1641
  const srcMap = source.toJSON(null, ctx, Map);
1638
- for (const [key, value] of srcMap) {
1642
+ for (const [key, value2] of srcMap) {
1639
1643
  if (map instanceof Map) {
1640
1644
  if (!map.has(key))
1641
- map.set(key, value);
1645
+ map.set(key, value2);
1642
1646
  } else if (map instanceof Set) {
1643
1647
  map.add(key);
1644
1648
  } else if (!Object.prototype.hasOwnProperty.call(map, key)) {
1645
1649
  Object.defineProperty(map, key, {
1646
- value,
1650
+ value: value2,
1647
1651
  writable: true,
1648
1652
  enumerable: true,
1649
1653
  configurable: true
@@ -1661,7 +1665,7 @@ var require_merge = __commonJS(function(exports) {
1661
1665
  });
1662
1666
 
1663
1667
  // node_modules/yaml/dist/nodes/addPairToJSMap.js
1664
- var require_addPairToJSMap = __commonJS(function(exports) {
1668
+ var require_addPairToJSMap = __commonJS((exports) => {
1665
1669
  var log = require_log();
1666
1670
  var merge = require_merge();
1667
1671
  var stringify = require_stringify();
@@ -1722,7 +1726,7 @@ var require_addPairToJSMap = __commonJS(function(exports) {
1722
1726
  });
1723
1727
 
1724
1728
  // node_modules/yaml/dist/nodes/Pair.js
1725
- var require_Pair = __commonJS(function(exports) {
1729
+ var require_Pair = __commonJS((exports) => {
1726
1730
  var createNode = require_createNode();
1727
1731
  var stringifyPair = require_stringifyPair();
1728
1732
  var addPairToJSMap = require_addPairToJSMap();
@@ -1760,14 +1764,14 @@ var require_Pair = __commonJS(function(exports) {
1760
1764
  });
1761
1765
 
1762
1766
  // node_modules/yaml/dist/stringify/stringifyCollection.js
1763
- var require_stringifyCollection = __commonJS(function(exports) {
1767
+ var require_stringifyCollection = __commonJS((exports) => {
1764
1768
  var identity = require_identity();
1765
1769
  var stringify = require_stringify();
1766
1770
  var stringifyComment = require_stringifyComment();
1767
1771
  function stringifyCollection(collection, ctx, options) {
1768
1772
  const flow = ctx.inFlow ?? collection.flow;
1769
- const stringify = flow ? stringifyFlowCollection : stringifyBlockCollection;
1770
- return stringify(collection, ctx, options);
1773
+ const stringify2 = flow ? stringifyFlowCollection : stringifyBlockCollection;
1774
+ return stringify2(collection, ctx, options);
1771
1775
  }
1772
1776
  function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, flowChars, itemIndent, onChompKeep, onComment }) {
1773
1777
  const { indent, options: { commentString } } = ctx;
@@ -1776,13 +1780,13 @@ var require_stringifyCollection = __commonJS(function(exports) {
1776
1780
  const lines = [];
1777
1781
  for (let i = 0;i < items.length; ++i) {
1778
1782
  const item = items[i];
1779
- let comment = null;
1783
+ let comment2 = null;
1780
1784
  if (identity.isNode(item)) {
1781
1785
  if (!chompKeep && item.spaceBefore)
1782
1786
  lines.push("");
1783
1787
  addCommentBefore(ctx, lines, item.commentBefore, chompKeep);
1784
1788
  if (item.comment)
1785
- comment = item.comment;
1789
+ comment2 = item.comment;
1786
1790
  } else if (identity.isPair(item)) {
1787
1791
  const ik = identity.isNode(item.key) ? item.key : null;
1788
1792
  if (ik) {
@@ -1792,12 +1796,12 @@ var require_stringifyCollection = __commonJS(function(exports) {
1792
1796
  }
1793
1797
  }
1794
1798
  chompKeep = false;
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)
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)
1799
1803
  chompKeep = false;
1800
- lines.push(blockItemPrefix + str);
1804
+ lines.push(blockItemPrefix + str2);
1801
1805
  }
1802
1806
  let str;
1803
1807
  if (lines.length === 0) {
@@ -1912,7 +1916,7 @@ ${indent}${end}`;
1912
1916
  });
1913
1917
 
1914
1918
  // node_modules/yaml/dist/nodes/YAMLMap.js
1915
- var require_YAMLMap = __commonJS(function(exports) {
1919
+ var require_YAMLMap = __commonJS((exports) => {
1916
1920
  var stringifyCollection = require_stringifyCollection();
1917
1921
  var addPairToJSMap = require_addPairToJSMap();
1918
1922
  var Collection = require_Collection();
@@ -2039,7 +2043,7 @@ var require_YAMLMap = __commonJS(function(exports) {
2039
2043
  });
2040
2044
 
2041
2045
  // node_modules/yaml/dist/schema/common/map.js
2042
- var require_map = __commonJS(function(exports) {
2046
+ var require_map = __commonJS((exports) => {
2043
2047
  var identity = require_identity();
2044
2048
  var YAMLMap = require_YAMLMap();
2045
2049
  var map = {
@@ -2047,10 +2051,10 @@ var require_map = __commonJS(function(exports) {
2047
2051
  default: true,
2048
2052
  nodeClass: YAMLMap.YAMLMap,
2049
2053
  tag: "tag:yaml.org,2002:map",
2050
- resolve(map, onError) {
2051
- if (!identity.isMap(map))
2054
+ resolve(map2, onError) {
2055
+ if (!identity.isMap(map2))
2052
2056
  onError("Expected a mapping for this tag");
2053
- return map;
2057
+ return map2;
2054
2058
  },
2055
2059
  createNode: (schema, obj, ctx) => YAMLMap.YAMLMap.from(schema, obj, ctx)
2056
2060
  };
@@ -2058,7 +2062,7 @@ var require_map = __commonJS(function(exports) {
2058
2062
  });
2059
2063
 
2060
2064
  // node_modules/yaml/dist/nodes/YAMLSeq.js
2061
- var require_YAMLSeq = __commonJS(function(exports) {
2065
+ var require_YAMLSeq = __commonJS((exports) => {
2062
2066
  var createNode = require_createNode();
2063
2067
  var stringifyCollection = require_stringifyCollection();
2064
2068
  var Collection = require_Collection();
@@ -2151,7 +2155,7 @@ var require_YAMLSeq = __commonJS(function(exports) {
2151
2155
  });
2152
2156
 
2153
2157
  // node_modules/yaml/dist/schema/common/seq.js
2154
- var require_seq = __commonJS(function(exports) {
2158
+ var require_seq = __commonJS((exports) => {
2155
2159
  var identity = require_identity();
2156
2160
  var YAMLSeq = require_YAMLSeq();
2157
2161
  var seq = {
@@ -2159,10 +2163,10 @@ var require_seq = __commonJS(function(exports) {
2159
2163
  default: true,
2160
2164
  nodeClass: YAMLSeq.YAMLSeq,
2161
2165
  tag: "tag:yaml.org,2002:seq",
2162
- resolve(seq, onError) {
2163
- if (!identity.isSeq(seq))
2166
+ resolve(seq2, onError) {
2167
+ if (!identity.isSeq(seq2))
2164
2168
  onError("Expected a sequence for this tag");
2165
- return seq;
2169
+ return seq2;
2166
2170
  },
2167
2171
  createNode: (schema, obj, ctx) => YAMLSeq.YAMLSeq.from(schema, obj, ctx)
2168
2172
  };
@@ -2170,7 +2174,7 @@ var require_seq = __commonJS(function(exports) {
2170
2174
  });
2171
2175
 
2172
2176
  // node_modules/yaml/dist/schema/common/string.js
2173
- var require_string = __commonJS(function(exports) {
2177
+ var require_string = __commonJS((exports) => {
2174
2178
  var stringifyString = require_stringifyString();
2175
2179
  var string = {
2176
2180
  identify: (value) => typeof value === "string",
@@ -2186,7 +2190,7 @@ var require_string = __commonJS(function(exports) {
2186
2190
  });
2187
2191
 
2188
2192
  // node_modules/yaml/dist/schema/common/null.js
2189
- var require_null = __commonJS(function(exports) {
2193
+ var require_null = __commonJS((exports) => {
2190
2194
  var Scalar = require_Scalar();
2191
2195
  var nullTag = {
2192
2196
  identify: (value) => value == null,
@@ -2201,7 +2205,7 @@ var require_null = __commonJS(function(exports) {
2201
2205
  });
2202
2206
 
2203
2207
  // node_modules/yaml/dist/schema/core/bool.js
2204
- var require_bool = __commonJS(function(exports) {
2208
+ var require_bool = __commonJS((exports) => {
2205
2209
  var Scalar = require_Scalar();
2206
2210
  var boolTag = {
2207
2211
  identify: (value) => typeof value === "boolean",
@@ -2222,7 +2226,7 @@ var require_bool = __commonJS(function(exports) {
2222
2226
  });
2223
2227
 
2224
2228
  // node_modules/yaml/dist/stringify/stringifyNumber.js
2225
- var require_stringifyNumber = __commonJS(function(exports) {
2229
+ var require_stringifyNumber = __commonJS((exports) => {
2226
2230
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
2227
2231
  if (typeof value === "bigint")
2228
2232
  return String(value);
@@ -2246,7 +2250,7 @@ var require_stringifyNumber = __commonJS(function(exports) {
2246
2250
  });
2247
2251
 
2248
2252
  // node_modules/yaml/dist/schema/core/float.js
2249
- var require_float = __commonJS(function(exports) {
2253
+ var require_float = __commonJS((exports) => {
2250
2254
  var Scalar = require_Scalar();
2251
2255
  var stringifyNumber = require_stringifyNumber();
2252
2256
  var floatNaN = {
@@ -2289,7 +2293,7 @@ var require_float = __commonJS(function(exports) {
2289
2293
  });
2290
2294
 
2291
2295
  // node_modules/yaml/dist/schema/core/int.js
2292
- var require_int = __commonJS(function(exports) {
2296
+ var require_int = __commonJS((exports) => {
2293
2297
  var stringifyNumber = require_stringifyNumber();
2294
2298
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
2295
2299
  var intResolve = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
@@ -2331,7 +2335,7 @@ var require_int = __commonJS(function(exports) {
2331
2335
  });
2332
2336
 
2333
2337
  // node_modules/yaml/dist/schema/core/schema.js
2334
- var require_schema = __commonJS(function(exports) {
2338
+ var require_schema = __commonJS((exports) => {
2335
2339
  var map = require_map();
2336
2340
  var _null = require_null();
2337
2341
  var seq = require_seq();
@@ -2356,7 +2360,7 @@ var require_schema = __commonJS(function(exports) {
2356
2360
  });
2357
2361
 
2358
2362
  // node_modules/yaml/dist/schema/json/schema.js
2359
- var require_schema2 = __commonJS(function(exports) {
2363
+ var require_schema2 = __commonJS((exports) => {
2360
2364
  var Scalar = require_Scalar();
2361
2365
  var map = require_map();
2362
2366
  var seq = require_seq();
@@ -2420,7 +2424,7 @@ var require_schema2 = __commonJS(function(exports) {
2420
2424
  });
2421
2425
 
2422
2426
  // node_modules/yaml/dist/schema/yaml-1.1/binary.js
2423
- var require_binary = __commonJS(function(exports) {
2427
+ var require_binary = __commonJS((exports) => {
2424
2428
  var node_buffer = __require("buffer");
2425
2429
  var Scalar = require_Scalar();
2426
2430
  var stringifyString = require_stringifyString();
@@ -2475,7 +2479,7 @@ var require_binary = __commonJS(function(exports) {
2475
2479
  });
2476
2480
 
2477
2481
  // node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2478
- var require_pairs = __commonJS(function(exports) {
2482
+ var require_pairs = __commonJS((exports) => {
2479
2483
  var identity = require_identity();
2480
2484
  var Pair = require_Pair();
2481
2485
  var Scalar = require_Scalar();
@@ -2508,8 +2512,8 @@ ${cn.comment}` : item.comment;
2508
2512
  }
2509
2513
  function createPairs(schema, iterable, ctx) {
2510
2514
  const { replacer } = ctx;
2511
- const pairs = new YAMLSeq.YAMLSeq(schema);
2512
- pairs.tag = "tag:yaml.org,2002:pairs";
2515
+ const pairs2 = new YAMLSeq.YAMLSeq(schema);
2516
+ pairs2.tag = "tag:yaml.org,2002:pairs";
2513
2517
  let i = 0;
2514
2518
  if (iterable && Symbol.iterator in Object(iterable))
2515
2519
  for (let it of iterable) {
@@ -2533,9 +2537,9 @@ ${cn.comment}` : item.comment;
2533
2537
  } else {
2534
2538
  key = it;
2535
2539
  }
2536
- pairs.items.push(Pair.createPair(key, value, ctx));
2540
+ pairs2.items.push(Pair.createPair(key, value, ctx));
2537
2541
  }
2538
- return pairs;
2542
+ return pairs2;
2539
2543
  }
2540
2544
  var pairs = {
2541
2545
  collection: "seq",
@@ -2550,7 +2554,7 @@ ${cn.comment}` : item.comment;
2550
2554
  });
2551
2555
 
2552
2556
  // node_modules/yaml/dist/schema/yaml-1.1/omap.js
2553
- var require_omap = __commonJS(function(exports) {
2557
+ var require_omap = __commonJS((exports) => {
2554
2558
  var identity = require_identity();
2555
2559
  var toJS = require_toJS();
2556
2560
  var YAMLMap = require_YAMLMap();
@@ -2589,9 +2593,9 @@ var require_omap = __commonJS(function(exports) {
2589
2593
  }
2590
2594
  static from(schema, iterable, ctx) {
2591
2595
  const pairs$1 = pairs.createPairs(schema, iterable, ctx);
2592
- const omap = new this;
2593
- omap.items = pairs$1.items;
2594
- return omap;
2596
+ const omap2 = new this;
2597
+ omap2.items = pairs$1.items;
2598
+ return omap2;
2595
2599
  }
2596
2600
  }
2597
2601
  YAMLOMap.tag = "tag:yaml.org,2002:omap";
@@ -2622,7 +2626,7 @@ var require_omap = __commonJS(function(exports) {
2622
2626
  });
2623
2627
 
2624
2628
  // node_modules/yaml/dist/schema/yaml-1.1/bool.js
2625
- var require_bool2 = __commonJS(function(exports) {
2629
+ var require_bool2 = __commonJS((exports) => {
2626
2630
  var Scalar = require_Scalar();
2627
2631
  function boolStringify({ value, source }, ctx) {
2628
2632
  const boolObj = value ? trueTag : falseTag;
@@ -2651,7 +2655,7 @@ var require_bool2 = __commonJS(function(exports) {
2651
2655
  });
2652
2656
 
2653
2657
  // node_modules/yaml/dist/schema/yaml-1.1/float.js
2654
- var require_float2 = __commonJS(function(exports) {
2658
+ var require_float2 = __commonJS((exports) => {
2655
2659
  var Scalar = require_Scalar();
2656
2660
  var stringifyNumber = require_stringifyNumber();
2657
2661
  var floatNaN = {
@@ -2697,7 +2701,7 @@ var require_float2 = __commonJS(function(exports) {
2697
2701
  });
2698
2702
 
2699
2703
  // node_modules/yaml/dist/schema/yaml-1.1/int.js
2700
- var require_int2 = __commonJS(function(exports) {
2704
+ var require_int2 = __commonJS((exports) => {
2701
2705
  var stringifyNumber = require_stringifyNumber();
2702
2706
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
2703
2707
  function intResolve(str, offset, radix, { intAsBigInt }) {
@@ -2717,8 +2721,8 @@ var require_int2 = __commonJS(function(exports) {
2717
2721
  str = `0x${str}`;
2718
2722
  break;
2719
2723
  }
2720
- const n = BigInt(str);
2721
- return sign === "-" ? BigInt(-1) * n : n;
2724
+ const n2 = BigInt(str);
2725
+ return sign === "-" ? BigInt(-1) * n2 : n2;
2722
2726
  }
2723
2727
  const n = parseInt(str, radix);
2724
2728
  return sign === "-" ? -1 * n : n;
@@ -2773,7 +2777,7 @@ var require_int2 = __commonJS(function(exports) {
2773
2777
  });
2774
2778
 
2775
2779
  // node_modules/yaml/dist/schema/yaml-1.1/set.js
2776
- var require_set = __commonJS(function(exports) {
2780
+ var require_set = __commonJS((exports) => {
2777
2781
  var identity = require_identity();
2778
2782
  var Pair = require_Pair();
2779
2783
  var YAMLMap = require_YAMLMap();
@@ -2822,14 +2826,14 @@ var require_set = __commonJS(function(exports) {
2822
2826
  }
2823
2827
  static from(schema, iterable, ctx) {
2824
2828
  const { replacer } = ctx;
2825
- const set = new this(schema);
2829
+ const set2 = new this(schema);
2826
2830
  if (iterable && Symbol.iterator in Object(iterable))
2827
2831
  for (let value of iterable) {
2828
2832
  if (typeof replacer === "function")
2829
2833
  value = replacer.call(iterable, value, value);
2830
- set.items.push(Pair.createPair(value, null, ctx));
2834
+ set2.items.push(Pair.createPair(value, null, ctx));
2831
2835
  }
2832
- return set;
2836
+ return set2;
2833
2837
  }
2834
2838
  }
2835
2839
  YAMLSet.tag = "tag:yaml.org,2002:set";
@@ -2856,13 +2860,13 @@ var require_set = __commonJS(function(exports) {
2856
2860
  });
2857
2861
 
2858
2862
  // node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
2859
- var require_timestamp = __commonJS(function(exports) {
2863
+ var require_timestamp = __commonJS((exports) => {
2860
2864
  var stringifyNumber = require_stringifyNumber();
2861
2865
  function parseSexagesimal(str, asBigInt) {
2862
2866
  const sign = str[0];
2863
2867
  const parts = sign === "-" || sign === "+" ? str.substring(1) : str;
2864
2868
  const num = (n) => asBigInt ? BigInt(n) : Number(n);
2865
- const res = parts.replace(/_/g, "").split(":").reduce((res, p) => res * num(60) + num(p), num(0));
2869
+ const res = parts.replace(/_/g, "").split(":").reduce((res2, p) => res2 * num(60) + num(p), num(0));
2866
2870
  return sign === "-" ? num(-1) * res : res;
2867
2871
  }
2868
2872
  function stringifySexagesimal(node) {
@@ -2938,7 +2942,7 @@ var require_timestamp = __commonJS(function(exports) {
2938
2942
  });
2939
2943
 
2940
2944
  // node_modules/yaml/dist/schema/yaml-1.1/schema.js
2941
- var require_schema3 = __commonJS(function(exports) {
2945
+ var require_schema3 = __commonJS((exports) => {
2942
2946
  var map = require_map();
2943
2947
  var _null = require_null();
2944
2948
  var seq = require_seq();
@@ -2979,7 +2983,7 @@ var require_schema3 = __commonJS(function(exports) {
2979
2983
  });
2980
2984
 
2981
2985
  // node_modules/yaml/dist/schema/tags.js
2982
- var require_tags = __commonJS(function(exports) {
2986
+ var require_tags = __commonJS((exports) => {
2983
2987
  var map = require_map();
2984
2988
  var _null = require_null();
2985
2989
  var seq = require_seq();
@@ -3053,16 +3057,16 @@ var require_tags = __commonJS(function(exports) {
3053
3057
  }
3054
3058
  if (addMergeTag)
3055
3059
  tags = tags.concat(merge.merge);
3056
- return tags.reduce((tags, tag) => {
3060
+ return tags.reduce((tags2, tag) => {
3057
3061
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
3058
3062
  if (!tagObj) {
3059
3063
  const tagName = JSON.stringify(tag);
3060
3064
  const keys = Object.keys(tagsByName).map((key) => JSON.stringify(key)).join(", ");
3061
3065
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
3062
3066
  }
3063
- if (!tags.includes(tagObj))
3064
- tags.push(tagObj);
3065
- return tags;
3067
+ if (!tags2.includes(tagObj))
3068
+ tags2.push(tagObj);
3069
+ return tags2;
3066
3070
  }, []);
3067
3071
  }
3068
3072
  exports.coreKnownTags = coreKnownTags;
@@ -3070,7 +3074,7 @@ var require_tags = __commonJS(function(exports) {
3070
3074
  });
3071
3075
 
3072
3076
  // node_modules/yaml/dist/schema/Schema.js
3073
- var require_Schema = __commonJS(function(exports) {
3077
+ var require_Schema = __commonJS((exports) => {
3074
3078
  var identity = require_identity();
3075
3079
  var map = require_map();
3076
3080
  var seq = require_seq();
@@ -3100,7 +3104,7 @@ var require_Schema = __commonJS(function(exports) {
3100
3104
  });
3101
3105
 
3102
3106
  // node_modules/yaml/dist/stringify/stringifyDocument.js
3103
- var require_stringifyDocument = __commonJS(function(exports) {
3107
+ var require_stringifyDocument = __commonJS((exports) => {
3104
3108
  var identity = require_identity();
3105
3109
  var stringify = require_stringify();
3106
3110
  var stringifyComment = require_stringifyComment();
@@ -3180,7 +3184,7 @@ var require_stringifyDocument = __commonJS(function(exports) {
3180
3184
  });
3181
3185
 
3182
3186
  // node_modules/yaml/dist/doc/Document.js
3183
- var require_Document = __commonJS(function(exports) {
3187
+ var require_Document = __commonJS((exports) => {
3184
3188
  var Alias = require_Alias();
3185
3189
  var Collection = require_Collection();
3186
3190
  var identity = require_identity();
@@ -3389,8 +3393,8 @@ var require_Document = __commonJS(function(exports) {
3389
3393
  };
3390
3394
  const res = toJS.toJS(this.contents, jsonArg ?? "", ctx);
3391
3395
  if (typeof onAnchor === "function")
3392
- for (const { count, res } of ctx.anchors.values())
3393
- onAnchor(res, count);
3396
+ for (const { count, res: res2 } of ctx.anchors.values())
3397
+ onAnchor(res2, count);
3394
3398
  return typeof reviver === "function" ? applyReviver.applyReviver(reviver, { "": res }, "", res) : res;
3395
3399
  }
3396
3400
  toJSON(jsonArg, onAnchor) {
@@ -3415,7 +3419,7 @@ var require_Document = __commonJS(function(exports) {
3415
3419
  });
3416
3420
 
3417
3421
  // node_modules/yaml/dist/errors.js
3418
- var require_errors = __commonJS(function(exports) {
3422
+ var require_errors = __commonJS((exports) => {
3419
3423
  class YAMLError extends Error {
3420
3424
  constructor(name, pos, code, message) {
3421
3425
  super();
@@ -3480,7 +3484,7 @@ ${pointer}
3480
3484
  });
3481
3485
 
3482
3486
  // node_modules/yaml/dist/compose/resolve-props.js
3483
- var require_resolve_props = __commonJS(function(exports) {
3487
+ var require_resolve_props = __commonJS((exports) => {
3484
3488
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3485
3489
  let spaceBefore = false;
3486
3490
  let atNewline = startOnNewline;
@@ -3610,7 +3614,7 @@ var require_resolve_props = __commonJS(function(exports) {
3610
3614
  });
3611
3615
 
3612
3616
  // node_modules/yaml/dist/compose/util-contains-newline.js
3613
- var require_util_contains_newline = __commonJS(function(exports) {
3617
+ var require_util_contains_newline = __commonJS((exports) => {
3614
3618
  function containsNewline(key) {
3615
3619
  if (!key)
3616
3620
  return null;
@@ -3650,7 +3654,7 @@ var require_util_contains_newline = __commonJS(function(exports) {
3650
3654
  });
3651
3655
 
3652
3656
  // node_modules/yaml/dist/compose/util-flow-indent-check.js
3653
- var require_util_flow_indent_check = __commonJS(function(exports) {
3657
+ var require_util_flow_indent_check = __commonJS((exports) => {
3654
3658
  var utilContainsNewline = require_util_contains_newline();
3655
3659
  function flowIndentCheck(indent, fc, onError) {
3656
3660
  if (fc?.type === "flow-collection") {
@@ -3665,7 +3669,7 @@ var require_util_flow_indent_check = __commonJS(function(exports) {
3665
3669
  });
3666
3670
 
3667
3671
  // node_modules/yaml/dist/compose/util-map-includes.js
3668
- var require_util_map_includes = __commonJS(function(exports) {
3672
+ var require_util_map_includes = __commonJS((exports) => {
3669
3673
  var identity = require_identity();
3670
3674
  function mapIncludes(ctx, items, search) {
3671
3675
  const { uniqueKeys } = ctx.options;
@@ -3678,7 +3682,7 @@ var require_util_map_includes = __commonJS(function(exports) {
3678
3682
  });
3679
3683
 
3680
3684
  // node_modules/yaml/dist/compose/resolve-block-map.js
3681
- var require_resolve_block_map = __commonJS(function(exports) {
3685
+ var require_resolve_block_map = __commonJS((exports) => {
3682
3686
  var Pair = require_Pair();
3683
3687
  var YAMLMap = require_YAMLMap();
3684
3688
  var resolveProps = require_resolve_props();
@@ -3785,7 +3789,7 @@ var require_resolve_block_map = __commonJS(function(exports) {
3785
3789
  });
3786
3790
 
3787
3791
  // node_modules/yaml/dist/compose/resolve-block-seq.js
3788
- var require_resolve_block_seq = __commonJS(function(exports) {
3792
+ var require_resolve_block_seq = __commonJS((exports) => {
3789
3793
  var YAMLSeq = require_YAMLSeq();
3790
3794
  var resolveProps = require_resolve_props();
3791
3795
  var utilFlowIndentCheck = require_util_flow_indent_check();
@@ -3833,7 +3837,7 @@ var require_resolve_block_seq = __commonJS(function(exports) {
3833
3837
  });
3834
3838
 
3835
3839
  // node_modules/yaml/dist/compose/resolve-end.js
3836
- var require_resolve_end = __commonJS(function(exports) {
3840
+ var require_resolve_end = __commonJS((exports) => {
3837
3841
  function resolveEnd(end, offset, reqSpace, onError) {
3838
3842
  let comment = "";
3839
3843
  if (end) {
@@ -3873,7 +3877,7 @@ var require_resolve_end = __commonJS(function(exports) {
3873
3877
  });
3874
3878
 
3875
3879
  // node_modules/yaml/dist/compose/resolve-flow-collection.js
3876
- var require_resolve_flow_collection = __commonJS(function(exports) {
3880
+ var require_resolve_flow_collection = __commonJS((exports) => {
3877
3881
  var identity = require_identity();
3878
3882
  var Pair = require_Pair();
3879
3883
  var YAMLMap = require_YAMLMap();
@@ -4064,7 +4068,7 @@ var require_resolve_flow_collection = __commonJS(function(exports) {
4064
4068
  });
4065
4069
 
4066
4070
  // node_modules/yaml/dist/compose/compose-collection.js
4067
- var require_compose_collection = __commonJS(function(exports) {
4071
+ var require_compose_collection = __commonJS((exports) => {
4068
4072
  var identity = require_identity();
4069
4073
  var Scalar = require_Scalar();
4070
4074
  var YAMLMap = require_YAMLMap();
@@ -4126,7 +4130,7 @@ var require_compose_collection = __commonJS(function(exports) {
4126
4130
  });
4127
4131
 
4128
4132
  // node_modules/yaml/dist/compose/resolve-block-scalar.js
4129
- var require_resolve_block_scalar = __commonJS(function(exports) {
4133
+ var require_resolve_block_scalar = __commonJS((exports) => {
4130
4134
  var Scalar = require_Scalar();
4131
4135
  function resolveBlockScalar(ctx, scalar, onError) {
4132
4136
  const start = scalar.offset;
@@ -4144,12 +4148,12 @@ var require_resolve_block_scalar = __commonJS(function(exports) {
4144
4148
  break;
4145
4149
  }
4146
4150
  if (chompStart === 0) {
4147
- const value = header.chomp === "+" && lines.length > 0 ? `
4151
+ const value2 = header.chomp === "+" && lines.length > 0 ? `
4148
4152
  `.repeat(Math.max(1, lines.length - 1)) : "";
4149
- let end = start + header.length;
4153
+ let end2 = start + header.length;
4150
4154
  if (scalar.source)
4151
- end += scalar.source.length;
4152
- return { value, type, comment: header.comment, range: [start, end, end] };
4155
+ end2 += scalar.source.length;
4156
+ return { value: value2, type, comment: header.comment, range: [start, end2, end2] };
4153
4157
  }
4154
4158
  let trimIndent = scalar.indent + header.indent;
4155
4159
  let offset = scalar.offset + header.length;
@@ -4319,7 +4323,7 @@ var require_resolve_block_scalar = __commonJS(function(exports) {
4319
4323
  });
4320
4324
 
4321
4325
  // node_modules/yaml/dist/compose/resolve-flow-scalar.js
4322
- var require_resolve_flow_scalar = __commonJS(function(exports) {
4326
+ var require_resolve_flow_scalar = __commonJS((exports) => {
4323
4327
  var Scalar = require_Scalar();
4324
4328
  var resolveEnd = require_resolve_end();
4325
4329
  function resolveFlowScalar(scalar, strict, onError) {
@@ -4535,7 +4539,7 @@ var require_resolve_flow_scalar = __commonJS(function(exports) {
4535
4539
  });
4536
4540
 
4537
4541
  // node_modules/yaml/dist/compose/compose-scalar.js
4538
- var require_compose_scalar = __commonJS(function(exports) {
4542
+ var require_compose_scalar = __commonJS((exports) => {
4539
4543
  var identity = require_identity();
4540
4544
  var Scalar = require_Scalar();
4541
4545
  var resolveBlockScalar = require_resolve_block_scalar();
@@ -4597,9 +4601,9 @@ var require_compose_scalar = __commonJS(function(exports) {
4597
4601
  return schema[identity.SCALAR];
4598
4602
  }
4599
4603
  function findScalarTagByTest({ atKey, directives, schema }, value, token, onError) {
4600
- const tag = schema.tags.find((tag) => (tag.default === true || atKey && tag.default === "key") && tag.test?.test(value)) || schema[identity.SCALAR];
4604
+ const tag = schema.tags.find((tag2) => (tag2.default === true || atKey && tag2.default === "key") && tag2.test?.test(value)) || schema[identity.SCALAR];
4601
4605
  if (schema.compat) {
4602
- const compat = schema.compat.find((tag) => tag.default && tag.test?.test(value)) ?? schema[identity.SCALAR];
4606
+ const compat = schema.compat.find((tag2) => tag2.default && tag2.test?.test(value)) ?? schema[identity.SCALAR];
4603
4607
  if (tag.tag !== compat.tag) {
4604
4608
  const ts = directives.tagString(tag.tag);
4605
4609
  const cs = directives.tagString(compat.tag);
@@ -4613,7 +4617,7 @@ var require_compose_scalar = __commonJS(function(exports) {
4613
4617
  });
4614
4618
 
4615
4619
  // node_modules/yaml/dist/compose/util-empty-scalar-position.js
4616
- var require_util_empty_scalar_position = __commonJS(function(exports) {
4620
+ var require_util_empty_scalar_position = __commonJS((exports) => {
4617
4621
  function emptyScalarPosition(offset, before, pos) {
4618
4622
  if (before) {
4619
4623
  pos ?? (pos = before.length);
@@ -4640,7 +4644,7 @@ var require_util_empty_scalar_position = __commonJS(function(exports) {
4640
4644
  });
4641
4645
 
4642
4646
  // node_modules/yaml/dist/compose/compose-node.js
4643
- var require_compose_node = __commonJS(function(exports) {
4647
+ var require_compose_node = __commonJS((exports) => {
4644
4648
  var Alias = require_Alias();
4645
4649
  var identity = require_identity();
4646
4650
  var composeCollection = require_compose_collection();
@@ -4743,7 +4747,7 @@ var require_compose_node = __commonJS(function(exports) {
4743
4747
  });
4744
4748
 
4745
4749
  // node_modules/yaml/dist/compose/compose-doc.js
4746
- var require_compose_doc = __commonJS(function(exports) {
4750
+ var require_compose_doc = __commonJS((exports) => {
4747
4751
  var Document = require_Document();
4748
4752
  var composeNode = require_compose_node();
4749
4753
  var resolveEnd = require_resolve_end();
@@ -4783,7 +4787,7 @@ var require_compose_doc = __commonJS(function(exports) {
4783
4787
  });
4784
4788
 
4785
4789
  // node_modules/yaml/dist/compose/composer.js
4786
- var require_composer = __commonJS(function(exports) {
4790
+ var require_composer = __commonJS((exports) => {
4787
4791
  var node_process = __require("process");
4788
4792
  var directives = require_directives();
4789
4793
  var Document = require_Document();
@@ -4974,7 +4978,7 @@ ${end.comment}` : end.comment;
4974
4978
  });
4975
4979
 
4976
4980
  // node_modules/yaml/dist/parse/cst-scalar.js
4977
- var require_cst_scalar = __commonJS(function(exports) {
4981
+ var require_cst_scalar = __commonJS((exports) => {
4978
4982
  var resolveBlockScalar = require_resolve_block_scalar();
4979
4983
  var resolveFlowScalar = require_resolve_flow_scalar();
4980
4984
  var errors = require_errors();
@@ -5164,7 +5168,7 @@ var require_cst_scalar = __commonJS(function(exports) {
5164
5168
  });
5165
5169
 
5166
5170
  // node_modules/yaml/dist/parse/cst-stringify.js
5167
- var require_cst_stringify = __commonJS(function(exports) {
5171
+ var require_cst_stringify = __commonJS((exports) => {
5168
5172
  var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
5169
5173
  function stringifyToken(token) {
5170
5174
  switch (token.type) {
@@ -5222,7 +5226,7 @@ var require_cst_stringify = __commonJS(function(exports) {
5222
5226
  });
5223
5227
 
5224
5228
  // node_modules/yaml/dist/parse/cst-visit.js
5225
- var require_cst_visit = __commonJS(function(exports) {
5229
+ var require_cst_visit = __commonJS((exports) => {
5226
5230
  var BREAK = Symbol("break visit");
5227
5231
  var SKIP = Symbol("skip children");
5228
5232
  var REMOVE = Symbol("remove item");
@@ -5281,7 +5285,7 @@ var require_cst_visit = __commonJS(function(exports) {
5281
5285
  });
5282
5286
 
5283
5287
  // node_modules/yaml/dist/parse/cst.js
5284
- var require_cst = __commonJS(function(exports) {
5288
+ var require_cst = __commonJS((exports) => {
5285
5289
  var cstScalar = require_cst_scalar();
5286
5290
  var cstStringify = require_cst_stringify();
5287
5291
  var cstVisit = require_cst_visit();
@@ -5382,7 +5386,7 @@ var require_cst = __commonJS(function(exports) {
5382
5386
  });
5383
5387
 
5384
5388
  // node_modules/yaml/dist/parse/lexer.js
5385
- var require_lexer = __commonJS(function(exports) {
5389
+ var require_lexer = __commonJS((exports) => {
5386
5390
  var cst = require_cst();
5387
5391
  function isEmpty(ch) {
5388
5392
  switch (ch) {
@@ -5755,18 +5759,18 @@ var require_lexer = __commonJS(function(exports) {
5755
5759
  let indent = 0;
5756
5760
  let ch;
5757
5761
  loop:
5758
- for (let i = this.pos;ch = this.buffer[i]; ++i) {
5762
+ for (let i2 = this.pos;ch = this.buffer[i2]; ++i2) {
5759
5763
  switch (ch) {
5760
5764
  case " ":
5761
5765
  indent += 1;
5762
5766
  break;
5763
5767
  case `
5764
5768
  `:
5765
- nl = i;
5769
+ nl = i2;
5766
5770
  indent = 0;
5767
5771
  break;
5768
5772
  case "\r": {
5769
- const next = this.buffer[i + 1];
5773
+ const next = this.buffer[i2 + 1];
5770
5774
  if (!next && !this.atEnd)
5771
5775
  return this.setNext("block-scalar");
5772
5776
  if (next === `
@@ -5809,16 +5813,16 @@ var require_lexer = __commonJS(function(exports) {
5809
5813
  nl = i - 1;
5810
5814
  } else if (!this.blockScalarKeep) {
5811
5815
  do {
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;
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;
5822
5826
  else
5823
5827
  break;
5824
5828
  } while (true);
@@ -5979,7 +5983,7 @@ var require_lexer = __commonJS(function(exports) {
5979
5983
  });
5980
5984
 
5981
5985
  // node_modules/yaml/dist/parse/line-counter.js
5982
- var require_line_counter = __commonJS(function(exports) {
5986
+ var require_line_counter = __commonJS((exports) => {
5983
5987
  class LineCounter {
5984
5988
  constructor() {
5985
5989
  this.lineStarts = [];
@@ -6007,7 +6011,7 @@ var require_line_counter = __commonJS(function(exports) {
6007
6011
  });
6008
6012
 
6009
6013
  // node_modules/yaml/dist/parse/parser.js
6010
- var require_parser = __commonJS(function(exports) {
6014
+ var require_parser = __commonJS((exports) => {
6011
6015
  var node_process = __require("process");
6012
6016
  var cst = require_cst();
6013
6017
  var lexer = require_lexer();
@@ -6505,12 +6509,12 @@ var require_parser = __commonJS(function(exports) {
6505
6509
  if (includesToken(it.start, "newline")) {
6506
6510
  Object.assign(it, { key: null, sep: [this.sourceToken] });
6507
6511
  } else {
6508
- const start = getFirstKeyStartProps(it.start);
6512
+ const start2 = getFirstKeyStartProps(it.start);
6509
6513
  this.stack.push({
6510
6514
  type: "block-map",
6511
6515
  offset: this.offset,
6512
6516
  indent: this.indent,
6513
- items: [{ start, key: null, sep: [this.sourceToken] }]
6517
+ items: [{ start: start2, key: null, sep: [this.sourceToken] }]
6514
6518
  });
6515
6519
  }
6516
6520
  } else if (it.value) {
@@ -6523,7 +6527,7 @@ var require_parser = __commonJS(function(exports) {
6523
6527
  items: [{ start, key: null, sep: [this.sourceToken] }]
6524
6528
  });
6525
6529
  } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
6526
- const start = getFirstKeyStartProps(it.start);
6530
+ const start2 = getFirstKeyStartProps(it.start);
6527
6531
  const key = it.key;
6528
6532
  const sep = it.sep;
6529
6533
  sep.push(this.sourceToken);
@@ -6533,7 +6537,7 @@ var require_parser = __commonJS(function(exports) {
6533
6537
  type: "block-map",
6534
6538
  offset: this.offset,
6535
6539
  indent: this.indent,
6536
- items: [{ start, key, sep }]
6540
+ items: [{ start: start2, key, sep }]
6537
6541
  });
6538
6542
  } else if (start.length > 0) {
6539
6543
  it.sep = it.sep.concat(start, this.sourceToken);
@@ -6863,7 +6867,7 @@ var require_parser = __commonJS(function(exports) {
6863
6867
  });
6864
6868
 
6865
6869
  // node_modules/yaml/dist/public-api.js
6866
- var require_public_api = __commonJS(function(exports) {
6870
+ var require_public_api = __commonJS((exports) => {
6867
6871
  var composer = require_composer();
6868
6872
  var Document = require_Document();
6869
6873
  var errors = require_errors();
@@ -6877,22 +6881,22 @@ var require_public_api = __commonJS(function(exports) {
6877
6881
  return { lineCounter: lineCounter$1, prettyErrors };
6878
6882
  }
6879
6883
  function parseAllDocuments(source, options = {}) {
6880
- const { lineCounter, prettyErrors } = parseOptions(options);
6881
- const parser$1 = new parser.Parser(lineCounter?.addNewLine);
6884
+ const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options);
6885
+ const parser$1 = new parser.Parser(lineCounter2?.addNewLine);
6882
6886
  const composer$1 = new composer.Composer(options);
6883
6887
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
6884
- if (prettyErrors && lineCounter)
6888
+ if (prettyErrors && lineCounter2)
6885
6889
  for (const doc of docs) {
6886
- doc.errors.forEach(errors.prettifyError(source, lineCounter));
6887
- doc.warnings.forEach(errors.prettifyError(source, lineCounter));
6890
+ doc.errors.forEach(errors.prettifyError(source, lineCounter2));
6891
+ doc.warnings.forEach(errors.prettifyError(source, lineCounter2));
6888
6892
  }
6889
6893
  if (docs.length > 0)
6890
6894
  return docs;
6891
6895
  return Object.assign([], { empty: true }, composer$1.streamInfo());
6892
6896
  }
6893
6897
  function parseDocument(source, options = {}) {
6894
- const { lineCounter, prettyErrors } = parseOptions(options);
6895
- const parser$1 = new parser.Parser(lineCounter?.addNewLine);
6898
+ const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options);
6899
+ const parser$1 = new parser.Parser(lineCounter2?.addNewLine);
6896
6900
  const composer$1 = new composer.Composer(options);
6897
6901
  let doc = null;
6898
6902
  for (const _doc of composer$1.compose(parser$1.parse(source), true, source.length)) {
@@ -6903,9 +6907,9 @@ var require_public_api = __commonJS(function(exports) {
6903
6907
  break;
6904
6908
  }
6905
6909
  }
6906
- if (prettyErrors && lineCounter) {
6907
- doc.errors.forEach(errors.prettifyError(source, lineCounter));
6908
- doc.warnings.forEach(errors.prettifyError(source, lineCounter));
6910
+ if (prettyErrors && lineCounter2) {
6911
+ doc.errors.forEach(errors.prettifyError(source, lineCounter2));
6912
+ doc.warnings.forEach(errors.prettifyError(source, lineCounter2));
6909
6913
  }
6910
6914
  return doc;
6911
6915
  }
@@ -7078,8 +7082,8 @@ var init_workflows = __esm(() => {
7078
7082
  "Snapshot or daily-history request, with explicit observation limit",
7079
7083
  "Maximum acceptable age and any comparison provider"
7080
7084
  ],
7081
- output: "Timestamped source observations and raw response hashes, stale/partial coverage, aligned discrepancies and a daily-history envelope when requested.",
7082
- access: "Bounded public CoinGecko and documented public comparison reads; limits and outages remain explicit. Contract identities need the contract-aware token workflow."
7085
+ output: "Timestamped prices with raw response hashes, anything stale or missing, and where sources disagree. Daily history on request.",
7086
+ access: "Uses public CoinGecko and documented public comparison reads, and reports limits and outages. Token contracts need the contract-aware token workflow."
7083
7087
  },
7084
7088
  {
7085
7089
  id: "strategy-backtest",
@@ -7855,6 +7859,20 @@ var init_workflows = __esm(() => {
7855
7859
  });
7856
7860
 
7857
7861
  // src/core.ts
7862
+ var exports_core = {};
7863
+ __export(exports_core, {
7864
+ selectPacks: () => selectPacks,
7865
+ parseHarness: () => parseHarness,
7866
+ parseConfig: () => parseConfig,
7867
+ parseCatalog: () => parseCatalog,
7868
+ installedVersion: () => installedVersion,
7869
+ installArgs: () => installArgs,
7870
+ identity: () => identity2,
7871
+ harnesses: () => harnesses,
7872
+ fetchCatalog: () => fetchCatalog,
7873
+ compatibilitySetupMessage: () => compatibilitySetupMessage,
7874
+ catalogChanges: () => catalogChanges
7875
+ });
7858
7876
  import { resolve } from "path";
7859
7877
  function compatibilitySetupMessage(harness) {
7860
7878
  return harness === "hermes" ? undefined : harnesses[harness].setup;
@@ -7888,10 +7906,34 @@ function parseCatalog(value) {
7888
7906
  return c;
7889
7907
  }
7890
7908
  async function fetchCatalog(fetcher = fetch) {
7891
- const response = await fetcher("https://raw.githubusercontent.com/galleonlabs/boomkin/main/catalog/skills.json", { signal: AbortSignal.timeout(20000) });
7909
+ let response;
7910
+ try {
7911
+ response = await fetcher("https://raw.githubusercontent.com/galleonlabs/boomkin/main/catalog/skills.json", { redirect: "error", signal: AbortSignal.timeout(20000) });
7912
+ } catch {
7913
+ throw new Error("Catalog fetch failed; installed skills were not changed.");
7914
+ }
7892
7915
  if (!response.ok)
7893
7916
  throw new Error(`Catalog fetch failed (${response.status}); installed skills were not changed.`);
7894
- return parseCatalog(await response.json());
7917
+ const declared = Number(response.headers.get("content-length"));
7918
+ if (Number.isFinite(declared) && declared > 1048576)
7919
+ throw new Error("Catalog fetch exceeded the size limit; installed skills were not changed.");
7920
+ let text;
7921
+ try {
7922
+ text = await response.text();
7923
+ } catch {
7924
+ throw new Error("Catalog fetch returned invalid data; installed skills were not changed.");
7925
+ }
7926
+ if (Buffer.byteLength(text) > 1048576)
7927
+ throw new Error("Catalog fetch exceeded the size limit; installed skills were not changed.");
7928
+ let payload;
7929
+ try {
7930
+ payload = JSON.parse(text);
7931
+ } catch {
7932
+ throw new Error("Catalog fetch returned invalid data; installed skills were not changed.");
7933
+ }
7934
+ if (!payload || typeof payload !== "object" || Array.isArray(payload))
7935
+ throw new Error("Catalog fetch returned an unrecognized catalog; installed skills were not changed.");
7936
+ return parseCatalog(payload);
7895
7937
  }
7896
7938
  function catalogChanges(current, previous) {
7897
7939
  const changes = [];
@@ -7906,18 +7948,18 @@ function catalogChanges(current, previous) {
7906
7948
  return changes;
7907
7949
  }
7908
7950
  function parseHarness(value) {
7909
- if (!value || !Object.hasOwn(harnesses, value))
7951
+ if (typeof value !== "string" || !Object.hasOwn(harnesses, value))
7910
7952
  throw new Error(`Choose a harness: ${Object.keys(harnesses).join(", ")}`);
7911
7953
  return value;
7912
7954
  }
7913
7955
  function parseConfig(value, directory) {
7914
7956
  const c = value;
7915
- if (!c || c.schemaVersion !== 1 || c.directory !== resolve(directory))
7957
+ if (!c || typeof c !== "object" || Array.isArray(c) || c.schemaVersion !== 1 || c.directory !== resolve(directory))
7916
7958
  throw new Error("Invalid or moved Boomkin configuration. Run setup in the intended directory again.");
7917
- parseHarness(c.harness);
7959
+ const harness = parseHarness(c.harness);
7918
7960
  if (c.packs !== undefined && (!Array.isArray(c.packs) || !c.packs.length || c.packs.some((id) => typeof id !== "string" || !/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(id)) || new Set(c.packs).size !== c.packs.length))
7919
7961
  throw new Error("Invalid configured pack selection");
7920
- return { ...c, packs: c.packs ?? ["lp-skills", "hyperliquid-skills"] };
7962
+ return { ...c, harness, packs: c.packs ?? ["lp-skills", "hyperliquid-skills"] };
7921
7963
  }
7922
7964
  function installArgs(source, harness, skills) {
7923
7965
  return ["add", source, "--agent", harnesses[harness].agent, "--skill", ...skills, "--copy", "--yes", ...harnesses[harness].global ? ["--global"] : []];
@@ -8270,7 +8312,7 @@ var skills_default = {
8270
8312
  // package.json
8271
8313
  var package_default = {
8272
8314
  name: "boomkin",
8273
- version: "0.13.1",
8315
+ version: "0.13.2",
8274
8316
  description: "Your open-source DeFi desk: native Hermes research projects, verifiable evidence and independent financial skills.",
8275
8317
  type: "module",
8276
8318
  license: "MIT",
@@ -8278,8 +8320,10 @@ var package_default = {
8278
8320
  scripts: {
8279
8321
  boomkin: "bun src/cli.ts",
8280
8322
  test: "bun test test",
8323
+ "test:gate": "bun test ./test/core.test.ts ./test/source.test.ts ./test/integrity.test.ts ./test/state.test.ts ./test/catalog-freshness.test.ts ./test/hermes.test.ts ./test/chatgpt.test.ts ./test/providers.test.ts ./test/mcp-discovery.test.ts ./test/onboarding.test.ts ./test/templates.test.ts ./test/workflows.test.ts ./test/desk.test.ts ./test/docs-code.test.ts ./test/distribution.test.ts ./test/site-copy.test.ts ./test/agent-onboarding.test.ts",
8281
8324
  typecheck: "tsc --noEmit",
8282
- check: "bun run typecheck && bun run test",
8325
+ check: "bun run typecheck && bun run test:gate",
8326
+ gate: "bun run check && bun run build && bun run smoke && bun run build:site && bun run check:site",
8283
8327
  build: "bun scripts/build.ts",
8284
8328
  smoke: "bun scripts/smoke.ts",
8285
8329
  "build:site": "bun scripts/build-site.ts",
@@ -8377,10 +8421,10 @@ async function packageDirectory(pack, checkout) {
8377
8421
  const manifest = JSON.parse(await readFile(join(path, "package.json"), "utf8"));
8378
8422
  if (manifest.name !== pack.package || manifest.version !== pack.version)
8379
8423
  throw new Error(`Package release metadata mismatch: ${pack.id}`);
8380
- await Promise.resolve().then(() => init_core());
8424
+ const { installedVersion: installedVersion2 } = await Promise.resolve().then(() => (init_core(), exports_core));
8381
8425
  for (const skill of pack.skills) {
8382
8426
  const text = await readFile(join(path, "skills", skill, "SKILL.md"), "utf8");
8383
- if (installedVersion(text) !== pack.version)
8427
+ if (installedVersion2(text) !== pack.version)
8384
8428
  throw new Error(`Source skill version mismatch: ${skill}`);
8385
8429
  }
8386
8430
  return path;
@@ -8494,8 +8538,8 @@ function hermesModelConfigured(config) {
8494
8538
  const flatten = (value) => {
8495
8539
  if (!object(value))
8496
8540
  return value;
8497
- const id = value.model || value.default;
8498
- return typeof id === "string" ? id.trim() : id;
8541
+ const id2 = value.model || value.default;
8542
+ return typeof id2 === "string" ? id2.trim() : id2;
8499
8543
  };
8500
8544
  const id = flatten(model.default) || flatten(model.model) || flatten(model.name);
8501
8545
  return typeof id === "string" && !!id.trim();
@@ -8611,9 +8655,9 @@ async function ensureRuntime(directory, options) {
8611
8655
  const installed = await findRuntime(root);
8612
8656
  if (!installed || !installed.startsWith(runtime + "/"))
8613
8657
  throw new Error("The installer completed without a usable profile-managed Hermes executable");
8614
- const git = Bun.spawn(["git", "-C", runtime, "rev-parse", "HEAD"], { stdout: "pipe", stderr: "ignore" });
8615
- const revision = (await new Response(git.stdout).text()).trim();
8616
- if (await git.exited !== 0 || revision !== HERMES_COMMIT)
8658
+ const git2 = Bun.spawn(["git", "-C", runtime, "rev-parse", "HEAD"], { stdout: "pipe", stderr: "ignore" });
8659
+ const revision = (await new Response(git2.stdout).text()).trim();
8660
+ if (await git2.exited !== 0 || revision !== HERMES_COMMIT)
8617
8661
  throw new Error("Hermes installed revision differs from the reviewed pin. Existing runtime was preserved; review it before continuing.");
8618
8662
  if (!(await localProfileStatus(root)).runtime.available)
8619
8663
  throw new Error("Installed Hermes cannot report its version; runtime readiness is incomplete");
@@ -8622,12 +8666,12 @@ async function ensureRuntime(directory, options) {
8622
8666
  await rm(path, { force: true });
8623
8667
  }
8624
8668
  }
8625
- async function initializeProfile(directory, identity) {
8669
+ async function initializeProfile(directory, identity3) {
8626
8670
  const root = await profilePath(directory);
8627
8671
  await mkdir(root, { recursive: true, mode: 448 });
8628
8672
  await safePath(join(root, "SOUL.md"));
8629
8673
  try {
8630
- await writeFile(join(root, "SOUL.md"), identity, { flag: "wx", mode: 384 });
8674
+ await writeFile(join(root, "SOUL.md"), identity3, { flag: "wx", mode: 384 });
8631
8675
  return { createdSoul: true };
8632
8676
  } catch (error) {
8633
8677
  if (error.code === "EEXIST")
@@ -8656,7 +8700,7 @@ async function configureMcpServers(directory, servers) {
8656
8700
  for (const [name, server] of Object.entries(servers)) {
8657
8701
  if (!/^[a-z][a-z0-9_-]*$/.test(name))
8658
8702
  throw new Error("Invalid MCP server name");
8659
- 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)
8703
+ 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)
8660
8704
  throw new Error("Boomkin MCP setup requires untrusted servers, explicit tool names, and disabled resource/prompt utilities");
8661
8705
  if (Boolean(server.url) === Boolean(server.command))
8662
8706
  throw new Error("Choose one MCP transport");
@@ -9148,7 +9192,7 @@ async function doctor(directory, catalog, live = false) {
9148
9192
  var providers_default = {
9149
9193
  schemaVersion: 1,
9150
9194
  directory: "https://skills.eth.sh/",
9151
- checkedOn: "2026-10-08",
9195
+ checkedOn: "2026-11-12",
9152
9196
  providers: [
9153
9197
  {
9154
9198
  id: "polymarket",
@@ -9188,7 +9232,7 @@ var providers_default = {
9188
9232
  {
9189
9233
  id: "hyperliquid-cli",
9190
9234
  name: "Hyperliquid CLI",
9191
- provider: "hypurrclaw",
9235
+ provider: "hypurr-inc",
9192
9236
  listedInDirectory: true,
9193
9237
  listedCapabilities: [
9194
9238
  "Trading",
@@ -9200,16 +9244,16 @@ var providers_default = {
9200
9244
  ],
9201
9245
  summary: "Keep official SDK preferred; document optional version-pinned CLI plus schema and API-wallet boundary.",
9202
9246
  sources: [
9203
- "https://github.com/hypurrclaw/hyperliquid-cli"
9247
+ "https://github.com/hypurr-inc/hyperliquid-cli"
9204
9248
  ],
9205
9249
  review: {
9206
9250
  status: "primary-source-reviewed",
9207
- checkedOn: "2026-10-08",
9208
- notes: "hypurrclaw is independent of Hyperliquid. OWS encrypted keystore, schemas, dry-run, agent mode; setup can persist builder fee/referral defaults. No default adoption of fees or master signer."
9251
+ checkedOn: "2026-11-12",
9252
+ notes: "hypurr-inc, formerly hypurrclaw, is independent of Hyperliquid. The old GitHub organization redirects. OWS encrypted keystore, schemas, dry-run, agent mode; setup can persist builder fee/referral defaults. No default adoption of fees or master signer."
9209
9253
  },
9210
9254
  access: {
9211
9255
  kind: "mixed",
9212
- requirements: "hypurrclaw is independent of Hyperliquid. OWS encrypted keystore, schemas, dry-run, agent mode; setup can persist builder fee/referral defaults. No default adoption of fees or master signer."
9256
+ requirements: "hypurr-inc, formerly hypurrclaw, is independent of Hyperliquid. The old GitHub organization redirects. OWS encrypted keystore, schemas, dry-run, agent mode; setup can persist builder fee/referral defaults. No default adoption of fees or master signer."
9213
9257
  },
9214
9258
  cost: "mixed",
9215
9259
  authority: "mixed",
@@ -9351,17 +9395,17 @@ var providers_default = {
9351
9395
  ],
9352
9396
  summary: "Use migrated name/endpoint, preserve explicit wallet connection and signing boundaries.",
9353
9397
  sources: [
9354
- "https://docs.base.org/agents/quickstart",
9355
- "https://docs.cdp.coinbase.com/ai-agents/coinbase-for-agents/wallet-mcp"
9398
+ "https://docs.cdp.coinbase.com/ai-agents/coinbase-for-agents/wallet-mcp",
9399
+ "https://github.com/coinbase/agents/tree/main/skills/wallet-mcp"
9356
9400
  ],
9357
9401
  review: {
9358
9402
  status: "primary-source-reviewed",
9359
- checkedOn: "2026-10-08",
9360
- notes: "Base docs migrated to Coinbase Wallet MCP. Current endpoint wallet-mcp.coinbase.com uses OAuth and every write approval. Own/in-session wallet history only. Skill remains base/skills base-mcp."
9403
+ checkedOn: "2026-11-12",
9404
+ notes: "Coinbase Wallet MCP at wallet-mcp.coinbase.com uses OAuth, and every write needs approval. Own/in-session wallet history only. The canonical skill is coinbase/agents wallet-mcp. docs.base.org/agents/quickstart now redirects to Base documentation resources, not this wallet server. A base/skills base-mcp zip is still offered."
9361
9405
  },
9362
9406
  access: {
9363
9407
  kind: "credentials",
9364
- requirements: "Base docs migrated to Coinbase Wallet MCP. Current endpoint wallet-mcp.coinbase.com uses OAuth and every write approval. Own/in-session wallet history only. Skill remains base/skills base-mcp."
9408
+ requirements: "Coinbase Wallet MCP at wallet-mcp.coinbase.com uses OAuth, and every write needs approval. Own/in-session wallet history only. The canonical skill is coinbase/agents wallet-mcp. docs.base.org/agents/quickstart now redirects to Base documentation resources, not this wallet server. A base/skills base-mcp zip is still offered."
9365
9409
  },
9366
9410
  cost: "mixed",
9367
9411
  authority: "signing",
@@ -9433,7 +9477,7 @@ var providers_default = {
9433
9477
  ],
9434
9478
  review: {
9435
9479
  status: "primary-source-reviewed",
9436
- checkedOn: "2026-10-08",
9480
+ checkedOn: "2026-11-12",
9437
9481
  notes: "0x API v2 API-key path vs x402/MPP paid gateway. Docs MCP serves docs, not swaps. AllowanceHolder/Permit2 flow selection; Never approve Settler. Keyless HTTP402 requests spend stablecoins."
9438
9482
  },
9439
9483
  access: {
@@ -9472,7 +9516,7 @@ var providers_default = {
9472
9516
  ],
9473
9517
  review: {
9474
9518
  status: "primary-source-reviewed",
9475
- checkedOn: "2026-10-08",
9519
+ checkedOn: "2026-11-12",
9476
9520
  notes: "Sugar CLI rejects private keys and yields approvals plus unsigned calls; pool/position raw balances use token base units. Linked v0.4.2 differs from existing v0.4.1 pin. Crosschain superswap may need relayer orchestration."
9477
9521
  },
9478
9522
  access: {
@@ -9547,7 +9591,7 @@ var providers_default = {
9547
9591
  ],
9548
9592
  review: {
9549
9593
  status: "primary-source-reviewed",
9550
- checkedOn: "2026-10-08",
9594
+ checkedOn: "2026-11-12",
9551
9595
  notes: "CTRL anonymous REST vs authenticated MCP; activation encodes wallet-signed batch and recurring keeper authority under caps. Seven tools. Live URL fetch GET fails; repo docs available."
9552
9596
  },
9553
9597
  access: {
@@ -9585,7 +9629,7 @@ var providers_default = {
9585
9629
  ],
9586
9630
  review: {
9587
9631
  status: "primary-source-reviewed",
9588
- checkedOn: "2026-10-08",
9632
+ checkedOn: "2026-11-12",
9589
9633
  notes: "Morpho current docs: experimental pre-v1 hosted keyless mcp.morpho.org, discover deployed chains live. Builder skills Earn/Borrow differ from user MCP. Nothing signs or broadcasts. Public initialize/tools-list discovery observed 18 tool names on 2026-10-08; no data, build, simulation or financial tool was called. This endpoint remains outside Boomkin connection setup."
9590
9634
  },
9591
9635
  access: {
@@ -9807,17 +9851,16 @@ var providers_default = {
9807
9851
  ],
9808
9852
  summary: "Prefer official builder to adapter; ABI/deployment/playbook provenance plus exact approval ordering and external simulation.",
9809
9853
  sources: [
9810
- "https://defi-skills.nethermind.io/",
9811
9854
  "https://github.com/NethermindEth/defi-skills"
9812
9855
  ],
9813
9856
  review: {
9814
9857
  status: "primary-source-reviewed",
9815
- checkedOn: "2026-10-08",
9816
- notes: "Nethermind deterministic JSON playbooks yield raw_tx chain_id/to/value/data. Never signs/broadcasts; signer owns gas/nonce. Resolver API keys optional by feature, hosted API bearer/free limits."
9858
+ checkedOn: "2026-11-12",
9859
+ notes: "Nethermind playbooks emit unsigned raw_tx chain_id/to/value/data and never sign or broadcast. Optional Alchemy, 1inch and Anthropic keys cover quotes, L2 token discovery and chat. https://defi-skills.nethermind.io/ returned HTTP 404 on 2026-11-12; the README still links it. The current README describes no hosted bearer API."
9817
9860
  },
9818
9861
  access: {
9819
9862
  kind: "mixed",
9820
- requirements: "Nethermind deterministic JSON playbooks yield raw_tx chain_id/to/value/data. Never signs/broadcasts; signer owns gas/nonce. Resolver API keys optional by feature, hosted API bearer/free limits."
9863
+ requirements: "Nethermind playbooks emit unsigned raw_tx chain_id/to/value/data and never sign or broadcast. Optional Alchemy, 1inch and Anthropic keys cover quotes, L2 token discovery and chat. https://defi-skills.nethermind.io/ returned HTTP 404 on 2026-11-12; the README still links it. The current README describes no hosted bearer API."
9821
9864
  },
9822
9865
  cost: "mixed",
9823
9866
  authority: "unsigned",
@@ -10076,18 +10119,19 @@ var providers_default = {
10076
10119
  summary: "Bound SQL scans/query cost; provenance execution id/timestamp/schema/coverage and parameterized wallet input.",
10077
10120
  sources: [
10078
10121
  "https://dune.com/agents",
10079
- "https://docs.dune.com/api-reference/agents/mcp",
10080
- "https://docs.dune.com/api-reference/agents/cli-and-skills",
10122
+ "https://docs.dune.com/docs/agents/mcp",
10123
+ "https://docs.dune.com/docs/agents/cli-and-skills",
10124
+ "https://docs.dune.com/docs/agents/mpp",
10081
10125
  "https://github.com/duneanalytics/skills"
10082
10126
  ],
10083
10127
  review: {
10084
10128
  status: "primary-source-reviewed",
10085
- checkedOn: "2026-10-08",
10086
- notes: "Dune MCP/CLI OAuth and credits; SQL execution/persisted queries/dashboard writes differ. HTTP402 Tempo agent queries are paid without signup."
10129
+ checkedOn: "2026-11-12",
10130
+ notes: "Dune MCP/CLI OAuth and credits; SQL execution/persisted queries/dashboard writes differ. The MPP page documents HTTP 402 Tempo payment channels with no Dune account. Former /api-reference/agents paths redirect to /docs/agents."
10087
10131
  },
10088
10132
  access: {
10089
10133
  kind: "mixed",
10090
- requirements: "Dune MCP/CLI OAuth and credits; SQL execution/persisted queries/dashboard writes differ. HTTP402 Tempo agent queries are paid without signup."
10134
+ requirements: "Dune MCP/CLI OAuth and credits; SQL execution/persisted queries/dashboard writes differ. The MPP page documents HTTP 402 Tempo payment channels with no Dune account. Former /api-reference/agents paths redirect to /docs/agents."
10091
10135
  },
10092
10136
  cost: "mixed",
10093
10137
  authority: "mixed",
@@ -10117,7 +10161,7 @@ var providers_default = {
10117
10161
  ],
10118
10162
  review: {
10119
10163
  status: "primary-source-reviewed",
10120
- checkedOn: "2026-10-08",
10164
+ checkedOn: "2026-11-12",
10121
10165
  notes: "CoinGecko shared MCP is keyless; rate-limited market/onchain data. Current Boomkin reviewed execute/search_docs discovery is narrow by name but generic operation semantics require research boundaries. Official CoinGecko public MCP docs and the reviewed execute/search_docs contract. A discovered tool does not prove a successful market read."
10122
10166
  },
10123
10167
  access: {
@@ -10279,17 +10323,16 @@ var providers_default = {
10279
10323
  summary: "Schema-driven provider routing, explicit signer/payer selection, simulation/smart-wallet call-id-to-hash status verification.",
10280
10324
  sources: [
10281
10325
  "https://www.alchemy.com/docs/alchemy-cli",
10282
- "https://www.alchemy.com/ai-agents",
10283
- "https://www.alchemy.com/docs/reference/simulation"
10326
+ "https://www.alchemy.com/ai-agents"
10284
10327
  ],
10285
10328
  review: {
10286
10329
  status: "primary-source-reviewed",
10287
- checkedOn: "2026-10-08",
10288
- notes: "Alchemy CLI JSON/no-interactive and agent-prompt schema; evm contract call mutates. Session signer can win over local. App/webhook commands are external admin writes; x402 estimate free then max-payment required. Official Alchemy agent and CLI documentation. RPC reads, simulation, wallet-signed transactions and app administration need distinct capability review. Alchemy Transaction Simulation APIs were deprecated 2026-09-30; CLI simulation listings alone do not establish a supported backend."
10330
+ checkedOn: "2026-11-12",
10331
+ notes: "Alchemy CLI JSON/no-interactive and agent-prompt schema; evm contract call mutates. Session signer can win over local. App/webhook commands are external admin writes; x402 estimate free then max-payment required. Official Alchemy agent and CLI documentation. RPC reads, simulation, wallet-signed transactions and app administration need distinct capability review. The former simulation reference now redirects to the Data APIs overview. The 2026-10-08 review recorded a 2026-09-30 Transaction Simulation API deprecation; current CLI docs still list simulation commands, so a listing alone does not establish a supported backend."
10289
10332
  },
10290
10333
  access: {
10291
10334
  kind: "credentials",
10292
- requirements: "Alchemy CLI JSON/no-interactive and agent-prompt schema; evm contract call mutates. Session signer can win over local. App/webhook commands are external admin writes; x402 estimate free then max-payment required."
10335
+ requirements: "Alchemy CLI JSON/no-interactive and agent-prompt schema; evm contract call mutates. Session signer can win over local. App/webhook commands are external admin writes; x402 estimate free then max-payment required. The former simulation reference now redirects to the Data APIs overview."
10293
10336
  },
10294
10337
  cost: "mixed",
10295
10338
  authority: "mixed",
@@ -10566,17 +10609,16 @@ var providers_default = {
10566
10609
  "https://github.com/WalletConnect/agent-sdk",
10567
10610
  "https://www.npmjs.com/package/@walletconnect/cli-sdk",
10568
10611
  "https://www.npmjs.com/package/@walletconnect/staking-cli",
10569
- "https://www.npmjs.com/package/@walletconnect/pay-cli",
10570
- "https://walletconnect.network/"
10612
+ "https://www.npmjs.com/package/@walletconnect/pay-cli"
10571
10613
  ],
10572
10614
  review: {
10573
10615
  status: "primary-source-reviewed",
10574
- checkedOn: "2026-10-08",
10575
- notes: "WalletConnect project ID; Beta tooling. send-transaction auto-bridges low ETH in pipe/agent mode, so send authority cannot imply bridge authority. Pay may require personal compliance data."
10616
+ checkedOn: "2026-11-12",
10617
+ notes: "WalletConnect project ID; Beta tooling. send-transaction auto-bridges low ETH in pipe/agent mode, so send authority cannot imply bridge authority. Pay may require personal compliance data. walletconnect.network now redirects to a generic Network page and does not document the agent SDK."
10576
10618
  },
10577
10619
  access: {
10578
10620
  kind: "mixed",
10579
- requirements: "WalletConnect project ID; Beta tooling. send-transaction auto-bridges low ETH in pipe/agent mode, so send authority cannot imply bridge authority. Pay may require personal compliance data."
10621
+ requirements: "WalletConnect project ID; Beta tooling. send-transaction auto-bridges low ETH in pipe/agent mode, so send authority cannot imply bridge authority. Pay may require personal compliance data. walletconnect.network now redirects to a generic Network page and does not document the agent SDK."
10580
10622
  },
10581
10623
  cost: "mixed",
10582
10624
  authority: "signing",
@@ -10642,12 +10684,12 @@ var providers_default = {
10642
10684
  sources: [
10643
10685
  "https://jaw.id/",
10644
10686
  "https://docs.jaw.id",
10645
- "https://github.com/JustaName-id/jaw-mono",
10646
- "https://github.com/JustaName-id/jaw-skills"
10687
+ "https://github.com/JustaLab-co/jaw-mono",
10688
+ "https://github.com/JustaLab-co/jaw-skills"
10647
10689
  ],
10648
10690
  review: {
10649
10691
  status: "primary-source-reviewed",
10650
- checkedOn: "2026-10-08",
10692
+ checkedOn: "2026-11-12",
10651
10693
  notes: "JAW canonical org now JustaLab-co, old org redirects. Passkey smart account, EIP7702 upgrades, ERC7715 grant/revoke permissions and session keys are separate authorities."
10652
10694
  },
10653
10695
  access: {
@@ -10685,7 +10727,7 @@ var providers_default = {
10685
10727
  ],
10686
10728
  review: {
10687
10729
  status: "primary-source-reviewed",
10688
- checkedOn: "2026-10-08",
10730
+ checkedOn: "2026-11-12",
10689
10731
  notes: "Directory read-only claim is stale: @steerprotocol/cli latest 4.7.3 adds IPFS publication, unsigned pool/strategy/vault prepare and --web signer handoff. markets remains read-only."
10690
10732
  },
10691
10733
  access: {
@@ -11275,16 +11317,16 @@ var providers_default = {
11275
11317
  "https://github.com/aeonfun/aeon/tree/main/skills/sc-audit",
11276
11318
  "https://github.com/aeonfun/aeon/tree/main/skills/deploy-uni-hook",
11277
11319
  "https://www.aeon.fun/hooks",
11278
- "https://www.aeon.fun/connect/mcp"
11320
+ "https://www.aeon.fun/connect"
11279
11321
  ],
11280
11322
  review: {
11281
11323
  status: "primary-source-reviewed",
11282
- checkedOn: "2026-10-08",
11283
- notes: "Aeon autonomous GitHub Actions agent has 85 consumer skill paths plus examples and malicious test fixtures. Deployed hooks include mandatory AeonFee buyback, so adoption adds economic assumptions."
11324
+ checkedOn: "2026-11-12",
11325
+ notes: "Aeon autonomous GitHub Actions agent has 92 SKILL.md files under skills/ on main, checked 2026-11-12, plus separate examples and malicious skill-scan fixtures. www.aeon.fun/connect/mcp now opens browser GitHub setup, not a hosted MCP endpoint, and the repo has no root README. Deployed hooks inherit a mandatory 10 bps AeonFee that derived hooks cannot skip."
11284
11326
  },
11285
11327
  access: {
11286
11328
  kind: "mixed",
11287
- requirements: "Aeon autonomous GitHub Actions agent has 85 consumer skill paths plus examples and malicious test fixtures. Deployed hooks include mandatory AeonFee buyback, so adoption adds economic assumptions."
11329
+ requirements: "Aeon autonomous GitHub Actions agent has 92 SKILL.md files under skills/ on main, checked 2026-11-12, plus separate examples and malicious skill-scan fixtures. www.aeon.fun/connect/mcp now opens browser GitHub setup, not a hosted MCP endpoint, and the repo has no root README. Deployed hooks inherit a mandatory 10 bps AeonFee that derived hooks cannot skip."
11288
11330
  },
11289
11331
  cost: "mixed",
11290
11332
  authority: "runtime",
@@ -11349,16 +11391,17 @@ var providers_default = {
11349
11391
  ],
11350
11392
  summary: "Reviewed named read tools only; the doctor performs keyless discovery and never verifies protected account entitlements.",
11351
11393
  sources: [
11352
- "https://docs.aixbt.tech/developers/mcp"
11394
+ "https://docs.aixbt.tech/developers/v3",
11395
+ "https://aixbt.tech/.well-known/mcp/server.json"
11353
11396
  ],
11354
11397
  review: {
11355
11398
  status: "primary-source-reviewed",
11356
- checkedOn: "2026-10-08",
11357
- notes: "Reviewed named read tools only; the doctor performs keyless discovery and never verifies protected account entitlements."
11399
+ checkedOn: "2026-11-12",
11400
+ notes: "API v3 documents public Topics and an x-api-key for every other surface. The published MCP remote remains https://api.aixbt.tech/mcp. The old developers/mcp page redirects to aixbt.tech/connect. Boomkin's reviewed connection still references Authorization Bearer ${AIXBT_API_KEY}; this review did not re-probe that header."
11358
11401
  },
11359
11402
  access: {
11360
11403
  kind: "mixed",
11361
- requirements: "Topic list/detail reads are public; protected intelligence requires AIXBT_API_KEY, quotas and report entitlements."
11404
+ requirements: "API v3 documents public Topics and an x-api-key for every other surface. The published MCP remote remains https://api.aixbt.tech/mcp. Boomkin's reviewed connection still references Authorization Bearer ${AIXBT_API_KEY}; this review did not re-probe that header."
11362
11405
  },
11363
11406
  cost: "mixed",
11364
11407
  authority: "read",
@@ -11427,9 +11470,14 @@ var connections = {
11427
11470
  var nonempty = (value) => typeof value === "string" && !!value.trim();
11428
11471
  var list = (value) => Array.isArray(value) && value.length > 0 && value.every(nonempty) && new Set(value).size === value.length;
11429
11472
  var https = (value) => {
11473
+ if (!/^https:\/\/[A-Za-z0-9._~:/?#\[\]@!$&'()*+,;=%-]+$/.test(value))
11474
+ return false;
11430
11475
  try {
11431
11476
  const url = new URL(value);
11432
- return url.protocol === "https:" && !url.username && !url.password;
11477
+ const host = url.hostname;
11478
+ if (url.protocol !== "https:" || url.username || url.password || !host || host === "." || host.endsWith(".") || host.includes(".."))
11479
+ return false;
11480
+ return host.includes(".") || host.startsWith("[");
11433
11481
  } catch {
11434
11482
  return false;
11435
11483
  }
@@ -11501,7 +11549,32 @@ function renderProvider(provider, detailed = false) {
11501
11549
 
11502
11550
  // src/workflows.ts
11503
11551
  init_workflows();
11504
- var workflows = workflows_default.workflows;
11552
+ var slug = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
11553
+ var plain = (value) => typeof value === "string" && !!value.trim() && !/[\u0000-\u001f]/.test(value);
11554
+ function parseWorkflowRegistry(value) {
11555
+ const registry = value;
11556
+ if (!registry || typeof registry !== "object" || Array.isArray(registry) || registry.schemaVersion !== 1 || !Array.isArray(registry.workflows) || !registry.workflows.length)
11557
+ throw new Error("Malformed workflow registry");
11558
+ const ids = new Set;
11559
+ const workflows = [];
11560
+ for (const item of registry.workflows) {
11561
+ if (!item || typeof item !== "object" || Array.isArray(item))
11562
+ throw new Error("Invalid or duplicate workflow");
11563
+ const workflow = item;
11564
+ if (typeof workflow.id !== "string" || !slug.test(workflow.id) || ids.has(workflow.id) || !plain(workflow.protocol) || !plain(workflow.title) || typeof workflow.skill !== "string" || !slug.test(workflow.skill) || typeof workflow.pack !== "string" || !slug.test(workflow.pack) || !Array.isArray(workflow.inputs) || !workflow.inputs.length || workflow.inputs.some((input) => !plain(input)) || !plain(workflow.output) || !plain(workflow.access))
11565
+ throw new Error("Invalid or duplicate workflow");
11566
+ ids.add(workflow.id);
11567
+ workflows.push({ id: workflow.id, protocol: workflow.protocol, title: workflow.title, skill: workflow.skill, pack: workflow.pack, inputs: [...workflow.inputs], output: workflow.output, access: workflow.access });
11568
+ }
11569
+ return { schemaVersion: 1, workflows };
11570
+ }
11571
+ var workflows = parseWorkflowRegistry(workflows_default).workflows;
11572
+ function workflowMatchesProtocol(workflow, protocol) {
11573
+ const wanted = protocol.trim().toLowerCase();
11574
+ if (!wanted)
11575
+ return false;
11576
+ return [workflow.protocol, ...workflow.protocol.split(" / ")].some((name) => name.trim().toLowerCase() === wanted);
11577
+ }
11505
11578
  function selectWorkflow(id) {
11506
11579
  const workflow = workflows.find((item) => item.id === id);
11507
11580
  if (!workflow)
@@ -12048,7 +12121,7 @@ function walletRow(id, label, before, after, note) {
12048
12121
  note: a && b ? note : `${note} Missing or invalid amounts remain unavailable.`
12049
12122
  };
12050
12123
  }
12051
- function numericRow(id, label, unit, before, after, comparable, note, relative = false) {
12124
+ function numericRow(id, label, unit, before, after, comparable, note, relative2 = false) {
12052
12125
  const a = number(before), b = number(after), delta = comparable && a !== null && b !== null ? b - a : null;
12053
12126
  return {
12054
12127
  id,
@@ -12057,7 +12130,7 @@ function numericRow(id, label, unit, before, after, comparable, note, relative =
12057
12130
  before: display(a),
12058
12131
  after: display(b),
12059
12132
  delta: display(delta),
12060
- changePct: relative && delta !== null && a !== null && a > 0 ? display(delta / a * 100) : null,
12133
+ changePct: relative2 && delta !== null && a !== null && a > 0 ? display(delta / a * 100) : null,
12061
12134
  note: a === null || b === null ? `${note} Missing or invalid values remain unavailable.` : note
12062
12135
  };
12063
12136
  }
@@ -12130,12 +12203,12 @@ function finish(output) {
12130
12203
  }
12131
12204
  function market(output, before, after) {
12132
12205
  function observations(snapshot) {
12133
- const rows = new Map;
12206
+ const rows2 = new Map;
12134
12207
  const age = number(at(snapshot.result, "parameters", "maxAgeSeconds")) ?? 300;
12135
12208
  for (const read of list2(at(snapshot.result, "reads")))
12136
12209
  for (const row of list2(at(read, "observations"))) {
12137
- const provider = at(read, "provider"), identity = at(row, "identity");
12138
- if (typeof provider !== "string" || !["coingecko", "defillama"].includes(provider) || at(row, "provider") !== provider || at(identity, "namespace") !== "coingecko" || at(identity, "id") !== snapshot.inputs.asset) {
12210
+ const provider = at(read, "provider"), identity3 = at(row, "identity");
12211
+ if (typeof provider !== "string" || !["coingecko", "defillama"].includes(provider) || at(row, "provider") !== provider || at(identity3, "namespace") !== "coingecko" || at(identity3, "id") !== snapshot.inputs.asset) {
12139
12212
  output.issues.push("A market observation has an unsupported provider or mismatched CoinGecko identity.");
12140
12213
  continue;
12141
12214
  }
@@ -12143,13 +12216,13 @@ function market(output, before, after) {
12143
12216
  const price = number(at(row, "priceUsd")), delay = (retrieved - observed) / 1000;
12144
12217
  const valid = at(row, "ok") === true && at(row, "unit") === "USD" && price !== null && price >= 0.000000000001 && price <= 1000000000000 && delay >= -60 && delay <= age && age >= 1 && age <= 86400;
12145
12218
  const note = valid ? `Observed ${at(row, "observedAt")}; retrieved ${at(row, "retrievedAt")}.` : `Unavailable: ${typeof at(row, "error") === "string" ? at(row, "error") : "missing, stale or invalid observation"}.`;
12146
- if (rows.has(key)) {
12219
+ if (rows2.has(key)) {
12147
12220
  output.issues.push(`Duplicate ${key} observations cannot be matched reliably.`);
12148
- rows.set(key, { value: null, observed: NaN, note: "Duplicate source observations." });
12221
+ rows2.set(key, { value: null, observed: NaN, note: "Duplicate source observations." });
12149
12222
  } else
12150
- rows.set(key, { value: valid ? price : null, observed, note });
12223
+ rows2.set(key, { value: valid ? price : null, observed, note });
12151
12224
  }
12152
- return rows;
12225
+ return rows2;
12153
12226
  }
12154
12227
  const a = observations(before), b = observations(after);
12155
12228
  const rows = [...new Set([...a.keys(), ...b.keys()])].sort().map((provider) => {
@@ -12239,7 +12312,7 @@ var sha = (value) => createHash5("sha256").update(value).digest("hex");
12239
12312
  var json2 = (value) => JSON.stringify(value, null, 2) + `
12240
12313
  `;
12241
12314
  var object = (value) => !!value && typeof value === "object" && !Array.isArray(value);
12242
- var slug = /^[a-z0-9][a-z0-9-]{0,62}$/;
12315
+ var slug2 = /^[a-z0-9][a-z0-9-]{0,62}$/;
12243
12316
  var runPattern = /^\d{4}-\d{2}-\d{2}T[0-9-]+Z-[0-9a-f]{8}$/;
12244
12317
  var kinds = {
12245
12318
  wallet: { workflow: "hyperliquid-wallet-audit", pack: "hyperliquid-skills", skill: "hyperliquid-wallet-audit", module: "audit-engine.mjs" },
@@ -12255,7 +12328,7 @@ class DeskError extends Error {
12255
12328
  }
12256
12329
  }
12257
12330
  function validName(value) {
12258
- if (!slug.test(value))
12331
+ if (!slug2.test(value))
12259
12332
  throw new DeskError("Invalid project name");
12260
12333
  return value;
12261
12334
  }
@@ -12301,17 +12374,17 @@ async function atomic(root, parts, value) {
12301
12374
  await rm3(temporary, { force: true });
12302
12375
  }
12303
12376
  }
12304
- var projectParts = (name) => [".boomkin", "projects", validName(name)];
12305
- var runParts = (name, id) => [...projectParts(name), "runs", validRun(id)];
12306
- function parseRun(value, name, id) {
12307
- if (!object(value) || value.schemaVersion !== 1 || value.project !== name || value.id !== id || !Object.hasOwn(kinds, value.kind) || !["queued", "running", "complete", "partial", "failed", "cancelled", "interrupted"].includes(value.state) || typeof value.createdAt !== "string" || !Number.isFinite(Date.parse(value.createdAt)) || typeof value.progress !== "string")
12377
+ var projectParts = (name2) => [".boomkin", "projects", validName(name2)];
12378
+ var runParts = (name2, id) => [...projectParts(name2), "runs", validRun(id)];
12379
+ function parseRun(value, name2, id) {
12380
+ if (!object(value) || value.schemaVersion !== 1 || value.project !== name2 || value.id !== id || !Object.hasOwn(kinds, value.kind) || !["queued", "running", "complete", "partial", "failed", "cancelled", "interrupted"].includes(value.state) || typeof value.createdAt !== "string" || !Number.isFinite(Date.parse(value.createdAt)) || typeof value.progress !== "string")
12308
12381
  throw new DeskError("Saved desk run is malformed; files were preserved", 409);
12309
12382
  return value;
12310
12383
  }
12311
12384
  function parseMetadata(value) {
12312
12385
  if (!object(value) || value.schemaVersion !== 1 || !Object.hasOwn(kinds, value.kind) || typeof value.title !== "string" || !value.title.trim() || value.title.length > 160)
12313
12386
  throw new DeskError("Saved desk project is malformed; files were preserved", 409);
12314
- if (value.parent !== undefined && (!object(value.parent) || typeof value.parent.project !== "string" || !slug.test(value.parent.project) || typeof value.parent.runId !== "string" || !runPattern.test(value.parent.runId)))
12387
+ if (value.parent !== undefined && (!object(value.parent) || typeof value.parent.project !== "string" || !slug2.test(value.parent.project) || typeof value.parent.runId !== "string" || !runPattern.test(value.parent.runId)))
12315
12388
  throw new DeskError("Saved parent capture is malformed; files were preserved", 409);
12316
12389
  return value;
12317
12390
  }
@@ -12379,10 +12452,10 @@ async function startDesk(options) {
12379
12452
  const recovery = await safe(root, [".boomkin", "desk-recovery.lock"]);
12380
12453
  try {
12381
12454
  await mkdir3(recovery, { mode: 448 });
12382
- } catch (error) {
12383
- if (error.code === "EEXIST")
12455
+ } catch (error2) {
12456
+ if (error2.code === "EEXIST")
12384
12457
  throw new DeskError("Desk lock recovery is already in progress. Retry after it finishes; inspect a retained recovery lock before removing it", 409);
12385
- throw error;
12458
+ throw error2;
12386
12459
  }
12387
12460
  try {
12388
12461
  await writeFile3(join5(recovery, "owner.json"), json2({ pid: process.pid, startedAt: new Date().toISOString() }), { flag: "wx", mode: 384 });
@@ -12397,8 +12470,8 @@ async function startDesk(options) {
12397
12470
  let alive = true;
12398
12471
  try {
12399
12472
  process.kill(owner.pid, 0);
12400
- } catch (error) {
12401
- if (error.code === "ESRCH")
12473
+ } catch (error2) {
12474
+ if (error2.code === "ESRCH")
12402
12475
  alive = false;
12403
12476
  }
12404
12477
  if (alive)
@@ -12410,11 +12483,11 @@ async function startDesk(options) {
12410
12483
  }
12411
12484
  }
12412
12485
  await writeFile3(join5(lock, "owner.json"), json2({ pid: process.pid, startedAt: new Date().toISOString() }), { flag: "wx", mode: 384 });
12413
- async function readMetadata(name) {
12414
- return parseMetadata(JSON.parse(await limited(await safe(root, [...projectParts(name), "desk.json"]))));
12486
+ async function readMetadata(name2) {
12487
+ return parseMetadata(JSON.parse(await limited(await safe(root, [...projectParts(name2), "desk.json"]))));
12415
12488
  }
12416
- async function readDeskRun(name, id) {
12417
- return parseRun(JSON.parse(await limited(await safe(root, [...runParts(name, id), "desk.json"]))), name, id);
12489
+ async function readDeskRun(name2, id) {
12490
+ return parseRun(JSON.parse(await limited(await safe(root, [...runParts(name2, id), "desk.json"]))), name2, id);
12418
12491
  }
12419
12492
  async function saveRun(run) {
12420
12493
  await atomic(root, [...runParts(run.project, run.id), "desk.json"], json2(run));
@@ -12487,8 +12560,8 @@ async function startDesk(options) {
12487
12560
  throw new DeskError("This project already has an active run", 409);
12488
12561
  const controller = new AbortController;
12489
12562
  let release;
12490
- const done = new Promise((resolve) => {
12491
- release = resolve;
12563
+ const done = new Promise((resolve6) => {
12564
+ release = resolve6;
12492
12565
  });
12493
12566
  preparing.set(key, { controller, done });
12494
12567
  try {
@@ -12540,20 +12613,20 @@ async function startDesk(options) {
12540
12613
  const title = body.title ?? (kind === "wallet" ? "Hyperliquid wallet review" : kind === "market" ? `${input.asset} market research` : `${input.asset} strategy test`);
12541
12614
  if (typeof title !== "string" || !title.trim() || title.length > 160)
12542
12615
  throw new DeskError("Title must contain 1\u2013160 characters");
12543
- const name = `${kind}-${randomUUID3().slice(0, 8)}`;
12616
+ const name2 = `${kind}-${randomUUID3().slice(0, 8)}`;
12544
12617
  controller.signal.throwIfAborted();
12545
12618
  const { dataset, ...savedInput } = input;
12546
12619
  if (dataset)
12547
12620
  savedInput.uploadedDatasetSha256 = sha(json2(dataset));
12548
- const project = await createProject(root, { name, workflow: kinds[kind].workflow, inputs: savedInput, objective: title }, catalog);
12621
+ const project = await createProject(root, { name: name2, workflow: kinds[kind].workflow, inputs: savedInput, objective: title }, catalog);
12549
12622
  if (dataset)
12550
- await writeFile3(await safe(root, [...projectParts(name), "input.json"]), json2(dataset), { flag: "wx", mode: 384 });
12551
- await writeFile3(await safe(root, [...projectParts(name), "desk.json"]), json2({ schemaVersion: 1, kind, title }), { flag: "wx", mode: 384 });
12623
+ await writeFile3(await safe(root, [...projectParts(name2), "input.json"]), json2(dataset), { flag: "wx", mode: 384 });
12624
+ await writeFile3(await safe(root, [...projectParts(name2), "desk.json"]), json2({ schemaVersion: 1, kind, title }), { flag: "wx", mode: 384 });
12552
12625
  return projectDto(project);
12553
12626
  });
12554
12627
  }
12555
- async function runDetails(name, id) {
12556
- const run = await readDeskRun(name, id), parts = runParts(name, id);
12628
+ async function runDetails(name2, id) {
12629
+ const run = await readDeskRun(name2, id), parts = runParts(name2, id);
12557
12630
  const integrity = { issues: [], resultVerified: false };
12558
12631
  function parseSaved(value, file) {
12559
12632
  try {
@@ -12575,7 +12648,7 @@ async function startDesk(options) {
12575
12648
  }
12576
12649
  const resultText = await optional("result.json");
12577
12650
  if (["complete", "partial"].includes(run.state)) {
12578
- integrity.issues = (await checkProjectRun(root, name, id)).issues;
12651
+ integrity.issues = (await checkProjectRun(root, name2, id)).issues;
12579
12652
  if (run.resultSha256 !== undefined) {
12580
12653
  integrity.resultVerified = typeof run.resultSha256 === "string" && /^[a-f0-9]{64}$/.test(run.resultSha256) && resultText !== null && sha(resultText) === run.resultSha256;
12581
12654
  if (!integrity.resultVerified)
@@ -12584,22 +12657,22 @@ async function startDesk(options) {
12584
12657
  }
12585
12658
  return { run, report: await optional("report.md"), evidence: await optional("evidence.json", true), result: resultText === null ? null : parseSaved(resultText, "result.json"), integrity };
12586
12659
  }
12587
- async function comparisonSnapshot(name, id) {
12588
- const detail = await runDetails(name, id), record = (await projectRuns(root, name)).find((run) => run.id === id);
12589
- const brief = detail.integrity.issues.length ? { inputs: {} } : JSON.parse(await limited(await safe(root, [...runParts(name, id), "brief.json"])));
12590
- return { run: detail.run, inputs: brief.inputs, packRevision: record.pack.revision, result: detail.result, evidence: detail.evidence?.observations ?? [], integrityIssues: detail.integrity.issues, resultVerified: detail.integrity.resultVerified };
12660
+ async function comparisonSnapshot(name2, id) {
12661
+ const detail = await runDetails(name2, id), record2 = (await projectRuns(root, name2)).find((run) => run.id === id);
12662
+ const brief = detail.integrity.issues.length ? { inputs: {} } : JSON.parse(await limited(await safe(root, [...runParts(name2, id), "brief.json"])));
12663
+ return { run: detail.run, inputs: brief.inputs, packRevision: record2.pack.revision, result: detail.result, evidence: detail.evidence?.observations ?? [], integrityIssues: detail.integrity.issues, resultVerified: detail.integrity.resultVerified };
12591
12664
  }
12592
- async function startRun(name) {
12593
- return reserve(name, async (controller) => {
12594
- const project = await readProject(root, name), meta = await readMetadata(name), tools = await installed(meta.kind);
12665
+ async function startRun(name2) {
12666
+ return reserve(name2, async (controller) => {
12667
+ const project = await readProject(root, name2), meta = await readMetadata(name2), tools = await installed(meta.kind);
12595
12668
  controller.signal.throwIfAborted();
12596
12669
  if (meta.execution === "native-hermes")
12597
12670
  return startNative(project, meta, controller);
12598
- const id = new Date().toISOString().replaceAll(":", "-").replace(".", "-") + "-" + randomUUID3().slice(0, 8), parts = runParts(name, id);
12671
+ const id = new Date().toISOString().replaceAll(":", "-").replace(".", "-") + "-" + randomUUID3().slice(0, 8), parts = runParts(name2, id);
12599
12672
  const output = await safe(root, parts), createdAt = new Date().toISOString();
12600
- const brief = json2(project), prompt = renderProjectPrompt(project, output, (await projectRuns(root, name)).at(-1));
12673
+ const brief = json2(project), prompt = renderProjectPrompt(project, output, (await projectRuns(root, name2)).at(-1));
12601
12674
  controller.signal.throwIfAborted();
12602
- const projectLock = await safe(root, [...projectParts(name), "run.lock"]);
12675
+ const projectLock = await safe(root, [...projectParts(name2), "run.lock"]);
12603
12676
  try {
12604
12677
  await mkdir3(projectLock, { mode: 448 });
12605
12678
  } catch (error) {
@@ -12607,29 +12680,29 @@ async function startDesk(options) {
12607
12680
  throw new DeskError("This project already has an active run or an unresolved run lock", 409);
12608
12681
  throw error;
12609
12682
  }
12610
- const run = { schemaVersion: 1, id, project: name, kind: meta.kind, createdAt, state: "queued", progress: "Preparing verified research tools" };
12611
- const record = { schemaVersion: 1, id, project: name, createdAt, state: "prepared", briefSha256: sha(brief), promptSha256: sha(prompt), pack: tools.pack, maxTurns: 1 };
12683
+ const run = { schemaVersion: 1, id, project: name2, kind: meta.kind, createdAt, state: "queued", progress: "Preparing verified research tools" };
12684
+ const record2 = { schemaVersion: 1, id, project: name2, createdAt, state: "prepared", briefSha256: sha(brief), promptSha256: sha(prompt), pack: tools.pack, maxTurns: 1 };
12612
12685
  try {
12613
12686
  await writeFile3(join5(projectLock, "owner.json"), json2({ pid: process.pid, runId: id, owner: "desk" }), { flag: "wx", mode: 384 });
12614
12687
  await mkdir3(output, { mode: 448 });
12615
12688
  await mkdir3(join5(output, "sources"), { mode: 448 });
12616
- for (const [file, value] of [["brief.json", brief], ["prompt.md", prompt], ["run.json", json2(record)], ["desk.json", json2(run)]])
12689
+ for (const [file, value] of [["brief.json", brief], ["prompt.md", prompt], ["run.json", json2(record2)], ["desk.json", json2(run)]])
12617
12690
  await writeFile3(join5(output, file), value, { flag: "wx", mode: 384 });
12618
12691
  } catch (error) {
12619
12692
  await rm3(projectLock, { recursive: true, force: true });
12620
12693
  throw error;
12621
12694
  }
12622
12695
  const entry = { controller, done: Promise.resolve() };
12623
- active.set(name, entry);
12624
- entry.done = execute(project, tools, run, record, controller.signal).finally(async () => {
12625
- active.delete(name);
12696
+ active.set(name2, entry);
12697
+ entry.done = execute(project, tools, run, record2, controller.signal).finally(async () => {
12698
+ active.delete(name2);
12626
12699
  await rm3(projectLock, { recursive: true, force: true });
12627
12700
  });
12628
12701
  return run;
12629
12702
  });
12630
12703
  }
12631
- async function followup(name, body) {
12632
- return reserve(`followup-${name}`, async (controller) => {
12704
+ async function followup(name2, body) {
12705
+ return reserve(`followup-${name2}`, async (controller) => {
12633
12706
  if (!object(body) || Object.keys(body).some((key) => !["question", "maxTurns", "runId"].includes(key)) || typeof body.question !== "string" || !body.question.trim() || body.question.length > 4000)
12634
12707
  throw new DeskError("Enter a follow-up question under 4000 characters");
12635
12708
  if (body.runId !== undefined && (typeof body.runId !== "string" || !runPattern.test(body.runId)))
@@ -12637,13 +12710,13 @@ async function startDesk(options) {
12637
12710
  const maxTurns = body.maxTurns ?? 10;
12638
12711
  if (!Number.isInteger(maxTurns) || maxTurns < 1 || maxTurns > 30)
12639
12712
  throw new DeskError("Follow-up requires 1\u201330 native model turns");
12640
- const previous = await readProject(root, name), meta = await readMetadata(name);
12713
+ const previous = await readProject(root, name2), meta = await readMetadata(name2);
12641
12714
  await installed(meta.kind);
12642
- const runs = await projectRuns(root, name);
12715
+ const runs = await projectRuns(root, name2);
12643
12716
  const priorRun = body.runId ? runs.find((item) => item.id === body.runId) : runs.filter((item) => item.state === "ready-for-review").at(-1);
12644
12717
  if (!priorRun || priorRun.state !== "ready-for-review")
12645
12718
  throw new DeskError("Follow up on a completed result with verified evidence", 409);
12646
- const priorDetail = await runDetails(name, priorRun.id);
12719
+ const priorDetail = await runDetails(name2, priorRun.id);
12647
12720
  if (!["complete", "partial"].includes(priorDetail.run.state) || priorDetail.integrity.issues.length)
12648
12721
  throw new DeskError("Follow up on a completed result with verified evidence", 409);
12649
12722
  checkProfile();
@@ -12654,9 +12727,9 @@ async function startDesk(options) {
12654
12727
  throw new DeskError("Configure the native Hermes runtime and model first", 409);
12655
12728
  const derivedName = `followup-${randomUUID3().slice(0, 8)}`;
12656
12729
  const question = body.question.trim(), title = `Follow-up: ${question}`.slice(0, 160);
12657
- const priorBrief = JSON.parse(await limited(await safe(root, [...runParts(name, priorRun.id), "brief.json"])));
12658
- const project = await createProject(root, { name: derivedName, workflow: previous.workflow.id, objective: `Answer the user's follow-up using fresh public reads and the previous saved research as historical context. Question: ${question}`, inputs: { ...priorBrief.inputs, followupQuestion: question, previousProject: name, previousRunId: priorRun.id, previousReport: await safe(root, [...runParts(name, priorRun.id), "report.md"]), previousEvidence: await safe(root, [...runParts(name, priorRun.id), "evidence.json"]) } }, catalog);
12659
- const derived = { schemaVersion: 1, kind: meta.kind, title, execution: "native-hermes", maxTurns, parent: { project: name, runId: priorRun.id } };
12730
+ const priorBrief = JSON.parse(await limited(await safe(root, [...runParts(name2, priorRun.id), "brief.json"])));
12731
+ const project = await createProject(root, { name: derivedName, workflow: previous.workflow.id, objective: `Answer the user's follow-up using fresh public reads and the previous saved research as historical context. Question: ${question}`, inputs: { ...priorBrief.inputs, followupQuestion: question, previousProject: name2, previousRunId: priorRun.id, previousReport: await safe(root, [...runParts(name2, priorRun.id), "report.md"]), previousEvidence: await safe(root, [...runParts(name2, priorRun.id), "evidence.json"]) } }, catalog);
12732
+ const derived = { schemaVersion: 1, kind: meta.kind, title, execution: "native-hermes", maxTurns, parent: { project: name2, runId: priorRun.id } };
12660
12733
  await writeFile3(await safe(root, [...projectParts(derivedName), "desk.json"]), json2(derived), { flag: "wx", mode: 384 });
12661
12734
  const run = await startNative(project, derived, controller);
12662
12735
  return { project: await projectDto(project), run };
@@ -12666,8 +12739,8 @@ async function startDesk(options) {
12666
12739
  if (active.has(project.name))
12667
12740
  throw new DeskError("This project already has an active run", 409);
12668
12741
  let persisted, preparedResolve, preparedReject;
12669
- const prepared = new Promise((resolve, reject) => {
12670
- preparedResolve = resolve;
12742
+ const prepared = new Promise((resolve6, reject) => {
12743
+ preparedResolve = resolve6;
12671
12744
  preparedReject = reject;
12672
12745
  });
12673
12746
  const entry = { controller, done: Promise.resolve() };
@@ -12678,8 +12751,8 @@ async function startDesk(options) {
12678
12751
  signal: controller.signal,
12679
12752
  executable: options.nativeExecutable,
12680
12753
  maxTurns: meta.maxTurns ?? 10,
12681
- onPrepared: async (record) => {
12682
- persisted = { schemaVersion: 1, project: project.name, id: record.id, kind: meta.kind, execution: "native-hermes", createdAt: record.createdAt, state: "queued", progress: "Starting native Hermes with the configured model; provider usage may incur costs" };
12754
+ onPrepared: async (record2) => {
12755
+ persisted = { schemaVersion: 1, project: project.name, id: record2.id, kind: meta.kind, execution: "native-hermes", createdAt: record2.createdAt, state: "queued", progress: "Starting native Hermes with the configured model; provider usage may incur costs" };
12683
12756
  await saveRun(persisted);
12684
12757
  preparedResolve(persisted);
12685
12758
  },
@@ -12713,7 +12786,7 @@ async function startDesk(options) {
12713
12786
  })();
12714
12787
  return prepared;
12715
12788
  }
12716
- async function execute(project, tools, run, record, signal) {
12789
+ async function execute(project, tools, run, record2, signal) {
12717
12790
  const parts = runParts(project.name, run.id), evidence = [];
12718
12791
  async function progress(message) {
12719
12792
  signal.throwIfAborted();
@@ -12739,11 +12812,15 @@ async function startDesk(options) {
12739
12812
  }
12740
12813
  await progress(label);
12741
12814
  const sequence = ++readSequence;
12742
- const response = await (options.fetcher ?? fetch)(resource, { ...init, credentials: "omit", redirect: "error", signal: init?.signal ? AbortSignal.any([signal, init.signal]) : signal });
12815
+ const response2 = await (options.fetcher ?? fetch)(resource, { ...init, credentials: "omit", redirect: "error", signal: init?.signal ? AbortSignal.any([signal, init.signal]) : signal });
12743
12816
  {
12744
- const limit = run.kind === "wallet" ? 8388608 : 2097152, reader = response.body?.getReader();
12745
- if (!reader || Number(response.headers.get("content-length")) > limit)
12817
+ const limit = run.kind === "wallet" ? 8388608 : 2097152;
12818
+ const declared = Number(response2.headers.get("content-length"));
12819
+ if (Number.isFinite(declared) && declared > limit)
12746
12820
  throw new DeskError("Public response exceeds the capture bound", 502);
12821
+ const reader = response2.body?.getReader();
12822
+ if (!reader)
12823
+ throw new DeskError("Public response had no body", 502);
12747
12824
  const chunks = [];
12748
12825
  let length = 0;
12749
12826
  try {
@@ -12760,17 +12837,17 @@ async function startDesk(options) {
12760
12837
  } finally {
12761
12838
  await reader.cancel().catch(() => {});
12762
12839
  }
12763
- const bytes = Buffer.concat(chunks);
12764
- new TextDecoder("utf-8", { fatal: true }).decode(bytes);
12765
- await artifact(`read-${String(sequence).padStart(3, "0")}.${run.kind === "wallet" ? "txt" : "json"}`, bytes, url, `Raw public response: HTTP ${response.status}; historical timestamps are contained in the response`, [run.kind === "wallet" ? "Sequential exchange snapshot; full-window completeness is unverified." : "Aggregate observations are not executable quotes."]);
12766
- return new Response(bytes, { status: response.status, headers: response.headers });
12840
+ const bytes2 = Buffer.concat(chunks);
12841
+ new TextDecoder("utf-8", { fatal: true }).decode(bytes2);
12842
+ await artifact(`read-${String(sequence).padStart(3, "0")}.${run.kind === "wallet" ? "txt" : "json"}`, bytes2, url, `Raw public response: HTTP ${response2.status}; historical timestamps are contained in the response`, [run.kind === "wallet" ? "Sequential exchange snapshot; full-window completeness is unverified." : "Aggregate observations are not executable quotes."]);
12843
+ return new Response(bytes2, { status: response2.status, headers: response2.headers });
12767
12844
  }
12768
12845
  };
12769
12846
  try {
12770
12847
  run.state = "running";
12771
- record.state = "running";
12848
+ record2.state = "running";
12772
12849
  await saveRun(run);
12773
- await atomic(root, [...parts, "run.json"], json2(record));
12850
+ await atomic(root, [...parts, "run.json"], json2(record2));
12774
12851
  const module = await import(pathToFileURL(tools.path).href + `?release=${tools.pack.revision}`);
12775
12852
  let result, report, partial = false;
12776
12853
  if (run.kind === "wallet") {
@@ -12872,16 +12949,16 @@ Captured evidence:
12872
12949
  await atomic(root, [...parts, "report.md"], report);
12873
12950
  await atomic(root, [...parts, "evidence.json"], json2({ schemaVersion: 1, observations: evidence }));
12874
12951
  await atomic(root, [...parts, "plan.json"], json2({ schemaVersion: 1, status: "no-action", authorization: "not-granted", summary: "Read-only research; no financial action or authority", steps: [] }));
12875
- record.state = "needs-review";
12876
- record.finishedAt = new Date().toISOString();
12877
- await atomic(root, [...parts, "run.json"], json2(record));
12952
+ record2.state = "needs-review";
12953
+ record2.finishedAt = new Date().toISOString();
12954
+ await atomic(root, [...parts, "run.json"], json2(record2));
12878
12955
  const checked = await checkProjectRun(root, project.name, run.id);
12879
12956
  if (checked.issues.length)
12880
12957
  throw new DeskError("Saved result failed evidence validation: " + checked.issues.join("; "), 409);
12881
- record.state = "ready-for-review";
12882
- await atomic(root, [...parts, "run.json"], json2(record));
12958
+ record2.state = "ready-for-review";
12959
+ await atomic(root, [...parts, "run.json"], json2(record2));
12883
12960
  run.state = partial ? "partial" : "complete";
12884
- run.finishedAt = record.finishedAt;
12961
+ run.finishedAt = record2.finishedAt;
12885
12962
  run.progress = partial ? "Saved with explicit missing or partial observations" : "Research saved; sources and methodology are available";
12886
12963
  await saveRun(run);
12887
12964
  } catch (error) {
@@ -12890,9 +12967,9 @@ Captured evidence:
12890
12967
  run.finishedAt = new Date().toISOString();
12891
12968
  run.error = message;
12892
12969
  run.progress = message;
12893
- record.state = "failed";
12894
- record.finishedAt = run.finishedAt;
12895
- record.issues = [message];
12970
+ record2.state = "failed";
12971
+ record2.finishedAt = run.finishedAt;
12972
+ record2.issues = [message];
12896
12973
  await atomic(root, [...parts, "evidence.json"], json2({ schemaVersion: 1, observations: evidence }));
12897
12974
  await atomic(root, [...parts, "report.md"], `# Research incomplete
12898
12975
 
@@ -12903,14 +12980,14 @@ ${evidence.map((item) => `[${item.id}] ${item.summary}`).join(`
12903
12980
  `)}
12904
12981
  `);
12905
12982
  await atomic(root, [...parts, "plan.json"], json2({ schemaVersion: 1, status: "no-action", authorization: "not-granted", summary: message, steps: [] }));
12906
- await atomic(root, [...parts, "run.json"], json2(record));
12983
+ await atomic(root, [...parts, "run.json"], json2(record2));
12907
12984
  await saveRun(run);
12908
12985
  }
12909
12986
  }
12910
12987
  let origin = "";
12911
12988
  const headers = { "cache-control": "no-store", "x-content-type-options": "nosniff", "referrer-policy": "no-referrer", "content-security-policy": "default-src 'self'; connect-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'self'" };
12912
- function response(value, status = 200) {
12913
- return Response.json(value, { status, headers });
12989
+ function response(value, status2 = 200) {
12990
+ return Response.json(value, { status: status2, headers });
12914
12991
  }
12915
12992
  async function requestJson(request) {
12916
12993
  if (request.headers.get("content-type")?.split(";")[0].trim() !== "application/json")
@@ -12997,13 +13074,13 @@ ${evidence.map((item) => `[${item.id}] ${item.summary}`).join(`
12997
13074
  const match = path.match(/^\/api\/projects\/([a-z0-9-]+)(?:\/runs\/([^/]+)(?:\/(export|cancel|evidence|compare)(?:\/([^/]+))?)?|\/(run|refresh|followup))?$/);
12998
13075
  if (!match)
12999
13076
  throw new DeskError("Unknown desk route", 404);
13000
- const [, name, id, action, observationId, operation] = match;
13077
+ const [, name2, id, action, observationId, operation] = match;
13001
13078
  if (!id && !operation && request.method === "GET")
13002
- return response({ project: await projectDto(await readProject(root, name)) });
13079
+ return response({ project: await projectDto(await readProject(root, name2)) });
13003
13080
  if (operation === "followup" && request.method === "POST")
13004
- return response(await followup(name, await requestJson(request)), 202);
13081
+ return response(await followup(name2, await requestJson(request)), 202);
13005
13082
  if (operation && request.method === "POST")
13006
- return response({ run: await startRun(name) }, 202);
13083
+ return response({ run: await startRun(name2) }, 202);
13007
13084
  if (id) {
13008
13085
  if (action === "compare" && request.method === "GET") {
13009
13086
  const params = new URL(request.url).searchParams, baseline = params.get("baseline");
@@ -13011,35 +13088,35 @@ ${evidence.map((item) => `[${item.id}] ${item.summary}`).join(`
13011
13088
  throw new DeskError("Choose one baseline run from this project");
13012
13089
  validRun(baseline);
13013
13090
  validRun(id);
13014
- const before = await comparisonSnapshot(name, baseline), after = await comparisonSnapshot(name, id);
13091
+ const before = await comparisonSnapshot(name2, baseline), after = await comparisonSnapshot(name2, id);
13015
13092
  return response(compareDeskRuns(after.run.kind, before, after));
13016
13093
  }
13017
13094
  if (action === "cancel" && request.method === "POST") {
13018
- const run = await readDeskRun(name, id), pending = active.get(name);
13095
+ const run = await readDeskRun(name2, id), pending = active.get(name2);
13019
13096
  if (!pending || !["queued", "running"].includes(run.state))
13020
13097
  throw new DeskError("This run is no longer active", 409);
13021
- const current = (await projectRuns(root, name)).at(-1);
13098
+ const current = (await projectRuns(root, name2)).at(-1);
13022
13099
  if (current?.id !== id)
13023
13100
  throw new DeskError("Only the active run can be cancelled", 409);
13024
13101
  pending.controller.abort();
13025
13102
  await pending.done;
13026
- return response({ run: await readDeskRun(name, id) });
13103
+ return response({ run: await readDeskRun(name2, id) });
13027
13104
  }
13028
13105
  if (request.method === "GET" && action === "evidence") {
13029
- if (!observationId || !slug.test(observationId))
13106
+ if (!observationId || !slug2.test(observationId))
13030
13107
  throw new DeskError("Invalid observation ID");
13031
- const detail = await runDetails(name, id), evidence = detail.evidence?.observations?.find((item) => item.id === observationId);
13108
+ const detail = await runDetails(name2, id), evidence = detail.evidence?.observations?.find((item) => item.id === observationId);
13032
13109
  if (!evidence || !/^sources\/(?:[a-zA-Z0-9][a-zA-Z0-9._-]*\/)*[a-zA-Z0-9][a-zA-Z0-9._-]*$/.test(evidence.artifact))
13033
13110
  throw new DeskError("Unknown captured observation", 404);
13034
- const bytes = await limitedBytes(await safe(root, [...runParts(name, id), ...evidence.artifact.split("/")]), 20971520);
13035
- if (sha(bytes) !== evidence.sha256)
13111
+ const bytes2 = await limitedBytes(await safe(root, [...runParts(name2, id), ...evidence.artifact.split("/")]), 20971520);
13112
+ if (sha(bytes2) !== evidence.sha256)
13036
13113
  throw new DeskError("Captured artifact hash differs from its evidence record", 409);
13037
- return new Response(bytes, { headers: { ...headers, "content-type": "text/plain; charset=utf-8" } });
13114
+ return new Response(bytes2, { headers: { ...headers, "content-type": "text/plain; charset=utf-8" } });
13038
13115
  }
13039
13116
  if (request.method === "GET" && (!action || action === "export")) {
13040
- const detail = await runDetails(name, id);
13117
+ const detail = await runDetails(name2, id);
13041
13118
  if (action === "export")
13042
- return new Response(json2(detail), { headers: { ...headers, "content-type": "application/json", "content-disposition": `attachment; filename="${name}-${id}.json"` } });
13119
+ return new Response(json2(detail), { headers: { ...headers, "content-type": "application/json", "content-disposition": `attachment; filename="${name2}-${id}.json"` } });
13043
13120
  return response(detail);
13044
13121
  }
13045
13122
  }
@@ -13070,8 +13147,8 @@ ${evidence.map((item) => `[${item.id}] ${item.summary}`).join(`
13070
13147
  const contents = await readFile5(filePath);
13071
13148
  return new Response(request.method === "HEAD" ? null : contents, { headers: { ...headers, "content-type": file.type } });
13072
13149
  } catch (error) {
13073
- const status = error instanceof DeskError ? error.status : error?.code === "ENOENT" ? 404 : 500;
13074
- return response({ error: { message: status === 500 ? "Desk operation failed; saved files were preserved" : error.message } }, status);
13150
+ const status2 = error instanceof DeskError ? error.status : error?.code === "ENOENT" ? 404 : 500;
13151
+ return response({ error: { message: status2 === 500 ? "Desk operation failed; saved files were preserved" : error.message } }, status2);
13075
13152
  }
13076
13153
  }
13077
13154
  });
@@ -13209,8 +13286,8 @@ function createNativeDashboard(directory, options = {}) {
13209
13286
  const consume = async (stream) => {
13210
13287
  const decoder = new TextDecoder;
13211
13288
  let tail = "";
13212
- for await (const bytes of stream) {
13213
- const lines = (tail + decoder.decode(bytes, { stream: true })).split(`
13289
+ for await (const bytes2 of stream) {
13290
+ const lines = (tail + decoder.decode(bytes2, { stream: true })).split(`
13214
13291
  `);
13215
13292
  tail = lines.pop().slice(-4096);
13216
13293
  for (const line of lines) {
@@ -13272,6 +13349,7 @@ boomkin providers --search simulation --json
13272
13349
  boomkin providers --access keyless
13273
13350
  boomkin providers --provider blockscout
13274
13351
  boomkin workflows
13352
+ boomkin workflows --protocol Aave
13275
13353
  boomkin workflows --workflow aave-health
13276
13354
  boomkin templates
13277
13355
  boomkin templates --template wallet-audit --json
@@ -13280,6 +13358,7 @@ boomkin project create --name my-research --workflow yield-screen --input-file .
13280
13358
  boomkin project run --name my-research --dry-run
13281
13359
  boomkin project run --name my-research
13282
13360
  boomkin project check --name my-research
13361
+ boomkin project show --name my-research
13283
13362
  boomkin project list
13284
13363
  boomkin onboard --workflow yield-screen
13285
13364
  boomkin connect --provider alchemy
@@ -13288,7 +13367,10 @@ boomkin connect --provider blockscout
13288
13367
  boomkin model
13289
13368
  boomkin chatgpt --action login
13290
13369
  boomkin chatgpt --action status
13370
+ boomkin chatgpt --action refresh
13371
+ boomkin chatgpt --action model
13291
13372
  boomkin check --directory ~/.boomkin/hermes
13373
+ boomkin status --directory ~/.boomkin/hermes
13292
13374
  boomkin update --directory ~/.boomkin/hermes
13293
13375
 
13294
13376
  desk opens your local browser desk for public market data, wallet reviews and strategy tests.
@@ -13297,12 +13379,13 @@ Optional research uses native Hermes and your selected model. --port chooses a l
13297
13379
  --no-open prints the local address without opening a browser. Stop with Ctrl-C.
13298
13380
  onboard installs the official Hermes runtime if needed, prepares an isolated profile,
13299
13381
  installs the selected Galleon skill packs and public CoinGecko MCP, then runs native model setup.
13300
- --directory chooses the Hermes home (default ~/.boomkin/hermes for the commands above).
13382
+ --directory chooses the Hermes home (default ~/.boomkin/hermes) for desk, onboard, doctor, start, connect, model, chatgpt and project.
13383
+ setup, update, check and status require it. workflows, templates, providers, catalog and harnesses do not use a profile.
13301
13384
  --skip-model-setup prepares files without an interactive model login.
13302
13385
  --no-install uses an existing Hermes executable. --dry-run previews without writes.
13303
13386
  --all-packs opts an existing onboarding profile into every pack in the current catalog.
13304
13387
  --workflow chooses one task's pack for onboarding; updates keep that selection.
13305
- workflows lists inputs, concrete results and access requirements; --json emits structured data.
13388
+ workflows lists inputs, concrete results and access requirements; --protocol filters by protocol name; --json emits structured data.
13306
13389
  templates lists reviewed starting points; --template inspects the required inputs and example.
13307
13390
  project create accepts either --template or --workflow with your --input-file.
13308
13391
  providers discovers sourced provider tools locally; --search, --capability and --access narrow results.
@@ -13396,25 +13479,29 @@ async function main() {
13396
13479
  throw new Error("Onboarding options are only available for onboard");
13397
13480
  if (values["dry-run"] && !["desk", "onboard", "setup", "update", "connect", "start", "model", "chatgpt", "project"].includes(command))
13398
13481
  throw new Error("--dry-run is unavailable for this read-only command");
13482
+ if (values["offline-catalog"] && !["check", "update", "setup", "onboard"].includes(command))
13483
+ throw new Error("--offline-catalog is available for setup, onboard, check and update");
13484
+ if ((command === "harnesses" || command === "catalog") && (values.pack || values.harness || values.directory))
13485
+ throw new Error(`${command} does not accept profile, harness or pack options`);
13399
13486
  if (command === "desk") {
13400
- if (values.pack || values.harness || values["offline-catalog"])
13487
+ if (values.pack || values.harness)
13401
13488
  throw new Error("desk uses its selected Hermes profile; pack options belong to setup or onboard");
13402
- const directory = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
13489
+ const directory2 = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
13403
13490
  const port = deskPort(values.port);
13404
13491
  if (values["dry-run"])
13405
- return console.log(`Would serve the local desk on 127.0.0.1:${port || "an available port"} using ${directory}; no model, data read or setup starts in this preview.`);
13406
- const catalog = parseCatalog(skills_default);
13407
- const nativeDashboard = createNativeDashboard(directory);
13492
+ return console.log(`Would serve the local desk on 127.0.0.1:${port || "an available port"} using ${directory2}; no model, data read or setup starts in this preview.`);
13493
+ const catalog2 = parseCatalog(skills_default);
13494
+ const nativeDashboard = createNativeDashboard(directory2);
13408
13495
  const desk = await startDesk({
13409
- directory,
13410
- catalog,
13496
+ directory: directory2,
13497
+ catalog: catalog2,
13411
13498
  port,
13412
13499
  assetsDirectory: deskAssetsDirectory(import.meta.url),
13413
13500
  onSetup: async (signal) => {
13414
- const selected = await deskSetupPacks(directory, catalog);
13501
+ const selected = await deskSetupPacks(directory2, catalog2);
13415
13502
  signal.throwIfAborted();
13416
13503
  const group = process.platform !== "win32";
13417
- const child = Bun.spawn([process.execPath, fileURLToPath2(import.meta.url), "setup", "--harness", "hermes", "--directory", directory, ...selected.flatMap((id) => ["--pack", id])], { stdin: "inherit", stdout: "inherit", stderr: "inherit", detached: group });
13504
+ const child = Bun.spawn([process.execPath, fileURLToPath2(import.meta.url), "setup", "--harness", "hermes", "--directory", directory2, ...selected.flatMap((id) => ["--pack", id])], { stdin: "inherit", stdout: "inherit", stderr: "inherit", detached: group });
13418
13505
  let termination;
13419
13506
  const abort = () => {
13420
13507
  termination ??= terminateOwnedProcess(child, group);
@@ -13434,13 +13521,13 @@ async function main() {
13434
13521
  }
13435
13522
  },
13436
13523
  onModelSetup: async (signal) => {
13437
- await prepareHermes(directory, { install: true, skipModelSetup: true, signal });
13524
+ await prepareHermes(directory2, { install: true, skipModelSetup: true, signal });
13438
13525
  signal.throwIfAborted();
13439
13526
  return nativeDashboard.open();
13440
13527
  }
13441
13528
  });
13442
13529
  console.log(`Boomkin desk: ${desk.url}
13443
- Profile: ${directory}
13530
+ Profile: ${directory2}
13444
13531
  Public jobs use bounded keyless reads. Native model research is optional. Stop with Ctrl-C.`);
13445
13532
  if (!values["no-open"]) {
13446
13533
  const opener = process.platform === "darwin" ? "open" : process.platform === "win32" ? undefined : Bun.which("xdg-open");
@@ -13462,7 +13549,7 @@ Public jobs use bounded keyless reads. Native model research is optional. Stop w
13462
13549
  const action = positionals[1];
13463
13550
  if (!action || !["create", "list", "show", "run", "check"].includes(action))
13464
13551
  throw new Error("Choose project create, list, show, run or check");
13465
- if (values.pack || values.harness || values["offline-catalog"])
13552
+ if (values.pack || values.harness)
13466
13553
  throw new Error("Project commands use the selected Hermes profile; pack options belong to onboard");
13467
13554
  if (action !== "create" && [values.workflow, values.template, values["input-file"], values.objective].some((value) => value !== undefined))
13468
13555
  throw new Error("--workflow, --template, --input-file and --objective are only available for project create");
@@ -13474,11 +13561,11 @@ Public jobs use bounded keyless reads. Native model research is optional. Stop w
13474
13561
  throw new Error("--dry-run is available for project create and run");
13475
13562
  if (action === "run" && values.json && !values["dry-run"])
13476
13563
  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");
13477
- const directory = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
13564
+ const directory2 = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
13478
13565
  if (action === "list") {
13479
13566
  if (values.name !== undefined)
13480
13567
  throw new Error("project list does not accept --name");
13481
- const projects = await listProjects(directory);
13568
+ const projects = await listProjects(directory2);
13482
13569
  return console.log(values.json ? JSON.stringify({ schemaVersion: 1, projects }, null, 2) : projects.length ? projects.map((project) => `${project.name}: ${project.workflow.title}`).join(`
13483
13570
  `) : "No saved projects. Use project create with a workflow and input file.");
13484
13571
  }
@@ -13491,26 +13578,26 @@ Public jobs use bounded keyless reads. Native model research is optional. Stop w
13491
13578
  if (file.size > 65536)
13492
13579
  throw new Error("Project input file exceeds 64 KiB");
13493
13580
  const supplied = await file.json();
13494
- 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));
13495
- 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.`);
13581
+ const project = await createProject(directory2, { 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));
13582
+ 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.`);
13496
13583
  }
13497
13584
  if (action === "show")
13498
- return console.log(JSON.stringify({ project: await readProject(directory, values.name), runs: await projectRuns(directory, values.name) }, null, 2));
13585
+ return console.log(JSON.stringify({ project: await readProject(directory2, values.name), runs: await projectRuns(directory2, values.name) }, null, 2));
13499
13586
  if (action === "run") {
13500
- const result = await runProject(directory, values.name, { dryRun: values["dry-run"], maxTurns: values["max-turns"] === undefined ? undefined : Number(values["max-turns"]) });
13501
- return console.log(values.json ? JSON.stringify(result, null, 2) : values["dry-run"] ? result.prompt : `${result.run.state}: ${result.path}${result.run.issues?.length ? `
13502
- ${result.run.issues.join(`
13587
+ const result2 = await runProject(directory2, values.name, { dryRun: values["dry-run"], maxTurns: values["max-turns"] === undefined ? undefined : Number(values["max-turns"]) });
13588
+ return console.log(values.json ? JSON.stringify(result2, null, 2) : values["dry-run"] ? result2.prompt : `${result2.run.state}: ${result2.path}${result2.run.issues?.length ? `
13589
+ ${result2.run.issues.join(`
13503
13590
  `)}` : `
13504
13591
  Captured files passed structural and hash checks. Review the findings and unsigned plan.`}`);
13505
13592
  }
13506
- const result = await checkProjectRun(directory, values.name, values["run-id"]);
13593
+ const result = await checkProjectRun(directory2, values.name, values["run-id"]);
13507
13594
  console.log(JSON.stringify(result, null, 2));
13508
13595
  if (result.issues.length)
13509
13596
  process.exitCode = 1;
13510
13597
  return;
13511
13598
  }
13512
13599
  if (command === "templates") {
13513
- if (values.pack || values.harness || values.directory || values["offline-catalog"] || values.workflow)
13600
+ if (values.pack || values.harness || values.directory || values.workflow)
13514
13601
  throw new Error("templates accepts --template and --json");
13515
13602
  const selected = values.template !== undefined ? [selectTemplate(values.template)] : templates;
13516
13603
  return console.log(values.json ? JSON.stringify({ schemaVersion: 1, templates: selected }, null, 2) : selected.map(renderTemplate).join(`
@@ -13520,8 +13607,7 @@ Captured files passed structural and hash checks. Review the findings and unsign
13520
13607
  if (command === "workflows") {
13521
13608
  if (values.pack || values.harness || values.directory)
13522
13609
  throw new Error("workflows accepts --workflow, --protocol and --json");
13523
- const protocol = values.protocol?.toLowerCase();
13524
- const selected = values.workflow !== undefined ? [selectWorkflow(values.workflow)] : workflows.filter((item) => protocol === undefined || item.protocol.split(" / ").some((name) => name.toLowerCase() === protocol));
13610
+ const selected = values.workflow !== undefined ? [selectWorkflow(values.workflow)] : workflows.filter((item) => values.protocol === undefined || workflowMatchesProtocol(item, values.protocol));
13525
13611
  if (!selected.length)
13526
13612
  throw new Error("No matching protocol. Run workflows to list supported protocols.");
13527
13613
  return console.log(values.json ? JSON.stringify({ schemaVersion: 1, workflows: selected }, null, 2) : selected.map(renderWorkflow).join(`
@@ -13529,7 +13615,7 @@ Captured files passed structural and hash checks. Review the findings and unsign
13529
13615
  `));
13530
13616
  }
13531
13617
  if (command === "providers") {
13532
- if (values.pack || values.harness || values.directory || values["offline-catalog"])
13618
+ if (values.pack || values.harness || values.directory)
13533
13619
  throw new Error("providers accepts --provider, --search, --capability, --access and --json");
13534
13620
  if (values.provider !== undefined && [values.search, values.capability, values.access].some((value) => value !== undefined))
13535
13621
  throw new Error("Choose one --provider or discovery filters separately");
@@ -13540,7 +13626,7 @@ Captured files passed structural and hash checks. Review the findings and unsign
13540
13626
  if (["onboard", "doctor", "start", "connect", "model", "chatgpt"].includes(command)) {
13541
13627
  if (values.harness && values.harness !== "hermes")
13542
13628
  throw new Error("Boomkin onboarding uses Hermes. Use setup for skill-only compatibility with another harness.");
13543
- const directory = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
13629
+ const directory2 = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
13544
13630
  if (command === "onboard") {
13545
13631
  if (values.pack && values["all-packs"])
13546
13632
  throw new Error("Choose --pack or --all-packs, not both");
@@ -13552,36 +13638,36 @@ Captured files passed structural and hash checks. Review the findings and unsign
13552
13638
  "--harness",
13553
13639
  "hermes",
13554
13640
  "--directory",
13555
- directory,
13641
+ directory2,
13556
13642
  ...selected?.flatMap((id) => ["--pack", id]) ?? [],
13557
13643
  ...values["dry-run"] ? ["--dry-run"] : []
13558
13644
  ];
13559
13645
  const child = Bun.spawn(args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" });
13560
13646
  if (await child.exited !== 0)
13561
13647
  throw new Error("Skill setup did not finish. Resolve its reported issue and rerun onboard.");
13562
- console.log(`Hermes home: ${directory}. Native model setup and keyless CoinGecko data; other providers are opt-in.`);
13563
- await prepareHermes(directory, { install: !values["no-install"], dryRun: values["dry-run"], skipModelSetup: values["skip-model-setup"] });
13648
+ console.log(`Hermes home: ${directory2}. Native model setup and keyless CoinGecko data; other providers are opt-in.`);
13649
+ await prepareHermes(directory2, { install: !values["no-install"], dryRun: values["dry-run"], skipModelSetup: values["skip-model-setup"] });
13564
13650
  if (values["dry-run"])
13565
13651
  return;
13566
- console.log(JSON.stringify(await doctor(directory, parseCatalog(skills_default)), null, 2));
13652
+ console.log(JSON.stringify(await doctor(directory2, parseCatalog(skills_default)), null, 2));
13567
13653
  console.log("Onboarding saved. Use doctor --live to check public data, then start to launch Hermes. Complete any listed setup gaps first.");
13568
13654
  return;
13569
13655
  }
13570
13656
  if (values.pack || values["all-packs"] || values["skip-model-setup"] || values["no-install"])
13571
13657
  throw new Error("Pack and installer options are only available for onboard here");
13572
13658
  if (command === "chatgpt")
13573
- return runChatGpt(directory, values.action ?? "status", values["dry-run"]);
13659
+ return runChatGpt(directory2, values.action ?? "status", values["dry-run"]);
13574
13660
  if (command === "doctor")
13575
- return console.log(JSON.stringify(await doctor(directory, parseCatalog(skills_default), values.live), null, 2));
13661
+ return console.log(JSON.stringify(await doctor(directory2, parseCatalog(skills_default), values.live), null, 2));
13576
13662
  if (command === "connect")
13577
- return connectProvider(directory, values.provider ?? "", values["dry-run"], values["key-file"] ? resolve8(values["key-file"]) : undefined);
13663
+ return connectProvider(directory2, values.provider ?? "", values["dry-run"], values["key-file"] ? resolve8(values["key-file"]) : undefined);
13578
13664
  if (values["dry-run"])
13579
- return console.log(`Hermes ${command === "model" ? "setup model" : "chat"} in ${directory}`);
13580
- return runHermes(directory, command === "model" ? ["setup", "model"] : ["chat"]);
13665
+ return console.log(`Hermes ${command === "model" ? "setup model" : "chat"} in ${directory2}`);
13666
+ return runHermes(directory2, command === "model" ? ["setup", "model"] : ["chat"]);
13581
13667
  }
13582
13668
  if (command === "harnesses") {
13583
- for (const [name, h] of Object.entries(harnesses))
13584
- console.log(`${name}
13669
+ for (const [name2, h] of Object.entries(harnesses))
13670
+ console.log(`${name2}
13585
13671
  ${h.setup}
13586
13672
  ${h.docs}
13587
13673
  `);
@@ -13591,6 +13677,8 @@ Captured files passed structural and hash checks. Review the findings and unsign
13591
13677
  return console.log(JSON.stringify(parseCatalog(skills_default), null, 2));
13592
13678
  if (!["setup", "update", "check", "status"].includes(command))
13593
13679
  throw new Error(`Unknown command: ${command}`);
13680
+ if (values.harness && command !== "setup")
13681
+ throw new Error("--harness is available for setup");
13594
13682
  if (!values.directory)
13595
13683
  throw new Error("Pass --directory with your harness workspace (Hermes: its HERMES_HOME).");
13596
13684
  const directory = await canonicalPath(resolve8(values.directory));
@@ -13622,11 +13710,11 @@ Captured files passed structural and hash checks. Review the findings and unsign
13622
13710
  if (await child.exited !== 0)
13623
13711
  throw new Error("Upstream skills command failed. Completed packs remain installed; rerun after resolving the error.");
13624
13712
  }
13625
- async function verifyInstalled(catalog) {
13626
- for (const pack of catalog.packs) {
13713
+ async function verifyInstalled(catalog2) {
13714
+ for (const pack of catalog2.packs) {
13627
13715
  for (const skill of pack.skills) {
13628
- const text = await readFile7(join8(directory, adapter.skillsPath, skill, "SKILL.md"), "utf8");
13629
- const version = installedVersion(text);
13716
+ const text2 = await readFile7(join8(directory, adapter.skillsPath, skill, "SKILL.md"), "utf8");
13717
+ const version = installedVersion(text2);
13630
13718
  if (version !== pack.version)
13631
13719
  throw new Error(`Installed ${skill} has version ${version ?? "unknown"}; expected ${pack.version}. Sync not marked complete.`);
13632
13720
  }
@@ -13640,9 +13728,9 @@ ${adapter.setup}`);
13640
13728
  }
13641
13729
  let previous;
13642
13730
  try {
13643
- const record = JSON.parse(await readFile7(join8(stateDir, "last-sync.json"), "utf8"));
13644
- if (record.catalog?.schemaVersion === 3)
13645
- previous = parseCatalog(record.catalog);
13731
+ const record2 = JSON.parse(await readFile7(join8(stateDir, "last-sync.json"), "utf8"));
13732
+ if (record2.catalog?.schemaVersion === 3)
13733
+ previous = parseCatalog(record2.catalog);
13646
13734
  } catch (error) {
13647
13735
  if (error.code !== "ENOENT" && command === "check")
13648
13736
  throw new Error("Sync record is incomplete; run update to rebuild it.");