boomkin 0.12.2 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,25 +1,21 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- var __defProp = Object.defineProperty;
4
3
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
5
- var __returnValue = (v) => v;
6
- function __exportSetter(name, newValue) {
7
- this[name] = __returnValue.bind(null, newValue);
8
- }
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, {
12
- get: all[name],
13
- enumerable: true,
14
- configurable: true,
15
- set: __exportSetter.bind(all, name)
16
- });
4
+ var __esm = (fn, res, err) => () => {
5
+ if (fn)
6
+ try {
7
+ res = fn(fn = 0);
8
+ } catch (e) {
9
+ err = [e];
10
+ }
11
+ if (err)
12
+ throw err[0];
13
+ return res;
17
14
  };
18
- var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
19
15
  var __require = import.meta.require;
20
16
 
21
17
  // node_modules/yaml/dist/nodes/identity.js
22
- var require_identity = __commonJS((exports) => {
18
+ var require_identity = __commonJS(function(exports) {
23
19
  var ALIAS = Symbol.for("yaml.alias");
24
20
  var DOC = Symbol.for("yaml.document");
25
21
  var MAP = Symbol.for("yaml.map");
@@ -73,7 +69,7 @@ var require_identity = __commonJS((exports) => {
73
69
  });
74
70
 
75
71
  // node_modules/yaml/dist/visit.js
76
- var require_visit = __commonJS((exports) => {
72
+ var require_visit = __commonJS(function(exports) {
77
73
  var identity = require_identity();
78
74
  var BREAK = Symbol("break visit");
79
75
  var SKIP = Symbol("skip children");
@@ -228,7 +224,7 @@ var require_visit = __commonJS((exports) => {
228
224
  });
229
225
 
230
226
  // node_modules/yaml/dist/doc/directives.js
231
- var require_directives = __commonJS((exports) => {
227
+ var require_directives = __commonJS(function(exports) {
232
228
  var identity = require_identity();
233
229
  var visit = require_visit();
234
230
  var escapeChars = {
@@ -380,7 +376,7 @@ var require_directives = __commonJS((exports) => {
380
376
  });
381
377
 
382
378
  // node_modules/yaml/dist/doc/anchors.js
383
- var require_anchors = __commonJS((exports) => {
379
+ var require_anchors = __commonJS(function(exports) {
384
380
  var identity = require_identity();
385
381
  var visit = require_visit();
386
382
  function anchorIsValid(anchor) {
@@ -442,7 +438,7 @@ var require_anchors = __commonJS((exports) => {
442
438
  });
443
439
 
444
440
  // node_modules/yaml/dist/doc/applyReviver.js
445
- var require_applyReviver = __commonJS((exports) => {
441
+ var require_applyReviver = __commonJS(function(exports) {
446
442
  function applyReviver(reviver, obj, key, val) {
447
443
  if (val && typeof val === "object") {
448
444
  if (Array.isArray(val)) {
@@ -489,7 +485,7 @@ var require_applyReviver = __commonJS((exports) => {
489
485
  });
490
486
 
491
487
  // node_modules/yaml/dist/nodes/toJS.js
492
- var require_toJS = __commonJS((exports) => {
488
+ var require_toJS = __commonJS(function(exports) {
493
489
  var identity = require_identity();
494
490
  function toJS(value, arg, ctx) {
495
491
  if (Array.isArray(value))
@@ -499,8 +495,8 @@ var require_toJS = __commonJS((exports) => {
499
495
  return value.toJSON(arg, ctx);
500
496
  const data = { aliasCount: 0, count: 1, res: undefined };
501
497
  ctx.anchors.set(value, data);
502
- ctx.onCreate = (res2) => {
503
- data.res = res2;
498
+ ctx.onCreate = (res) => {
499
+ data.res = res;
504
500
  delete ctx.onCreate;
505
501
  };
506
502
  const res = value.toJSON(arg, ctx);
@@ -516,7 +512,7 @@ var require_toJS = __commonJS((exports) => {
516
512
  });
517
513
 
518
514
  // node_modules/yaml/dist/nodes/Node.js
519
- var require_Node = __commonJS((exports) => {
515
+ var require_Node = __commonJS(function(exports) {
520
516
  var applyReviver = require_applyReviver();
521
517
  var identity = require_identity();
522
518
  var toJS = require_toJS();
@@ -544,8 +540,8 @@ var require_Node = __commonJS((exports) => {
544
540
  };
545
541
  const res = toJS.toJS(this, "", ctx);
546
542
  if (typeof onAnchor === "function")
547
- for (const { count, res: res2 } of ctx.anchors.values())
548
- onAnchor(res2, count);
543
+ for (const { count, res } of ctx.anchors.values())
544
+ onAnchor(res, count);
549
545
  return typeof reviver === "function" ? applyReviver.applyReviver(reviver, { "": res }, "", res) : res;
550
546
  }
551
547
  }
@@ -553,7 +549,7 @@ var require_Node = __commonJS((exports) => {
553
549
  });
554
550
 
555
551
  // node_modules/yaml/dist/nodes/Alias.js
556
- var require_Alias = __commonJS((exports) => {
552
+ var require_Alias = __commonJS(function(exports) {
557
553
  var anchors = require_anchors();
558
554
  var visit = require_visit();
559
555
  var identity = require_identity();
@@ -595,11 +591,11 @@ var require_Alias = __commonJS((exports) => {
595
591
  found = node;
596
592
  }
597
593
  if (found && ctx) {
598
- const { anchors: anchors2, doc: doc2, maxAliasCount } = ctx;
599
- let data = anchors2.get(found);
594
+ const { anchors, doc, maxAliasCount } = ctx;
595
+ let data = anchors.get(found);
600
596
  if (!data) {
601
597
  toJS.toJS(found, null, ctx);
602
- data = anchors2.get(found);
598
+ data = anchors.get(found);
603
599
  }
604
600
  if (data?.res === undefined) {
605
601
  const msg = "This should not happen: Alias anchor was not resolved?";
@@ -608,7 +604,7 @@ var require_Alias = __commonJS((exports) => {
608
604
  if (maxAliasCount >= 0) {
609
605
  data.count += 1;
610
606
  if (data.aliasCount === 0)
611
- data.aliasCount = getAliasCount(doc2, found, anchors2);
607
+ data.aliasCount = getAliasCount(doc, found, anchors);
612
608
  if (data.count * data.aliasCount > maxAliasCount) {
613
609
  const msg = "Excessive alias count indicates a resource exhaustion attack";
614
610
  throw new ReferenceError(msg);
@@ -641,22 +637,22 @@ var require_Alias = __commonJS((exports) => {
641
637
  return src;
642
638
  }
643
639
  }
644
- function getAliasCount(doc, node, anchors2) {
640
+ function getAliasCount(doc, node, anchors) {
645
641
  if (identity.isAlias(node)) {
646
642
  const source = node.resolve(doc);
647
- const anchor = anchors2 && source && anchors2.get(source);
643
+ const anchor = anchors && source && anchors.get(source);
648
644
  return anchor ? anchor.count * anchor.aliasCount : 0;
649
645
  } else if (identity.isCollection(node)) {
650
646
  let count = 0;
651
647
  for (const item of node.items) {
652
- const c = getAliasCount(doc, item, anchors2);
648
+ const c = getAliasCount(doc, item, anchors);
653
649
  if (c > count)
654
650
  count = c;
655
651
  }
656
652
  return count;
657
653
  } else if (identity.isPair(node)) {
658
- const kc = getAliasCount(doc, node.key, anchors2);
659
- const vc = getAliasCount(doc, node.value, anchors2);
654
+ const kc = getAliasCount(doc, node.key, anchors);
655
+ const vc = getAliasCount(doc, node.value, anchors);
660
656
  return Math.max(kc, vc);
661
657
  }
662
658
  return 1;
@@ -665,7 +661,7 @@ var require_Alias = __commonJS((exports) => {
665
661
  });
666
662
 
667
663
  // node_modules/yaml/dist/nodes/Scalar.js
668
- var require_Scalar = __commonJS((exports) => {
664
+ var require_Scalar = __commonJS(function(exports) {
669
665
  var identity = require_identity();
670
666
  var Node = require_Node();
671
667
  var toJS = require_toJS();
@@ -693,7 +689,7 @@ var require_Scalar = __commonJS((exports) => {
693
689
  });
694
690
 
695
691
  // node_modules/yaml/dist/doc/createNode.js
696
- var require_createNode = __commonJS((exports) => {
692
+ var require_createNode = __commonJS(function(exports) {
697
693
  var Alias = require_Alias();
698
694
  var identity = require_identity();
699
695
  var Scalar = require_Scalar();
@@ -741,10 +737,10 @@ var require_createNode = __commonJS((exports) => {
741
737
  value = value.toJSON();
742
738
  }
743
739
  if (!value || typeof value !== "object") {
744
- const node2 = new Scalar.Scalar(value);
740
+ const node = new Scalar.Scalar(value);
745
741
  if (ref)
746
- ref.node = node2;
747
- return node2;
742
+ ref.node = node;
743
+ return node;
748
744
  }
749
745
  tagObj = value instanceof Map ? schema[identity.MAP] : (Symbol.iterator in Object(value)) ? schema[identity.SEQ] : schema[identity.MAP];
750
746
  }
@@ -765,7 +761,7 @@ var require_createNode = __commonJS((exports) => {
765
761
  });
766
762
 
767
763
  // node_modules/yaml/dist/nodes/Collection.js
768
- var require_Collection = __commonJS((exports) => {
764
+ var require_Collection = __commonJS(function(exports) {
769
765
  var createNode = require_createNode();
770
766
  var identity = require_identity();
771
767
  var Node = require_Node();
@@ -880,7 +876,7 @@ var require_Collection = __commonJS((exports) => {
880
876
  });
881
877
 
882
878
  // node_modules/yaml/dist/stringify/stringifyComment.js
883
- var require_stringifyComment = __commonJS((exports) => {
879
+ var require_stringifyComment = __commonJS(function(exports) {
884
880
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
885
881
  function indentComment(comment, indent) {
886
882
  if (/^\n+$/.test(comment))
@@ -897,7 +893,7 @@ var require_stringifyComment = __commonJS((exports) => {
897
893
  });
898
894
 
899
895
  // node_modules/yaml/dist/stringify/foldFlowLines.js
900
- var require_foldFlowLines = __commonJS((exports) => {
896
+ var require_foldFlowLines = __commonJS(function(exports) {
901
897
  var FOLD_FLOW = "flow";
902
898
  var FOLD_BLOCK = "block";
903
899
  var FOLD_QUOTED = "quoted";
@@ -993,17 +989,17 @@ var require_foldFlowLines = __commonJS((exports) => {
993
989
  if (onFold)
994
990
  onFold();
995
991
  let res = text.slice(0, folds[0]);
996
- for (let i2 = 0;i2 < folds.length; ++i2) {
997
- const fold = folds[i2];
998
- const end2 = folds[i2 + 1] || text.length;
992
+ for (let i = 0;i < folds.length; ++i) {
993
+ const fold = folds[i];
994
+ const end = folds[i + 1] || text.length;
999
995
  if (fold === 0)
1000
996
  res = `
1001
- ${indent}${text.slice(0, end2)}`;
997
+ ${indent}${text.slice(0, end)}`;
1002
998
  else {
1003
999
  if (mode === FOLD_QUOTED && escapedFolds[fold])
1004
1000
  res += `${text[fold]}\\`;
1005
1001
  res += `
1006
- ${indent}${text.slice(fold + 1, end2)}`;
1002
+ ${indent}${text.slice(fold + 1, end)}`;
1007
1003
  }
1008
1004
  }
1009
1005
  return res;
@@ -1034,7 +1030,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
1034
1030
  });
1035
1031
 
1036
1032
  // node_modules/yaml/dist/stringify/stringifyString.js
1037
- var require_stringifyString = __commonJS((exports) => {
1033
+ var require_stringifyString = __commonJS(function(exports) {
1038
1034
  var Scalar = require_Scalar();
1039
1035
  var foldFlowLines = require_foldFlowLines();
1040
1036
  var getFoldOptions = (ctx, isBlock) => ({
@@ -1332,7 +1328,7 @@ ${indent}`);
1332
1328
  });
1333
1329
 
1334
1330
  // node_modules/yaml/dist/stringify/stringify.js
1335
- var require_stringify = __commonJS((exports) => {
1331
+ var require_stringify = __commonJS(function(exports) {
1336
1332
  var anchors = require_anchors();
1337
1333
  var identity = require_identity();
1338
1334
  var stringifyComment = require_stringifyComment();
@@ -1453,7 +1449,7 @@ ${ctx.indent}${str}`;
1453
1449
  });
1454
1450
 
1455
1451
  // node_modules/yaml/dist/stringify/stringifyPair.js
1456
- var require_stringifyPair = __commonJS((exports) => {
1452
+ var require_stringifyPair = __commonJS(function(exports) {
1457
1453
  var identity = require_identity();
1458
1454
  var Scalar = require_Scalar();
1459
1455
  var stringify = require_stringify();
@@ -1589,7 +1585,7 @@ ${ctx.indent}`;
1589
1585
  });
1590
1586
 
1591
1587
  // node_modules/yaml/dist/log.js
1592
- var require_log = __commonJS((exports) => {
1588
+ var require_log = __commonJS(function(exports) {
1593
1589
  var node_process = __require("process");
1594
1590
  function debug(logLevel, ...messages) {
1595
1591
  if (logLevel === "debug")
@@ -1608,7 +1604,7 @@ var require_log = __commonJS((exports) => {
1608
1604
  });
1609
1605
 
1610
1606
  // node_modules/yaml/dist/schema/yaml-1.1/merge.js
1611
- var require_merge = __commonJS((exports) => {
1607
+ var require_merge = __commonJS(function(exports) {
1612
1608
  var identity = require_identity();
1613
1609
  var Scalar = require_Scalar();
1614
1610
  var MERGE_KEY = "<<";
@@ -1639,15 +1635,15 @@ var require_merge = __commonJS((exports) => {
1639
1635
  if (!identity.isMap(source))
1640
1636
  throw new Error("Merge sources must be maps or map aliases");
1641
1637
  const srcMap = source.toJSON(null, ctx, Map);
1642
- for (const [key, value2] of srcMap) {
1638
+ for (const [key, value] of srcMap) {
1643
1639
  if (map instanceof Map) {
1644
1640
  if (!map.has(key))
1645
- map.set(key, value2);
1641
+ map.set(key, value);
1646
1642
  } else if (map instanceof Set) {
1647
1643
  map.add(key);
1648
1644
  } else if (!Object.prototype.hasOwnProperty.call(map, key)) {
1649
1645
  Object.defineProperty(map, key, {
1650
- value: value2,
1646
+ value,
1651
1647
  writable: true,
1652
1648
  enumerable: true,
1653
1649
  configurable: true
@@ -1665,7 +1661,7 @@ var require_merge = __commonJS((exports) => {
1665
1661
  });
1666
1662
 
1667
1663
  // node_modules/yaml/dist/nodes/addPairToJSMap.js
1668
- var require_addPairToJSMap = __commonJS((exports) => {
1664
+ var require_addPairToJSMap = __commonJS(function(exports) {
1669
1665
  var log = require_log();
1670
1666
  var merge = require_merge();
1671
1667
  var stringify = require_stringify();
@@ -1726,7 +1722,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
1726
1722
  });
1727
1723
 
1728
1724
  // node_modules/yaml/dist/nodes/Pair.js
1729
- var require_Pair = __commonJS((exports) => {
1725
+ var require_Pair = __commonJS(function(exports) {
1730
1726
  var createNode = require_createNode();
1731
1727
  var stringifyPair = require_stringifyPair();
1732
1728
  var addPairToJSMap = require_addPairToJSMap();
@@ -1764,14 +1760,14 @@ var require_Pair = __commonJS((exports) => {
1764
1760
  });
1765
1761
 
1766
1762
  // node_modules/yaml/dist/stringify/stringifyCollection.js
1767
- var require_stringifyCollection = __commonJS((exports) => {
1763
+ var require_stringifyCollection = __commonJS(function(exports) {
1768
1764
  var identity = require_identity();
1769
1765
  var stringify = require_stringify();
1770
1766
  var stringifyComment = require_stringifyComment();
1771
1767
  function stringifyCollection(collection, ctx, options) {
1772
1768
  const flow = ctx.inFlow ?? collection.flow;
1773
- const stringify2 = flow ? stringifyFlowCollection : stringifyBlockCollection;
1774
- return stringify2(collection, ctx, options);
1769
+ const stringify = flow ? stringifyFlowCollection : stringifyBlockCollection;
1770
+ return stringify(collection, ctx, options);
1775
1771
  }
1776
1772
  function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, flowChars, itemIndent, onChompKeep, onComment }) {
1777
1773
  const { indent, options: { commentString } } = ctx;
@@ -1780,13 +1776,13 @@ var require_stringifyCollection = __commonJS((exports) => {
1780
1776
  const lines = [];
1781
1777
  for (let i = 0;i < items.length; ++i) {
1782
1778
  const item = items[i];
1783
- let comment2 = null;
1779
+ let comment = null;
1784
1780
  if (identity.isNode(item)) {
1785
1781
  if (!chompKeep && item.spaceBefore)
1786
1782
  lines.push("");
1787
1783
  addCommentBefore(ctx, lines, item.commentBefore, chompKeep);
1788
1784
  if (item.comment)
1789
- comment2 = item.comment;
1785
+ comment = item.comment;
1790
1786
  } else if (identity.isPair(item)) {
1791
1787
  const ik = identity.isNode(item.key) ? item.key : null;
1792
1788
  if (ik) {
@@ -1796,12 +1792,12 @@ var require_stringifyCollection = __commonJS((exports) => {
1796
1792
  }
1797
1793
  }
1798
1794
  chompKeep = false;
1799
- let str2 = stringify.stringify(item, itemCtx, () => comment2 = null, () => chompKeep = true);
1800
- if (comment2)
1801
- str2 += stringifyComment.lineComment(str2, itemIndent, commentString(comment2));
1802
- if (chompKeep && comment2)
1795
+ let str = stringify.stringify(item, itemCtx, () => comment = null, () => chompKeep = true);
1796
+ if (comment)
1797
+ str += stringifyComment.lineComment(str, itemIndent, commentString(comment));
1798
+ if (chompKeep && comment)
1803
1799
  chompKeep = false;
1804
- lines.push(blockItemPrefix + str2);
1800
+ lines.push(blockItemPrefix + str);
1805
1801
  }
1806
1802
  let str;
1807
1803
  if (lines.length === 0) {
@@ -1916,7 +1912,7 @@ ${indent}${end}`;
1916
1912
  });
1917
1913
 
1918
1914
  // node_modules/yaml/dist/nodes/YAMLMap.js
1919
- var require_YAMLMap = __commonJS((exports) => {
1915
+ var require_YAMLMap = __commonJS(function(exports) {
1920
1916
  var stringifyCollection = require_stringifyCollection();
1921
1917
  var addPairToJSMap = require_addPairToJSMap();
1922
1918
  var Collection = require_Collection();
@@ -2043,7 +2039,7 @@ var require_YAMLMap = __commonJS((exports) => {
2043
2039
  });
2044
2040
 
2045
2041
  // node_modules/yaml/dist/schema/common/map.js
2046
- var require_map = __commonJS((exports) => {
2042
+ var require_map = __commonJS(function(exports) {
2047
2043
  var identity = require_identity();
2048
2044
  var YAMLMap = require_YAMLMap();
2049
2045
  var map = {
@@ -2051,10 +2047,10 @@ var require_map = __commonJS((exports) => {
2051
2047
  default: true,
2052
2048
  nodeClass: YAMLMap.YAMLMap,
2053
2049
  tag: "tag:yaml.org,2002:map",
2054
- resolve(map2, onError) {
2055
- if (!identity.isMap(map2))
2050
+ resolve(map, onError) {
2051
+ if (!identity.isMap(map))
2056
2052
  onError("Expected a mapping for this tag");
2057
- return map2;
2053
+ return map;
2058
2054
  },
2059
2055
  createNode: (schema, obj, ctx) => YAMLMap.YAMLMap.from(schema, obj, ctx)
2060
2056
  };
@@ -2062,7 +2058,7 @@ var require_map = __commonJS((exports) => {
2062
2058
  });
2063
2059
 
2064
2060
  // node_modules/yaml/dist/nodes/YAMLSeq.js
2065
- var require_YAMLSeq = __commonJS((exports) => {
2061
+ var require_YAMLSeq = __commonJS(function(exports) {
2066
2062
  var createNode = require_createNode();
2067
2063
  var stringifyCollection = require_stringifyCollection();
2068
2064
  var Collection = require_Collection();
@@ -2155,7 +2151,7 @@ var require_YAMLSeq = __commonJS((exports) => {
2155
2151
  });
2156
2152
 
2157
2153
  // node_modules/yaml/dist/schema/common/seq.js
2158
- var require_seq = __commonJS((exports) => {
2154
+ var require_seq = __commonJS(function(exports) {
2159
2155
  var identity = require_identity();
2160
2156
  var YAMLSeq = require_YAMLSeq();
2161
2157
  var seq = {
@@ -2163,10 +2159,10 @@ var require_seq = __commonJS((exports) => {
2163
2159
  default: true,
2164
2160
  nodeClass: YAMLSeq.YAMLSeq,
2165
2161
  tag: "tag:yaml.org,2002:seq",
2166
- resolve(seq2, onError) {
2167
- if (!identity.isSeq(seq2))
2162
+ resolve(seq, onError) {
2163
+ if (!identity.isSeq(seq))
2168
2164
  onError("Expected a sequence for this tag");
2169
- return seq2;
2165
+ return seq;
2170
2166
  },
2171
2167
  createNode: (schema, obj, ctx) => YAMLSeq.YAMLSeq.from(schema, obj, ctx)
2172
2168
  };
@@ -2174,7 +2170,7 @@ var require_seq = __commonJS((exports) => {
2174
2170
  });
2175
2171
 
2176
2172
  // node_modules/yaml/dist/schema/common/string.js
2177
- var require_string = __commonJS((exports) => {
2173
+ var require_string = __commonJS(function(exports) {
2178
2174
  var stringifyString = require_stringifyString();
2179
2175
  var string = {
2180
2176
  identify: (value) => typeof value === "string",
@@ -2190,7 +2186,7 @@ var require_string = __commonJS((exports) => {
2190
2186
  });
2191
2187
 
2192
2188
  // node_modules/yaml/dist/schema/common/null.js
2193
- var require_null = __commonJS((exports) => {
2189
+ var require_null = __commonJS(function(exports) {
2194
2190
  var Scalar = require_Scalar();
2195
2191
  var nullTag = {
2196
2192
  identify: (value) => value == null,
@@ -2205,7 +2201,7 @@ var require_null = __commonJS((exports) => {
2205
2201
  });
2206
2202
 
2207
2203
  // node_modules/yaml/dist/schema/core/bool.js
2208
- var require_bool = __commonJS((exports) => {
2204
+ var require_bool = __commonJS(function(exports) {
2209
2205
  var Scalar = require_Scalar();
2210
2206
  var boolTag = {
2211
2207
  identify: (value) => typeof value === "boolean",
@@ -2226,7 +2222,7 @@ var require_bool = __commonJS((exports) => {
2226
2222
  });
2227
2223
 
2228
2224
  // node_modules/yaml/dist/stringify/stringifyNumber.js
2229
- var require_stringifyNumber = __commonJS((exports) => {
2225
+ var require_stringifyNumber = __commonJS(function(exports) {
2230
2226
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
2231
2227
  if (typeof value === "bigint")
2232
2228
  return String(value);
@@ -2250,7 +2246,7 @@ var require_stringifyNumber = __commonJS((exports) => {
2250
2246
  });
2251
2247
 
2252
2248
  // node_modules/yaml/dist/schema/core/float.js
2253
- var require_float = __commonJS((exports) => {
2249
+ var require_float = __commonJS(function(exports) {
2254
2250
  var Scalar = require_Scalar();
2255
2251
  var stringifyNumber = require_stringifyNumber();
2256
2252
  var floatNaN = {
@@ -2293,7 +2289,7 @@ var require_float = __commonJS((exports) => {
2293
2289
  });
2294
2290
 
2295
2291
  // node_modules/yaml/dist/schema/core/int.js
2296
- var require_int = __commonJS((exports) => {
2292
+ var require_int = __commonJS(function(exports) {
2297
2293
  var stringifyNumber = require_stringifyNumber();
2298
2294
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
2299
2295
  var intResolve = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
@@ -2335,7 +2331,7 @@ var require_int = __commonJS((exports) => {
2335
2331
  });
2336
2332
 
2337
2333
  // node_modules/yaml/dist/schema/core/schema.js
2338
- var require_schema = __commonJS((exports) => {
2334
+ var require_schema = __commonJS(function(exports) {
2339
2335
  var map = require_map();
2340
2336
  var _null = require_null();
2341
2337
  var seq = require_seq();
@@ -2360,7 +2356,7 @@ var require_schema = __commonJS((exports) => {
2360
2356
  });
2361
2357
 
2362
2358
  // node_modules/yaml/dist/schema/json/schema.js
2363
- var require_schema2 = __commonJS((exports) => {
2359
+ var require_schema2 = __commonJS(function(exports) {
2364
2360
  var Scalar = require_Scalar();
2365
2361
  var map = require_map();
2366
2362
  var seq = require_seq();
@@ -2424,7 +2420,7 @@ var require_schema2 = __commonJS((exports) => {
2424
2420
  });
2425
2421
 
2426
2422
  // node_modules/yaml/dist/schema/yaml-1.1/binary.js
2427
- var require_binary = __commonJS((exports) => {
2423
+ var require_binary = __commonJS(function(exports) {
2428
2424
  var node_buffer = __require("buffer");
2429
2425
  var Scalar = require_Scalar();
2430
2426
  var stringifyString = require_stringifyString();
@@ -2479,7 +2475,7 @@ var require_binary = __commonJS((exports) => {
2479
2475
  });
2480
2476
 
2481
2477
  // node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2482
- var require_pairs = __commonJS((exports) => {
2478
+ var require_pairs = __commonJS(function(exports) {
2483
2479
  var identity = require_identity();
2484
2480
  var Pair = require_Pair();
2485
2481
  var Scalar = require_Scalar();
@@ -2512,8 +2508,8 @@ ${cn.comment}` : item.comment;
2512
2508
  }
2513
2509
  function createPairs(schema, iterable, ctx) {
2514
2510
  const { replacer } = ctx;
2515
- const pairs2 = new YAMLSeq.YAMLSeq(schema);
2516
- pairs2.tag = "tag:yaml.org,2002:pairs";
2511
+ const pairs = new YAMLSeq.YAMLSeq(schema);
2512
+ pairs.tag = "tag:yaml.org,2002:pairs";
2517
2513
  let i = 0;
2518
2514
  if (iterable && Symbol.iterator in Object(iterable))
2519
2515
  for (let it of iterable) {
@@ -2537,9 +2533,9 @@ ${cn.comment}` : item.comment;
2537
2533
  } else {
2538
2534
  key = it;
2539
2535
  }
2540
- pairs2.items.push(Pair.createPair(key, value, ctx));
2536
+ pairs.items.push(Pair.createPair(key, value, ctx));
2541
2537
  }
2542
- return pairs2;
2538
+ return pairs;
2543
2539
  }
2544
2540
  var pairs = {
2545
2541
  collection: "seq",
@@ -2554,7 +2550,7 @@ ${cn.comment}` : item.comment;
2554
2550
  });
2555
2551
 
2556
2552
  // node_modules/yaml/dist/schema/yaml-1.1/omap.js
2557
- var require_omap = __commonJS((exports) => {
2553
+ var require_omap = __commonJS(function(exports) {
2558
2554
  var identity = require_identity();
2559
2555
  var toJS = require_toJS();
2560
2556
  var YAMLMap = require_YAMLMap();
@@ -2593,9 +2589,9 @@ var require_omap = __commonJS((exports) => {
2593
2589
  }
2594
2590
  static from(schema, iterable, ctx) {
2595
2591
  const pairs$1 = pairs.createPairs(schema, iterable, ctx);
2596
- const omap2 = new this;
2597
- omap2.items = pairs$1.items;
2598
- return omap2;
2592
+ const omap = new this;
2593
+ omap.items = pairs$1.items;
2594
+ return omap;
2599
2595
  }
2600
2596
  }
2601
2597
  YAMLOMap.tag = "tag:yaml.org,2002:omap";
@@ -2626,7 +2622,7 @@ var require_omap = __commonJS((exports) => {
2626
2622
  });
2627
2623
 
2628
2624
  // node_modules/yaml/dist/schema/yaml-1.1/bool.js
2629
- var require_bool2 = __commonJS((exports) => {
2625
+ var require_bool2 = __commonJS(function(exports) {
2630
2626
  var Scalar = require_Scalar();
2631
2627
  function boolStringify({ value, source }, ctx) {
2632
2628
  const boolObj = value ? trueTag : falseTag;
@@ -2655,7 +2651,7 @@ var require_bool2 = __commonJS((exports) => {
2655
2651
  });
2656
2652
 
2657
2653
  // node_modules/yaml/dist/schema/yaml-1.1/float.js
2658
- var require_float2 = __commonJS((exports) => {
2654
+ var require_float2 = __commonJS(function(exports) {
2659
2655
  var Scalar = require_Scalar();
2660
2656
  var stringifyNumber = require_stringifyNumber();
2661
2657
  var floatNaN = {
@@ -2701,7 +2697,7 @@ var require_float2 = __commonJS((exports) => {
2701
2697
  });
2702
2698
 
2703
2699
  // node_modules/yaml/dist/schema/yaml-1.1/int.js
2704
- var require_int2 = __commonJS((exports) => {
2700
+ var require_int2 = __commonJS(function(exports) {
2705
2701
  var stringifyNumber = require_stringifyNumber();
2706
2702
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
2707
2703
  function intResolve(str, offset, radix, { intAsBigInt }) {
@@ -2721,8 +2717,8 @@ var require_int2 = __commonJS((exports) => {
2721
2717
  str = `0x${str}`;
2722
2718
  break;
2723
2719
  }
2724
- const n2 = BigInt(str);
2725
- return sign === "-" ? BigInt(-1) * n2 : n2;
2720
+ const n = BigInt(str);
2721
+ return sign === "-" ? BigInt(-1) * n : n;
2726
2722
  }
2727
2723
  const n = parseInt(str, radix);
2728
2724
  return sign === "-" ? -1 * n : n;
@@ -2777,7 +2773,7 @@ var require_int2 = __commonJS((exports) => {
2777
2773
  });
2778
2774
 
2779
2775
  // node_modules/yaml/dist/schema/yaml-1.1/set.js
2780
- var require_set = __commonJS((exports) => {
2776
+ var require_set = __commonJS(function(exports) {
2781
2777
  var identity = require_identity();
2782
2778
  var Pair = require_Pair();
2783
2779
  var YAMLMap = require_YAMLMap();
@@ -2826,14 +2822,14 @@ var require_set = __commonJS((exports) => {
2826
2822
  }
2827
2823
  static from(schema, iterable, ctx) {
2828
2824
  const { replacer } = ctx;
2829
- const set2 = new this(schema);
2825
+ const set = new this(schema);
2830
2826
  if (iterable && Symbol.iterator in Object(iterable))
2831
2827
  for (let value of iterable) {
2832
2828
  if (typeof replacer === "function")
2833
2829
  value = replacer.call(iterable, value, value);
2834
- set2.items.push(Pair.createPair(value, null, ctx));
2830
+ set.items.push(Pair.createPair(value, null, ctx));
2835
2831
  }
2836
- return set2;
2832
+ return set;
2837
2833
  }
2838
2834
  }
2839
2835
  YAMLSet.tag = "tag:yaml.org,2002:set";
@@ -2860,13 +2856,13 @@ var require_set = __commonJS((exports) => {
2860
2856
  });
2861
2857
 
2862
2858
  // node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
2863
- var require_timestamp = __commonJS((exports) => {
2859
+ var require_timestamp = __commonJS(function(exports) {
2864
2860
  var stringifyNumber = require_stringifyNumber();
2865
2861
  function parseSexagesimal(str, asBigInt) {
2866
2862
  const sign = str[0];
2867
2863
  const parts = sign === "-" || sign === "+" ? str.substring(1) : str;
2868
2864
  const num = (n) => asBigInt ? BigInt(n) : Number(n);
2869
- const res = parts.replace(/_/g, "").split(":").reduce((res2, p) => res2 * num(60) + num(p), num(0));
2865
+ const res = parts.replace(/_/g, "").split(":").reduce((res, p) => res * num(60) + num(p), num(0));
2870
2866
  return sign === "-" ? num(-1) * res : res;
2871
2867
  }
2872
2868
  function stringifySexagesimal(node) {
@@ -2942,7 +2938,7 @@ var require_timestamp = __commonJS((exports) => {
2942
2938
  });
2943
2939
 
2944
2940
  // node_modules/yaml/dist/schema/yaml-1.1/schema.js
2945
- var require_schema3 = __commonJS((exports) => {
2941
+ var require_schema3 = __commonJS(function(exports) {
2946
2942
  var map = require_map();
2947
2943
  var _null = require_null();
2948
2944
  var seq = require_seq();
@@ -2983,7 +2979,7 @@ var require_schema3 = __commonJS((exports) => {
2983
2979
  });
2984
2980
 
2985
2981
  // node_modules/yaml/dist/schema/tags.js
2986
- var require_tags = __commonJS((exports) => {
2982
+ var require_tags = __commonJS(function(exports) {
2987
2983
  var map = require_map();
2988
2984
  var _null = require_null();
2989
2985
  var seq = require_seq();
@@ -3057,16 +3053,16 @@ var require_tags = __commonJS((exports) => {
3057
3053
  }
3058
3054
  if (addMergeTag)
3059
3055
  tags = tags.concat(merge.merge);
3060
- return tags.reduce((tags2, tag) => {
3056
+ return tags.reduce((tags, tag) => {
3061
3057
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
3062
3058
  if (!tagObj) {
3063
3059
  const tagName = JSON.stringify(tag);
3064
3060
  const keys = Object.keys(tagsByName).map((key) => JSON.stringify(key)).join(", ");
3065
3061
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
3066
3062
  }
3067
- if (!tags2.includes(tagObj))
3068
- tags2.push(tagObj);
3069
- return tags2;
3063
+ if (!tags.includes(tagObj))
3064
+ tags.push(tagObj);
3065
+ return tags;
3070
3066
  }, []);
3071
3067
  }
3072
3068
  exports.coreKnownTags = coreKnownTags;
@@ -3074,7 +3070,7 @@ var require_tags = __commonJS((exports) => {
3074
3070
  });
3075
3071
 
3076
3072
  // node_modules/yaml/dist/schema/Schema.js
3077
- var require_Schema = __commonJS((exports) => {
3073
+ var require_Schema = __commonJS(function(exports) {
3078
3074
  var identity = require_identity();
3079
3075
  var map = require_map();
3080
3076
  var seq = require_seq();
@@ -3104,7 +3100,7 @@ var require_Schema = __commonJS((exports) => {
3104
3100
  });
3105
3101
 
3106
3102
  // node_modules/yaml/dist/stringify/stringifyDocument.js
3107
- var require_stringifyDocument = __commonJS((exports) => {
3103
+ var require_stringifyDocument = __commonJS(function(exports) {
3108
3104
  var identity = require_identity();
3109
3105
  var stringify = require_stringify();
3110
3106
  var stringifyComment = require_stringifyComment();
@@ -3184,7 +3180,7 @@ var require_stringifyDocument = __commonJS((exports) => {
3184
3180
  });
3185
3181
 
3186
3182
  // node_modules/yaml/dist/doc/Document.js
3187
- var require_Document = __commonJS((exports) => {
3183
+ var require_Document = __commonJS(function(exports) {
3188
3184
  var Alias = require_Alias();
3189
3185
  var Collection = require_Collection();
3190
3186
  var identity = require_identity();
@@ -3393,8 +3389,8 @@ var require_Document = __commonJS((exports) => {
3393
3389
  };
3394
3390
  const res = toJS.toJS(this.contents, jsonArg ?? "", ctx);
3395
3391
  if (typeof onAnchor === "function")
3396
- for (const { count, res: res2 } of ctx.anchors.values())
3397
- onAnchor(res2, count);
3392
+ for (const { count, res } of ctx.anchors.values())
3393
+ onAnchor(res, count);
3398
3394
  return typeof reviver === "function" ? applyReviver.applyReviver(reviver, { "": res }, "", res) : res;
3399
3395
  }
3400
3396
  toJSON(jsonArg, onAnchor) {
@@ -3419,7 +3415,7 @@ var require_Document = __commonJS((exports) => {
3419
3415
  });
3420
3416
 
3421
3417
  // node_modules/yaml/dist/errors.js
3422
- var require_errors = __commonJS((exports) => {
3418
+ var require_errors = __commonJS(function(exports) {
3423
3419
  class YAMLError extends Error {
3424
3420
  constructor(name, pos, code, message) {
3425
3421
  super();
@@ -3484,7 +3480,7 @@ ${pointer}
3484
3480
  });
3485
3481
 
3486
3482
  // node_modules/yaml/dist/compose/resolve-props.js
3487
- var require_resolve_props = __commonJS((exports) => {
3483
+ var require_resolve_props = __commonJS(function(exports) {
3488
3484
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3489
3485
  let spaceBefore = false;
3490
3486
  let atNewline = startOnNewline;
@@ -3614,7 +3610,7 @@ var require_resolve_props = __commonJS((exports) => {
3614
3610
  });
3615
3611
 
3616
3612
  // node_modules/yaml/dist/compose/util-contains-newline.js
3617
- var require_util_contains_newline = __commonJS((exports) => {
3613
+ var require_util_contains_newline = __commonJS(function(exports) {
3618
3614
  function containsNewline(key) {
3619
3615
  if (!key)
3620
3616
  return null;
@@ -3654,7 +3650,7 @@ var require_util_contains_newline = __commonJS((exports) => {
3654
3650
  });
3655
3651
 
3656
3652
  // node_modules/yaml/dist/compose/util-flow-indent-check.js
3657
- var require_util_flow_indent_check = __commonJS((exports) => {
3653
+ var require_util_flow_indent_check = __commonJS(function(exports) {
3658
3654
  var utilContainsNewline = require_util_contains_newline();
3659
3655
  function flowIndentCheck(indent, fc, onError) {
3660
3656
  if (fc?.type === "flow-collection") {
@@ -3669,7 +3665,7 @@ var require_util_flow_indent_check = __commonJS((exports) => {
3669
3665
  });
3670
3666
 
3671
3667
  // node_modules/yaml/dist/compose/util-map-includes.js
3672
- var require_util_map_includes = __commonJS((exports) => {
3668
+ var require_util_map_includes = __commonJS(function(exports) {
3673
3669
  var identity = require_identity();
3674
3670
  function mapIncludes(ctx, items, search) {
3675
3671
  const { uniqueKeys } = ctx.options;
@@ -3682,7 +3678,7 @@ var require_util_map_includes = __commonJS((exports) => {
3682
3678
  });
3683
3679
 
3684
3680
  // node_modules/yaml/dist/compose/resolve-block-map.js
3685
- var require_resolve_block_map = __commonJS((exports) => {
3681
+ var require_resolve_block_map = __commonJS(function(exports) {
3686
3682
  var Pair = require_Pair();
3687
3683
  var YAMLMap = require_YAMLMap();
3688
3684
  var resolveProps = require_resolve_props();
@@ -3789,7 +3785,7 @@ var require_resolve_block_map = __commonJS((exports) => {
3789
3785
  });
3790
3786
 
3791
3787
  // node_modules/yaml/dist/compose/resolve-block-seq.js
3792
- var require_resolve_block_seq = __commonJS((exports) => {
3788
+ var require_resolve_block_seq = __commonJS(function(exports) {
3793
3789
  var YAMLSeq = require_YAMLSeq();
3794
3790
  var resolveProps = require_resolve_props();
3795
3791
  var utilFlowIndentCheck = require_util_flow_indent_check();
@@ -3837,7 +3833,7 @@ var require_resolve_block_seq = __commonJS((exports) => {
3837
3833
  });
3838
3834
 
3839
3835
  // node_modules/yaml/dist/compose/resolve-end.js
3840
- var require_resolve_end = __commonJS((exports) => {
3836
+ var require_resolve_end = __commonJS(function(exports) {
3841
3837
  function resolveEnd(end, offset, reqSpace, onError) {
3842
3838
  let comment = "";
3843
3839
  if (end) {
@@ -3877,7 +3873,7 @@ var require_resolve_end = __commonJS((exports) => {
3877
3873
  });
3878
3874
 
3879
3875
  // node_modules/yaml/dist/compose/resolve-flow-collection.js
3880
- var require_resolve_flow_collection = __commonJS((exports) => {
3876
+ var require_resolve_flow_collection = __commonJS(function(exports) {
3881
3877
  var identity = require_identity();
3882
3878
  var Pair = require_Pair();
3883
3879
  var YAMLMap = require_YAMLMap();
@@ -4068,7 +4064,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
4068
4064
  });
4069
4065
 
4070
4066
  // node_modules/yaml/dist/compose/compose-collection.js
4071
- var require_compose_collection = __commonJS((exports) => {
4067
+ var require_compose_collection = __commonJS(function(exports) {
4072
4068
  var identity = require_identity();
4073
4069
  var Scalar = require_Scalar();
4074
4070
  var YAMLMap = require_YAMLMap();
@@ -4130,7 +4126,7 @@ var require_compose_collection = __commonJS((exports) => {
4130
4126
  });
4131
4127
 
4132
4128
  // node_modules/yaml/dist/compose/resolve-block-scalar.js
4133
- var require_resolve_block_scalar = __commonJS((exports) => {
4129
+ var require_resolve_block_scalar = __commonJS(function(exports) {
4134
4130
  var Scalar = require_Scalar();
4135
4131
  function resolveBlockScalar(ctx, scalar, onError) {
4136
4132
  const start = scalar.offset;
@@ -4148,12 +4144,12 @@ var require_resolve_block_scalar = __commonJS((exports) => {
4148
4144
  break;
4149
4145
  }
4150
4146
  if (chompStart === 0) {
4151
- const value2 = header.chomp === "+" && lines.length > 0 ? `
4147
+ const value = header.chomp === "+" && lines.length > 0 ? `
4152
4148
  `.repeat(Math.max(1, lines.length - 1)) : "";
4153
- let end2 = start + header.length;
4149
+ let end = start + header.length;
4154
4150
  if (scalar.source)
4155
- end2 += scalar.source.length;
4156
- return { value: value2, type, comment: header.comment, range: [start, end2, end2] };
4151
+ end += scalar.source.length;
4152
+ return { value, type, comment: header.comment, range: [start, end, end] };
4157
4153
  }
4158
4154
  let trimIndent = scalar.indent + header.indent;
4159
4155
  let offset = scalar.offset + header.length;
@@ -4323,7 +4319,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
4323
4319
  });
4324
4320
 
4325
4321
  // node_modules/yaml/dist/compose/resolve-flow-scalar.js
4326
- var require_resolve_flow_scalar = __commonJS((exports) => {
4322
+ var require_resolve_flow_scalar = __commonJS(function(exports) {
4327
4323
  var Scalar = require_Scalar();
4328
4324
  var resolveEnd = require_resolve_end();
4329
4325
  function resolveFlowScalar(scalar, strict, onError) {
@@ -4539,7 +4535,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
4539
4535
  });
4540
4536
 
4541
4537
  // node_modules/yaml/dist/compose/compose-scalar.js
4542
- var require_compose_scalar = __commonJS((exports) => {
4538
+ var require_compose_scalar = __commonJS(function(exports) {
4543
4539
  var identity = require_identity();
4544
4540
  var Scalar = require_Scalar();
4545
4541
  var resolveBlockScalar = require_resolve_block_scalar();
@@ -4601,9 +4597,9 @@ var require_compose_scalar = __commonJS((exports) => {
4601
4597
  return schema[identity.SCALAR];
4602
4598
  }
4603
4599
  function findScalarTagByTest({ atKey, directives, schema }, value, token, onError) {
4604
- const tag = schema.tags.find((tag2) => (tag2.default === true || atKey && tag2.default === "key") && tag2.test?.test(value)) || schema[identity.SCALAR];
4600
+ const tag = schema.tags.find((tag) => (tag.default === true || atKey && tag.default === "key") && tag.test?.test(value)) || schema[identity.SCALAR];
4605
4601
  if (schema.compat) {
4606
- const compat = schema.compat.find((tag2) => tag2.default && tag2.test?.test(value)) ?? schema[identity.SCALAR];
4602
+ const compat = schema.compat.find((tag) => tag.default && tag.test?.test(value)) ?? schema[identity.SCALAR];
4607
4603
  if (tag.tag !== compat.tag) {
4608
4604
  const ts = directives.tagString(tag.tag);
4609
4605
  const cs = directives.tagString(compat.tag);
@@ -4617,7 +4613,7 @@ var require_compose_scalar = __commonJS((exports) => {
4617
4613
  });
4618
4614
 
4619
4615
  // node_modules/yaml/dist/compose/util-empty-scalar-position.js
4620
- var require_util_empty_scalar_position = __commonJS((exports) => {
4616
+ var require_util_empty_scalar_position = __commonJS(function(exports) {
4621
4617
  function emptyScalarPosition(offset, before, pos) {
4622
4618
  if (before) {
4623
4619
  pos ?? (pos = before.length);
@@ -4644,7 +4640,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
4644
4640
  });
4645
4641
 
4646
4642
  // node_modules/yaml/dist/compose/compose-node.js
4647
- var require_compose_node = __commonJS((exports) => {
4643
+ var require_compose_node = __commonJS(function(exports) {
4648
4644
  var Alias = require_Alias();
4649
4645
  var identity = require_identity();
4650
4646
  var composeCollection = require_compose_collection();
@@ -4747,7 +4743,7 @@ var require_compose_node = __commonJS((exports) => {
4747
4743
  });
4748
4744
 
4749
4745
  // node_modules/yaml/dist/compose/compose-doc.js
4750
- var require_compose_doc = __commonJS((exports) => {
4746
+ var require_compose_doc = __commonJS(function(exports) {
4751
4747
  var Document = require_Document();
4752
4748
  var composeNode = require_compose_node();
4753
4749
  var resolveEnd = require_resolve_end();
@@ -4787,7 +4783,7 @@ var require_compose_doc = __commonJS((exports) => {
4787
4783
  });
4788
4784
 
4789
4785
  // node_modules/yaml/dist/compose/composer.js
4790
- var require_composer = __commonJS((exports) => {
4786
+ var require_composer = __commonJS(function(exports) {
4791
4787
  var node_process = __require("process");
4792
4788
  var directives = require_directives();
4793
4789
  var Document = require_Document();
@@ -4978,7 +4974,7 @@ ${end.comment}` : end.comment;
4978
4974
  });
4979
4975
 
4980
4976
  // node_modules/yaml/dist/parse/cst-scalar.js
4981
- var require_cst_scalar = __commonJS((exports) => {
4977
+ var require_cst_scalar = __commonJS(function(exports) {
4982
4978
  var resolveBlockScalar = require_resolve_block_scalar();
4983
4979
  var resolveFlowScalar = require_resolve_flow_scalar();
4984
4980
  var errors = require_errors();
@@ -5168,7 +5164,7 @@ var require_cst_scalar = __commonJS((exports) => {
5168
5164
  });
5169
5165
 
5170
5166
  // node_modules/yaml/dist/parse/cst-stringify.js
5171
- var require_cst_stringify = __commonJS((exports) => {
5167
+ var require_cst_stringify = __commonJS(function(exports) {
5172
5168
  var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
5173
5169
  function stringifyToken(token) {
5174
5170
  switch (token.type) {
@@ -5226,7 +5222,7 @@ var require_cst_stringify = __commonJS((exports) => {
5226
5222
  });
5227
5223
 
5228
5224
  // node_modules/yaml/dist/parse/cst-visit.js
5229
- var require_cst_visit = __commonJS((exports) => {
5225
+ var require_cst_visit = __commonJS(function(exports) {
5230
5226
  var BREAK = Symbol("break visit");
5231
5227
  var SKIP = Symbol("skip children");
5232
5228
  var REMOVE = Symbol("remove item");
@@ -5285,7 +5281,7 @@ var require_cst_visit = __commonJS((exports) => {
5285
5281
  });
5286
5282
 
5287
5283
  // node_modules/yaml/dist/parse/cst.js
5288
- var require_cst = __commonJS((exports) => {
5284
+ var require_cst = __commonJS(function(exports) {
5289
5285
  var cstScalar = require_cst_scalar();
5290
5286
  var cstStringify = require_cst_stringify();
5291
5287
  var cstVisit = require_cst_visit();
@@ -5386,7 +5382,7 @@ var require_cst = __commonJS((exports) => {
5386
5382
  });
5387
5383
 
5388
5384
  // node_modules/yaml/dist/parse/lexer.js
5389
- var require_lexer = __commonJS((exports) => {
5385
+ var require_lexer = __commonJS(function(exports) {
5390
5386
  var cst = require_cst();
5391
5387
  function isEmpty(ch) {
5392
5388
  switch (ch) {
@@ -5759,18 +5755,18 @@ var require_lexer = __commonJS((exports) => {
5759
5755
  let indent = 0;
5760
5756
  let ch;
5761
5757
  loop:
5762
- for (let i2 = this.pos;ch = this.buffer[i2]; ++i2) {
5758
+ for (let i = this.pos;ch = this.buffer[i]; ++i) {
5763
5759
  switch (ch) {
5764
5760
  case " ":
5765
5761
  indent += 1;
5766
5762
  break;
5767
5763
  case `
5768
5764
  `:
5769
- nl = i2;
5765
+ nl = i;
5770
5766
  indent = 0;
5771
5767
  break;
5772
5768
  case "\r": {
5773
- const next = this.buffer[i2 + 1];
5769
+ const next = this.buffer[i + 1];
5774
5770
  if (!next && !this.atEnd)
5775
5771
  return this.setNext("block-scalar");
5776
5772
  if (next === `
@@ -5813,16 +5809,16 @@ var require_lexer = __commonJS((exports) => {
5813
5809
  nl = i - 1;
5814
5810
  } else if (!this.blockScalarKeep) {
5815
5811
  do {
5816
- let i2 = nl - 1;
5817
- let ch2 = this.buffer[i2];
5818
- if (ch2 === "\r")
5819
- ch2 = this.buffer[--i2];
5820
- const lastChar = i2;
5821
- while (ch2 === " ")
5822
- ch2 = this.buffer[--i2];
5823
- if (ch2 === `
5824
- ` && i2 >= this.pos && i2 + 1 + indent > lastChar)
5825
- nl = i2;
5812
+ let i = nl - 1;
5813
+ let ch = this.buffer[i];
5814
+ if (ch === "\r")
5815
+ ch = this.buffer[--i];
5816
+ const lastChar = i;
5817
+ while (ch === " ")
5818
+ ch = this.buffer[--i];
5819
+ if (ch === `
5820
+ ` && i >= this.pos && i + 1 + indent > lastChar)
5821
+ nl = i;
5826
5822
  else
5827
5823
  break;
5828
5824
  } while (true);
@@ -5983,7 +5979,7 @@ var require_lexer = __commonJS((exports) => {
5983
5979
  });
5984
5980
 
5985
5981
  // node_modules/yaml/dist/parse/line-counter.js
5986
- var require_line_counter = __commonJS((exports) => {
5982
+ var require_line_counter = __commonJS(function(exports) {
5987
5983
  class LineCounter {
5988
5984
  constructor() {
5989
5985
  this.lineStarts = [];
@@ -6011,7 +6007,7 @@ var require_line_counter = __commonJS((exports) => {
6011
6007
  });
6012
6008
 
6013
6009
  // node_modules/yaml/dist/parse/parser.js
6014
- var require_parser = __commonJS((exports) => {
6010
+ var require_parser = __commonJS(function(exports) {
6015
6011
  var node_process = __require("process");
6016
6012
  var cst = require_cst();
6017
6013
  var lexer = require_lexer();
@@ -6509,12 +6505,12 @@ var require_parser = __commonJS((exports) => {
6509
6505
  if (includesToken(it.start, "newline")) {
6510
6506
  Object.assign(it, { key: null, sep: [this.sourceToken] });
6511
6507
  } else {
6512
- const start2 = getFirstKeyStartProps(it.start);
6508
+ const start = getFirstKeyStartProps(it.start);
6513
6509
  this.stack.push({
6514
6510
  type: "block-map",
6515
6511
  offset: this.offset,
6516
6512
  indent: this.indent,
6517
- items: [{ start: start2, key: null, sep: [this.sourceToken] }]
6513
+ items: [{ start, key: null, sep: [this.sourceToken] }]
6518
6514
  });
6519
6515
  }
6520
6516
  } else if (it.value) {
@@ -6527,7 +6523,7 @@ var require_parser = __commonJS((exports) => {
6527
6523
  items: [{ start, key: null, sep: [this.sourceToken] }]
6528
6524
  });
6529
6525
  } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
6530
- const start2 = getFirstKeyStartProps(it.start);
6526
+ const start = getFirstKeyStartProps(it.start);
6531
6527
  const key = it.key;
6532
6528
  const sep = it.sep;
6533
6529
  sep.push(this.sourceToken);
@@ -6537,7 +6533,7 @@ var require_parser = __commonJS((exports) => {
6537
6533
  type: "block-map",
6538
6534
  offset: this.offset,
6539
6535
  indent: this.indent,
6540
- items: [{ start: start2, key, sep }]
6536
+ items: [{ start, key, sep }]
6541
6537
  });
6542
6538
  } else if (start.length > 0) {
6543
6539
  it.sep = it.sep.concat(start, this.sourceToken);
@@ -6867,7 +6863,7 @@ var require_parser = __commonJS((exports) => {
6867
6863
  });
6868
6864
 
6869
6865
  // node_modules/yaml/dist/public-api.js
6870
- var require_public_api = __commonJS((exports) => {
6866
+ var require_public_api = __commonJS(function(exports) {
6871
6867
  var composer = require_composer();
6872
6868
  var Document = require_Document();
6873
6869
  var errors = require_errors();
@@ -6881,22 +6877,22 @@ var require_public_api = __commonJS((exports) => {
6881
6877
  return { lineCounter: lineCounter$1, prettyErrors };
6882
6878
  }
6883
6879
  function parseAllDocuments(source, options = {}) {
6884
- const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options);
6885
- const parser$1 = new parser.Parser(lineCounter2?.addNewLine);
6880
+ const { lineCounter, prettyErrors } = parseOptions(options);
6881
+ const parser$1 = new parser.Parser(lineCounter?.addNewLine);
6886
6882
  const composer$1 = new composer.Composer(options);
6887
6883
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
6888
- if (prettyErrors && lineCounter2)
6884
+ if (prettyErrors && lineCounter)
6889
6885
  for (const doc of docs) {
6890
- doc.errors.forEach(errors.prettifyError(source, lineCounter2));
6891
- doc.warnings.forEach(errors.prettifyError(source, lineCounter2));
6886
+ doc.errors.forEach(errors.prettifyError(source, lineCounter));
6887
+ doc.warnings.forEach(errors.prettifyError(source, lineCounter));
6892
6888
  }
6893
6889
  if (docs.length > 0)
6894
6890
  return docs;
6895
6891
  return Object.assign([], { empty: true }, composer$1.streamInfo());
6896
6892
  }
6897
6893
  function parseDocument(source, options = {}) {
6898
- const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options);
6899
- const parser$1 = new parser.Parser(lineCounter2?.addNewLine);
6894
+ const { lineCounter, prettyErrors } = parseOptions(options);
6895
+ const parser$1 = new parser.Parser(lineCounter?.addNewLine);
6900
6896
  const composer$1 = new composer.Composer(options);
6901
6897
  let doc = null;
6902
6898
  for (const _doc of composer$1.compose(parser$1.parse(source), true, source.length)) {
@@ -6907,9 +6903,9 @@ var require_public_api = __commonJS((exports) => {
6907
6903
  break;
6908
6904
  }
6909
6905
  }
6910
- if (prettyErrors && lineCounter2) {
6911
- doc.errors.forEach(errors.prettifyError(source, lineCounter2));
6912
- doc.warnings.forEach(errors.prettifyError(source, lineCounter2));
6906
+ if (prettyErrors && lineCounter) {
6907
+ doc.errors.forEach(errors.prettifyError(source, lineCounter));
6908
+ doc.warnings.forEach(errors.prettifyError(source, lineCounter));
6913
6909
  }
6914
6910
  return doc;
6915
6911
  }
@@ -7021,7 +7017,11 @@ var init_workflows = __esm(() => {
7021
7017
  title: "Find fees, funding costs and exposure in a public wallet",
7022
7018
  skill: "hyperliquid-wallet-audit",
7023
7019
  pack: "hyperliquid-skills",
7024
- inputs: ["Public account address and mainnet or testnet", "UTC startTime and endTime for the activity window", "Maximum history pages and explicit coverage limits"],
7020
+ inputs: [
7021
+ "Public account address and mainnet or testnet",
7022
+ "UTC startTime and endTime for the activity window",
7023
+ "Maximum history pages and explicit coverage limits"
7024
+ ],
7025
7025
  output: "Reproducible wallet diagnostics with captured source hashes, observed realized PnL, signed fees and funding, maker/taker costs, current exposure and explicit history gaps.",
7026
7026
  access: "Bounded official Hyperliquid public info reads; no trading key or wallet connection. Default perpetual activity is distinct from a complete portfolio or verified investment return."
7027
7027
  },
@@ -7031,7 +7031,11 @@ var init_workflows = __esm(() => {
7031
7031
  title: "Validate a frozen rule with higher costs and a held-out period",
7032
7032
  skill: "galleon-defi-strategy-backtest",
7033
7033
  pack: "defi-strategy-skills",
7034
- inputs: ["Absolute dataFile and specFile paths for a sourced daily USD series and frozen rule", "Optional splitIndex for the first held-out observation", "Baseline fees/slippage and higher-cost assumptions"],
7034
+ inputs: [
7035
+ "Absolute dataFile and specFile paths for a sourced daily USD series and frozen rule",
7036
+ "Optional splitIndex for the first held-out observation",
7037
+ "Baseline fees/slippage and higher-cost assumptions"
7038
+ ],
7035
7039
  output: "Separate baseline and higher-cost results for development and held-out periods, same-cost benchmarks, trade logs, input hashes and explicit independent restart accounting.",
7036
7040
  access: "Local Node.js helper with no wallet or network request; no parameter optimization, live execution or forward-return claim."
7037
7041
  },
@@ -7041,7 +7045,11 @@ var init_workflows = __esm(() => {
7041
7045
  title: "Research a Hyperliquid market before planning a trade",
7042
7046
  skill: "hyperliquid-analyze",
7043
7047
  pack: "hyperliquid-skills",
7044
- inputs: ["Exact network, market and DEX identity", "Research question, observation window and freshness limit", "Liquidity, funding and catalyst evidence requirements"],
7048
+ inputs: [
7049
+ "Exact network, market and DEX identity",
7050
+ "Research question, observation window and freshness limit",
7051
+ "Liquidity, funding and catalyst evidence requirements"
7052
+ ],
7045
7053
  output: "Cited market/funding/liquidity evidence, supported thesis and invalidation conditions with data gaps; historical, paper and live evidence stay separate.",
7046
7054
  access: "Existing official public info reads or explicitly configured tools; market analysis grants no financial authority."
7047
7055
  },
@@ -7051,7 +7059,11 @@ var init_workflows = __esm(() => {
7051
7059
  title: "Review a completed trade against its original intent",
7052
7060
  skill: "hyperliquid-review",
7053
7061
  pack: "hyperliquid-skills",
7054
- inputs: ["Account, market/DEX and completed trade window", "Original ticket, risk unit, order/fill identities and exchange history", "Signed fees/funding, position changes and incident record"],
7062
+ inputs: [
7063
+ "Account, market/DEX and completed trade window",
7064
+ "Original ticket, risk unit, order/fill identities and exchange history",
7065
+ "Signed fees/funding, position changes and incident record"
7066
+ ],
7055
7067
  output: "Reconciled trade outcome and cost accounting with a separate process grade, incident findings and one supported follow-up test.",
7056
7068
  access: "Read-only exchange history and local arithmetic; a profitable result does not establish that controls or authorization were respected."
7057
7069
  },
@@ -7370,7 +7382,7 @@ var init_workflows = __esm(() => {
7370
7382
  id: "across-route",
7371
7383
  protocol: "Across",
7372
7384
  title: "Review a cross-chain quote and reconcile deposit delivery",
7373
- skill: "galleon-defi-routing",
7385
+ skill: "across-bridge",
7374
7386
  pack: "defi-routing-skills",
7375
7387
  inputs: [
7376
7388
  "Source/destination chains and exact token contracts",
@@ -7378,7 +7390,7 @@ var init_workflows = __esm(() => {
7378
7390
  "Quote intent or existing Across deposit/transaction identity"
7379
7391
  ],
7380
7392
  output: "Dated route/quote, fees and destination minimum, exact unsigned target/calldata, deposit identity and separate fill/refund reconciliation with unresolved outcomes.",
7381
- access: "Official Across API/MCP reads; embedded actions, quote expiry and destination execution need separate review; no source approval or bridge submission."
7393
+ access: "Current official Across API requires configured Bearer access and integratorId. Public chain reads can reconcile a known deposit without sending an action."
7382
7394
  },
7383
7395
  {
7384
7396
  id: "explorer-diligence",
@@ -7421,26 +7433,428 @@ var init_workflows = __esm(() => {
7421
7433
  ],
7422
7434
  output: "Current resolution state, oracle/dispute/finality evidence and payout/redemption constraints; data evidence is distinct from any actual redemption.",
7423
7435
  access: "Official public Polymarket data and onchain reads; no claim/redeem transaction, approval or signing."
7436
+ },
7437
+ {
7438
+ id: "euler-lending",
7439
+ protocol: "Euler",
7440
+ title: "Inspect Euler collateral, debt and account liquidity",
7441
+ skill: "galleon-euler-lending",
7442
+ pack: "defi-lending-skills",
7443
+ inputs: [
7444
+ "Chain, EVC account and collateral/borrow vaults",
7445
+ "Position size and proposed borrow or exit"
7446
+ ],
7447
+ output: "Vault and account health, collateral eligibility, oracle/LLTV, borrow liquidity and an unsigned next step.",
7448
+ access: "Official Euler deployment data, EVC and vault reads; a vault share price does not establish account solvency."
7449
+ },
7450
+ {
7451
+ id: "sparklend-position",
7452
+ protocol: "Spark",
7453
+ title: "Inspect a SparkLend position and reserve limits",
7454
+ skill: "galleon-sparklend-position",
7455
+ pack: "defi-lending-skills",
7456
+ inputs: [
7457
+ "Chain, SparkLend market and wallet",
7458
+ "Proposed supply, repayment, borrow or withdrawal"
7459
+ ],
7460
+ output: "SparkLend collateral/debt, health factor, reserve limits and current liquidity, distinct from Spark savings and Morpho vaults.",
7461
+ access: "Official Spark deployments and read-only Pool/data-provider calls; no financial action."
7462
+ },
7463
+ {
7464
+ id: "kamino-lending",
7465
+ protocol: "Kamino",
7466
+ title: "Inspect a Kamino lending obligation",
7467
+ skill: "galleon-kamino-lending",
7468
+ pack: "defi-lending-skills",
7469
+ inputs: [
7470
+ "Solana cluster, market and obligation or wallet",
7471
+ "Reserve mints, proposed amount and risk scenario"
7472
+ ],
7473
+ output: "Obligation collateral/debt, reserve and oracle freshness, liquidation limits and a bounded unsigned plan.",
7474
+ access: "Official Kamino API/SDK and Solana RPC reads; identify mints and obligations rather than tickers."
7475
+ },
7476
+ {
7477
+ id: "save-lending",
7478
+ protocol: "Save / Solend",
7479
+ title: "Inspect a Save or legacy Solend lending position",
7480
+ skill: "galleon-save-lending",
7481
+ pack: "defi-lending-skills",
7482
+ inputs: [
7483
+ "Solana cluster, market and obligation",
7484
+ "Reserve mint and intended borrow or exit"
7485
+ ],
7486
+ output: "Deployment status, obligation health, reserve liquidity and supported next step with unavailable or legacy state explicit.",
7487
+ access: "Verified Save/Solend deployment and Solana account reads; product continuity must be established before planning."
7488
+ },
7489
+ {
7490
+ id: "rocket-pool-reth",
7491
+ protocol: "Rocket Pool",
7492
+ title: "Compare rETH redemption with a market exit",
7493
+ skill: "galleon-rocket-pool-reth",
7494
+ pack: "defi-staking-skills",
7495
+ inputs: [
7496
+ "Ethereum wallet and rETH amount",
7497
+ "Exit size, destination and freshness limit"
7498
+ ],
7499
+ output: "rETH/ETH conversion, available protocol redemption liquidity, market comparison and received-asset evidence requirements.",
7500
+ access: "Official Rocket Pool registry and rETH/DepositPool reads; exchange rate does not guarantee liquid redemption."
7501
+ },
7502
+ {
7503
+ id: "eigenlayer-restaking",
7504
+ protocol: "EigenLayer",
7505
+ title: "Inspect delegated restaking and queued withdrawals",
7506
+ skill: "galleon-eigenlayer-restaking",
7507
+ pack: "defi-staking-skills",
7508
+ inputs: [
7509
+ "Chain, staker, strategy and operator",
7510
+ "Withdrawal root or intended restaking exit"
7511
+ ],
7512
+ output: "Strategy shares, delegation/slashing exposure, withdrawal delay and completion eligibility without assuming a queue is claimable.",
7513
+ access: "Official EigenLayer contracts and current withdrawal/delegation state; no delegation or withdrawal submission."
7514
+ },
7515
+ {
7516
+ id: "symbiotic-withdrawals",
7517
+ protocol: "Symbiotic",
7518
+ title: "Track a Symbiotic withdrawal through its epoch",
7519
+ skill: "galleon-symbiotic-withdrawals",
7520
+ pack: "defi-staking-skills",
7521
+ inputs: [
7522
+ "Chain, vault and depositor",
7523
+ "Withdrawal epoch and shares or assets"
7524
+ ],
7525
+ output: "Vault identity, active versus pending balances, epoch eligibility, claim state and returned collateral evidence.",
7526
+ access: "Official Symbiotic deployment and vault reads; epoch eligibility and actual claim completion stay distinct."
7527
+ },
7528
+ {
7529
+ id: "yearn-vault",
7530
+ protocol: "Yearn",
7531
+ title: "Inspect a Yearn vault and owner exit limits",
7532
+ skill: "galleon-yearn-vault",
7533
+ pack: "defi-yield-skills",
7534
+ inputs: [
7535
+ "Chain, vault/version and owner",
7536
+ "Share or asset amount to withdraw"
7537
+ ],
7538
+ output: "Vault identity, share accounting, owner limits, strategy liquidity and loss assumptions with an unsigned exit assessment.",
7539
+ access: "Official Yearn registry and version-specific vault reads; a conversion preview alone is insufficient."
7540
+ },
7541
+ {
7542
+ id: "spark-savings",
7543
+ protocol: "Spark / Sky",
7544
+ title: "Compare Spark or Sky savings conversion and exit",
7545
+ skill: "galleon-spark-savings",
7546
+ pack: "defi-yield-skills",
7547
+ inputs: [
7548
+ "Chain, exact savings product and owner",
7549
+ "Underlying denomination and proposed exit amount"
7550
+ ],
7551
+ output: "Savings/share conversion, rate assumptions, owner limits, liquidity and the product-specific exit route.",
7552
+ access: "Official Spark/Sky product deployment and read-only calls; distinguish savings from SparkLend and bridge wrappers."
7553
+ },
7554
+ {
7555
+ id: "euler-earn",
7556
+ protocol: "Euler",
7557
+ title: "Inspect EulerEarn allocation and withdrawal capacity",
7558
+ skill: "galleon-euler-earn",
7559
+ pack: "defi-yield-skills",
7560
+ inputs: [
7561
+ "Chain, EulerEarn vault and owner",
7562
+ "Shares or assets and desired exit size"
7563
+ ],
7564
+ output: "Allocator/strategy exposure, fees, share conversion and available owner exit capacity with unresolved liquidity explicit.",
7565
+ access: "Official EulerEarn vault and strategy reads; allocator access does not make every underlying allocation liquid."
7566
+ },
7567
+ {
7568
+ id: "ethena-susde",
7569
+ protocol: "Ethena",
7570
+ title: "Check sUSDe cooldown and unstaking eligibility",
7571
+ skill: "galleon-ethena-susde",
7572
+ pack: "defi-yield-skills",
7573
+ inputs: [
7574
+ "Chain, staking contract and owner",
7575
+ "sUSDe shares, USDe amount or existing cooldown"
7576
+ ],
7577
+ output: "Current cooldown configuration, owner withdrawal state, share conversion and the supported USDe claim path.",
7578
+ access: "Official Ethena deployment and staking reads; cooldown completion does not establish receipt of USDe."
7579
+ },
7580
+ {
7581
+ id: "ondo-assets",
7582
+ protocol: "Ondo",
7583
+ title: "Review an Ondo product's eligibility and settlement",
7584
+ skill: "galleon-ondo-assets",
7585
+ pack: "defi-tokenized-assets-skills",
7586
+ inputs: [
7587
+ "Exact product, chain, token and investor jurisdiction",
7588
+ "Subscription or redemption question and amount"
7589
+ ],
7590
+ output: "Product-specific eligibility, transfer restrictions, issuer/custody risk and supported subscription/redemption evidence.",
7591
+ access: "Official issuer documentation and permitted public contract reads; no KYC submission or investor eligibility assertion."
7592
+ },
7593
+ {
7594
+ id: "openeden-tbill",
7595
+ protocol: "OpenEden",
7596
+ title: "Inspect TBILL eligibility and redemption terms",
7597
+ skill: "galleon-openeden-tbill",
7598
+ pack: "defi-tokenized-assets-skills",
7599
+ inputs: [
7600
+ "Exact TBILL product, chain and holder",
7601
+ "Jurisdiction, amount and redemption question"
7602
+ ],
7603
+ output: "Investor restrictions, vault/share accounting, NAV timing and subscription/redemption settlement conditions.",
7604
+ access: "Official OpenEden product terms and permitted public reads; an onchain token balance does not establish redemption eligibility."
7605
+ },
7606
+ {
7607
+ id: "curve-liquidity",
7608
+ protocol: "Curve",
7609
+ title: "Inspect Curve pool accounting and an LP exit",
7610
+ skill: "curve-liquidity",
7611
+ pack: "lp-skills",
7612
+ inputs: [
7613
+ "Chain, pool generation/address and LP owner",
7614
+ "LP amount, withdrawal mode and optional gauge custody"
7615
+ ],
7616
+ output: "Pool/coin identity, balances, gauge custody, expected withdrawal amounts and an unsigned exit plan.",
7617
+ access: "Official Curve registry, pool ABI and gauge reads; choose the exact pool generation and quote at current state."
7618
+ },
7619
+ {
7620
+ id: "balancer-liquidity",
7621
+ protocol: "Balancer",
7622
+ title: "Inspect Balancer liquidity and pool exit limits",
7623
+ skill: "balancer-liquidity",
7624
+ pack: "lp-skills",
7625
+ inputs: [
7626
+ "Chain, pool version and pool ID/address",
7627
+ "BPT amount, owner and desired exit assets"
7628
+ ],
7629
+ output: "Pool/Vault identity, balances, recovery/paused state and version-specific exit quotation and constraints.",
7630
+ access: "Official Balancer deployment/API and Vault reads; V2 and V3 routing and token accounting differ."
7631
+ },
7632
+ {
7633
+ id: "revert-position",
7634
+ protocol: "Revert",
7635
+ title: "Inspect a Revert-managed liquidity position",
7636
+ skill: "revert-position",
7637
+ pack: "lp-skills",
7638
+ inputs: [
7639
+ "Chain, manager/vault and position NFT",
7640
+ "Owner and requested earnings or exit review"
7641
+ ],
7642
+ output: "Underlying NFT identity, custody/automation permissions, fee/cost accounting and supported withdrawal evidence.",
7643
+ access: "Official Revert interfaces and verified manager/position reads; analytics do not establish custody or exit readiness."
7644
+ },
7645
+ {
7646
+ id: "vfat-sickle",
7647
+ protocol: "VFAT",
7648
+ title: "Inspect a VFAT Sickle position and exit dependencies",
7649
+ skill: "vfat-sickle",
7650
+ pack: "lp-skills",
7651
+ inputs: [
7652
+ "Chain, owner, Sickle and farm/gauge",
7653
+ "Position identifier and proposed unstake or exit"
7654
+ ],
7655
+ output: "Sickle ownership, strategy approvals, gauge balances, rewards and ordered unsigned exit dependencies.",
7656
+ access: "Official VFAT deployment/source and contract reads; never reuse a third-party Sickle or assume owner-held NFTs."
7657
+ },
7658
+ {
7659
+ id: "zerox-swap",
7660
+ protocol: "0x",
7661
+ title: "Review a 0x quote and exact allowance target",
7662
+ skill: "zerox-swap",
7663
+ pack: "defi-routing-skills",
7664
+ inputs: [
7665
+ "Chain, token contracts, taker and base-unit sell amount",
7666
+ "Slippage, recipient and freshness limit"
7667
+ ],
7668
+ output: "Quote identity, fees, AllowanceHolder/Permit2 target, simulation caveats and an unsigned swap review.",
7669
+ access: "Official 0x Swap API with its configured API key; credentials and an executable payload grant no signing authority."
7670
+ },
7671
+ {
7672
+ id: "oneinch-swap",
7673
+ protocol: "1inch",
7674
+ title: "Review a 1inch swap quote and execution mode",
7675
+ skill: "oneinch-swap",
7676
+ pack: "defi-routing-skills",
7677
+ inputs: [
7678
+ "Chain, token contracts, base-unit amount, from account and origin EOA",
7679
+ "Classic or intent route and price/expiry limits"
7680
+ ],
7681
+ output: "Route type, allowances, fees, recipient, minimum output and mode-specific fulfillment evidence.",
7682
+ access: "Official 1inch API and configured developer access; distinguish classic transaction execution from intent filling."
7683
+ },
7684
+ {
7685
+ id: "cow-order",
7686
+ protocol: "CoW",
7687
+ title: "Review a CoW order and settlement evidence",
7688
+ skill: "cow-order",
7689
+ pack: "defi-routing-skills",
7690
+ inputs: [
7691
+ "Chain, sell/buy tokens, owner and amount",
7692
+ "Order UID or proposed receiver, validity and partial-fill policy"
7693
+ ],
7694
+ output: "Auction/order identity, signed terms, fees, fill state and actual received assets with cancellation/expiry limits.",
7695
+ access: "Official CoW quote/orderbook reads; no order signature, placement or cancellation without exact authority."
7696
+ },
7697
+ {
7698
+ id: "jupiter-swap",
7699
+ protocol: "Jupiter",
7700
+ title: "Review a Jupiter Swap v2 route",
7701
+ skill: "jupiter-swap",
7702
+ pack: "defi-routing-skills",
7703
+ inputs: [
7704
+ "Solana cluster, input/output mints and base-unit amount",
7705
+ "Optional taker, recipient and slippage policy"
7706
+ ],
7707
+ output: "Quote route, fees, executable-versus-quote-only status and Solana transaction validity and settlement checks.",
7708
+ access: "Official Jupiter Swap v2 API; keyless quote-only access has limits, while execution requires its own current contract."
7709
+ },
7710
+ {
7711
+ id: "relay-bridge",
7712
+ protocol: "Relay",
7713
+ title: "Reconcile a Relay cross-chain route",
7714
+ skill: "relay-bridge",
7715
+ pack: "defi-routing-skills",
7716
+ inputs: [
7717
+ "Origin/destination chain, currencies and recipient",
7718
+ "Amount, request ID or source transaction"
7719
+ ],
7720
+ output: "Quote/step identity, outstanding dependencies, destination delivery and unresolved or refundable state.",
7721
+ access: "Official Relay /quote/v2 requires the configured x-api-key; status access is separately scoped. Origin confirmation does not prove destination delivery."
7722
+ },
7723
+ {
7724
+ id: "across-bridge",
7725
+ protocol: "Across",
7726
+ title: "Review an Across route and destination fill",
7727
+ skill: "across-bridge",
7728
+ pack: "defi-routing-skills",
7729
+ inputs: [
7730
+ "Origin/destination chain, tokens, amount and recipient",
7731
+ "Integrator identity and quote/deposit or source transaction"
7732
+ ],
7733
+ output: "Quote fees/limits, deposit identity, fill deadline and actual destination token/recipient/amount or refund status.",
7734
+ access: "Current Across API requires configured Bearer access and integratorId; legacy suggested-fees is not the default route."
7735
+ },
7736
+ {
7737
+ id: "circle-cctp",
7738
+ protocol: "Circle CCTP",
7739
+ title: "Track a CCTP message through attestation and mint",
7740
+ skill: "circle-cctp",
7741
+ pack: "defi-routing-skills",
7742
+ inputs: [
7743
+ "CCTP version, source/destination domains and recipient",
7744
+ "Burn transaction or message hash and USDC amount"
7745
+ ],
7746
+ output: "Burn/message identity, attestation/finality state, destination nonce consumption and actual USDC mint evidence.",
7747
+ access: "Official Circle attestation API and verified TokenMessenger/MessageTransmitter reads; never equate attestation with a completed mint."
7748
+ },
7749
+ {
7750
+ id: "gmx-position",
7751
+ protocol: "GMX",
7752
+ title: "Inspect GMX V2 positions and pending requests",
7753
+ skill: "gmx-position",
7754
+ pack: "defi-derivatives-skills",
7755
+ inputs: [
7756
+ "Chain, account, market and collateral token",
7757
+ "Position key or request key and risk scenario"
7758
+ ],
7759
+ output: "Collateral/margin, funding/borrowing costs, keeper request state and executed/cancelled outcome evidence.",
7760
+ access: "Official GMX V2 SDK/contracts and reads; request creation is distinct from keeper execution."
7761
+ },
7762
+ {
7763
+ id: "derive-options",
7764
+ protocol: "Derive",
7765
+ title: "Review Derive options risk and margin",
7766
+ skill: "derive-options",
7767
+ pack: "defi-derivatives-skills",
7768
+ inputs: [
7769
+ "Derive subaccount, instrument and expiry",
7770
+ "Existing position or proposed order size and limit"
7771
+ ],
7772
+ output: "Contract unit/payoff, portfolio margin, collateral, expiry/settlement terms and order/fill evidence requirements.",
7773
+ access: "Official Derive market reads and explicitly configured account access; no session-key creation or order submission."
7774
+ },
7775
+ {
7776
+ id: "velocity-position",
7777
+ protocol: "Velocity / Drift",
7778
+ title: "Check Velocity or legacy Drift position support",
7779
+ skill: "velocity-position",
7780
+ pack: "defi-derivatives-skills",
7781
+ inputs: [
7782
+ "Exact current venue/deployment and Solana account",
7783
+ "Legacy position identity and requested read or exit"
7784
+ ],
7785
+ output: "Current service status, supported account reads, position/margin evidence and explicit unsupported or legacy boundaries.",
7786
+ access: "Verify current official Velocity/Drift operating status before relying on legacy SDK endpoints; no inferred migration or live trading support."
7787
+ },
7788
+ {
7789
+ id: "pendle-boros",
7790
+ protocol: "Pendle Boros",
7791
+ title: "Inspect Boros margin and rate exposure",
7792
+ skill: "pendle-boros",
7793
+ pack: "defi-derivatives-skills",
7794
+ inputs: [
7795
+ "Chain, market, account and position",
7796
+ "Rate direction, maturity and margin/risk assumptions"
7797
+ ],
7798
+ output: "Implied-versus-realized rate exposure, margin, accrued funding and liquidation/settlement constraints.",
7799
+ access: "Official Boros API/SDK and market/account reads; Boros margin is separate from Pendle V2 PT/YT maturity."
7800
+ },
7801
+ {
7802
+ id: "jupiter-perps",
7803
+ protocol: "Jupiter",
7804
+ title: "Inspect a Jupiter Perps position and exit request",
7805
+ skill: "jupiter-perps",
7806
+ pack: "defi-derivatives-skills",
7807
+ inputs: [
7808
+ "Solana position, collateral mint and owner",
7809
+ "Market, direction and proposed reduction or close"
7810
+ ],
7811
+ output: "Position leverage, liquidation/fee assumptions, custody liquidity and request/settlement state.",
7812
+ access: "Official Jupiter Perps program/IDL and Solana RPC; do not apply swap quote or GMX accounting to this program."
7813
+ },
7814
+ {
7815
+ id: "snapshot-proposal",
7816
+ protocol: "Snapshot",
7817
+ title: "Review Snapshot proposal rules and voting evidence",
7818
+ skill: "snapshot-proposal",
7819
+ pack: "defi-governance-skills",
7820
+ inputs: [
7821
+ "Space and proposal ID",
7822
+ "Voter, choice and intended research or prior-vote review"
7823
+ ],
7824
+ output: "Proposal identity, snapshot block, strategies, choice encoding, vote validity and execution-module boundaries.",
7825
+ access: "Official Snapshot Hub/GraphQL and space data; an offchain vote result does not prove onchain execution."
7826
+ },
7827
+ {
7828
+ id: "governor-proposal",
7829
+ protocol: "Governor / Cactus",
7830
+ title: "Inspect a Governor proposal and timelock state",
7831
+ skill: "governor-proposal",
7832
+ pack: "defi-governance-skills",
7833
+ inputs: [
7834
+ "Chain, Governor deployment and proposal ID",
7835
+ "Targets, values, calldata and proposal description"
7836
+ ],
7837
+ output: "Proposal state, clock/quorum, exact operation hash, timelock readiness and execution receipt/state evidence.",
7838
+ access: "Verified Governor ABI/current contract reads; custom Governor/Cactus deployments require their own exact interface."
7839
+ },
7840
+ {
7841
+ id: "safe-transaction",
7842
+ protocol: "Safe",
7843
+ title: "Review a Safe transaction and confirmation state",
7844
+ skill: "safe-transaction",
7845
+ pack: "defi-governance-skills",
7846
+ inputs: [
7847
+ "Chain, Safe address and Safe transaction hash or unsigned payload",
7848
+ "Expected recipient, values, operation and nonce"
7849
+ ],
7850
+ output: "Decoded effects, owner threshold, confirmations, nonce, modules/guards and executed transaction/state evidence.",
7851
+ access: "Official Safe Transaction Service and onchain Safe reads; a proposed transaction or collected signature is not execution authority."
7424
7852
  }
7425
7853
  ]
7426
7854
  };
7427
7855
  });
7428
7856
 
7429
7857
  // src/core.ts
7430
- var exports_core = {};
7431
- __export(exports_core, {
7432
- selectPacks: () => selectPacks,
7433
- parseHarness: () => parseHarness,
7434
- parseConfig: () => parseConfig,
7435
- parseCatalog: () => parseCatalog,
7436
- installedVersion: () => installedVersion,
7437
- installArgs: () => installArgs,
7438
- identity: () => identity2,
7439
- harnesses: () => harnesses,
7440
- fetchCatalog: () => fetchCatalog,
7441
- compatibilitySetupMessage: () => compatibilitySetupMessage,
7442
- catalogChanges: () => catalogChanges
7443
- });
7444
7858
  import { resolve } from "path";
7445
7859
  function compatibilitySetupMessage(harness) {
7446
7860
  return harness === "hermes" ? undefined : harnesses[harness].setup;
@@ -7535,31 +7949,19 @@ Use Hermes's native tools, memory, skills and credential facilities. Load only t
7535
7949
  skill and provider references needed for the current task. Prefer official tools
7536
7950
  already available over adding a service or writing another adapter.
7537
7951
 
7538
- Choose the installed protocol skill that directly fits the requested task:
7539
- - galleon-aave-position, galleon-morpho-market and galleon-compound-borrow for
7540
- protocol-specific lending reads, risk calculations and unsigned action plans.
7541
- - uniswap-v3-liquidity and aerodrome-slipstream for LP positions and gauge custody;
7542
- uniswap-swap and lifi-cross-chain for quote review and settlement tracking.
7543
- - galleon-lido-withdrawals for withdrawal requests and claimability;
7544
- galleon-pendle-maturity and galleon-vault-exit for maturity and redeemable assets.
7545
- - galleon-coingecko-token-research and galleon-defillama-yield-screen for token
7546
- identity, prices and reproducible yield shortlists.
7547
- - galleon-coinbase-agentkit-readiness for CDP wallet capabilities and policies;
7548
- galleon-defi-infra for other tool-readiness gaps.
7549
- - galleon-defi-agent-plan and galleon-defi-agent-simulate for signer-free payload
7550
- construction and exact-payload simulation; no approval or broadcast.
7551
- - galleon-aave-v4 for verified V4 hub/spoke deployments and maturity checks;
7552
- galleon-sablier-streams and galleon-superfluid-streams for payment obligations.
7553
- - galleon-prediction-market-research and galleon-prediction-market-resolution for
7554
- public prediction-market evidence and resolution, with no order or redemption.
7555
- - hyperliquid-* for venue-specific setup, analysis, plans, monitoring and review.
7556
- Keep the galleon-defi-* primitive skills for cross-protocol tasks and unsupported
7557
- venues, including portfolio, security, payments, governance and tokenized assets.
7558
- Protocol skills contain concrete reads and local helpers: use those before
7559
- inventing an adapter or relying on a generic checklist. Do not require a setup
7560
- workflow before a public read when suitable tools already exist.
7561
- Do not load every skill or provider reference for a simple task. A missing pack is
7562
- a capability gap; use available tools and describe the gap accurately.
7952
+ Use native skill discovery to find the installed protocol procedure for the job.
7953
+ Read its SKILL.md first, then only the references or helpers that step needs.
7954
+ For a task directory, run boomkin workflows --protocol <protocol>; inspect exact
7955
+ inputs, output, access and skill ID with boomkin workflows --workflow <id>.
7956
+ Discovery is local. A listed workflow may belong to an uninstalled pack; check
7957
+ native discovery before claiming the skill or its tools are available.
7958
+
7959
+ Prefer a protocol-specific procedure for a named venue. Use the broad primitive
7960
+ skills for cross-protocol comparison, portfolio, security or unsupported venues.
7961
+ Follow their concrete reads and calculations before inventing an adapter. Public
7962
+ research needs no setup workflow when suitable tools already exist. If a pack,
7963
+ tool or required observation is missing, report that gap and finish the useful
7964
+ work supported by available evidence. Do not load every installed skill.
7563
7965
 
7564
7966
  Research and planning are the default. Installed skills and tool credentials do not
7565
7967
  grant financial authority. Before signing, trading, transferring, enabling wallet
@@ -7598,18 +8000,22 @@ var skills_default = {
7598
8000
  {
7599
8001
  id: "lp-skills",
7600
8002
  source: "galleonlabs/crypto-defi-skills",
7601
- description: "Agent skills and deterministic tools for Uniswap and Aerodrome liquidity provision.",
7602
- version: "0.6.2",
7603
- revision: "86130b45757a53dad00fd8a4701750baf3528674",
8003
+ description: "Agent skills and deterministic tools for liquidity research, planning, monitoring and approved execution.",
8004
+ version: "0.7.1",
8005
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7604
8006
  skills: [
7605
8007
  "aerodrome-slipstream",
8008
+ "balancer-liquidity",
8009
+ "curve-liquidity",
7606
8010
  "lp-analyze",
7607
8011
  "lp-engineer",
7608
8012
  "lp-execute",
7609
8013
  "lp-monitor",
7610
8014
  "lp-plan",
7611
8015
  "lp-setup",
7612
- "uniswap-v3-liquidity"
8016
+ "revert-position",
8017
+ "uniswap-v3-liquidity",
8018
+ "vfat-sickle"
7613
8019
  ],
7614
8020
  path: "packages/lp",
7615
8021
  package: "galleon-lp-skills"
@@ -7617,9 +8023,9 @@ var skills_default = {
7617
8023
  {
7618
8024
  id: "hyperliquid-skills",
7619
8025
  source: "galleonlabs/crypto-defi-skills",
7620
- description: "Hyperliquid market research, trade planning, monitoring, performance review and reproducible public wallet cost audits.",
7621
- version: "0.4.1",
7622
- revision: "86130b45757a53dad00fd8a4701750baf3528674",
8026
+ description: "Agent skills for Hyperliquid public wallet diagnostics, setup, market analysis, trade planning and execution, monitoring, and performance review.",
8027
+ version: "0.4.2",
8028
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7623
8029
  skills: [
7624
8030
  "hyperliquid-analyze",
7625
8031
  "hyperliquid-engineer",
@@ -7637,8 +8043,8 @@ var skills_default = {
7637
8043
  id: "defi-infra-skills",
7638
8044
  source: "galleonlabs/crypto-defi-skills",
7639
8045
  description: "RPC, wallet and Hermes infrastructure skills with read-only readiness diagnostics.",
7640
- version: "0.4.2",
7641
- revision: "86130b45757a53dad00fd8a4701750baf3528674",
8046
+ version: "0.4.3",
8047
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7642
8048
  skills: [
7643
8049
  "galleon-coinbase-agentkit-readiness",
7644
8050
  "galleon-defi-infra"
@@ -7649,9 +8055,9 @@ var skills_default = {
7649
8055
  {
7650
8056
  id: "defi-data-skills",
7651
8057
  source: "galleonlabs/crypto-defi-skills",
7652
- description: "Capture timestamped market evidence, compare public sources, retrieve daily history and screen DeFi yields.",
7653
- version: "0.6.1",
7654
- revision: "9fe67c24efc0fd5796066605b29576f3b8f2de94",
8058
+ description: "Portable DeFi data skills for CoinGecko, DefiLlama, AIXBT, and source-aware research.",
8059
+ version: "0.6.2",
8060
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7655
8061
  skills: [
7656
8062
  "galleon-coingecko-token-research",
7657
8063
  "galleon-defi-data",
@@ -7665,14 +8071,18 @@ var skills_default = {
7665
8071
  id: "defi-lending-skills",
7666
8072
  source: "galleonlabs/crypto-defi-skills",
7667
8073
  description: "Research lending markets, plan borrowing and monitor liquidation exposure.",
7668
- version: "0.3.2",
7669
- revision: "86130b45757a53dad00fd8a4701750baf3528674",
8074
+ version: "0.4.1",
8075
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7670
8076
  skills: [
7671
8077
  "galleon-aave-position",
7672
8078
  "galleon-aave-v4",
7673
8079
  "galleon-compound-borrow",
7674
8080
  "galleon-defi-lending",
7675
- "galleon-morpho-market"
8081
+ "galleon-euler-lending",
8082
+ "galleon-kamino-lending",
8083
+ "galleon-morpho-market",
8084
+ "galleon-save-lending",
8085
+ "galleon-sparklend-position"
7676
8086
  ],
7677
8087
  path: "packages/lending",
7678
8088
  package: "galleon-defi-lending-skills"
@@ -7681,11 +8091,14 @@ var skills_default = {
7681
8091
  id: "defi-staking-skills",
7682
8092
  source: "galleonlabs/crypto-defi-skills",
7683
8093
  description: "Plan liquid staking, restaking and queued withdrawals.",
7684
- version: "0.2.1",
7685
- revision: "9fe67c24efc0fd5796066605b29576f3b8f2de94",
8094
+ version: "0.3.1",
8095
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7686
8096
  skills: [
7687
8097
  "galleon-defi-staking",
7688
- "galleon-lido-withdrawals"
8098
+ "galleon-eigenlayer-restaking",
8099
+ "galleon-lido-withdrawals",
8100
+ "galleon-rocket-pool-reth",
8101
+ "galleon-symbiotic-withdrawals"
7689
8102
  ],
7690
8103
  path: "packages/staking",
7691
8104
  package: "galleon-defi-staking-skills"
@@ -7694,12 +8107,16 @@ var skills_default = {
7694
8107
  id: "defi-yield-skills",
7695
8108
  source: "galleonlabs/crypto-defi-skills",
7696
8109
  description: "Evaluate vaults and yield tokens, including liquidity and maturity.",
7697
- version: "0.3.1",
7698
- revision: "86130b45757a53dad00fd8a4701750baf3528674",
8110
+ version: "0.4.1",
8111
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7699
8112
  skills: [
7700
8113
  "galleon-defi-yield",
8114
+ "galleon-ethena-susde",
8115
+ "galleon-euler-earn",
7701
8116
  "galleon-pendle-maturity",
7702
- "galleon-vault-exit"
8117
+ "galleon-spark-savings",
8118
+ "galleon-vault-exit",
8119
+ "galleon-yearn-vault"
7703
8120
  ],
7704
8121
  path: "packages/yield",
7705
8122
  package: "galleon-defi-yield-skills"
@@ -7708,10 +8125,12 @@ var skills_default = {
7708
8125
  id: "defi-tokenized-assets-skills",
7709
8126
  source: "galleonlabs/crypto-defi-skills",
7710
8127
  description: "Research tokenized assets, eligibility and issuer settlement.",
7711
- version: "0.1.3",
7712
- revision: "9fe67c24efc0fd5796066605b29576f3b8f2de94",
8128
+ version: "0.2.1",
8129
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7713
8130
  skills: [
7714
- "galleon-defi-tokenized-assets"
8131
+ "galleon-defi-tokenized-assets",
8132
+ "galleon-ondo-assets",
8133
+ "galleon-openeden-tbill"
7715
8134
  ],
7716
8135
  path: "packages/tokenized-assets",
7717
8136
  package: "galleon-defi-tokenized-assets-skills"
@@ -7720,12 +8139,19 @@ var skills_default = {
7720
8139
  id: "defi-routing-skills",
7721
8140
  source: "galleonlabs/crypto-defi-skills",
7722
8141
  description: "Compare swaps and bridges and track cross-chain settlement.",
7723
- version: "0.3.2",
7724
- revision: "86130b45757a53dad00fd8a4701750baf3528674",
8142
+ version: "0.4.1",
8143
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7725
8144
  skills: [
8145
+ "across-bridge",
8146
+ "circle-cctp",
8147
+ "cow-order",
7726
8148
  "galleon-defi-routing",
8149
+ "jupiter-swap",
7727
8150
  "lifi-cross-chain",
7728
- "uniswap-swap"
8151
+ "oneinch-swap",
8152
+ "relay-bridge",
8153
+ "uniswap-swap",
8154
+ "zerox-swap"
7729
8155
  ],
7730
8156
  path: "packages/routing",
7731
8157
  package: "galleon-defi-routing-skills"
@@ -7734,10 +8160,15 @@ var skills_default = {
7734
8160
  id: "defi-derivatives-skills",
7735
8161
  source: "galleonlabs/crypto-defi-skills",
7736
8162
  description: "Plan derivatives positions and reconcile venue execution.",
7737
- version: "0.1.6",
7738
- revision: "86130b45757a53dad00fd8a4701750baf3528674",
8163
+ version: "0.2.1",
8164
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7739
8165
  skills: [
7740
- "galleon-defi-derivatives"
8166
+ "derive-options",
8167
+ "galleon-defi-derivatives",
8168
+ "gmx-position",
8169
+ "jupiter-perps",
8170
+ "pendle-boros",
8171
+ "velocity-position"
7741
8172
  ],
7742
8173
  path: "packages/derivatives",
7743
8174
  package: "galleon-defi-derivatives-skills"
@@ -7746,8 +8177,8 @@ var skills_default = {
7746
8177
  id: "defi-portfolio-skills",
7747
8178
  source: "galleonlabs/crypto-defi-skills",
7748
8179
  description: "Reconcile DeFi assets, liabilities, cash flows and exposure.",
7749
- version: "0.2.1",
7750
- revision: "9fe67c24efc0fd5796066605b29576f3b8f2de94",
8180
+ version: "0.2.2",
8181
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7751
8182
  skills: [
7752
8183
  "galleon-defi-portfolio"
7753
8184
  ],
@@ -7757,9 +8188,9 @@ var skills_default = {
7757
8188
  {
7758
8189
  id: "defi-security-skills",
7759
8190
  source: "galleonlabs/crypto-defi-skills",
7760
- description: "Investigate token risks, compare evidence and review transaction permissions.",
7761
- version: "0.2.4",
7762
- revision: "86130b45757a53dad00fd8a4701750baf3528674",
8191
+ description: "Token due diligence, transaction review, permissions and simulation evidence.",
8192
+ version: "0.2.5",
8193
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7763
8194
  skills: [
7764
8195
  "galleon-defi-security",
7765
8196
  "galleon-defi-security-token-diligence"
@@ -7771,8 +8202,8 @@ var skills_default = {
7771
8202
  id: "defi-payments-skills",
7772
8203
  source: "galleonlabs/crypto-defi-skills",
7773
8204
  description: "Plan stablecoin payments, x402 purchases and token streams.",
7774
- version: "0.2.1",
7775
- revision: "9fe67c24efc0fd5796066605b29576f3b8f2de94",
8205
+ version: "0.2.2",
8206
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7776
8207
  skills: [
7777
8208
  "galleon-defi-payments",
7778
8209
  "galleon-sablier-streams",
@@ -7785,10 +8216,13 @@ var skills_default = {
7785
8216
  id: "defi-governance-skills",
7786
8217
  source: "galleonlabs/crypto-defi-skills",
7787
8218
  description: "Research proposals, prepare votes and track governance execution.",
7788
- version: "0.1.4",
7789
- revision: "86130b45757a53dad00fd8a4701750baf3528674",
8219
+ version: "0.2.1",
8220
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7790
8221
  skills: [
7791
- "galleon-defi-governance"
8222
+ "galleon-defi-governance",
8223
+ "governor-proposal",
8224
+ "safe-transaction",
8225
+ "snapshot-proposal"
7792
8226
  ],
7793
8227
  path: "packages/governance",
7794
8228
  package: "galleon-defi-governance-skills"
@@ -7796,9 +8230,9 @@ var skills_default = {
7796
8230
  {
7797
8231
  id: "defi-strategy-skills",
7798
8232
  source: "galleonlabs/crypto-defi-skills",
7799
- description: "Test frozen daily spot rules with chronological held-out periods, higher trading costs and reproducible same-cost benchmarks.",
7800
- version: "0.2.0",
7801
- revision: "3f91a955d59a55b9927403ddc3c2e26660d48bf8",
8233
+ description: "Frozen daily strategy validation with cost sensitivity, held-out periods and a reproducible benchmark.",
8234
+ version: "0.2.1",
8235
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7802
8236
  skills: [
7803
8237
  "galleon-defi-strategy-backtest"
7804
8238
  ],
@@ -7809,8 +8243,8 @@ var skills_default = {
7809
8243
  id: "defi-agent-skills",
7810
8244
  source: "galleonlabs/crypto-defi-skills",
7811
8245
  description: "Construct unsigned DeFi plans and verify exact transaction simulation evidence.",
7812
- version: "0.1.2",
7813
- revision: "86130b45757a53dad00fd8a4701750baf3528674",
8246
+ version: "0.1.3",
8247
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7814
8248
  skills: [
7815
8249
  "galleon-defi-agent-plan",
7816
8250
  "galleon-defi-agent-simulate"
@@ -7822,8 +8256,8 @@ var skills_default = {
7822
8256
  id: "defi-prediction-skills",
7823
8257
  source: "galleonlabs/crypto-defi-skills",
7824
8258
  description: "Research prediction market order books and reconcile resolution without signing or trading.",
7825
- version: "0.1.1",
7826
- revision: "9fe67c24efc0fd5796066605b29576f3b8f2de94",
8259
+ version: "0.1.2",
8260
+ revision: "27b7cc4478f68dc988bb129a66f8a8f884b76aca",
7827
8261
  skills: [
7828
8262
  "galleon-prediction-market-research",
7829
8263
  "galleon-prediction-market-resolution"
@@ -7836,7 +8270,7 @@ var skills_default = {
7836
8270
  // package.json
7837
8271
  var package_default = {
7838
8272
  name: "boomkin",
7839
- version: "0.12.2",
8273
+ version: "0.13.1",
7840
8274
  description: "Your open-source DeFi desk: native Hermes research projects, verifiable evidence and independent financial skills.",
7841
8275
  type: "module",
7842
8276
  license: "MIT",
@@ -7943,10 +8377,10 @@ async function packageDirectory(pack, checkout) {
7943
8377
  const manifest = JSON.parse(await readFile(join(path, "package.json"), "utf8"));
7944
8378
  if (manifest.name !== pack.package || manifest.version !== pack.version)
7945
8379
  throw new Error(`Package release metadata mismatch: ${pack.id}`);
7946
- const { installedVersion: installedVersion2 } = await Promise.resolve().then(() => (init_core(), exports_core));
8380
+ await Promise.resolve().then(() => init_core());
7947
8381
  for (const skill of pack.skills) {
7948
8382
  const text = await readFile(join(path, "skills", skill, "SKILL.md"), "utf8");
7949
- if (installedVersion2(text) !== pack.version)
8383
+ if (installedVersion(text) !== pack.version)
7950
8384
  throw new Error(`Source skill version mismatch: ${skill}`);
7951
8385
  }
7952
8386
  return path;
@@ -8002,9 +8436,9 @@ async function terminateOwnedProcess(child, group, graceMs = 2000) {
8002
8436
  }
8003
8437
 
8004
8438
  // src/hermes.ts
8005
- var HERMES_VERSION = "0.22.2";
8006
- var HERMES_COMMIT = "d923a5eb487a17c0a68801bba9ef0f56c81040a8";
8007
- var HERMES_INSTALLER_SHA256 = "f4cdb0e20f1aca2c3871a76b962fd4db61510f549cf973759c753ac13349beb5";
8439
+ var HERMES_VERSION = "0.22.5";
8440
+ var HERMES_COMMIT = "bf0203a794a07aac3ff764972ab9087baa4e4f4e";
8441
+ var HERMES_INSTALLER_SHA256 = "99cb3691d55019c6973a7acb775a915648666cc24e483ca827a1cdbb3531a674";
8008
8442
  var HERMES_INSTALLER_URL = `https://raw.githubusercontent.com/NousResearch/hermes-agent/${HERMES_COMMIT}/scripts/install.sh`;
8009
8443
  function absent(error) {
8010
8444
  return error.code === "ENOENT";
@@ -8060,8 +8494,8 @@ function hermesModelConfigured(config) {
8060
8494
  const flatten = (value) => {
8061
8495
  if (!object(value))
8062
8496
  return value;
8063
- const id2 = value.model || value.default;
8064
- return typeof id2 === "string" ? id2.trim() : id2;
8497
+ const id = value.model || value.default;
8498
+ return typeof id === "string" ? id.trim() : id;
8065
8499
  };
8066
8500
  const id = flatten(model.default) || flatten(model.model) || flatten(model.name);
8067
8501
  return typeof id === "string" && !!id.trim();
@@ -8177,9 +8611,9 @@ async function ensureRuntime(directory, options) {
8177
8611
  const installed = await findRuntime(root);
8178
8612
  if (!installed || !installed.startsWith(runtime + "/"))
8179
8613
  throw new Error("The installer completed without a usable profile-managed Hermes executable");
8180
- const git2 = Bun.spawn(["git", "-C", runtime, "rev-parse", "HEAD"], { stdout: "pipe", stderr: "ignore" });
8181
- const revision = (await new Response(git2.stdout).text()).trim();
8182
- if (await git2.exited !== 0 || revision !== HERMES_COMMIT)
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)
8183
8617
  throw new Error("Hermes installed revision differs from the reviewed pin. Existing runtime was preserved; review it before continuing.");
8184
8618
  if (!(await localProfileStatus(root)).runtime.available)
8185
8619
  throw new Error("Installed Hermes cannot report its version; runtime readiness is incomplete");
@@ -8188,12 +8622,12 @@ async function ensureRuntime(directory, options) {
8188
8622
  await rm(path, { force: true });
8189
8623
  }
8190
8624
  }
8191
- async function initializeProfile(directory, identity3) {
8625
+ async function initializeProfile(directory, identity) {
8192
8626
  const root = await profilePath(directory);
8193
8627
  await mkdir(root, { recursive: true, mode: 448 });
8194
8628
  await safePath(join(root, "SOUL.md"));
8195
8629
  try {
8196
- await writeFile(join(root, "SOUL.md"), identity3, { flag: "wx", mode: 384 });
8630
+ await writeFile(join(root, "SOUL.md"), identity, { flag: "wx", mode: 384 });
8197
8631
  return { createdSoul: true };
8198
8632
  } catch (error) {
8199
8633
  if (error.code === "EEXIST")
@@ -8222,7 +8656,7 @@ async function configureMcpServers(directory, servers) {
8222
8656
  for (const [name, server] of Object.entries(servers)) {
8223
8657
  if (!/^[a-z][a-z0-9_-]*$/.test(name))
8224
8658
  throw new Error("Invalid MCP server name");
8225
- 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)
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)
8226
8660
  throw new Error("Boomkin MCP setup requires untrusted servers, explicit tool names, and disabled resource/prompt utilities");
8227
8661
  if (Boolean(server.url) === Boolean(server.command))
8228
8662
  throw new Error("Choose one MCP transport");
@@ -9169,40 +9603,6 @@ var providers_default = {
9169
9603
  directoryId: 12,
9170
9604
  documentedEndpoint: "https://mcp.morpho.org/"
9171
9605
  },
9172
- {
9173
- id: "fluid",
9174
- name: "Fluid Skill",
9175
- provider: "Fluid",
9176
- listedInDirectory: true,
9177
- listedCapabilities: [
9178
- "DeFi"
9179
- ],
9180
- listedInterfaces: [
9181
- "Skill"
9182
- ],
9183
- summary: "Keep unavailable status; use official Fluid resolver docs only after current deployment/ABI verification.",
9184
- sources: [
9185
- "https://fluid.io/skill.md"
9186
- ],
9187
- review: {
9188
- status: "directory-listed",
9189
- checkedOn: "2026-10-08",
9190
- notes: "Fluid linked skill returns HTTP200 Page not found, including alternate uppercase URL. No reliable skill body retrieved; directory claim cannot establish RPC resolver contracts."
9191
- },
9192
- access: {
9193
- kind: "unknown",
9194
- requirements: "Fluid linked skill returns HTTP200 Page not found, including alternate uppercase URL. No reliable skill body retrieved; directory claim cannot establish RPC resolver contracts."
9195
- },
9196
- cost: "unknown",
9197
- authority: "unknown",
9198
- integration: {
9199
- kind: "reference",
9200
- defaultEnabled: false,
9201
- policy: "no-connection"
9202
- },
9203
- provenance: "unverified",
9204
- directoryId: 13
9205
- },
9206
9606
  {
9207
9607
  id: "pendle",
9208
9608
  name: "Pendle AI",
@@ -9329,16 +9729,17 @@ var providers_default = {
9329
9729
  ],
9330
9730
  summary: "Use explicit read/build allowlists; verify destination recipient asset amount and source/destination hashes, embedded beneficiary.",
9331
9731
  sources: [
9332
- "https://skills.across.to/"
9732
+ "https://skills.across.to/",
9733
+ "https://docs.across.to/api-reference"
9333
9734
  ],
9334
9735
  review: {
9335
9736
  status: "primary-source-reviewed",
9336
- checkedOn: "2026-10-08",
9337
- notes: "Across sources give quotes/fees/deposit tracking/security and hosted MCP. Existing research notes live tool surface includes wallet functionality beyond documented reads. Public initialize/tools-list discovery observed 14 tool names on 2026-10-08; no data, build, simulation or financial tool was called. This endpoint remains outside Boomkin connection setup."
9737
+ checkedOn: "2026-10-25",
9738
+ notes: "Current REST reference requires Bearer API access and integratorId for every request; use Swap API /swap/approval, with amount interpreted by tradeType. Suggested Fees is legacy. The separate hosted MCP remains a reference-only surface; prior tool discovery did not establish data access or transaction capability."
9338
9739
  },
9339
9740
  access: {
9340
9741
  kind: "mixed",
9341
- requirements: "Across sources give quotes/fees/deposit tracking/security and hosted MCP. Existing research notes live tool surface includes wallet functionality beyond documented reads."
9742
+ requirements: "REST API requires the user's configured Bearer API key and integratorId. Hosted MCP authority must be independently reviewed; no setup connection is supplied by Boomkin."
9342
9743
  },
9343
9744
  cost: "mixed",
9344
9745
  authority: "mixed",
@@ -11647,7 +12048,7 @@ function walletRow(id, label, before, after, note) {
11647
12048
  note: a && b ? note : `${note} Missing or invalid amounts remain unavailable.`
11648
12049
  };
11649
12050
  }
11650
- function numericRow(id, label, unit, before, after, comparable, note, relative2 = false) {
12051
+ function numericRow(id, label, unit, before, after, comparable, note, relative = false) {
11651
12052
  const a = number(before), b = number(after), delta = comparable && a !== null && b !== null ? b - a : null;
11652
12053
  return {
11653
12054
  id,
@@ -11656,7 +12057,7 @@ function numericRow(id, label, unit, before, after, comparable, note, relative2
11656
12057
  before: display(a),
11657
12058
  after: display(b),
11658
12059
  delta: display(delta),
11659
- changePct: relative2 && delta !== null && a !== null && a > 0 ? display(delta / a * 100) : null,
12060
+ changePct: relative && delta !== null && a !== null && a > 0 ? display(delta / a * 100) : null,
11660
12061
  note: a === null || b === null ? `${note} Missing or invalid values remain unavailable.` : note
11661
12062
  };
11662
12063
  }
@@ -11729,12 +12130,12 @@ function finish(output) {
11729
12130
  }
11730
12131
  function market(output, before, after) {
11731
12132
  function observations(snapshot) {
11732
- const rows2 = new Map;
12133
+ const rows = new Map;
11733
12134
  const age = number(at(snapshot.result, "parameters", "maxAgeSeconds")) ?? 300;
11734
12135
  for (const read of list2(at(snapshot.result, "reads")))
11735
12136
  for (const row of list2(at(read, "observations"))) {
11736
- const provider = at(read, "provider"), identity3 = at(row, "identity");
11737
- if (typeof provider !== "string" || !["coingecko", "defillama"].includes(provider) || at(row, "provider") !== provider || at(identity3, "namespace") !== "coingecko" || at(identity3, "id") !== snapshot.inputs.asset) {
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) {
11738
12139
  output.issues.push("A market observation has an unsupported provider or mismatched CoinGecko identity.");
11739
12140
  continue;
11740
12141
  }
@@ -11742,13 +12143,13 @@ function market(output, before, after) {
11742
12143
  const price = number(at(row, "priceUsd")), delay = (retrieved - observed) / 1000;
11743
12144
  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;
11744
12145
  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"}.`;
11745
- if (rows2.has(key)) {
12146
+ if (rows.has(key)) {
11746
12147
  output.issues.push(`Duplicate ${key} observations cannot be matched reliably.`);
11747
- rows2.set(key, { value: null, observed: NaN, note: "Duplicate source observations." });
12148
+ rows.set(key, { value: null, observed: NaN, note: "Duplicate source observations." });
11748
12149
  } else
11749
- rows2.set(key, { value: valid ? price : null, observed, note });
12150
+ rows.set(key, { value: valid ? price : null, observed, note });
11750
12151
  }
11751
- return rows2;
12152
+ return rows;
11752
12153
  }
11753
12154
  const a = observations(before), b = observations(after);
11754
12155
  const rows = [...new Set([...a.keys(), ...b.keys()])].sort().map((provider) => {
@@ -11900,10 +12301,10 @@ async function atomic(root, parts, value) {
11900
12301
  await rm3(temporary, { force: true });
11901
12302
  }
11902
12303
  }
11903
- var projectParts = (name2) => [".boomkin", "projects", validName(name2)];
11904
- var runParts = (name2, id) => [...projectParts(name2), "runs", validRun(id)];
11905
- function parseRun(value, name2, id) {
11906
- 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")
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")
11907
12308
  throw new DeskError("Saved desk run is malformed; files were preserved", 409);
11908
12309
  return value;
11909
12310
  }
@@ -11978,10 +12379,10 @@ async function startDesk(options) {
11978
12379
  const recovery = await safe(root, [".boomkin", "desk-recovery.lock"]);
11979
12380
  try {
11980
12381
  await mkdir3(recovery, { mode: 448 });
11981
- } catch (error2) {
11982
- if (error2.code === "EEXIST")
12382
+ } catch (error) {
12383
+ if (error.code === "EEXIST")
11983
12384
  throw new DeskError("Desk lock recovery is already in progress. Retry after it finishes; inspect a retained recovery lock before removing it", 409);
11984
- throw error2;
12385
+ throw error;
11985
12386
  }
11986
12387
  try {
11987
12388
  await writeFile3(join5(recovery, "owner.json"), json2({ pid: process.pid, startedAt: new Date().toISOString() }), { flag: "wx", mode: 384 });
@@ -11996,8 +12397,8 @@ async function startDesk(options) {
11996
12397
  let alive = true;
11997
12398
  try {
11998
12399
  process.kill(owner.pid, 0);
11999
- } catch (error2) {
12000
- if (error2.code === "ESRCH")
12400
+ } catch (error) {
12401
+ if (error.code === "ESRCH")
12001
12402
  alive = false;
12002
12403
  }
12003
12404
  if (alive)
@@ -12009,11 +12410,11 @@ async function startDesk(options) {
12009
12410
  }
12010
12411
  }
12011
12412
  await writeFile3(join5(lock, "owner.json"), json2({ pid: process.pid, startedAt: new Date().toISOString() }), { flag: "wx", mode: 384 });
12012
- async function readMetadata(name2) {
12013
- return parseMetadata(JSON.parse(await limited(await safe(root, [...projectParts(name2), "desk.json"]))));
12413
+ async function readMetadata(name) {
12414
+ return parseMetadata(JSON.parse(await limited(await safe(root, [...projectParts(name), "desk.json"]))));
12014
12415
  }
12015
- async function readDeskRun(name2, id) {
12016
- return parseRun(JSON.parse(await limited(await safe(root, [...runParts(name2, id), "desk.json"]))), name2, id);
12416
+ async function readDeskRun(name, id) {
12417
+ return parseRun(JSON.parse(await limited(await safe(root, [...runParts(name, id), "desk.json"]))), name, id);
12017
12418
  }
12018
12419
  async function saveRun(run) {
12019
12420
  await atomic(root, [...runParts(run.project, run.id), "desk.json"], json2(run));
@@ -12067,7 +12468,7 @@ async function startDesk(options) {
12067
12468
  throw new DeskError(`Install ${contract.pack} in this profile`, 409);
12068
12469
  if (pack.version !== reviewed.version || pack.revision !== reviewed.revision || json2(pack) !== json2(reviewed))
12069
12470
  throw new DeskError("Installed release differs from the reviewed catalog; review update before running", 409);
12070
- const skills = await safe(root, ["skills"]), skillPath = await safe(root, ["skills", contract.skill]);
12471
+ const skills = await safe(root, ["skills"]);
12071
12472
  if (installedVersion(await limited(await safe(root, ["skills", contract.skill, "SKILL.md"]))) !== pack.version)
12072
12473
  throw new DeskError("Installed skill version differs from its recorded release", 409);
12073
12474
  const issues = await verifyIntegrity(skills, { schemaVersion: 3, packs: [pack] }, recorded.integrity);
@@ -12086,8 +12487,8 @@ async function startDesk(options) {
12086
12487
  throw new DeskError("This project already has an active run", 409);
12087
12488
  const controller = new AbortController;
12088
12489
  let release;
12089
- const done = new Promise((resolve6) => {
12090
- release = resolve6;
12490
+ const done = new Promise((resolve) => {
12491
+ release = resolve;
12091
12492
  });
12092
12493
  preparing.set(key, { controller, done });
12093
12494
  try {
@@ -12139,20 +12540,20 @@ async function startDesk(options) {
12139
12540
  const title = body.title ?? (kind === "wallet" ? "Hyperliquid wallet review" : kind === "market" ? `${input.asset} market research` : `${input.asset} strategy test`);
12140
12541
  if (typeof title !== "string" || !title.trim() || title.length > 160)
12141
12542
  throw new DeskError("Title must contain 1\u2013160 characters");
12142
- const name2 = `${kind}-${randomUUID3().slice(0, 8)}`;
12543
+ const name = `${kind}-${randomUUID3().slice(0, 8)}`;
12143
12544
  controller.signal.throwIfAborted();
12144
12545
  const { dataset, ...savedInput } = input;
12145
12546
  if (dataset)
12146
12547
  savedInput.uploadedDatasetSha256 = sha(json2(dataset));
12147
- const project = await createProject(root, { name: name2, workflow: kinds[kind].workflow, inputs: savedInput, objective: title }, catalog);
12548
+ const project = await createProject(root, { name, workflow: kinds[kind].workflow, inputs: savedInput, objective: title }, catalog);
12148
12549
  if (dataset)
12149
- await writeFile3(await safe(root, [...projectParts(name2), "input.json"]), json2(dataset), { flag: "wx", mode: 384 });
12150
- await writeFile3(await safe(root, [...projectParts(name2), "desk.json"]), json2({ schemaVersion: 1, kind, title }), { flag: "wx", mode: 384 });
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 });
12151
12552
  return projectDto(project);
12152
12553
  });
12153
12554
  }
12154
- async function runDetails(name2, id) {
12155
- const run = await readDeskRun(name2, id), parts = runParts(name2, id);
12555
+ async function runDetails(name, id) {
12556
+ const run = await readDeskRun(name, id), parts = runParts(name, id);
12156
12557
  const integrity = { issues: [], resultVerified: false };
12157
12558
  function parseSaved(value, file) {
12158
12559
  try {
@@ -12174,7 +12575,7 @@ async function startDesk(options) {
12174
12575
  }
12175
12576
  const resultText = await optional("result.json");
12176
12577
  if (["complete", "partial"].includes(run.state)) {
12177
- integrity.issues = (await checkProjectRun(root, name2, id)).issues;
12578
+ integrity.issues = (await checkProjectRun(root, name, id)).issues;
12178
12579
  if (run.resultSha256 !== undefined) {
12179
12580
  integrity.resultVerified = typeof run.resultSha256 === "string" && /^[a-f0-9]{64}$/.test(run.resultSha256) && resultText !== null && sha(resultText) === run.resultSha256;
12180
12581
  if (!integrity.resultVerified)
@@ -12183,22 +12584,22 @@ async function startDesk(options) {
12183
12584
  }
12184
12585
  return { run, report: await optional("report.md"), evidence: await optional("evidence.json", true), result: resultText === null ? null : parseSaved(resultText, "result.json"), integrity };
12185
12586
  }
12186
- async function comparisonSnapshot(name2, id) {
12187
- const detail = await runDetails(name2, id), record2 = (await projectRuns(root, name2)).find((run) => run.id === id);
12188
- const brief = detail.integrity.issues.length ? { inputs: {} } : JSON.parse(await limited(await safe(root, [...runParts(name2, id), "brief.json"])));
12189
- 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 };
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 };
12190
12591
  }
12191
- async function startRun(name2) {
12192
- return reserve(name2, async (controller) => {
12193
- const project = await readProject(root, name2), meta = await readMetadata(name2), tools = await installed(meta.kind);
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);
12194
12595
  controller.signal.throwIfAborted();
12195
12596
  if (meta.execution === "native-hermes")
12196
12597
  return startNative(project, meta, controller);
12197
- const id = new Date().toISOString().replaceAll(":", "-").replace(".", "-") + "-" + randomUUID3().slice(0, 8), parts = runParts(name2, id);
12598
+ const id = new Date().toISOString().replaceAll(":", "-").replace(".", "-") + "-" + randomUUID3().slice(0, 8), parts = runParts(name, id);
12198
12599
  const output = await safe(root, parts), createdAt = new Date().toISOString();
12199
- const brief = json2(project), prompt = renderProjectPrompt(project, output, (await projectRuns(root, name2)).at(-1));
12600
+ const brief = json2(project), prompt = renderProjectPrompt(project, output, (await projectRuns(root, name)).at(-1));
12200
12601
  controller.signal.throwIfAborted();
12201
- const projectLock = await safe(root, [...projectParts(name2), "run.lock"]);
12602
+ const projectLock = await safe(root, [...projectParts(name), "run.lock"]);
12202
12603
  try {
12203
12604
  await mkdir3(projectLock, { mode: 448 });
12204
12605
  } catch (error) {
@@ -12206,29 +12607,29 @@ async function startDesk(options) {
12206
12607
  throw new DeskError("This project already has an active run or an unresolved run lock", 409);
12207
12608
  throw error;
12208
12609
  }
12209
- const run = { schemaVersion: 1, id, project: name2, kind: meta.kind, createdAt, state: "queued", progress: "Preparing verified research tools" };
12210
- const record2 = { schemaVersion: 1, id, project: name2, createdAt, state: "prepared", briefSha256: sha(brief), promptSha256: sha(prompt), pack: tools.pack, maxTurns: 1 };
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 };
12211
12612
  try {
12212
12613
  await writeFile3(join5(projectLock, "owner.json"), json2({ pid: process.pid, runId: id, owner: "desk" }), { flag: "wx", mode: 384 });
12213
12614
  await mkdir3(output, { mode: 448 });
12214
12615
  await mkdir3(join5(output, "sources"), { mode: 448 });
12215
- for (const [file, value] of [["brief.json", brief], ["prompt.md", prompt], ["run.json", json2(record2)], ["desk.json", json2(run)]])
12616
+ for (const [file, value] of [["brief.json", brief], ["prompt.md", prompt], ["run.json", json2(record)], ["desk.json", json2(run)]])
12216
12617
  await writeFile3(join5(output, file), value, { flag: "wx", mode: 384 });
12217
12618
  } catch (error) {
12218
12619
  await rm3(projectLock, { recursive: true, force: true });
12219
12620
  throw error;
12220
12621
  }
12221
12622
  const entry = { controller, done: Promise.resolve() };
12222
- active.set(name2, entry);
12223
- entry.done = execute(project, tools, run, record2, controller.signal).finally(async () => {
12224
- active.delete(name2);
12623
+ active.set(name, entry);
12624
+ entry.done = execute(project, tools, run, record, controller.signal).finally(async () => {
12625
+ active.delete(name);
12225
12626
  await rm3(projectLock, { recursive: true, force: true });
12226
12627
  });
12227
12628
  return run;
12228
12629
  });
12229
12630
  }
12230
- async function followup(name2, body) {
12231
- return reserve(`followup-${name2}`, async (controller) => {
12631
+ async function followup(name, body) {
12632
+ return reserve(`followup-${name}`, async (controller) => {
12232
12633
  if (!object(body) || Object.keys(body).some((key) => !["question", "maxTurns", "runId"].includes(key)) || typeof body.question !== "string" || !body.question.trim() || body.question.length > 4000)
12233
12634
  throw new DeskError("Enter a follow-up question under 4000 characters");
12234
12635
  if (body.runId !== undefined && (typeof body.runId !== "string" || !runPattern.test(body.runId)))
@@ -12236,13 +12637,13 @@ async function startDesk(options) {
12236
12637
  const maxTurns = body.maxTurns ?? 10;
12237
12638
  if (!Number.isInteger(maxTurns) || maxTurns < 1 || maxTurns > 30)
12238
12639
  throw new DeskError("Follow-up requires 1\u201330 native model turns");
12239
- const previous = await readProject(root, name2), meta = await readMetadata(name2);
12640
+ const previous = await readProject(root, name), meta = await readMetadata(name);
12240
12641
  await installed(meta.kind);
12241
- const runs = await projectRuns(root, name2);
12642
+ const runs = await projectRuns(root, name);
12242
12643
  const priorRun = body.runId ? runs.find((item) => item.id === body.runId) : runs.filter((item) => item.state === "ready-for-review").at(-1);
12243
12644
  if (!priorRun || priorRun.state !== "ready-for-review")
12244
12645
  throw new DeskError("Follow up on a completed result with verified evidence", 409);
12245
- const priorDetail = await runDetails(name2, priorRun.id);
12646
+ const priorDetail = await runDetails(name, priorRun.id);
12246
12647
  if (!["complete", "partial"].includes(priorDetail.run.state) || priorDetail.integrity.issues.length)
12247
12648
  throw new DeskError("Follow up on a completed result with verified evidence", 409);
12248
12649
  checkProfile();
@@ -12253,9 +12654,9 @@ async function startDesk(options) {
12253
12654
  throw new DeskError("Configure the native Hermes runtime and model first", 409);
12254
12655
  const derivedName = `followup-${randomUUID3().slice(0, 8)}`;
12255
12656
  const question = body.question.trim(), title = `Follow-up: ${question}`.slice(0, 160);
12256
- const priorBrief = JSON.parse(await limited(await safe(root, [...runParts(name2, priorRun.id), "brief.json"])));
12257
- 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);
12258
- const derived = { schemaVersion: 1, kind: meta.kind, title, execution: "native-hermes", maxTurns, parent: { project: name2, runId: priorRun.id } };
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 } };
12259
12660
  await writeFile3(await safe(root, [...projectParts(derivedName), "desk.json"]), json2(derived), { flag: "wx", mode: 384 });
12260
12661
  const run = await startNative(project, derived, controller);
12261
12662
  return { project: await projectDto(project), run };
@@ -12265,8 +12666,8 @@ async function startDesk(options) {
12265
12666
  if (active.has(project.name))
12266
12667
  throw new DeskError("This project already has an active run", 409);
12267
12668
  let persisted, preparedResolve, preparedReject;
12268
- const prepared = new Promise((resolve6, reject) => {
12269
- preparedResolve = resolve6;
12669
+ const prepared = new Promise((resolve, reject) => {
12670
+ preparedResolve = resolve;
12270
12671
  preparedReject = reject;
12271
12672
  });
12272
12673
  const entry = { controller, done: Promise.resolve() };
@@ -12277,8 +12678,8 @@ async function startDesk(options) {
12277
12678
  signal: controller.signal,
12278
12679
  executable: options.nativeExecutable,
12279
12680
  maxTurns: meta.maxTurns ?? 10,
12280
- onPrepared: async (record2) => {
12281
- 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" };
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" };
12282
12683
  await saveRun(persisted);
12283
12684
  preparedResolve(persisted);
12284
12685
  },
@@ -12312,7 +12713,7 @@ async function startDesk(options) {
12312
12713
  })();
12313
12714
  return prepared;
12314
12715
  }
12315
- async function execute(project, tools, run, record2, signal) {
12716
+ async function execute(project, tools, run, record, signal) {
12316
12717
  const parts = runParts(project.name, run.id), evidence = [];
12317
12718
  async function progress(message) {
12318
12719
  signal.throwIfAborted();
@@ -12338,10 +12739,10 @@ async function startDesk(options) {
12338
12739
  }
12339
12740
  await progress(label);
12340
12741
  const sequence = ++readSequence;
12341
- const response2 = await (options.fetcher ?? fetch)(resource, { ...init, credentials: "omit", redirect: "error", signal: init?.signal ? AbortSignal.any([signal, init.signal]) : signal });
12742
+ const response = await (options.fetcher ?? fetch)(resource, { ...init, credentials: "omit", redirect: "error", signal: init?.signal ? AbortSignal.any([signal, init.signal]) : signal });
12342
12743
  {
12343
- const limit = run.kind === "wallet" ? 8388608 : 2097152, reader = response2.body?.getReader();
12344
- if (!reader || Number(response2.headers.get("content-length")) > limit)
12744
+ const limit = run.kind === "wallet" ? 8388608 : 2097152, reader = response.body?.getReader();
12745
+ if (!reader || Number(response.headers.get("content-length")) > limit)
12345
12746
  throw new DeskError("Public response exceeds the capture bound", 502);
12346
12747
  const chunks = [];
12347
12748
  let length = 0;
@@ -12359,17 +12760,17 @@ async function startDesk(options) {
12359
12760
  } finally {
12360
12761
  await reader.cancel().catch(() => {});
12361
12762
  }
12362
- const bytes2 = Buffer.concat(chunks);
12363
- new TextDecoder("utf-8", { fatal: true }).decode(bytes2);
12364
- 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."]);
12365
- return new Response(bytes2, { status: response2.status, headers: response2.headers });
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 });
12366
12767
  }
12367
12768
  };
12368
12769
  try {
12369
12770
  run.state = "running";
12370
- record2.state = "running";
12771
+ record.state = "running";
12371
12772
  await saveRun(run);
12372
- await atomic(root, [...parts, "run.json"], json2(record2));
12773
+ await atomic(root, [...parts, "run.json"], json2(record));
12373
12774
  const module = await import(pathToFileURL(tools.path).href + `?release=${tools.pack.revision}`);
12374
12775
  let result, report, partial = false;
12375
12776
  if (run.kind === "wallet") {
@@ -12471,16 +12872,16 @@ Captured evidence:
12471
12872
  await atomic(root, [...parts, "report.md"], report);
12472
12873
  await atomic(root, [...parts, "evidence.json"], json2({ schemaVersion: 1, observations: evidence }));
12473
12874
  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: [] }));
12474
- record2.state = "needs-review";
12475
- record2.finishedAt = new Date().toISOString();
12476
- await atomic(root, [...parts, "run.json"], json2(record2));
12875
+ record.state = "needs-review";
12876
+ record.finishedAt = new Date().toISOString();
12877
+ await atomic(root, [...parts, "run.json"], json2(record));
12477
12878
  const checked = await checkProjectRun(root, project.name, run.id);
12478
12879
  if (checked.issues.length)
12479
12880
  throw new DeskError("Saved result failed evidence validation: " + checked.issues.join("; "), 409);
12480
- record2.state = "ready-for-review";
12481
- await atomic(root, [...parts, "run.json"], json2(record2));
12881
+ record.state = "ready-for-review";
12882
+ await atomic(root, [...parts, "run.json"], json2(record));
12482
12883
  run.state = partial ? "partial" : "complete";
12483
- run.finishedAt = record2.finishedAt;
12884
+ run.finishedAt = record.finishedAt;
12484
12885
  run.progress = partial ? "Saved with explicit missing or partial observations" : "Research saved; sources and methodology are available";
12485
12886
  await saveRun(run);
12486
12887
  } catch (error) {
@@ -12489,9 +12890,9 @@ Captured evidence:
12489
12890
  run.finishedAt = new Date().toISOString();
12490
12891
  run.error = message;
12491
12892
  run.progress = message;
12492
- record2.state = "failed";
12493
- record2.finishedAt = run.finishedAt;
12494
- record2.issues = [message];
12893
+ record.state = "failed";
12894
+ record.finishedAt = run.finishedAt;
12895
+ record.issues = [message];
12495
12896
  await atomic(root, [...parts, "evidence.json"], json2({ schemaVersion: 1, observations: evidence }));
12496
12897
  await atomic(root, [...parts, "report.md"], `# Research incomplete
12497
12898
 
@@ -12502,14 +12903,14 @@ ${evidence.map((item) => `[${item.id}] ${item.summary}`).join(`
12502
12903
  `)}
12503
12904
  `);
12504
12905
  await atomic(root, [...parts, "plan.json"], json2({ schemaVersion: 1, status: "no-action", authorization: "not-granted", summary: message, steps: [] }));
12505
- await atomic(root, [...parts, "run.json"], json2(record2));
12906
+ await atomic(root, [...parts, "run.json"], json2(record));
12506
12907
  await saveRun(run);
12507
12908
  }
12508
12909
  }
12509
12910
  let origin = "";
12510
12911
  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'" };
12511
- function response(value, status2 = 200) {
12512
- return Response.json(value, { status: status2, headers });
12912
+ function response(value, status = 200) {
12913
+ return Response.json(value, { status, headers });
12513
12914
  }
12514
12915
  async function requestJson(request) {
12515
12916
  if (request.headers.get("content-type")?.split(";")[0].trim() !== "application/json")
@@ -12596,13 +12997,13 @@ ${evidence.map((item) => `[${item.id}] ${item.summary}`).join(`
12596
12997
  const match = path.match(/^\/api\/projects\/([a-z0-9-]+)(?:\/runs\/([^/]+)(?:\/(export|cancel|evidence|compare)(?:\/([^/]+))?)?|\/(run|refresh|followup))?$/);
12597
12998
  if (!match)
12598
12999
  throw new DeskError("Unknown desk route", 404);
12599
- const [, name2, id, action, observationId, operation] = match;
13000
+ const [, name, id, action, observationId, operation] = match;
12600
13001
  if (!id && !operation && request.method === "GET")
12601
- return response({ project: await projectDto(await readProject(root, name2)) });
13002
+ return response({ project: await projectDto(await readProject(root, name)) });
12602
13003
  if (operation === "followup" && request.method === "POST")
12603
- return response(await followup(name2, await requestJson(request)), 202);
13004
+ return response(await followup(name, await requestJson(request)), 202);
12604
13005
  if (operation && request.method === "POST")
12605
- return response({ run: await startRun(name2) }, 202);
13006
+ return response({ run: await startRun(name) }, 202);
12606
13007
  if (id) {
12607
13008
  if (action === "compare" && request.method === "GET") {
12608
13009
  const params = new URL(request.url).searchParams, baseline = params.get("baseline");
@@ -12610,35 +13011,35 @@ ${evidence.map((item) => `[${item.id}] ${item.summary}`).join(`
12610
13011
  throw new DeskError("Choose one baseline run from this project");
12611
13012
  validRun(baseline);
12612
13013
  validRun(id);
12613
- const before = await comparisonSnapshot(name2, baseline), after = await comparisonSnapshot(name2, id);
13014
+ const before = await comparisonSnapshot(name, baseline), after = await comparisonSnapshot(name, id);
12614
13015
  return response(compareDeskRuns(after.run.kind, before, after));
12615
13016
  }
12616
13017
  if (action === "cancel" && request.method === "POST") {
12617
- const run = await readDeskRun(name2, id), pending = active.get(name2);
13018
+ const run = await readDeskRun(name, id), pending = active.get(name);
12618
13019
  if (!pending || !["queued", "running"].includes(run.state))
12619
13020
  throw new DeskError("This run is no longer active", 409);
12620
- const current = (await projectRuns(root, name2)).at(-1);
13021
+ const current = (await projectRuns(root, name)).at(-1);
12621
13022
  if (current?.id !== id)
12622
13023
  throw new DeskError("Only the active run can be cancelled", 409);
12623
13024
  pending.controller.abort();
12624
13025
  await pending.done;
12625
- return response({ run: await readDeskRun(name2, id) });
13026
+ return response({ run: await readDeskRun(name, id) });
12626
13027
  }
12627
13028
  if (request.method === "GET" && action === "evidence") {
12628
13029
  if (!observationId || !slug.test(observationId))
12629
13030
  throw new DeskError("Invalid observation ID");
12630
- const detail = await runDetails(name2, id), evidence = detail.evidence?.observations?.find((item) => item.id === observationId);
13031
+ const detail = await runDetails(name, id), evidence = detail.evidence?.observations?.find((item) => item.id === observationId);
12631
13032
  if (!evidence || !/^sources\/(?:[a-zA-Z0-9][a-zA-Z0-9._-]*\/)*[a-zA-Z0-9][a-zA-Z0-9._-]*$/.test(evidence.artifact))
12632
13033
  throw new DeskError("Unknown captured observation", 404);
12633
- const bytes2 = await limitedBytes(await safe(root, [...runParts(name2, id), ...evidence.artifact.split("/")]), 20971520);
12634
- if (sha(bytes2) !== evidence.sha256)
13034
+ const bytes = await limitedBytes(await safe(root, [...runParts(name, id), ...evidence.artifact.split("/")]), 20971520);
13035
+ if (sha(bytes) !== evidence.sha256)
12635
13036
  throw new DeskError("Captured artifact hash differs from its evidence record", 409);
12636
- return new Response(bytes2, { headers: { ...headers, "content-type": "text/plain; charset=utf-8" } });
13037
+ return new Response(bytes, { headers: { ...headers, "content-type": "text/plain; charset=utf-8" } });
12637
13038
  }
12638
13039
  if (request.method === "GET" && (!action || action === "export")) {
12639
- const detail = await runDetails(name2, id);
13040
+ const detail = await runDetails(name, id);
12640
13041
  if (action === "export")
12641
- return new Response(json2(detail), { headers: { ...headers, "content-type": "application/json", "content-disposition": `attachment; filename="${name2}-${id}.json"` } });
13042
+ return new Response(json2(detail), { headers: { ...headers, "content-type": "application/json", "content-disposition": `attachment; filename="${name}-${id}.json"` } });
12642
13043
  return response(detail);
12643
13044
  }
12644
13045
  }
@@ -12669,8 +13070,8 @@ ${evidence.map((item) => `[${item.id}] ${item.summary}`).join(`
12669
13070
  const contents = await readFile5(filePath);
12670
13071
  return new Response(request.method === "HEAD" ? null : contents, { headers: { ...headers, "content-type": file.type } });
12671
13072
  } catch (error) {
12672
- const status2 = error instanceof DeskError ? error.status : error?.code === "ENOENT" ? 404 : 500;
12673
- return response({ error: { message: status2 === 500 ? "Desk operation failed; saved files were preserved" : error.message } }, status2);
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);
12674
13075
  }
12675
13076
  }
12676
13077
  });
@@ -12808,8 +13209,8 @@ function createNativeDashboard(directory, options = {}) {
12808
13209
  const consume = async (stream) => {
12809
13210
  const decoder = new TextDecoder;
12810
13211
  let tail = "";
12811
- for await (const bytes2 of stream) {
12812
- const lines = (tail + decoder.decode(bytes2, { stream: true })).split(`
13212
+ for await (const bytes of stream) {
13213
+ const lines = (tail + decoder.decode(bytes, { stream: true })).split(`
12813
13214
  `);
12814
13215
  tail = lines.pop().slice(-4096);
12815
13216
  for (const line of lines) {
@@ -12998,22 +13399,22 @@ async function main() {
12998
13399
  if (command === "desk") {
12999
13400
  if (values.pack || values.harness || values["offline-catalog"])
13000
13401
  throw new Error("desk uses its selected Hermes profile; pack options belong to setup or onboard");
13001
- const directory2 = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
13402
+ const directory = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
13002
13403
  const port = deskPort(values.port);
13003
13404
  if (values["dry-run"])
13004
- 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.`);
13005
- const catalog2 = parseCatalog(skills_default);
13006
- const nativeDashboard = createNativeDashboard(directory2);
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);
13007
13408
  const desk = await startDesk({
13008
- directory: directory2,
13009
- catalog: catalog2,
13409
+ directory,
13410
+ catalog,
13010
13411
  port,
13011
13412
  assetsDirectory: deskAssetsDirectory(import.meta.url),
13012
13413
  onSetup: async (signal) => {
13013
- const selected = await deskSetupPacks(directory2, catalog2);
13414
+ const selected = await deskSetupPacks(directory, catalog);
13014
13415
  signal.throwIfAborted();
13015
13416
  const group = process.platform !== "win32";
13016
- 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 });
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 });
13017
13418
  let termination;
13018
13419
  const abort = () => {
13019
13420
  termination ??= terminateOwnedProcess(child, group);
@@ -13033,13 +13434,13 @@ async function main() {
13033
13434
  }
13034
13435
  },
13035
13436
  onModelSetup: async (signal) => {
13036
- await prepareHermes(directory2, { install: true, skipModelSetup: true, signal });
13437
+ await prepareHermes(directory, { install: true, skipModelSetup: true, signal });
13037
13438
  signal.throwIfAborted();
13038
13439
  return nativeDashboard.open();
13039
13440
  }
13040
13441
  });
13041
13442
  console.log(`Boomkin desk: ${desk.url}
13042
- Profile: ${directory2}
13443
+ Profile: ${directory}
13043
13444
  Public jobs use bounded keyless reads. Native model research is optional. Stop with Ctrl-C.`);
13044
13445
  if (!values["no-open"]) {
13045
13446
  const opener = process.platform === "darwin" ? "open" : process.platform === "win32" ? undefined : Bun.which("xdg-open");
@@ -13073,11 +13474,11 @@ Public jobs use bounded keyless reads. Native model research is optional. Stop w
13073
13474
  throw new Error("--dry-run is available for project create and run");
13074
13475
  if (action === "run" && values.json && !values["dry-run"])
13075
13476
  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");
13076
- const directory2 = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
13477
+ const directory = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
13077
13478
  if (action === "list") {
13078
13479
  if (values.name !== undefined)
13079
13480
  throw new Error("project list does not accept --name");
13080
- const projects = await listProjects(directory2);
13481
+ const projects = await listProjects(directory);
13081
13482
  return console.log(values.json ? JSON.stringify({ schemaVersion: 1, projects }, null, 2) : projects.length ? projects.map((project) => `${project.name}: ${project.workflow.title}`).join(`
13082
13483
  `) : "No saved projects. Use project create with a workflow and input file.");
13083
13484
  }
@@ -13090,19 +13491,19 @@ Public jobs use bounded keyless reads. Native model research is optional. Stop w
13090
13491
  if (file.size > 65536)
13091
13492
  throw new Error("Project input file exceeds 64 KiB");
13092
13493
  const supplied = await file.json();
13093
- 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));
13094
- 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.`);
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.`);
13095
13496
  }
13096
13497
  if (action === "show")
13097
- return console.log(JSON.stringify({ project: await readProject(directory2, values.name), runs: await projectRuns(directory2, values.name) }, null, 2));
13498
+ return console.log(JSON.stringify({ project: await readProject(directory, values.name), runs: await projectRuns(directory, values.name) }, null, 2));
13098
13499
  if (action === "run") {
13099
- const result2 = await runProject(directory2, values.name, { dryRun: values["dry-run"], maxTurns: values["max-turns"] === undefined ? undefined : Number(values["max-turns"]) });
13100
- return console.log(values.json ? JSON.stringify(result2, null, 2) : values["dry-run"] ? result2.prompt : `${result2.run.state}: ${result2.path}${result2.run.issues?.length ? `
13101
- ${result2.run.issues.join(`
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(`
13102
13503
  `)}` : `
13103
13504
  Captured files passed structural and hash checks. Review the findings and unsigned plan.`}`);
13104
13505
  }
13105
- const result = await checkProjectRun(directory2, values.name, values["run-id"]);
13506
+ const result = await checkProjectRun(directory, values.name, values["run-id"]);
13106
13507
  console.log(JSON.stringify(result, null, 2));
13107
13508
  if (result.issues.length)
13108
13509
  process.exitCode = 1;
@@ -13119,7 +13520,8 @@ Captured files passed structural and hash checks. Review the findings and unsign
13119
13520
  if (command === "workflows") {
13120
13521
  if (values.pack || values.harness || values.directory)
13121
13522
  throw new Error("workflows accepts --workflow, --protocol and --json");
13122
- const selected = values.workflow !== undefined ? [selectWorkflow(values.workflow)] : workflows.filter((item) => values.protocol === undefined || item.protocol.toLowerCase() === values.protocol.toLowerCase());
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));
13123
13525
  if (!selected.length)
13124
13526
  throw new Error("No matching protocol. Run workflows to list supported protocols.");
13125
13527
  return console.log(values.json ? JSON.stringify({ schemaVersion: 1, workflows: selected }, null, 2) : selected.map(renderWorkflow).join(`
@@ -13138,7 +13540,7 @@ Captured files passed structural and hash checks. Review the findings and unsign
13138
13540
  if (["onboard", "doctor", "start", "connect", "model", "chatgpt"].includes(command)) {
13139
13541
  if (values.harness && values.harness !== "hermes")
13140
13542
  throw new Error("Boomkin onboarding uses Hermes. Use setup for skill-only compatibility with another harness.");
13141
- const directory2 = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
13543
+ const directory = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
13142
13544
  if (command === "onboard") {
13143
13545
  if (values.pack && values["all-packs"])
13144
13546
  throw new Error("Choose --pack or --all-packs, not both");
@@ -13150,36 +13552,36 @@ Captured files passed structural and hash checks. Review the findings and unsign
13150
13552
  "--harness",
13151
13553
  "hermes",
13152
13554
  "--directory",
13153
- directory2,
13555
+ directory,
13154
13556
  ...selected?.flatMap((id) => ["--pack", id]) ?? [],
13155
13557
  ...values["dry-run"] ? ["--dry-run"] : []
13156
13558
  ];
13157
13559
  const child = Bun.spawn(args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" });
13158
13560
  if (await child.exited !== 0)
13159
13561
  throw new Error("Skill setup did not finish. Resolve its reported issue and rerun onboard.");
13160
- console.log(`Hermes home: ${directory2}. Native model setup and keyless CoinGecko data; other providers are opt-in.`);
13161
- await prepareHermes(directory2, { install: !values["no-install"], dryRun: values["dry-run"], skipModelSetup: values["skip-model-setup"] });
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"] });
13162
13564
  if (values["dry-run"])
13163
13565
  return;
13164
- console.log(JSON.stringify(await doctor(directory2, parseCatalog(skills_default)), null, 2));
13566
+ console.log(JSON.stringify(await doctor(directory, parseCatalog(skills_default)), null, 2));
13165
13567
  console.log("Onboarding saved. Use doctor --live to check public data, then start to launch Hermes. Complete any listed setup gaps first.");
13166
13568
  return;
13167
13569
  }
13168
13570
  if (values.pack || values["all-packs"] || values["skip-model-setup"] || values["no-install"])
13169
13571
  throw new Error("Pack and installer options are only available for onboard here");
13170
13572
  if (command === "chatgpt")
13171
- return runChatGpt(directory2, values.action ?? "status", values["dry-run"]);
13573
+ return runChatGpt(directory, values.action ?? "status", values["dry-run"]);
13172
13574
  if (command === "doctor")
13173
- return console.log(JSON.stringify(await doctor(directory2, parseCatalog(skills_default), values.live), null, 2));
13575
+ return console.log(JSON.stringify(await doctor(directory, parseCatalog(skills_default), values.live), null, 2));
13174
13576
  if (command === "connect")
13175
- return connectProvider(directory2, values.provider ?? "", values["dry-run"], values["key-file"] ? resolve8(values["key-file"]) : undefined);
13577
+ return connectProvider(directory, values.provider ?? "", values["dry-run"], values["key-file"] ? resolve8(values["key-file"]) : undefined);
13176
13578
  if (values["dry-run"])
13177
- return console.log(`Hermes ${command === "model" ? "setup model" : "chat"} in ${directory2}`);
13178
- return runHermes(directory2, command === "model" ? ["setup", "model"] : ["chat"]);
13579
+ return console.log(`Hermes ${command === "model" ? "setup model" : "chat"} in ${directory}`);
13580
+ return runHermes(directory, command === "model" ? ["setup", "model"] : ["chat"]);
13179
13581
  }
13180
13582
  if (command === "harnesses") {
13181
- for (const [name2, h] of Object.entries(harnesses))
13182
- console.log(`${name2}
13583
+ for (const [name, h] of Object.entries(harnesses))
13584
+ console.log(`${name}
13183
13585
  ${h.setup}
13184
13586
  ${h.docs}
13185
13587
  `);
@@ -13220,11 +13622,11 @@ Captured files passed structural and hash checks. Review the findings and unsign
13220
13622
  if (await child.exited !== 0)
13221
13623
  throw new Error("Upstream skills command failed. Completed packs remain installed; rerun after resolving the error.");
13222
13624
  }
13223
- async function verifyInstalled(catalog2) {
13224
- for (const pack of catalog2.packs) {
13625
+ async function verifyInstalled(catalog) {
13626
+ for (const pack of catalog.packs) {
13225
13627
  for (const skill of pack.skills) {
13226
- const text2 = await readFile7(join8(directory, adapter.skillsPath, skill, "SKILL.md"), "utf8");
13227
- const version = installedVersion(text2);
13628
+ const text = await readFile7(join8(directory, adapter.skillsPath, skill, "SKILL.md"), "utf8");
13629
+ const version = installedVersion(text);
13228
13630
  if (version !== pack.version)
13229
13631
  throw new Error(`Installed ${skill} has version ${version ?? "unknown"}; expected ${pack.version}. Sync not marked complete.`);
13230
13632
  }
@@ -13238,9 +13640,9 @@ ${adapter.setup}`);
13238
13640
  }
13239
13641
  let previous;
13240
13642
  try {
13241
- const record2 = JSON.parse(await readFile7(join8(stateDir, "last-sync.json"), "utf8"));
13242
- if (record2.catalog?.schemaVersion === 3)
13243
- previous = parseCatalog(record2.catalog);
13643
+ const record = JSON.parse(await readFile7(join8(stateDir, "last-sync.json"), "utf8"));
13644
+ if (record.catalog?.schemaVersion === 3)
13645
+ previous = parseCatalog(record.catalog);
13244
13646
  } catch (error) {
13245
13647
  if (error.code !== "ENOENT" && command === "check")
13246
13648
  throw new Error("Sync record is incomplete; run update to rebuild it.");