boomkin 0.12.2 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +19 -5
- package/catalog/providers.json +5 -4
- package/catalog/skills.json +56 -24
- package/catalog/workflows.json +438 -6
- package/dist/cli.js +837 -401
- package/docs/AGENT-INDEX.md +2 -2
- package/docs/CHATGPT.md +1 -1
- package/docs/CONNECTIONS.md +1 -1
- package/docs/DESK.md +1 -1
- package/docs/GETTING-STARTED.md +15 -5
- package/docs/UPDATES.md +3 -3
- package/docs/WORKFLOWS.md +86 -290
- package/package.json +1 -1
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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 = (
|
|
503
|
-
data.res =
|
|
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
|
|
548
|
-
onAnchor(
|
|
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
|
|
599
|
-
let data =
|
|
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 =
|
|
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(
|
|
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,
|
|
640
|
+
function getAliasCount(doc, node, anchors) {
|
|
645
641
|
if (identity.isAlias(node)) {
|
|
646
642
|
const source = node.resolve(doc);
|
|
647
|
-
const anchor =
|
|
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,
|
|
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,
|
|
659
|
-
const vc = getAliasCount(doc, node.value,
|
|
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
|
|
740
|
+
const node = new Scalar.Scalar(value);
|
|
745
741
|
if (ref)
|
|
746
|
-
ref.node =
|
|
747
|
-
return
|
|
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
|
|
997
|
-
const fold = folds[
|
|
998
|
-
const
|
|
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,
|
|
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,
|
|
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,
|
|
1638
|
+
for (const [key, value] of srcMap) {
|
|
1643
1639
|
if (map instanceof Map) {
|
|
1644
1640
|
if (!map.has(key))
|
|
1645
|
-
map.set(key,
|
|
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
|
|
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
|
|
1774
|
-
return
|
|
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
|
|
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
|
-
|
|
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
|
|
1800
|
-
if (
|
|
1801
|
-
|
|
1802
|
-
if (chompKeep &&
|
|
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 +
|
|
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(
|
|
2055
|
-
if (!identity.isMap(
|
|
2050
|
+
resolve(map, onError) {
|
|
2051
|
+
if (!identity.isMap(map))
|
|
2056
2052
|
onError("Expected a mapping for this tag");
|
|
2057
|
-
return
|
|
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(
|
|
2167
|
-
if (!identity.isSeq(
|
|
2162
|
+
resolve(seq, onError) {
|
|
2163
|
+
if (!identity.isSeq(seq))
|
|
2168
2164
|
onError("Expected a sequence for this tag");
|
|
2169
|
-
return
|
|
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
|
|
2516
|
-
|
|
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
|
-
|
|
2536
|
+
pairs.items.push(Pair.createPair(key, value, ctx));
|
|
2541
2537
|
}
|
|
2542
|
-
return
|
|
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
|
|
2597
|
-
|
|
2598
|
-
return
|
|
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
|
|
2725
|
-
return sign === "-" ? BigInt(-1) *
|
|
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
|
|
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
|
-
|
|
2830
|
+
set.items.push(Pair.createPair(value, null, ctx));
|
|
2835
2831
|
}
|
|
2836
|
-
return
|
|
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((
|
|
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((
|
|
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 (!
|
|
3068
|
-
|
|
3069
|
-
return
|
|
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
|
|
3397
|
-
onAnchor(
|
|
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
|
|
4147
|
+
const value = header.chomp === "+" && lines.length > 0 ? `
|
|
4152
4148
|
`.repeat(Math.max(1, lines.length - 1)) : "";
|
|
4153
|
-
let
|
|
4149
|
+
let end = start + header.length;
|
|
4154
4150
|
if (scalar.source)
|
|
4155
|
-
|
|
4156
|
-
return { value
|
|
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((
|
|
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((
|
|
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
|
|
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 =
|
|
5765
|
+
nl = i;
|
|
5770
5766
|
indent = 0;
|
|
5771
5767
|
break;
|
|
5772
5768
|
case "\r": {
|
|
5773
|
-
const next = this.buffer[
|
|
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
|
|
5817
|
-
let
|
|
5818
|
-
if (
|
|
5819
|
-
|
|
5820
|
-
const lastChar =
|
|
5821
|
-
while (
|
|
5822
|
-
|
|
5823
|
-
if (
|
|
5824
|
-
` &&
|
|
5825
|
-
nl =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
6885
|
-
const parser$1 = new parser.Parser(
|
|
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 &&
|
|
6884
|
+
if (prettyErrors && lineCounter)
|
|
6889
6885
|
for (const doc of docs) {
|
|
6890
|
-
doc.errors.forEach(errors.prettifyError(source,
|
|
6891
|
-
doc.warnings.forEach(errors.prettifyError(source,
|
|
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
|
|
6899
|
-
const parser$1 = new parser.Parser(
|
|
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 &&
|
|
6911
|
-
doc.errors.forEach(errors.prettifyError(source,
|
|
6912
|
-
doc.warnings.forEach(errors.prettifyError(source,
|
|
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: [
|
|
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: [
|
|
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: [
|
|
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: [
|
|
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: "
|
|
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: "
|
|
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
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
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
|
|
@@ -7599,17 +8001,21 @@ var skills_default = {
|
|
|
7599
8001
|
id: "lp-skills",
|
|
7600
8002
|
source: "galleonlabs/crypto-defi-skills",
|
|
7601
8003
|
description: "Agent skills and deterministic tools for Uniswap and Aerodrome liquidity provision.",
|
|
7602
|
-
version: "0.
|
|
7603
|
-
revision: "
|
|
8004
|
+
version: "0.7.0",
|
|
8005
|
+
revision: "0fb6faf0369951b628c6b146f055f3d5c8c5e6cb",
|
|
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
|
-
"
|
|
8016
|
+
"revert-position",
|
|
8017
|
+
"uniswap-v3-liquidity",
|
|
8018
|
+
"vfat-sickle"
|
|
7613
8019
|
],
|
|
7614
8020
|
path: "packages/lp",
|
|
7615
8021
|
package: "galleon-lp-skills"
|
|
@@ -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.
|
|
7669
|
-
revision: "
|
|
8074
|
+
version: "0.4.0",
|
|
8075
|
+
revision: "0fb6faf0369951b628c6b146f055f3d5c8c5e6cb",
|
|
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-
|
|
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.
|
|
7685
|
-
revision: "
|
|
8094
|
+
version: "0.3.0",
|
|
8095
|
+
revision: "0fb6faf0369951b628c6b146f055f3d5c8c5e6cb",
|
|
7686
8096
|
skills: [
|
|
7687
8097
|
"galleon-defi-staking",
|
|
7688
|
-
"galleon-
|
|
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.
|
|
7698
|
-
revision: "
|
|
8110
|
+
version: "0.4.0",
|
|
8111
|
+
revision: "0fb6faf0369951b628c6b146f055f3d5c8c5e6cb",
|
|
7699
8112
|
skills: [
|
|
7700
8113
|
"galleon-defi-yield",
|
|
8114
|
+
"galleon-ethena-susde",
|
|
8115
|
+
"galleon-euler-earn",
|
|
7701
8116
|
"galleon-pendle-maturity",
|
|
7702
|
-
"galleon-
|
|
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.
|
|
7712
|
-
revision: "
|
|
8128
|
+
version: "0.2.0",
|
|
8129
|
+
revision: "0fb6faf0369951b628c6b146f055f3d5c8c5e6cb",
|
|
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.
|
|
7724
|
-
revision: "
|
|
8142
|
+
version: "0.4.0",
|
|
8143
|
+
revision: "0fb6faf0369951b628c6b146f055f3d5c8c5e6cb",
|
|
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
|
-
"
|
|
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.
|
|
7738
|
-
revision: "
|
|
8163
|
+
version: "0.2.0",
|
|
8164
|
+
revision: "0fb6faf0369951b628c6b146f055f3d5c8c5e6cb",
|
|
7739
8165
|
skills: [
|
|
7740
|
-
"
|
|
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"
|
|
@@ -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.
|
|
7789
|
-
revision: "
|
|
8219
|
+
version: "0.2.0",
|
|
8220
|
+
revision: "0fb6faf0369951b628c6b146f055f3d5c8c5e6cb",
|
|
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"
|
|
@@ -7836,7 +8270,7 @@ var skills_default = {
|
|
|
7836
8270
|
// package.json
|
|
7837
8271
|
var package_default = {
|
|
7838
8272
|
name: "boomkin",
|
|
7839
|
-
version: "0.
|
|
8273
|
+
version: "0.13.0",
|
|
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
|
-
|
|
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 (
|
|
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.
|
|
8006
|
-
var HERMES_COMMIT = "
|
|
8007
|
-
var HERMES_INSTALLER_SHA256 = "
|
|
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
|
|
8064
|
-
return typeof
|
|
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
|
|
8181
|
-
const revision = (await new Response(
|
|
8182
|
-
if (await
|
|
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,
|
|
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"),
|
|
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((
|
|
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");
|
|
@@ -9329,16 +9763,17 @@ var providers_default = {
|
|
|
9329
9763
|
],
|
|
9330
9764
|
summary: "Use explicit read/build allowlists; verify destination recipient asset amount and source/destination hashes, embedded beneficiary.",
|
|
9331
9765
|
sources: [
|
|
9332
|
-
"https://skills.across.to/"
|
|
9766
|
+
"https://skills.across.to/",
|
|
9767
|
+
"https://docs.across.to/api-reference"
|
|
9333
9768
|
],
|
|
9334
9769
|
review: {
|
|
9335
9770
|
status: "primary-source-reviewed",
|
|
9336
|
-
checkedOn: "2026-10-
|
|
9337
|
-
notes: "
|
|
9771
|
+
checkedOn: "2026-10-25",
|
|
9772
|
+
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
9773
|
},
|
|
9339
9774
|
access: {
|
|
9340
9775
|
kind: "mixed",
|
|
9341
|
-
requirements: "
|
|
9776
|
+
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
9777
|
},
|
|
9343
9778
|
cost: "mixed",
|
|
9344
9779
|
authority: "mixed",
|
|
@@ -11647,7 +12082,7 @@ function walletRow(id, label, before, after, note) {
|
|
|
11647
12082
|
note: a && b ? note : `${note} Missing or invalid amounts remain unavailable.`
|
|
11648
12083
|
};
|
|
11649
12084
|
}
|
|
11650
|
-
function numericRow(id, label, unit, before, after, comparable, note,
|
|
12085
|
+
function numericRow(id, label, unit, before, after, comparable, note, relative = false) {
|
|
11651
12086
|
const a = number(before), b = number(after), delta = comparable && a !== null && b !== null ? b - a : null;
|
|
11652
12087
|
return {
|
|
11653
12088
|
id,
|
|
@@ -11656,7 +12091,7 @@ function numericRow(id, label, unit, before, after, comparable, note, relative2
|
|
|
11656
12091
|
before: display(a),
|
|
11657
12092
|
after: display(b),
|
|
11658
12093
|
delta: display(delta),
|
|
11659
|
-
changePct:
|
|
12094
|
+
changePct: relative && delta !== null && a !== null && a > 0 ? display(delta / a * 100) : null,
|
|
11660
12095
|
note: a === null || b === null ? `${note} Missing or invalid values remain unavailable.` : note
|
|
11661
12096
|
};
|
|
11662
12097
|
}
|
|
@@ -11729,12 +12164,12 @@ function finish(output) {
|
|
|
11729
12164
|
}
|
|
11730
12165
|
function market(output, before, after) {
|
|
11731
12166
|
function observations(snapshot) {
|
|
11732
|
-
const
|
|
12167
|
+
const rows = new Map;
|
|
11733
12168
|
const age = number(at(snapshot.result, "parameters", "maxAgeSeconds")) ?? 300;
|
|
11734
12169
|
for (const read of list2(at(snapshot.result, "reads")))
|
|
11735
12170
|
for (const row of list2(at(read, "observations"))) {
|
|
11736
|
-
const provider = at(read, "provider"),
|
|
11737
|
-
if (typeof provider !== "string" || !["coingecko", "defillama"].includes(provider) || at(row, "provider") !== provider || at(
|
|
12171
|
+
const provider = at(read, "provider"), identity = at(row, "identity");
|
|
12172
|
+
if (typeof provider !== "string" || !["coingecko", "defillama"].includes(provider) || at(row, "provider") !== provider || at(identity, "namespace") !== "coingecko" || at(identity, "id") !== snapshot.inputs.asset) {
|
|
11738
12173
|
output.issues.push("A market observation has an unsupported provider or mismatched CoinGecko identity.");
|
|
11739
12174
|
continue;
|
|
11740
12175
|
}
|
|
@@ -11742,13 +12177,13 @@ function market(output, before, after) {
|
|
|
11742
12177
|
const price = number(at(row, "priceUsd")), delay = (retrieved - observed) / 1000;
|
|
11743
12178
|
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
12179
|
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 (
|
|
12180
|
+
if (rows.has(key)) {
|
|
11746
12181
|
output.issues.push(`Duplicate ${key} observations cannot be matched reliably.`);
|
|
11747
|
-
|
|
12182
|
+
rows.set(key, { value: null, observed: NaN, note: "Duplicate source observations." });
|
|
11748
12183
|
} else
|
|
11749
|
-
|
|
12184
|
+
rows.set(key, { value: valid ? price : null, observed, note });
|
|
11750
12185
|
}
|
|
11751
|
-
return
|
|
12186
|
+
return rows;
|
|
11752
12187
|
}
|
|
11753
12188
|
const a = observations(before), b = observations(after);
|
|
11754
12189
|
const rows = [...new Set([...a.keys(), ...b.keys()])].sort().map((provider) => {
|
|
@@ -11900,10 +12335,10 @@ async function atomic(root, parts, value) {
|
|
|
11900
12335
|
await rm3(temporary, { force: true });
|
|
11901
12336
|
}
|
|
11902
12337
|
}
|
|
11903
|
-
var projectParts = (
|
|
11904
|
-
var runParts = (
|
|
11905
|
-
function parseRun(value,
|
|
11906
|
-
if (!object(value) || value.schemaVersion !== 1 || value.project !==
|
|
12338
|
+
var projectParts = (name) => [".boomkin", "projects", validName(name)];
|
|
12339
|
+
var runParts = (name, id) => [...projectParts(name), "runs", validRun(id)];
|
|
12340
|
+
function parseRun(value, name, id) {
|
|
12341
|
+
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
12342
|
throw new DeskError("Saved desk run is malformed; files were preserved", 409);
|
|
11908
12343
|
return value;
|
|
11909
12344
|
}
|
|
@@ -11978,10 +12413,10 @@ async function startDesk(options) {
|
|
|
11978
12413
|
const recovery = await safe(root, [".boomkin", "desk-recovery.lock"]);
|
|
11979
12414
|
try {
|
|
11980
12415
|
await mkdir3(recovery, { mode: 448 });
|
|
11981
|
-
} catch (
|
|
11982
|
-
if (
|
|
12416
|
+
} catch (error) {
|
|
12417
|
+
if (error.code === "EEXIST")
|
|
11983
12418
|
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
|
|
12419
|
+
throw error;
|
|
11985
12420
|
}
|
|
11986
12421
|
try {
|
|
11987
12422
|
await writeFile3(join5(recovery, "owner.json"), json2({ pid: process.pid, startedAt: new Date().toISOString() }), { flag: "wx", mode: 384 });
|
|
@@ -11996,8 +12431,8 @@ async function startDesk(options) {
|
|
|
11996
12431
|
let alive = true;
|
|
11997
12432
|
try {
|
|
11998
12433
|
process.kill(owner.pid, 0);
|
|
11999
|
-
} catch (
|
|
12000
|
-
if (
|
|
12434
|
+
} catch (error) {
|
|
12435
|
+
if (error.code === "ESRCH")
|
|
12001
12436
|
alive = false;
|
|
12002
12437
|
}
|
|
12003
12438
|
if (alive)
|
|
@@ -12009,11 +12444,11 @@ async function startDesk(options) {
|
|
|
12009
12444
|
}
|
|
12010
12445
|
}
|
|
12011
12446
|
await writeFile3(join5(lock, "owner.json"), json2({ pid: process.pid, startedAt: new Date().toISOString() }), { flag: "wx", mode: 384 });
|
|
12012
|
-
async function readMetadata(
|
|
12013
|
-
return parseMetadata(JSON.parse(await limited(await safe(root, [...projectParts(
|
|
12447
|
+
async function readMetadata(name) {
|
|
12448
|
+
return parseMetadata(JSON.parse(await limited(await safe(root, [...projectParts(name), "desk.json"]))));
|
|
12014
12449
|
}
|
|
12015
|
-
async function readDeskRun(
|
|
12016
|
-
return parseRun(JSON.parse(await limited(await safe(root, [...runParts(
|
|
12450
|
+
async function readDeskRun(name, id) {
|
|
12451
|
+
return parseRun(JSON.parse(await limited(await safe(root, [...runParts(name, id), "desk.json"]))), name, id);
|
|
12017
12452
|
}
|
|
12018
12453
|
async function saveRun(run) {
|
|
12019
12454
|
await atomic(root, [...runParts(run.project, run.id), "desk.json"], json2(run));
|
|
@@ -12086,8 +12521,8 @@ async function startDesk(options) {
|
|
|
12086
12521
|
throw new DeskError("This project already has an active run", 409);
|
|
12087
12522
|
const controller = new AbortController;
|
|
12088
12523
|
let release;
|
|
12089
|
-
const done = new Promise((
|
|
12090
|
-
release =
|
|
12524
|
+
const done = new Promise((resolve) => {
|
|
12525
|
+
release = resolve;
|
|
12091
12526
|
});
|
|
12092
12527
|
preparing.set(key, { controller, done });
|
|
12093
12528
|
try {
|
|
@@ -12139,20 +12574,20 @@ async function startDesk(options) {
|
|
|
12139
12574
|
const title = body.title ?? (kind === "wallet" ? "Hyperliquid wallet review" : kind === "market" ? `${input.asset} market research` : `${input.asset} strategy test`);
|
|
12140
12575
|
if (typeof title !== "string" || !title.trim() || title.length > 160)
|
|
12141
12576
|
throw new DeskError("Title must contain 1\u2013160 characters");
|
|
12142
|
-
const
|
|
12577
|
+
const name = `${kind}-${randomUUID3().slice(0, 8)}`;
|
|
12143
12578
|
controller.signal.throwIfAborted();
|
|
12144
12579
|
const { dataset, ...savedInput } = input;
|
|
12145
12580
|
if (dataset)
|
|
12146
12581
|
savedInput.uploadedDatasetSha256 = sha(json2(dataset));
|
|
12147
|
-
const project = await createProject(root, { name
|
|
12582
|
+
const project = await createProject(root, { name, workflow: kinds[kind].workflow, inputs: savedInput, objective: title }, catalog);
|
|
12148
12583
|
if (dataset)
|
|
12149
|
-
await writeFile3(await safe(root, [...projectParts(
|
|
12150
|
-
await writeFile3(await safe(root, [...projectParts(
|
|
12584
|
+
await writeFile3(await safe(root, [...projectParts(name), "input.json"]), json2(dataset), { flag: "wx", mode: 384 });
|
|
12585
|
+
await writeFile3(await safe(root, [...projectParts(name), "desk.json"]), json2({ schemaVersion: 1, kind, title }), { flag: "wx", mode: 384 });
|
|
12151
12586
|
return projectDto(project);
|
|
12152
12587
|
});
|
|
12153
12588
|
}
|
|
12154
|
-
async function runDetails(
|
|
12155
|
-
const run = await readDeskRun(
|
|
12589
|
+
async function runDetails(name, id) {
|
|
12590
|
+
const run = await readDeskRun(name, id), parts = runParts(name, id);
|
|
12156
12591
|
const integrity = { issues: [], resultVerified: false };
|
|
12157
12592
|
function parseSaved(value, file) {
|
|
12158
12593
|
try {
|
|
@@ -12174,7 +12609,7 @@ async function startDesk(options) {
|
|
|
12174
12609
|
}
|
|
12175
12610
|
const resultText = await optional("result.json");
|
|
12176
12611
|
if (["complete", "partial"].includes(run.state)) {
|
|
12177
|
-
integrity.issues = (await checkProjectRun(root,
|
|
12612
|
+
integrity.issues = (await checkProjectRun(root, name, id)).issues;
|
|
12178
12613
|
if (run.resultSha256 !== undefined) {
|
|
12179
12614
|
integrity.resultVerified = typeof run.resultSha256 === "string" && /^[a-f0-9]{64}$/.test(run.resultSha256) && resultText !== null && sha(resultText) === run.resultSha256;
|
|
12180
12615
|
if (!integrity.resultVerified)
|
|
@@ -12183,22 +12618,22 @@ async function startDesk(options) {
|
|
|
12183
12618
|
}
|
|
12184
12619
|
return { run, report: await optional("report.md"), evidence: await optional("evidence.json", true), result: resultText === null ? null : parseSaved(resultText, "result.json"), integrity };
|
|
12185
12620
|
}
|
|
12186
|
-
async function comparisonSnapshot(
|
|
12187
|
-
const detail = await runDetails(
|
|
12188
|
-
const brief = detail.integrity.issues.length ? { inputs: {} } : JSON.parse(await limited(await safe(root, [...runParts(
|
|
12189
|
-
return { run: detail.run, inputs: brief.inputs, packRevision:
|
|
12621
|
+
async function comparisonSnapshot(name, id) {
|
|
12622
|
+
const detail = await runDetails(name, id), record = (await projectRuns(root, name)).find((run) => run.id === id);
|
|
12623
|
+
const brief = detail.integrity.issues.length ? { inputs: {} } : JSON.parse(await limited(await safe(root, [...runParts(name, id), "brief.json"])));
|
|
12624
|
+
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
12625
|
}
|
|
12191
|
-
async function startRun(
|
|
12192
|
-
return reserve(
|
|
12193
|
-
const project = await readProject(root,
|
|
12626
|
+
async function startRun(name) {
|
|
12627
|
+
return reserve(name, async (controller) => {
|
|
12628
|
+
const project = await readProject(root, name), meta = await readMetadata(name), tools = await installed(meta.kind);
|
|
12194
12629
|
controller.signal.throwIfAborted();
|
|
12195
12630
|
if (meta.execution === "native-hermes")
|
|
12196
12631
|
return startNative(project, meta, controller);
|
|
12197
|
-
const id = new Date().toISOString().replaceAll(":", "-").replace(".", "-") + "-" + randomUUID3().slice(0, 8), parts = runParts(
|
|
12632
|
+
const id = new Date().toISOString().replaceAll(":", "-").replace(".", "-") + "-" + randomUUID3().slice(0, 8), parts = runParts(name, id);
|
|
12198
12633
|
const output = await safe(root, parts), createdAt = new Date().toISOString();
|
|
12199
|
-
const brief = json2(project), prompt = renderProjectPrompt(project, output, (await projectRuns(root,
|
|
12634
|
+
const brief = json2(project), prompt = renderProjectPrompt(project, output, (await projectRuns(root, name)).at(-1));
|
|
12200
12635
|
controller.signal.throwIfAborted();
|
|
12201
|
-
const projectLock = await safe(root, [...projectParts(
|
|
12636
|
+
const projectLock = await safe(root, [...projectParts(name), "run.lock"]);
|
|
12202
12637
|
try {
|
|
12203
12638
|
await mkdir3(projectLock, { mode: 448 });
|
|
12204
12639
|
} catch (error) {
|
|
@@ -12206,29 +12641,29 @@ async function startDesk(options) {
|
|
|
12206
12641
|
throw new DeskError("This project already has an active run or an unresolved run lock", 409);
|
|
12207
12642
|
throw error;
|
|
12208
12643
|
}
|
|
12209
|
-
const run = { schemaVersion: 1, id, project:
|
|
12210
|
-
const
|
|
12644
|
+
const run = { schemaVersion: 1, id, project: name, kind: meta.kind, createdAt, state: "queued", progress: "Preparing verified research tools" };
|
|
12645
|
+
const record = { schemaVersion: 1, id, project: name, createdAt, state: "prepared", briefSha256: sha(brief), promptSha256: sha(prompt), pack: tools.pack, maxTurns: 1 };
|
|
12211
12646
|
try {
|
|
12212
12647
|
await writeFile3(join5(projectLock, "owner.json"), json2({ pid: process.pid, runId: id, owner: "desk" }), { flag: "wx", mode: 384 });
|
|
12213
12648
|
await mkdir3(output, { mode: 448 });
|
|
12214
12649
|
await mkdir3(join5(output, "sources"), { mode: 448 });
|
|
12215
|
-
for (const [file, value] of [["brief.json", brief], ["prompt.md", prompt], ["run.json", json2(
|
|
12650
|
+
for (const [file, value] of [["brief.json", brief], ["prompt.md", prompt], ["run.json", json2(record)], ["desk.json", json2(run)]])
|
|
12216
12651
|
await writeFile3(join5(output, file), value, { flag: "wx", mode: 384 });
|
|
12217
12652
|
} catch (error) {
|
|
12218
12653
|
await rm3(projectLock, { recursive: true, force: true });
|
|
12219
12654
|
throw error;
|
|
12220
12655
|
}
|
|
12221
12656
|
const entry = { controller, done: Promise.resolve() };
|
|
12222
|
-
active.set(
|
|
12223
|
-
entry.done = execute(project, tools, run,
|
|
12224
|
-
active.delete(
|
|
12657
|
+
active.set(name, entry);
|
|
12658
|
+
entry.done = execute(project, tools, run, record, controller.signal).finally(async () => {
|
|
12659
|
+
active.delete(name);
|
|
12225
12660
|
await rm3(projectLock, { recursive: true, force: true });
|
|
12226
12661
|
});
|
|
12227
12662
|
return run;
|
|
12228
12663
|
});
|
|
12229
12664
|
}
|
|
12230
|
-
async function followup(
|
|
12231
|
-
return reserve(`followup-${
|
|
12665
|
+
async function followup(name, body) {
|
|
12666
|
+
return reserve(`followup-${name}`, async (controller) => {
|
|
12232
12667
|
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
12668
|
throw new DeskError("Enter a follow-up question under 4000 characters");
|
|
12234
12669
|
if (body.runId !== undefined && (typeof body.runId !== "string" || !runPattern.test(body.runId)))
|
|
@@ -12236,13 +12671,13 @@ async function startDesk(options) {
|
|
|
12236
12671
|
const maxTurns = body.maxTurns ?? 10;
|
|
12237
12672
|
if (!Number.isInteger(maxTurns) || maxTurns < 1 || maxTurns > 30)
|
|
12238
12673
|
throw new DeskError("Follow-up requires 1\u201330 native model turns");
|
|
12239
|
-
const previous = await readProject(root,
|
|
12674
|
+
const previous = await readProject(root, name), meta = await readMetadata(name);
|
|
12240
12675
|
await installed(meta.kind);
|
|
12241
|
-
const runs = await projectRuns(root,
|
|
12676
|
+
const runs = await projectRuns(root, name);
|
|
12242
12677
|
const priorRun = body.runId ? runs.find((item) => item.id === body.runId) : runs.filter((item) => item.state === "ready-for-review").at(-1);
|
|
12243
12678
|
if (!priorRun || priorRun.state !== "ready-for-review")
|
|
12244
12679
|
throw new DeskError("Follow up on a completed result with verified evidence", 409);
|
|
12245
|
-
const priorDetail = await runDetails(
|
|
12680
|
+
const priorDetail = await runDetails(name, priorRun.id);
|
|
12246
12681
|
if (!["complete", "partial"].includes(priorDetail.run.state) || priorDetail.integrity.issues.length)
|
|
12247
12682
|
throw new DeskError("Follow up on a completed result with verified evidence", 409);
|
|
12248
12683
|
checkProfile();
|
|
@@ -12253,9 +12688,9 @@ async function startDesk(options) {
|
|
|
12253
12688
|
throw new DeskError("Configure the native Hermes runtime and model first", 409);
|
|
12254
12689
|
const derivedName = `followup-${randomUUID3().slice(0, 8)}`;
|
|
12255
12690
|
const question = body.question.trim(), title = `Follow-up: ${question}`.slice(0, 160);
|
|
12256
|
-
const priorBrief = JSON.parse(await limited(await safe(root, [...runParts(
|
|
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:
|
|
12258
|
-
const derived = { schemaVersion: 1, kind: meta.kind, title, execution: "native-hermes", maxTurns, parent: { project:
|
|
12691
|
+
const priorBrief = JSON.parse(await limited(await safe(root, [...runParts(name, priorRun.id), "brief.json"])));
|
|
12692
|
+
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);
|
|
12693
|
+
const derived = { schemaVersion: 1, kind: meta.kind, title, execution: "native-hermes", maxTurns, parent: { project: name, runId: priorRun.id } };
|
|
12259
12694
|
await writeFile3(await safe(root, [...projectParts(derivedName), "desk.json"]), json2(derived), { flag: "wx", mode: 384 });
|
|
12260
12695
|
const run = await startNative(project, derived, controller);
|
|
12261
12696
|
return { project: await projectDto(project), run };
|
|
@@ -12265,8 +12700,8 @@ async function startDesk(options) {
|
|
|
12265
12700
|
if (active.has(project.name))
|
|
12266
12701
|
throw new DeskError("This project already has an active run", 409);
|
|
12267
12702
|
let persisted, preparedResolve, preparedReject;
|
|
12268
|
-
const prepared = new Promise((
|
|
12269
|
-
preparedResolve =
|
|
12703
|
+
const prepared = new Promise((resolve, reject) => {
|
|
12704
|
+
preparedResolve = resolve;
|
|
12270
12705
|
preparedReject = reject;
|
|
12271
12706
|
});
|
|
12272
12707
|
const entry = { controller, done: Promise.resolve() };
|
|
@@ -12277,8 +12712,8 @@ async function startDesk(options) {
|
|
|
12277
12712
|
signal: controller.signal,
|
|
12278
12713
|
executable: options.nativeExecutable,
|
|
12279
12714
|
maxTurns: meta.maxTurns ?? 10,
|
|
12280
|
-
onPrepared: async (
|
|
12281
|
-
persisted = { schemaVersion: 1, project: project.name, id:
|
|
12715
|
+
onPrepared: async (record) => {
|
|
12716
|
+
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
12717
|
await saveRun(persisted);
|
|
12283
12718
|
preparedResolve(persisted);
|
|
12284
12719
|
},
|
|
@@ -12312,7 +12747,7 @@ async function startDesk(options) {
|
|
|
12312
12747
|
})();
|
|
12313
12748
|
return prepared;
|
|
12314
12749
|
}
|
|
12315
|
-
async function execute(project, tools, run,
|
|
12750
|
+
async function execute(project, tools, run, record, signal) {
|
|
12316
12751
|
const parts = runParts(project.name, run.id), evidence = [];
|
|
12317
12752
|
async function progress(message) {
|
|
12318
12753
|
signal.throwIfAborted();
|
|
@@ -12338,10 +12773,10 @@ async function startDesk(options) {
|
|
|
12338
12773
|
}
|
|
12339
12774
|
await progress(label);
|
|
12340
12775
|
const sequence = ++readSequence;
|
|
12341
|
-
const
|
|
12776
|
+
const response = await (options.fetcher ?? fetch)(resource, { ...init, credentials: "omit", redirect: "error", signal: init?.signal ? AbortSignal.any([signal, init.signal]) : signal });
|
|
12342
12777
|
{
|
|
12343
|
-
const limit = run.kind === "wallet" ? 8388608 : 2097152, reader =
|
|
12344
|
-
if (!reader || Number(
|
|
12778
|
+
const limit = run.kind === "wallet" ? 8388608 : 2097152, reader = response.body?.getReader();
|
|
12779
|
+
if (!reader || Number(response.headers.get("content-length")) > limit)
|
|
12345
12780
|
throw new DeskError("Public response exceeds the capture bound", 502);
|
|
12346
12781
|
const chunks = [];
|
|
12347
12782
|
let length = 0;
|
|
@@ -12359,17 +12794,17 @@ async function startDesk(options) {
|
|
|
12359
12794
|
} finally {
|
|
12360
12795
|
await reader.cancel().catch(() => {});
|
|
12361
12796
|
}
|
|
12362
|
-
const
|
|
12363
|
-
new TextDecoder("utf-8", { fatal: true }).decode(
|
|
12364
|
-
await artifact(`read-${String(sequence).padStart(3, "0")}.${run.kind === "wallet" ? "txt" : "json"}`,
|
|
12365
|
-
return new Response(
|
|
12797
|
+
const bytes = Buffer.concat(chunks);
|
|
12798
|
+
new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
12799
|
+
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."]);
|
|
12800
|
+
return new Response(bytes, { status: response.status, headers: response.headers });
|
|
12366
12801
|
}
|
|
12367
12802
|
};
|
|
12368
12803
|
try {
|
|
12369
12804
|
run.state = "running";
|
|
12370
|
-
|
|
12805
|
+
record.state = "running";
|
|
12371
12806
|
await saveRun(run);
|
|
12372
|
-
await atomic(root, [...parts, "run.json"], json2(
|
|
12807
|
+
await atomic(root, [...parts, "run.json"], json2(record));
|
|
12373
12808
|
const module = await import(pathToFileURL(tools.path).href + `?release=${tools.pack.revision}`);
|
|
12374
12809
|
let result, report, partial = false;
|
|
12375
12810
|
if (run.kind === "wallet") {
|
|
@@ -12471,16 +12906,16 @@ Captured evidence:
|
|
|
12471
12906
|
await atomic(root, [...parts, "report.md"], report);
|
|
12472
12907
|
await atomic(root, [...parts, "evidence.json"], json2({ schemaVersion: 1, observations: evidence }));
|
|
12473
12908
|
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
|
-
|
|
12475
|
-
|
|
12476
|
-
await atomic(root, [...parts, "run.json"], json2(
|
|
12909
|
+
record.state = "needs-review";
|
|
12910
|
+
record.finishedAt = new Date().toISOString();
|
|
12911
|
+
await atomic(root, [...parts, "run.json"], json2(record));
|
|
12477
12912
|
const checked = await checkProjectRun(root, project.name, run.id);
|
|
12478
12913
|
if (checked.issues.length)
|
|
12479
12914
|
throw new DeskError("Saved result failed evidence validation: " + checked.issues.join("; "), 409);
|
|
12480
|
-
|
|
12481
|
-
await atomic(root, [...parts, "run.json"], json2(
|
|
12915
|
+
record.state = "ready-for-review";
|
|
12916
|
+
await atomic(root, [...parts, "run.json"], json2(record));
|
|
12482
12917
|
run.state = partial ? "partial" : "complete";
|
|
12483
|
-
run.finishedAt =
|
|
12918
|
+
run.finishedAt = record.finishedAt;
|
|
12484
12919
|
run.progress = partial ? "Saved with explicit missing or partial observations" : "Research saved; sources and methodology are available";
|
|
12485
12920
|
await saveRun(run);
|
|
12486
12921
|
} catch (error) {
|
|
@@ -12489,9 +12924,9 @@ Captured evidence:
|
|
|
12489
12924
|
run.finishedAt = new Date().toISOString();
|
|
12490
12925
|
run.error = message;
|
|
12491
12926
|
run.progress = message;
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12927
|
+
record.state = "failed";
|
|
12928
|
+
record.finishedAt = run.finishedAt;
|
|
12929
|
+
record.issues = [message];
|
|
12495
12930
|
await atomic(root, [...parts, "evidence.json"], json2({ schemaVersion: 1, observations: evidence }));
|
|
12496
12931
|
await atomic(root, [...parts, "report.md"], `# Research incomplete
|
|
12497
12932
|
|
|
@@ -12502,14 +12937,14 @@ ${evidence.map((item) => `[${item.id}] ${item.summary}`).join(`
|
|
|
12502
12937
|
`)}
|
|
12503
12938
|
`);
|
|
12504
12939
|
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(
|
|
12940
|
+
await atomic(root, [...parts, "run.json"], json2(record));
|
|
12506
12941
|
await saveRun(run);
|
|
12507
12942
|
}
|
|
12508
12943
|
}
|
|
12509
12944
|
let origin = "";
|
|
12510
12945
|
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,
|
|
12512
|
-
return Response.json(value, { status
|
|
12946
|
+
function response(value, status = 200) {
|
|
12947
|
+
return Response.json(value, { status, headers });
|
|
12513
12948
|
}
|
|
12514
12949
|
async function requestJson(request) {
|
|
12515
12950
|
if (request.headers.get("content-type")?.split(";")[0].trim() !== "application/json")
|
|
@@ -12596,13 +13031,13 @@ ${evidence.map((item) => `[${item.id}] ${item.summary}`).join(`
|
|
|
12596
13031
|
const match = path.match(/^\/api\/projects\/([a-z0-9-]+)(?:\/runs\/([^/]+)(?:\/(export|cancel|evidence|compare)(?:\/([^/]+))?)?|\/(run|refresh|followup))?$/);
|
|
12597
13032
|
if (!match)
|
|
12598
13033
|
throw new DeskError("Unknown desk route", 404);
|
|
12599
|
-
const [,
|
|
13034
|
+
const [, name, id, action, observationId, operation] = match;
|
|
12600
13035
|
if (!id && !operation && request.method === "GET")
|
|
12601
|
-
return response({ project: await projectDto(await readProject(root,
|
|
13036
|
+
return response({ project: await projectDto(await readProject(root, name)) });
|
|
12602
13037
|
if (operation === "followup" && request.method === "POST")
|
|
12603
|
-
return response(await followup(
|
|
13038
|
+
return response(await followup(name, await requestJson(request)), 202);
|
|
12604
13039
|
if (operation && request.method === "POST")
|
|
12605
|
-
return response({ run: await startRun(
|
|
13040
|
+
return response({ run: await startRun(name) }, 202);
|
|
12606
13041
|
if (id) {
|
|
12607
13042
|
if (action === "compare" && request.method === "GET") {
|
|
12608
13043
|
const params = new URL(request.url).searchParams, baseline = params.get("baseline");
|
|
@@ -12610,35 +13045,35 @@ ${evidence.map((item) => `[${item.id}] ${item.summary}`).join(`
|
|
|
12610
13045
|
throw new DeskError("Choose one baseline run from this project");
|
|
12611
13046
|
validRun(baseline);
|
|
12612
13047
|
validRun(id);
|
|
12613
|
-
const before = await comparisonSnapshot(
|
|
13048
|
+
const before = await comparisonSnapshot(name, baseline), after = await comparisonSnapshot(name, id);
|
|
12614
13049
|
return response(compareDeskRuns(after.run.kind, before, after));
|
|
12615
13050
|
}
|
|
12616
13051
|
if (action === "cancel" && request.method === "POST") {
|
|
12617
|
-
const run = await readDeskRun(
|
|
13052
|
+
const run = await readDeskRun(name, id), pending = active.get(name);
|
|
12618
13053
|
if (!pending || !["queued", "running"].includes(run.state))
|
|
12619
13054
|
throw new DeskError("This run is no longer active", 409);
|
|
12620
|
-
const current = (await projectRuns(root,
|
|
13055
|
+
const current = (await projectRuns(root, name)).at(-1);
|
|
12621
13056
|
if (current?.id !== id)
|
|
12622
13057
|
throw new DeskError("Only the active run can be cancelled", 409);
|
|
12623
13058
|
pending.controller.abort();
|
|
12624
13059
|
await pending.done;
|
|
12625
|
-
return response({ run: await readDeskRun(
|
|
13060
|
+
return response({ run: await readDeskRun(name, id) });
|
|
12626
13061
|
}
|
|
12627
13062
|
if (request.method === "GET" && action === "evidence") {
|
|
12628
13063
|
if (!observationId || !slug.test(observationId))
|
|
12629
13064
|
throw new DeskError("Invalid observation ID");
|
|
12630
|
-
const detail = await runDetails(
|
|
13065
|
+
const detail = await runDetails(name, id), evidence = detail.evidence?.observations?.find((item) => item.id === observationId);
|
|
12631
13066
|
if (!evidence || !/^sources\/(?:[a-zA-Z0-9][a-zA-Z0-9._-]*\/)*[a-zA-Z0-9][a-zA-Z0-9._-]*$/.test(evidence.artifact))
|
|
12632
13067
|
throw new DeskError("Unknown captured observation", 404);
|
|
12633
|
-
const
|
|
12634
|
-
if (sha(
|
|
13068
|
+
const bytes = await limitedBytes(await safe(root, [...runParts(name, id), ...evidence.artifact.split("/")]), 20971520);
|
|
13069
|
+
if (sha(bytes) !== evidence.sha256)
|
|
12635
13070
|
throw new DeskError("Captured artifact hash differs from its evidence record", 409);
|
|
12636
|
-
return new Response(
|
|
13071
|
+
return new Response(bytes, { headers: { ...headers, "content-type": "text/plain; charset=utf-8" } });
|
|
12637
13072
|
}
|
|
12638
13073
|
if (request.method === "GET" && (!action || action === "export")) {
|
|
12639
|
-
const detail = await runDetails(
|
|
13074
|
+
const detail = await runDetails(name, id);
|
|
12640
13075
|
if (action === "export")
|
|
12641
|
-
return new Response(json2(detail), { headers: { ...headers, "content-type": "application/json", "content-disposition": `attachment; filename="${
|
|
13076
|
+
return new Response(json2(detail), { headers: { ...headers, "content-type": "application/json", "content-disposition": `attachment; filename="${name}-${id}.json"` } });
|
|
12642
13077
|
return response(detail);
|
|
12643
13078
|
}
|
|
12644
13079
|
}
|
|
@@ -12669,8 +13104,8 @@ ${evidence.map((item) => `[${item.id}] ${item.summary}`).join(`
|
|
|
12669
13104
|
const contents = await readFile5(filePath);
|
|
12670
13105
|
return new Response(request.method === "HEAD" ? null : contents, { headers: { ...headers, "content-type": file.type } });
|
|
12671
13106
|
} catch (error) {
|
|
12672
|
-
const
|
|
12673
|
-
return response({ error: { message:
|
|
13107
|
+
const status = error instanceof DeskError ? error.status : error?.code === "ENOENT" ? 404 : 500;
|
|
13108
|
+
return response({ error: { message: status === 500 ? "Desk operation failed; saved files were preserved" : error.message } }, status);
|
|
12674
13109
|
}
|
|
12675
13110
|
}
|
|
12676
13111
|
});
|
|
@@ -12808,8 +13243,8 @@ function createNativeDashboard(directory, options = {}) {
|
|
|
12808
13243
|
const consume = async (stream) => {
|
|
12809
13244
|
const decoder = new TextDecoder;
|
|
12810
13245
|
let tail = "";
|
|
12811
|
-
for await (const
|
|
12812
|
-
const lines = (tail + decoder.decode(
|
|
13246
|
+
for await (const bytes of stream) {
|
|
13247
|
+
const lines = (tail + decoder.decode(bytes, { stream: true })).split(`
|
|
12813
13248
|
`);
|
|
12814
13249
|
tail = lines.pop().slice(-4096);
|
|
12815
13250
|
for (const line of lines) {
|
|
@@ -12998,22 +13433,22 @@ async function main() {
|
|
|
12998
13433
|
if (command === "desk") {
|
|
12999
13434
|
if (values.pack || values.harness || values["offline-catalog"])
|
|
13000
13435
|
throw new Error("desk uses its selected Hermes profile; pack options belong to setup or onboard");
|
|
13001
|
-
const
|
|
13436
|
+
const directory = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
|
|
13002
13437
|
const port = deskPort(values.port);
|
|
13003
13438
|
if (values["dry-run"])
|
|
13004
|
-
return console.log(`Would serve the local desk on 127.0.0.1:${port || "an available port"} using ${
|
|
13005
|
-
const
|
|
13006
|
-
const nativeDashboard = createNativeDashboard(
|
|
13439
|
+
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.`);
|
|
13440
|
+
const catalog = parseCatalog(skills_default);
|
|
13441
|
+
const nativeDashboard = createNativeDashboard(directory);
|
|
13007
13442
|
const desk = await startDesk({
|
|
13008
|
-
directory
|
|
13009
|
-
catalog
|
|
13443
|
+
directory,
|
|
13444
|
+
catalog,
|
|
13010
13445
|
port,
|
|
13011
13446
|
assetsDirectory: deskAssetsDirectory(import.meta.url),
|
|
13012
13447
|
onSetup: async (signal) => {
|
|
13013
|
-
const selected = await deskSetupPacks(
|
|
13448
|
+
const selected = await deskSetupPacks(directory, catalog);
|
|
13014
13449
|
signal.throwIfAborted();
|
|
13015
13450
|
const group = process.platform !== "win32";
|
|
13016
|
-
const child = Bun.spawn([process.execPath, fileURLToPath2(import.meta.url), "setup", "--harness", "hermes", "--directory",
|
|
13451
|
+
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
13452
|
let termination;
|
|
13018
13453
|
const abort = () => {
|
|
13019
13454
|
termination ??= terminateOwnedProcess(child, group);
|
|
@@ -13033,13 +13468,13 @@ async function main() {
|
|
|
13033
13468
|
}
|
|
13034
13469
|
},
|
|
13035
13470
|
onModelSetup: async (signal) => {
|
|
13036
|
-
await prepareHermes(
|
|
13471
|
+
await prepareHermes(directory, { install: true, skipModelSetup: true, signal });
|
|
13037
13472
|
signal.throwIfAborted();
|
|
13038
13473
|
return nativeDashboard.open();
|
|
13039
13474
|
}
|
|
13040
13475
|
});
|
|
13041
13476
|
console.log(`Boomkin desk: ${desk.url}
|
|
13042
|
-
Profile: ${
|
|
13477
|
+
Profile: ${directory}
|
|
13043
13478
|
Public jobs use bounded keyless reads. Native model research is optional. Stop with Ctrl-C.`);
|
|
13044
13479
|
if (!values["no-open"]) {
|
|
13045
13480
|
const opener = process.platform === "darwin" ? "open" : process.platform === "win32" ? undefined : Bun.which("xdg-open");
|
|
@@ -13073,11 +13508,11 @@ Public jobs use bounded keyless reads. Native model research is optional. Stop w
|
|
|
13073
13508
|
throw new Error("--dry-run is available for project create and run");
|
|
13074
13509
|
if (action === "run" && values.json && !values["dry-run"])
|
|
13075
13510
|
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
|
|
13511
|
+
const directory = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
|
|
13077
13512
|
if (action === "list") {
|
|
13078
13513
|
if (values.name !== undefined)
|
|
13079
13514
|
throw new Error("project list does not accept --name");
|
|
13080
|
-
const projects = await listProjects(
|
|
13515
|
+
const projects = await listProjects(directory);
|
|
13081
13516
|
return console.log(values.json ? JSON.stringify({ schemaVersion: 1, projects }, null, 2) : projects.length ? projects.map((project) => `${project.name}: ${project.workflow.title}`).join(`
|
|
13082
13517
|
`) : "No saved projects. Use project create with a workflow and input file.");
|
|
13083
13518
|
}
|
|
@@ -13090,19 +13525,19 @@ Public jobs use bounded keyless reads. Native model research is optional. Stop w
|
|
|
13090
13525
|
if (file.size > 65536)
|
|
13091
13526
|
throw new Error("Project input file exceeds 64 KiB");
|
|
13092
13527
|
const supplied = await file.json();
|
|
13093
|
-
const project = await createProject(
|
|
13094
|
-
return console.log(values.json ? JSON.stringify(project, null, 2) : `${values["dry-run"] ? "Would create" : "Saved"} ${project.name} in ${
|
|
13528
|
+
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));
|
|
13529
|
+
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
13530
|
}
|
|
13096
13531
|
if (action === "show")
|
|
13097
|
-
return console.log(JSON.stringify({ project: await readProject(
|
|
13532
|
+
return console.log(JSON.stringify({ project: await readProject(directory, values.name), runs: await projectRuns(directory, values.name) }, null, 2));
|
|
13098
13533
|
if (action === "run") {
|
|
13099
|
-
const
|
|
13100
|
-
return console.log(values.json ? JSON.stringify(
|
|
13101
|
-
${
|
|
13534
|
+
const result = await runProject(directory, values.name, { dryRun: values["dry-run"], maxTurns: values["max-turns"] === undefined ? undefined : Number(values["max-turns"]) });
|
|
13535
|
+
return console.log(values.json ? JSON.stringify(result, null, 2) : values["dry-run"] ? result.prompt : `${result.run.state}: ${result.path}${result.run.issues?.length ? `
|
|
13536
|
+
${result.run.issues.join(`
|
|
13102
13537
|
`)}` : `
|
|
13103
13538
|
Captured files passed structural and hash checks. Review the findings and unsigned plan.`}`);
|
|
13104
13539
|
}
|
|
13105
|
-
const result = await checkProjectRun(
|
|
13540
|
+
const result = await checkProjectRun(directory, values.name, values["run-id"]);
|
|
13106
13541
|
console.log(JSON.stringify(result, null, 2));
|
|
13107
13542
|
if (result.issues.length)
|
|
13108
13543
|
process.exitCode = 1;
|
|
@@ -13119,7 +13554,8 @@ Captured files passed structural and hash checks. Review the findings and unsign
|
|
|
13119
13554
|
if (command === "workflows") {
|
|
13120
13555
|
if (values.pack || values.harness || values.directory)
|
|
13121
13556
|
throw new Error("workflows accepts --workflow, --protocol and --json");
|
|
13122
|
-
const
|
|
13557
|
+
const protocol = values.protocol?.toLowerCase();
|
|
13558
|
+
const selected = values.workflow !== undefined ? [selectWorkflow(values.workflow)] : workflows.filter((item) => protocol === undefined || item.protocol.split(" / ").some((name) => name.toLowerCase() === protocol));
|
|
13123
13559
|
if (!selected.length)
|
|
13124
13560
|
throw new Error("No matching protocol. Run workflows to list supported protocols.");
|
|
13125
13561
|
return console.log(values.json ? JSON.stringify({ schemaVersion: 1, workflows: selected }, null, 2) : selected.map(renderWorkflow).join(`
|
|
@@ -13138,7 +13574,7 @@ Captured files passed structural and hash checks. Review the findings and unsign
|
|
|
13138
13574
|
if (["onboard", "doctor", "start", "connect", "model", "chatgpt"].includes(command)) {
|
|
13139
13575
|
if (values.harness && values.harness !== "hermes")
|
|
13140
13576
|
throw new Error("Boomkin onboarding uses Hermes. Use setup for skill-only compatibility with another harness.");
|
|
13141
|
-
const
|
|
13577
|
+
const directory = await canonicalPath(resolve8(values.directory ?? defaultProfile()));
|
|
13142
13578
|
if (command === "onboard") {
|
|
13143
13579
|
if (values.pack && values["all-packs"])
|
|
13144
13580
|
throw new Error("Choose --pack or --all-packs, not both");
|
|
@@ -13150,36 +13586,36 @@ Captured files passed structural and hash checks. Review the findings and unsign
|
|
|
13150
13586
|
"--harness",
|
|
13151
13587
|
"hermes",
|
|
13152
13588
|
"--directory",
|
|
13153
|
-
|
|
13589
|
+
directory,
|
|
13154
13590
|
...selected?.flatMap((id) => ["--pack", id]) ?? [],
|
|
13155
13591
|
...values["dry-run"] ? ["--dry-run"] : []
|
|
13156
13592
|
];
|
|
13157
13593
|
const child = Bun.spawn(args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" });
|
|
13158
13594
|
if (await child.exited !== 0)
|
|
13159
13595
|
throw new Error("Skill setup did not finish. Resolve its reported issue and rerun onboard.");
|
|
13160
|
-
console.log(`Hermes home: ${
|
|
13161
|
-
await prepareHermes(
|
|
13596
|
+
console.log(`Hermes home: ${directory}. Native model setup and keyless CoinGecko data; other providers are opt-in.`);
|
|
13597
|
+
await prepareHermes(directory, { install: !values["no-install"], dryRun: values["dry-run"], skipModelSetup: values["skip-model-setup"] });
|
|
13162
13598
|
if (values["dry-run"])
|
|
13163
13599
|
return;
|
|
13164
|
-
console.log(JSON.stringify(await doctor(
|
|
13600
|
+
console.log(JSON.stringify(await doctor(directory, parseCatalog(skills_default)), null, 2));
|
|
13165
13601
|
console.log("Onboarding saved. Use doctor --live to check public data, then start to launch Hermes. Complete any listed setup gaps first.");
|
|
13166
13602
|
return;
|
|
13167
13603
|
}
|
|
13168
13604
|
if (values.pack || values["all-packs"] || values["skip-model-setup"] || values["no-install"])
|
|
13169
13605
|
throw new Error("Pack and installer options are only available for onboard here");
|
|
13170
13606
|
if (command === "chatgpt")
|
|
13171
|
-
return runChatGpt(
|
|
13607
|
+
return runChatGpt(directory, values.action ?? "status", values["dry-run"]);
|
|
13172
13608
|
if (command === "doctor")
|
|
13173
|
-
return console.log(JSON.stringify(await doctor(
|
|
13609
|
+
return console.log(JSON.stringify(await doctor(directory, parseCatalog(skills_default), values.live), null, 2));
|
|
13174
13610
|
if (command === "connect")
|
|
13175
|
-
return connectProvider(
|
|
13611
|
+
return connectProvider(directory, values.provider ?? "", values["dry-run"], values["key-file"] ? resolve8(values["key-file"]) : undefined);
|
|
13176
13612
|
if (values["dry-run"])
|
|
13177
|
-
return console.log(`Hermes ${command === "model" ? "setup model" : "chat"} in ${
|
|
13178
|
-
return runHermes(
|
|
13613
|
+
return console.log(`Hermes ${command === "model" ? "setup model" : "chat"} in ${directory}`);
|
|
13614
|
+
return runHermes(directory, command === "model" ? ["setup", "model"] : ["chat"]);
|
|
13179
13615
|
}
|
|
13180
13616
|
if (command === "harnesses") {
|
|
13181
|
-
for (const [
|
|
13182
|
-
console.log(`${
|
|
13617
|
+
for (const [name, h] of Object.entries(harnesses))
|
|
13618
|
+
console.log(`${name}
|
|
13183
13619
|
${h.setup}
|
|
13184
13620
|
${h.docs}
|
|
13185
13621
|
`);
|
|
@@ -13220,11 +13656,11 @@ Captured files passed structural and hash checks. Review the findings and unsign
|
|
|
13220
13656
|
if (await child.exited !== 0)
|
|
13221
13657
|
throw new Error("Upstream skills command failed. Completed packs remain installed; rerun after resolving the error.");
|
|
13222
13658
|
}
|
|
13223
|
-
async function verifyInstalled(
|
|
13224
|
-
for (const pack of
|
|
13659
|
+
async function verifyInstalled(catalog) {
|
|
13660
|
+
for (const pack of catalog.packs) {
|
|
13225
13661
|
for (const skill of pack.skills) {
|
|
13226
|
-
const
|
|
13227
|
-
const version = installedVersion(
|
|
13662
|
+
const text = await readFile7(join8(directory, adapter.skillsPath, skill, "SKILL.md"), "utf8");
|
|
13663
|
+
const version = installedVersion(text);
|
|
13228
13664
|
if (version !== pack.version)
|
|
13229
13665
|
throw new Error(`Installed ${skill} has version ${version ?? "unknown"}; expected ${pack.version}. Sync not marked complete.`);
|
|
13230
13666
|
}
|
|
@@ -13238,9 +13674,9 @@ ${adapter.setup}`);
|
|
|
13238
13674
|
}
|
|
13239
13675
|
let previous;
|
|
13240
13676
|
try {
|
|
13241
|
-
const
|
|
13242
|
-
if (
|
|
13243
|
-
previous = parseCatalog(
|
|
13677
|
+
const record = JSON.parse(await readFile7(join8(stateDir, "last-sync.json"), "utf8"));
|
|
13678
|
+
if (record.catalog?.schemaVersion === 3)
|
|
13679
|
+
previous = parseCatalog(record.catalog);
|
|
13244
13680
|
} catch (error) {
|
|
13245
13681
|
if (error.code !== "ENOENT" && command === "check")
|
|
13246
13682
|
throw new Error("Sync record is incomplete; run update to rebuild it.");
|