@ai-setting/roy-agent-cli 1.6.5 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/roy-agent.js +394 -149
- package/dist/index.js +394 -149
- package/dist/roy-agent-linux-x64/bin/roy-agent +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -431,7 +431,7 @@ function parseSlashCommand(input) {
|
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
-
// ../../node_modules/.
|
|
434
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
|
|
435
435
|
var require_identity = __commonJS((exports) => {
|
|
436
436
|
var ALIAS = Symbol.for("yaml.alias");
|
|
437
437
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -485,7 +485,7 @@ var require_identity = __commonJS((exports) => {
|
|
|
485
485
|
exports.isSeq = isSeq;
|
|
486
486
|
});
|
|
487
487
|
|
|
488
|
-
// ../../node_modules/.
|
|
488
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/visit.js
|
|
489
489
|
var require_visit = __commonJS((exports) => {
|
|
490
490
|
var identity = require_identity();
|
|
491
491
|
var BREAK = Symbol("break visit");
|
|
@@ -640,7 +640,7 @@ var require_visit = __commonJS((exports) => {
|
|
|
640
640
|
exports.visitAsync = visitAsync;
|
|
641
641
|
});
|
|
642
642
|
|
|
643
|
-
// ../../node_modules/.
|
|
643
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js
|
|
644
644
|
var require_directives = __commonJS((exports) => {
|
|
645
645
|
var identity = require_identity();
|
|
646
646
|
var visit = require_visit();
|
|
@@ -792,7 +792,7 @@ var require_directives = __commonJS((exports) => {
|
|
|
792
792
|
exports.Directives = Directives;
|
|
793
793
|
});
|
|
794
794
|
|
|
795
|
-
// ../../node_modules/.
|
|
795
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js
|
|
796
796
|
var require_anchors = __commonJS((exports) => {
|
|
797
797
|
var identity = require_identity();
|
|
798
798
|
var visit = require_visit();
|
|
@@ -854,7 +854,7 @@ var require_anchors = __commonJS((exports) => {
|
|
|
854
854
|
exports.findNewAnchor = findNewAnchor;
|
|
855
855
|
});
|
|
856
856
|
|
|
857
|
-
// ../../node_modules/.
|
|
857
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js
|
|
858
858
|
var require_applyReviver = __commonJS((exports) => {
|
|
859
859
|
function applyReviver(reviver, obj, key, val) {
|
|
860
860
|
if (val && typeof val === "object") {
|
|
@@ -901,7 +901,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
|
901
901
|
exports.applyReviver = applyReviver;
|
|
902
902
|
});
|
|
903
903
|
|
|
904
|
-
// ../../node_modules/.
|
|
904
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js
|
|
905
905
|
var require_toJS = __commonJS((exports) => {
|
|
906
906
|
var identity = require_identity();
|
|
907
907
|
function toJS(value, arg, ctx) {
|
|
@@ -928,7 +928,7 @@ var require_toJS = __commonJS((exports) => {
|
|
|
928
928
|
exports.toJS = toJS;
|
|
929
929
|
});
|
|
930
930
|
|
|
931
|
-
// ../../node_modules/.
|
|
931
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js
|
|
932
932
|
var require_Node = __commonJS((exports) => {
|
|
933
933
|
var applyReviver = require_applyReviver();
|
|
934
934
|
var identity = require_identity();
|
|
@@ -965,7 +965,7 @@ var require_Node = __commonJS((exports) => {
|
|
|
965
965
|
exports.NodeBase = NodeBase;
|
|
966
966
|
});
|
|
967
967
|
|
|
968
|
-
// ../../node_modules/.
|
|
968
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js
|
|
969
969
|
var require_Alias = __commonJS((exports) => {
|
|
970
970
|
var anchors = require_anchors();
|
|
971
971
|
var visit = require_visit();
|
|
@@ -1075,7 +1075,7 @@ var require_Alias = __commonJS((exports) => {
|
|
|
1075
1075
|
exports.Alias = Alias;
|
|
1076
1076
|
});
|
|
1077
1077
|
|
|
1078
|
-
// ../../node_modules/.
|
|
1078
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js
|
|
1079
1079
|
var require_Scalar = __commonJS((exports) => {
|
|
1080
1080
|
var identity = require_identity();
|
|
1081
1081
|
var Node = require_Node();
|
|
@@ -1103,7 +1103,7 @@ var require_Scalar = __commonJS((exports) => {
|
|
|
1103
1103
|
exports.isScalarValue = isScalarValue;
|
|
1104
1104
|
});
|
|
1105
1105
|
|
|
1106
|
-
// ../../node_modules/.
|
|
1106
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js
|
|
1107
1107
|
var require_createNode = __commonJS((exports) => {
|
|
1108
1108
|
var Alias = require_Alias();
|
|
1109
1109
|
var identity = require_identity();
|
|
@@ -1175,7 +1175,7 @@ var require_createNode = __commonJS((exports) => {
|
|
|
1175
1175
|
exports.createNode = createNode;
|
|
1176
1176
|
});
|
|
1177
1177
|
|
|
1178
|
-
// ../../node_modules/.
|
|
1178
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js
|
|
1179
1179
|
var require_Collection = __commonJS((exports) => {
|
|
1180
1180
|
var createNode = require_createNode();
|
|
1181
1181
|
var identity = require_identity();
|
|
@@ -1290,7 +1290,7 @@ var require_Collection = __commonJS((exports) => {
|
|
|
1290
1290
|
exports.isEmptyPath = isEmptyPath;
|
|
1291
1291
|
});
|
|
1292
1292
|
|
|
1293
|
-
// ../../node_modules/.
|
|
1293
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
1294
1294
|
var require_stringifyComment = __commonJS((exports) => {
|
|
1295
1295
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
1296
1296
|
function indentComment(comment, indent) {
|
|
@@ -1307,7 +1307,7 @@ var require_stringifyComment = __commonJS((exports) => {
|
|
|
1307
1307
|
exports.stringifyComment = stringifyComment;
|
|
1308
1308
|
});
|
|
1309
1309
|
|
|
1310
|
-
// ../../node_modules/.
|
|
1310
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
1311
1311
|
var require_foldFlowLines = __commonJS((exports) => {
|
|
1312
1312
|
var FOLD_FLOW = "flow";
|
|
1313
1313
|
var FOLD_BLOCK = "block";
|
|
@@ -1444,7 +1444,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1444
1444
|
exports.foldFlowLines = foldFlowLines;
|
|
1445
1445
|
});
|
|
1446
1446
|
|
|
1447
|
-
// ../../node_modules/.
|
|
1447
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1448
1448
|
var require_stringifyString = __commonJS((exports) => {
|
|
1449
1449
|
var Scalar = require_Scalar();
|
|
1450
1450
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1742,7 +1742,7 @@ ${indent}`);
|
|
|
1742
1742
|
exports.stringifyString = stringifyString;
|
|
1743
1743
|
});
|
|
1744
1744
|
|
|
1745
|
-
// ../../node_modules/.
|
|
1745
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js
|
|
1746
1746
|
var require_stringify = __commonJS((exports) => {
|
|
1747
1747
|
var anchors = require_anchors();
|
|
1748
1748
|
var identity = require_identity();
|
|
@@ -1863,7 +1863,7 @@ ${ctx.indent}${str}`;
|
|
|
1863
1863
|
exports.stringify = stringify;
|
|
1864
1864
|
});
|
|
1865
1865
|
|
|
1866
|
-
// ../../node_modules/.
|
|
1866
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1867
1867
|
var require_stringifyPair = __commonJS((exports) => {
|
|
1868
1868
|
var identity = require_identity();
|
|
1869
1869
|
var Scalar = require_Scalar();
|
|
@@ -1999,7 +1999,7 @@ ${ctx.indent}`;
|
|
|
1999
1999
|
exports.stringifyPair = stringifyPair;
|
|
2000
2000
|
});
|
|
2001
2001
|
|
|
2002
|
-
// ../../node_modules/.
|
|
2002
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/log.js
|
|
2003
2003
|
var require_log = __commonJS((exports) => {
|
|
2004
2004
|
var node_process = __require("process");
|
|
2005
2005
|
function debug(logLevel, ...messages) {
|
|
@@ -2018,7 +2018,7 @@ var require_log = __commonJS((exports) => {
|
|
|
2018
2018
|
exports.warn = warn;
|
|
2019
2019
|
});
|
|
2020
2020
|
|
|
2021
|
-
// ../../node_modules/.
|
|
2021
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
2022
2022
|
var require_merge = __commonJS((exports) => {
|
|
2023
2023
|
var identity = require_identity();
|
|
2024
2024
|
var Scalar = require_Scalar();
|
|
@@ -2075,7 +2075,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
2075
2075
|
exports.merge = merge;
|
|
2076
2076
|
});
|
|
2077
2077
|
|
|
2078
|
-
// ../../node_modules/.
|
|
2078
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
2079
2079
|
var require_addPairToJSMap = __commonJS((exports) => {
|
|
2080
2080
|
var log = require_log();
|
|
2081
2081
|
var merge = require_merge();
|
|
@@ -2136,7 +2136,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
2136
2136
|
exports.addPairToJSMap = addPairToJSMap;
|
|
2137
2137
|
});
|
|
2138
2138
|
|
|
2139
|
-
// ../../node_modules/.
|
|
2139
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js
|
|
2140
2140
|
var require_Pair = __commonJS((exports) => {
|
|
2141
2141
|
var createNode = require_createNode();
|
|
2142
2142
|
var stringifyPair = require_stringifyPair();
|
|
@@ -2174,7 +2174,7 @@ var require_Pair = __commonJS((exports) => {
|
|
|
2174
2174
|
exports.createPair = createPair;
|
|
2175
2175
|
});
|
|
2176
2176
|
|
|
2177
|
-
// ../../node_modules/.
|
|
2177
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
2178
2178
|
var require_stringifyCollection = __commonJS((exports) => {
|
|
2179
2179
|
var identity = require_identity();
|
|
2180
2180
|
var stringify = require_stringify();
|
|
@@ -2326,7 +2326,7 @@ ${indent}${end}`;
|
|
|
2326
2326
|
exports.stringifyCollection = stringifyCollection;
|
|
2327
2327
|
});
|
|
2328
2328
|
|
|
2329
|
-
// ../../node_modules/.
|
|
2329
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
2330
2330
|
var require_YAMLMap = __commonJS((exports) => {
|
|
2331
2331
|
var stringifyCollection = require_stringifyCollection();
|
|
2332
2332
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2453,7 +2453,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
2453
2453
|
exports.findPair = findPair;
|
|
2454
2454
|
});
|
|
2455
2455
|
|
|
2456
|
-
// ../../node_modules/.
|
|
2456
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js
|
|
2457
2457
|
var require_map = __commonJS((exports) => {
|
|
2458
2458
|
var identity = require_identity();
|
|
2459
2459
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2472,7 +2472,7 @@ var require_map = __commonJS((exports) => {
|
|
|
2472
2472
|
exports.map = map;
|
|
2473
2473
|
});
|
|
2474
2474
|
|
|
2475
|
-
// ../../node_modules/.
|
|
2475
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2476
2476
|
var require_YAMLSeq = __commonJS((exports) => {
|
|
2477
2477
|
var createNode = require_createNode();
|
|
2478
2478
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2565,7 +2565,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
2565
2565
|
exports.YAMLSeq = YAMLSeq;
|
|
2566
2566
|
});
|
|
2567
2567
|
|
|
2568
|
-
// ../../node_modules/.
|
|
2568
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js
|
|
2569
2569
|
var require_seq = __commonJS((exports) => {
|
|
2570
2570
|
var identity = require_identity();
|
|
2571
2571
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2584,7 +2584,7 @@ var require_seq = __commonJS((exports) => {
|
|
|
2584
2584
|
exports.seq = seq;
|
|
2585
2585
|
});
|
|
2586
2586
|
|
|
2587
|
-
// ../../node_modules/.
|
|
2587
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js
|
|
2588
2588
|
var require_string = __commonJS((exports) => {
|
|
2589
2589
|
var stringifyString = require_stringifyString();
|
|
2590
2590
|
var string = {
|
|
@@ -2600,7 +2600,7 @@ var require_string = __commonJS((exports) => {
|
|
|
2600
2600
|
exports.string = string;
|
|
2601
2601
|
});
|
|
2602
2602
|
|
|
2603
|
-
// ../../node_modules/.
|
|
2603
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js
|
|
2604
2604
|
var require_null = __commonJS((exports) => {
|
|
2605
2605
|
var Scalar = require_Scalar();
|
|
2606
2606
|
var nullTag = {
|
|
@@ -2615,7 +2615,7 @@ var require_null = __commonJS((exports) => {
|
|
|
2615
2615
|
exports.nullTag = nullTag;
|
|
2616
2616
|
});
|
|
2617
2617
|
|
|
2618
|
-
// ../../node_modules/.
|
|
2618
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js
|
|
2619
2619
|
var require_bool = __commonJS((exports) => {
|
|
2620
2620
|
var Scalar = require_Scalar();
|
|
2621
2621
|
var boolTag = {
|
|
@@ -2636,7 +2636,7 @@ var require_bool = __commonJS((exports) => {
|
|
|
2636
2636
|
exports.boolTag = boolTag;
|
|
2637
2637
|
});
|
|
2638
2638
|
|
|
2639
|
-
// ../../node_modules/.
|
|
2639
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2640
2640
|
var require_stringifyNumber = __commonJS((exports) => {
|
|
2641
2641
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2642
2642
|
if (typeof value === "bigint")
|
|
@@ -2660,7 +2660,7 @@ var require_stringifyNumber = __commonJS((exports) => {
|
|
|
2660
2660
|
exports.stringifyNumber = stringifyNumber;
|
|
2661
2661
|
});
|
|
2662
2662
|
|
|
2663
|
-
// ../../node_modules/.
|
|
2663
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js
|
|
2664
2664
|
var require_float = __commonJS((exports) => {
|
|
2665
2665
|
var Scalar = require_Scalar();
|
|
2666
2666
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2703,7 +2703,7 @@ var require_float = __commonJS((exports) => {
|
|
|
2703
2703
|
exports.floatNaN = floatNaN;
|
|
2704
2704
|
});
|
|
2705
2705
|
|
|
2706
|
-
// ../../node_modules/.
|
|
2706
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js
|
|
2707
2707
|
var require_int = __commonJS((exports) => {
|
|
2708
2708
|
var stringifyNumber = require_stringifyNumber();
|
|
2709
2709
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2745,7 +2745,7 @@ var require_int = __commonJS((exports) => {
|
|
|
2745
2745
|
exports.intOct = intOct;
|
|
2746
2746
|
});
|
|
2747
2747
|
|
|
2748
|
-
// ../../node_modules/.
|
|
2748
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js
|
|
2749
2749
|
var require_schema = __commonJS((exports) => {
|
|
2750
2750
|
var map = require_map();
|
|
2751
2751
|
var _null = require_null();
|
|
@@ -2770,7 +2770,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
2770
2770
|
exports.schema = schema;
|
|
2771
2771
|
});
|
|
2772
2772
|
|
|
2773
|
-
// ../../node_modules/.
|
|
2773
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js
|
|
2774
2774
|
var require_schema2 = __commonJS((exports) => {
|
|
2775
2775
|
var Scalar = require_Scalar();
|
|
2776
2776
|
var map = require_map();
|
|
@@ -2834,7 +2834,7 @@ var require_schema2 = __commonJS((exports) => {
|
|
|
2834
2834
|
exports.schema = schema;
|
|
2835
2835
|
});
|
|
2836
2836
|
|
|
2837
|
-
// ../../node_modules/.
|
|
2837
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2838
2838
|
var require_binary = __commonJS((exports) => {
|
|
2839
2839
|
var node_buffer = __require("buffer");
|
|
2840
2840
|
var Scalar = require_Scalar();
|
|
@@ -2889,7 +2889,7 @@ var require_binary = __commonJS((exports) => {
|
|
|
2889
2889
|
exports.binary = binary;
|
|
2890
2890
|
});
|
|
2891
2891
|
|
|
2892
|
-
// ../../node_modules/.
|
|
2892
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2893
2893
|
var require_pairs = __commonJS((exports) => {
|
|
2894
2894
|
var identity = require_identity();
|
|
2895
2895
|
var Pair = require_Pair();
|
|
@@ -2964,7 +2964,7 @@ ${cn.comment}` : item.comment;
|
|
|
2964
2964
|
exports.resolvePairs = resolvePairs;
|
|
2965
2965
|
});
|
|
2966
2966
|
|
|
2967
|
-
// ../../node_modules/.
|
|
2967
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2968
2968
|
var require_omap = __commonJS((exports) => {
|
|
2969
2969
|
var identity = require_identity();
|
|
2970
2970
|
var toJS = require_toJS();
|
|
@@ -3036,7 +3036,7 @@ var require_omap = __commonJS((exports) => {
|
|
|
3036
3036
|
exports.omap = omap;
|
|
3037
3037
|
});
|
|
3038
3038
|
|
|
3039
|
-
// ../../node_modules/.
|
|
3039
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
3040
3040
|
var require_bool2 = __commonJS((exports) => {
|
|
3041
3041
|
var Scalar = require_Scalar();
|
|
3042
3042
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -3065,7 +3065,7 @@ var require_bool2 = __commonJS((exports) => {
|
|
|
3065
3065
|
exports.trueTag = trueTag;
|
|
3066
3066
|
});
|
|
3067
3067
|
|
|
3068
|
-
// ../../node_modules/.
|
|
3068
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
3069
3069
|
var require_float2 = __commonJS((exports) => {
|
|
3070
3070
|
var Scalar = require_Scalar();
|
|
3071
3071
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -3111,7 +3111,7 @@ var require_float2 = __commonJS((exports) => {
|
|
|
3111
3111
|
exports.floatNaN = floatNaN;
|
|
3112
3112
|
});
|
|
3113
3113
|
|
|
3114
|
-
// ../../node_modules/.
|
|
3114
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
3115
3115
|
var require_int2 = __commonJS((exports) => {
|
|
3116
3116
|
var stringifyNumber = require_stringifyNumber();
|
|
3117
3117
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -3187,7 +3187,7 @@ var require_int2 = __commonJS((exports) => {
|
|
|
3187
3187
|
exports.intOct = intOct;
|
|
3188
3188
|
});
|
|
3189
3189
|
|
|
3190
|
-
// ../../node_modules/.
|
|
3190
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
3191
3191
|
var require_set = __commonJS((exports) => {
|
|
3192
3192
|
var identity = require_identity();
|
|
3193
3193
|
var Pair = require_Pair();
|
|
@@ -3270,7 +3270,7 @@ var require_set = __commonJS((exports) => {
|
|
|
3270
3270
|
exports.set = set;
|
|
3271
3271
|
});
|
|
3272
3272
|
|
|
3273
|
-
// ../../node_modules/.
|
|
3273
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3274
3274
|
var require_timestamp = __commonJS((exports) => {
|
|
3275
3275
|
var stringifyNumber = require_stringifyNumber();
|
|
3276
3276
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3352,7 +3352,7 @@ var require_timestamp = __commonJS((exports) => {
|
|
|
3352
3352
|
exports.timestamp = timestamp;
|
|
3353
3353
|
});
|
|
3354
3354
|
|
|
3355
|
-
// ../../node_modules/.
|
|
3355
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3356
3356
|
var require_schema3 = __commonJS((exports) => {
|
|
3357
3357
|
var map = require_map();
|
|
3358
3358
|
var _null = require_null();
|
|
@@ -3393,7 +3393,7 @@ var require_schema3 = __commonJS((exports) => {
|
|
|
3393
3393
|
exports.schema = schema;
|
|
3394
3394
|
});
|
|
3395
3395
|
|
|
3396
|
-
// ../../node_modules/.
|
|
3396
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js
|
|
3397
3397
|
var require_tags = __commonJS((exports) => {
|
|
3398
3398
|
var map = require_map();
|
|
3399
3399
|
var _null = require_null();
|
|
@@ -3484,7 +3484,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
3484
3484
|
exports.getTags = getTags;
|
|
3485
3485
|
});
|
|
3486
3486
|
|
|
3487
|
-
// ../../node_modules/.
|
|
3487
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js
|
|
3488
3488
|
var require_Schema = __commonJS((exports) => {
|
|
3489
3489
|
var identity = require_identity();
|
|
3490
3490
|
var map = require_map();
|
|
@@ -3514,7 +3514,7 @@ var require_Schema = __commonJS((exports) => {
|
|
|
3514
3514
|
exports.Schema = Schema;
|
|
3515
3515
|
});
|
|
3516
3516
|
|
|
3517
|
-
// ../../node_modules/.
|
|
3517
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3518
3518
|
var require_stringifyDocument = __commonJS((exports) => {
|
|
3519
3519
|
var identity = require_identity();
|
|
3520
3520
|
var stringify = require_stringify();
|
|
@@ -3594,7 +3594,7 @@ var require_stringifyDocument = __commonJS((exports) => {
|
|
|
3594
3594
|
exports.stringifyDocument = stringifyDocument;
|
|
3595
3595
|
});
|
|
3596
3596
|
|
|
3597
|
-
// ../../node_modules/.
|
|
3597
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js
|
|
3598
3598
|
var require_Document = __commonJS((exports) => {
|
|
3599
3599
|
var Alias = require_Alias();
|
|
3600
3600
|
var Collection = require_Collection();
|
|
@@ -3829,7 +3829,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
3829
3829
|
exports.Document = Document;
|
|
3830
3830
|
});
|
|
3831
3831
|
|
|
3832
|
-
// ../../node_modules/.
|
|
3832
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/errors.js
|
|
3833
3833
|
var require_errors = __commonJS((exports) => {
|
|
3834
3834
|
class YAMLError extends Error {
|
|
3835
3835
|
constructor(name, pos, code, message) {
|
|
@@ -3894,7 +3894,7 @@ ${pointer}
|
|
|
3894
3894
|
exports.prettifyError = prettifyError;
|
|
3895
3895
|
});
|
|
3896
3896
|
|
|
3897
|
-
// ../../node_modules/.
|
|
3897
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js
|
|
3898
3898
|
var require_resolve_props = __commonJS((exports) => {
|
|
3899
3899
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3900
3900
|
let spaceBefore = false;
|
|
@@ -4024,7 +4024,7 @@ var require_resolve_props = __commonJS((exports) => {
|
|
|
4024
4024
|
exports.resolveProps = resolveProps;
|
|
4025
4025
|
});
|
|
4026
4026
|
|
|
4027
|
-
// ../../node_modules/.
|
|
4027
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
4028
4028
|
var require_util_contains_newline = __commonJS((exports) => {
|
|
4029
4029
|
function containsNewline(key) {
|
|
4030
4030
|
if (!key)
|
|
@@ -4064,7 +4064,7 @@ var require_util_contains_newline = __commonJS((exports) => {
|
|
|
4064
4064
|
exports.containsNewline = containsNewline;
|
|
4065
4065
|
});
|
|
4066
4066
|
|
|
4067
|
-
// ../../node_modules/.
|
|
4067
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
4068
4068
|
var require_util_flow_indent_check = __commonJS((exports) => {
|
|
4069
4069
|
var utilContainsNewline = require_util_contains_newline();
|
|
4070
4070
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -4079,7 +4079,7 @@ var require_util_flow_indent_check = __commonJS((exports) => {
|
|
|
4079
4079
|
exports.flowIndentCheck = flowIndentCheck;
|
|
4080
4080
|
});
|
|
4081
4081
|
|
|
4082
|
-
// ../../node_modules/.
|
|
4082
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js
|
|
4083
4083
|
var require_util_map_includes = __commonJS((exports) => {
|
|
4084
4084
|
var identity = require_identity();
|
|
4085
4085
|
function mapIncludes(ctx, items, search) {
|
|
@@ -4092,7 +4092,7 @@ var require_util_map_includes = __commonJS((exports) => {
|
|
|
4092
4092
|
exports.mapIncludes = mapIncludes;
|
|
4093
4093
|
});
|
|
4094
4094
|
|
|
4095
|
-
// ../../node_modules/.
|
|
4095
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
4096
4096
|
var require_resolve_block_map = __commonJS((exports) => {
|
|
4097
4097
|
var Pair = require_Pair();
|
|
4098
4098
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4199,7 +4199,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
4199
4199
|
exports.resolveBlockMap = resolveBlockMap;
|
|
4200
4200
|
});
|
|
4201
4201
|
|
|
4202
|
-
// ../../node_modules/.
|
|
4202
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4203
4203
|
var require_resolve_block_seq = __commonJS((exports) => {
|
|
4204
4204
|
var YAMLSeq = require_YAMLSeq();
|
|
4205
4205
|
var resolveProps = require_resolve_props();
|
|
@@ -4247,7 +4247,7 @@ var require_resolve_block_seq = __commonJS((exports) => {
|
|
|
4247
4247
|
exports.resolveBlockSeq = resolveBlockSeq;
|
|
4248
4248
|
});
|
|
4249
4249
|
|
|
4250
|
-
// ../../node_modules/.
|
|
4250
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js
|
|
4251
4251
|
var require_resolve_end = __commonJS((exports) => {
|
|
4252
4252
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4253
4253
|
let comment = "";
|
|
@@ -4287,7 +4287,7 @@ var require_resolve_end = __commonJS((exports) => {
|
|
|
4287
4287
|
exports.resolveEnd = resolveEnd;
|
|
4288
4288
|
});
|
|
4289
4289
|
|
|
4290
|
-
// ../../node_modules/.
|
|
4290
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4291
4291
|
var require_resolve_flow_collection = __commonJS((exports) => {
|
|
4292
4292
|
var identity = require_identity();
|
|
4293
4293
|
var Pair = require_Pair();
|
|
@@ -4478,7 +4478,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
4478
4478
|
exports.resolveFlowCollection = resolveFlowCollection;
|
|
4479
4479
|
});
|
|
4480
4480
|
|
|
4481
|
-
// ../../node_modules/.
|
|
4481
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js
|
|
4482
4482
|
var require_compose_collection = __commonJS((exports) => {
|
|
4483
4483
|
var identity = require_identity();
|
|
4484
4484
|
var Scalar = require_Scalar();
|
|
@@ -4540,7 +4540,7 @@ var require_compose_collection = __commonJS((exports) => {
|
|
|
4540
4540
|
exports.composeCollection = composeCollection;
|
|
4541
4541
|
});
|
|
4542
4542
|
|
|
4543
|
-
// ../../node_modules/.
|
|
4543
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4544
4544
|
var require_resolve_block_scalar = __commonJS((exports) => {
|
|
4545
4545
|
var Scalar = require_Scalar();
|
|
4546
4546
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4733,7 +4733,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
|
|
|
4733
4733
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
4734
4734
|
});
|
|
4735
4735
|
|
|
4736
|
-
// ../../node_modules/.
|
|
4736
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4737
4737
|
var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
4738
4738
|
var Scalar = require_Scalar();
|
|
4739
4739
|
var resolveEnd = require_resolve_end();
|
|
@@ -4950,7 +4950,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
|
4950
4950
|
exports.resolveFlowScalar = resolveFlowScalar;
|
|
4951
4951
|
});
|
|
4952
4952
|
|
|
4953
|
-
// ../../node_modules/.
|
|
4953
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4954
4954
|
var require_compose_scalar = __commonJS((exports) => {
|
|
4955
4955
|
var identity = require_identity();
|
|
4956
4956
|
var Scalar = require_Scalar();
|
|
@@ -5028,7 +5028,7 @@ var require_compose_scalar = __commonJS((exports) => {
|
|
|
5028
5028
|
exports.composeScalar = composeScalar;
|
|
5029
5029
|
});
|
|
5030
5030
|
|
|
5031
|
-
// ../../node_modules/.
|
|
5031
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
5032
5032
|
var require_util_empty_scalar_position = __commonJS((exports) => {
|
|
5033
5033
|
function emptyScalarPosition(offset, before, pos) {
|
|
5034
5034
|
if (before) {
|
|
@@ -5055,7 +5055,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
|
|
|
5055
5055
|
exports.emptyScalarPosition = emptyScalarPosition;
|
|
5056
5056
|
});
|
|
5057
5057
|
|
|
5058
|
-
// ../../node_modules/.
|
|
5058
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js
|
|
5059
5059
|
var require_compose_node = __commonJS((exports) => {
|
|
5060
5060
|
var Alias = require_Alias();
|
|
5061
5061
|
var identity = require_identity();
|
|
@@ -5158,7 +5158,7 @@ var require_compose_node = __commonJS((exports) => {
|
|
|
5158
5158
|
exports.composeNode = composeNode;
|
|
5159
5159
|
});
|
|
5160
5160
|
|
|
5161
|
-
// ../../node_modules/.
|
|
5161
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js
|
|
5162
5162
|
var require_compose_doc = __commonJS((exports) => {
|
|
5163
5163
|
var Document = require_Document();
|
|
5164
5164
|
var composeNode = require_compose_node();
|
|
@@ -5198,7 +5198,7 @@ var require_compose_doc = __commonJS((exports) => {
|
|
|
5198
5198
|
exports.composeDoc = composeDoc;
|
|
5199
5199
|
});
|
|
5200
5200
|
|
|
5201
|
-
// ../../node_modules/.
|
|
5201
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js
|
|
5202
5202
|
var require_composer = __commonJS((exports) => {
|
|
5203
5203
|
var node_process = __require("process");
|
|
5204
5204
|
var directives = require_directives();
|
|
@@ -5284,8 +5284,10 @@ ${cb}` : comment;
|
|
|
5284
5284
|
}
|
|
5285
5285
|
}
|
|
5286
5286
|
if (afterDoc) {
|
|
5287
|
-
|
|
5288
|
-
|
|
5287
|
+
for (let i = 0;i < this.errors.length; ++i)
|
|
5288
|
+
doc.errors.push(this.errors[i]);
|
|
5289
|
+
for (let i = 0;i < this.warnings.length; ++i)
|
|
5290
|
+
doc.warnings.push(this.warnings[i]);
|
|
5289
5291
|
} else {
|
|
5290
5292
|
doc.errors = this.errors;
|
|
5291
5293
|
doc.warnings = this.warnings;
|
|
@@ -5387,7 +5389,7 @@ ${end.comment}` : end.comment;
|
|
|
5387
5389
|
exports.Composer = Composer;
|
|
5388
5390
|
});
|
|
5389
5391
|
|
|
5390
|
-
// ../../node_modules/.
|
|
5392
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5391
5393
|
var require_cst_scalar = __commonJS((exports) => {
|
|
5392
5394
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5393
5395
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5577,7 +5579,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
5577
5579
|
exports.setScalarValue = setScalarValue;
|
|
5578
5580
|
});
|
|
5579
5581
|
|
|
5580
|
-
// ../../node_modules/.
|
|
5582
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5581
5583
|
var require_cst_stringify = __commonJS((exports) => {
|
|
5582
5584
|
var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
|
|
5583
5585
|
function stringifyToken(token) {
|
|
@@ -5635,7 +5637,7 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
|
5635
5637
|
exports.stringify = stringify;
|
|
5636
5638
|
});
|
|
5637
5639
|
|
|
5638
|
-
// ../../node_modules/.
|
|
5640
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
|
|
5639
5641
|
var require_cst_visit = __commonJS((exports) => {
|
|
5640
5642
|
var BREAK = Symbol("break visit");
|
|
5641
5643
|
var SKIP = Symbol("skip children");
|
|
@@ -5694,7 +5696,7 @@ var require_cst_visit = __commonJS((exports) => {
|
|
|
5694
5696
|
exports.visit = visit;
|
|
5695
5697
|
});
|
|
5696
5698
|
|
|
5697
|
-
// ../../node_modules/.
|
|
5699
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
|
|
5698
5700
|
var require_cst = __commonJS((exports) => {
|
|
5699
5701
|
var cstScalar = require_cst_scalar();
|
|
5700
5702
|
var cstStringify = require_cst_stringify();
|
|
@@ -5795,7 +5797,7 @@ var require_cst = __commonJS((exports) => {
|
|
|
5795
5797
|
exports.tokenType = tokenType;
|
|
5796
5798
|
});
|
|
5797
5799
|
|
|
5798
|
-
// ../../node_modules/.
|
|
5800
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
|
|
5799
5801
|
var require_lexer = __commonJS((exports) => {
|
|
5800
5802
|
var cst = require_cst();
|
|
5801
5803
|
function isEmpty(ch) {
|
|
@@ -5997,7 +5999,7 @@ var require_lexer = __commonJS((exports) => {
|
|
|
5997
5999
|
const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
|
|
5998
6000
|
this.indentNext = this.indentValue + 1;
|
|
5999
6001
|
this.indentValue += n;
|
|
6000
|
-
return
|
|
6002
|
+
return "block-start";
|
|
6001
6003
|
}
|
|
6002
6004
|
return "doc";
|
|
6003
6005
|
}
|
|
@@ -6304,26 +6306,37 @@ var require_lexer = __commonJS((exports) => {
|
|
|
6304
6306
|
return 0;
|
|
6305
6307
|
}
|
|
6306
6308
|
*pushIndicators() {
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6309
|
+
let n = 0;
|
|
6310
|
+
loop:
|
|
6311
|
+
while (true) {
|
|
6312
|
+
switch (this.charAt(0)) {
|
|
6313
|
+
case "!":
|
|
6314
|
+
n += yield* this.pushTag();
|
|
6315
|
+
n += yield* this.pushSpaces(true);
|
|
6316
|
+
continue loop;
|
|
6317
|
+
case "&":
|
|
6318
|
+
n += yield* this.pushUntil(isNotAnchorChar);
|
|
6319
|
+
n += yield* this.pushSpaces(true);
|
|
6320
|
+
continue loop;
|
|
6321
|
+
case "-":
|
|
6322
|
+
case "?":
|
|
6323
|
+
case ":": {
|
|
6324
|
+
const inFlow = this.flowLevel > 0;
|
|
6325
|
+
const ch1 = this.charAt(1);
|
|
6326
|
+
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
|
|
6327
|
+
if (!inFlow)
|
|
6328
|
+
this.indentNext = this.indentValue + 1;
|
|
6329
|
+
else if (this.flowKey)
|
|
6330
|
+
this.flowKey = false;
|
|
6331
|
+
n += yield* this.pushCount(1);
|
|
6332
|
+
n += yield* this.pushSpaces(true);
|
|
6333
|
+
continue loop;
|
|
6334
|
+
}
|
|
6335
|
+
}
|
|
6323
6336
|
}
|
|
6337
|
+
break loop;
|
|
6324
6338
|
}
|
|
6325
|
-
|
|
6326
|
-
return 0;
|
|
6339
|
+
return n;
|
|
6327
6340
|
}
|
|
6328
6341
|
*pushTag() {
|
|
6329
6342
|
if (this.charAt(1) === "<") {
|
|
@@ -6381,7 +6394,7 @@ var require_lexer = __commonJS((exports) => {
|
|
|
6381
6394
|
exports.Lexer = Lexer;
|
|
6382
6395
|
});
|
|
6383
6396
|
|
|
6384
|
-
// ../../node_modules/.
|
|
6397
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
|
|
6385
6398
|
var require_line_counter = __commonJS((exports) => {
|
|
6386
6399
|
class LineCounter {
|
|
6387
6400
|
constructor() {
|
|
@@ -6409,7 +6422,7 @@ var require_line_counter = __commonJS((exports) => {
|
|
|
6409
6422
|
exports.LineCounter = LineCounter;
|
|
6410
6423
|
});
|
|
6411
6424
|
|
|
6412
|
-
// ../../node_modules/.
|
|
6425
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
|
|
6413
6426
|
var require_parser = __commonJS((exports) => {
|
|
6414
6427
|
var node_process = __require("process");
|
|
6415
6428
|
var cst = require_cst();
|
|
@@ -6477,6 +6490,13 @@ var require_parser = __commonJS((exports) => {
|
|
|
6477
6490
|
while (prev[++i]?.type === "space") {}
|
|
6478
6491
|
return prev.splice(i, prev.length);
|
|
6479
6492
|
}
|
|
6493
|
+
function arrayPushArray(target, source) {
|
|
6494
|
+
if (source.length < 1e5)
|
|
6495
|
+
Array.prototype.push.apply(target, source);
|
|
6496
|
+
else
|
|
6497
|
+
for (let i = 0;i < source.length; ++i)
|
|
6498
|
+
target.push(source[i]);
|
|
6499
|
+
}
|
|
6480
6500
|
function fixFlowSeqItems(fc) {
|
|
6481
6501
|
if (fc.start.type === "flow-seq-start") {
|
|
6482
6502
|
for (const it of fc.items) {
|
|
@@ -6486,11 +6506,11 @@ var require_parser = __commonJS((exports) => {
|
|
|
6486
6506
|
delete it.key;
|
|
6487
6507
|
if (isFlowToken(it.value)) {
|
|
6488
6508
|
if (it.value.end)
|
|
6489
|
-
|
|
6509
|
+
arrayPushArray(it.value.end, it.sep);
|
|
6490
6510
|
else
|
|
6491
6511
|
it.value.end = it.sep;
|
|
6492
6512
|
} else
|
|
6493
|
-
|
|
6513
|
+
arrayPushArray(it.start, it.sep);
|
|
6494
6514
|
delete it.sep;
|
|
6495
6515
|
}
|
|
6496
6516
|
}
|
|
@@ -6830,7 +6850,7 @@ var require_parser = __commonJS((exports) => {
|
|
|
6830
6850
|
const prev = map.items[map.items.length - 2];
|
|
6831
6851
|
const end = prev?.value?.end;
|
|
6832
6852
|
if (Array.isArray(end)) {
|
|
6833
|
-
|
|
6853
|
+
arrayPushArray(end, it.start);
|
|
6834
6854
|
end.push(this.sourceToken);
|
|
6835
6855
|
map.items.pop();
|
|
6836
6856
|
return;
|
|
@@ -7018,7 +7038,7 @@ var require_parser = __commonJS((exports) => {
|
|
|
7018
7038
|
const prev = seq.items[seq.items.length - 2];
|
|
7019
7039
|
const end = prev?.value?.end;
|
|
7020
7040
|
if (Array.isArray(end)) {
|
|
7021
|
-
|
|
7041
|
+
arrayPushArray(end, it.start);
|
|
7022
7042
|
end.push(this.sourceToken);
|
|
7023
7043
|
seq.items.pop();
|
|
7024
7044
|
return;
|
|
@@ -7258,7 +7278,7 @@ var require_parser = __commonJS((exports) => {
|
|
|
7258
7278
|
exports.Parser = Parser;
|
|
7259
7279
|
});
|
|
7260
7280
|
|
|
7261
|
-
// ../../node_modules/.
|
|
7281
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/public-api.js
|
|
7262
7282
|
var require_public_api = __commonJS((exports) => {
|
|
7263
7283
|
var composer = require_composer();
|
|
7264
7284
|
var Document = require_Document();
|
|
@@ -7352,7 +7372,7 @@ var require_public_api = __commonJS((exports) => {
|
|
|
7352
7372
|
exports.stringify = stringify;
|
|
7353
7373
|
});
|
|
7354
7374
|
|
|
7355
|
-
// ../../node_modules/.
|
|
7375
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js
|
|
7356
7376
|
var require_dist = __commonJS((exports) => {
|
|
7357
7377
|
var composer = require_composer();
|
|
7358
7378
|
var Document = require_Document();
|
|
@@ -7405,7 +7425,7 @@ var require_dist = __commonJS((exports) => {
|
|
|
7405
7425
|
var require_package = __commonJS((exports, module) => {
|
|
7406
7426
|
module.exports = {
|
|
7407
7427
|
name: "@ai-setting/roy-agent-cli",
|
|
7408
|
-
version: "1.6.
|
|
7428
|
+
version: "1.6.7",
|
|
7409
7429
|
type: "module",
|
|
7410
7430
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
7411
7431
|
main: "./dist/index.js",
|
|
@@ -9260,9 +9280,8 @@ bgprocess: ${bgProcessId}`;
|
|
|
9260
9280
|
Task #${taskId}`;
|
|
9261
9281
|
}
|
|
9262
9282
|
if (result) {
|
|
9263
|
-
const truncatedResult = result.length > 1e4 ? result.substring(0, 100) + "...[TRUNCATED]" : result;
|
|
9264
9283
|
message += `
|
|
9265
|
-
结果: ${
|
|
9284
|
+
结果: ${result}`;
|
|
9266
9285
|
}
|
|
9267
9286
|
message += this.appendSubSessionId(payload);
|
|
9268
9287
|
return message;
|
|
@@ -17455,6 +17474,47 @@ function resolveServerUrl(serverUrl, fallback) {
|
|
|
17455
17474
|
return trimmed;
|
|
17456
17475
|
}
|
|
17457
17476
|
|
|
17477
|
+
// src/lib/bounty-profile-reader.ts
|
|
17478
|
+
import { existsSync as existsSync2, readFileSync } from "node:fs";
|
|
17479
|
+
import { homedir } from "node:os";
|
|
17480
|
+
import { join } from "node:path";
|
|
17481
|
+
function readBountyProfile(name, profilesDir) {
|
|
17482
|
+
if (!name)
|
|
17483
|
+
return null;
|
|
17484
|
+
const dir = profilesDir ?? join(homedir(), ".config", "bounty", "profiles");
|
|
17485
|
+
const profilePath = join(dir, `${name}.json`);
|
|
17486
|
+
if (!existsSync2(profilePath))
|
|
17487
|
+
return null;
|
|
17488
|
+
try {
|
|
17489
|
+
const raw = readFileSync(profilePath, "utf-8");
|
|
17490
|
+
const data = JSON.parse(raw);
|
|
17491
|
+
return {
|
|
17492
|
+
email: typeof data.email === "string" ? data.email : undefined,
|
|
17493
|
+
agent_id: typeof data.agent_id === "string" ? data.agent_id : undefined,
|
|
17494
|
+
api_base: typeof data.api_base === "string" ? data.api_base : undefined
|
|
17495
|
+
};
|
|
17496
|
+
} catch {
|
|
17497
|
+
return null;
|
|
17498
|
+
}
|
|
17499
|
+
}
|
|
17500
|
+
function profileToWsUrl(apiBase) {
|
|
17501
|
+
let url = apiBase.replace(/\/+$/, "");
|
|
17502
|
+
if (url.startsWith("ws://") || url.startsWith("wss://")) {
|
|
17503
|
+
if (url.endsWith("/ws"))
|
|
17504
|
+
return url;
|
|
17505
|
+
return `${url}/ws`;
|
|
17506
|
+
}
|
|
17507
|
+
if (url.startsWith("https://")) {
|
|
17508
|
+
url = "wss://" + url.slice("https://".length);
|
|
17509
|
+
} else if (url.startsWith("http://")) {
|
|
17510
|
+
url = "ws://" + url.slice("http://".length);
|
|
17511
|
+
}
|
|
17512
|
+
if (!url.endsWith("/ws")) {
|
|
17513
|
+
url = `${url}/ws`;
|
|
17514
|
+
}
|
|
17515
|
+
return url;
|
|
17516
|
+
}
|
|
17517
|
+
|
|
17458
17518
|
// src/commands/eventsource/add.ts
|
|
17459
17519
|
function uuid() {
|
|
17460
17520
|
return generateId();
|
|
@@ -17490,10 +17550,13 @@ var EventSourceAddCommand = {
|
|
|
17490
17550
|
describe: "Cron 表达式",
|
|
17491
17551
|
type: "string"
|
|
17492
17552
|
}).option("profile", {
|
|
17493
|
-
describe: "lark-cli
|
|
17553
|
+
describe: "Profile 名称(lark-cli / bounty-im 类型用,从 ~/.config/bounty/profiles/<name>.json 读取配置;多 appId / 多账户场景必要,参考 #1637)",
|
|
17494
17554
|
type: "string"
|
|
17495
17555
|
}).option("address", {
|
|
17496
|
-
describe: "Agent IM 地址(bounty-im 类型用,格式:agent-id@host
|
|
17556
|
+
describe: "Agent IM 地址(bounty-im 类型用,格式:agent-id@host,v0.12 向后兼容)",
|
|
17557
|
+
type: "string"
|
|
17558
|
+
}).option("email", {
|
|
17559
|
+
describe: "Agent IM 注册邮箱(bounty-im 类型用,v0.13 server 协议;与 --profile 互斥)",
|
|
17497
17560
|
type: "string"
|
|
17498
17561
|
}).option("tls-skip-verify", {
|
|
17499
17562
|
describe: "跳过 TLS 证书校验(bounty-im 类型用,wss:// 自签名场景,生产环境不推荐)",
|
|
@@ -17520,9 +17583,38 @@ var EventSourceAddCommand = {
|
|
|
17520
17583
|
process.exit(1);
|
|
17521
17584
|
}
|
|
17522
17585
|
const eventTypes = a.eventTypes?.split(",").map((s) => s.trim());
|
|
17586
|
+
let resolvedEmail = a.email;
|
|
17587
|
+
let resolvedProfileName = a.profile;
|
|
17588
|
+
let profileApiBase;
|
|
17589
|
+
if (a.type === "bounty-im") {
|
|
17590
|
+
if (a.email && a.profile) {
|
|
17591
|
+
output.error(chalk59.red(`
|
|
17592
|
+
✗ --email 和 --profile 互斥(profile 文件已包含 email)。请选择其一。
|
|
17593
|
+
`));
|
|
17594
|
+
process.exit(1);
|
|
17595
|
+
}
|
|
17596
|
+
if (a.profile) {
|
|
17597
|
+
const profile = readBountyProfile(a.profile);
|
|
17598
|
+
if (!profile) {
|
|
17599
|
+
output.error(chalk59.red(`
|
|
17600
|
+
✗ Profile '${a.profile}' 不存在或格式错误。期望路径:~/.config/bounty/profiles/${a.profile}.json
|
|
17601
|
+
`));
|
|
17602
|
+
process.exit(1);
|
|
17603
|
+
}
|
|
17604
|
+
resolvedEmail = profile.email;
|
|
17605
|
+
profileApiBase = profile.api_base;
|
|
17606
|
+
}
|
|
17607
|
+
}
|
|
17523
17608
|
const envUrl = process.env.BOUNTY_SERVER_URL;
|
|
17524
17609
|
const fallback = envUrl || "http://localhost:8787";
|
|
17525
|
-
|
|
17610
|
+
let resolvedServerUrl;
|
|
17611
|
+
if (a.serverUrl || a.imServerUrl) {
|
|
17612
|
+
resolvedServerUrl = resolveServerUrl(a.serverUrl || a.imServerUrl, fallback);
|
|
17613
|
+
} else if (a.type === "bounty-im" && profileApiBase) {
|
|
17614
|
+
resolvedServerUrl = profileToWsUrl(profileApiBase);
|
|
17615
|
+
} else {
|
|
17616
|
+
resolvedServerUrl = resolveServerUrl(undefined, fallback);
|
|
17617
|
+
}
|
|
17526
17618
|
const config = {
|
|
17527
17619
|
id: uuid(),
|
|
17528
17620
|
name: a.name,
|
|
@@ -17534,6 +17626,7 @@ var EventSourceAddCommand = {
|
|
|
17534
17626
|
interval: a.interval,
|
|
17535
17627
|
cron: a.cron,
|
|
17536
17628
|
profile: a.profile,
|
|
17629
|
+
email: resolvedEmail,
|
|
17537
17630
|
address: a.address,
|
|
17538
17631
|
imServerUrl: resolvedServerUrl,
|
|
17539
17632
|
tlsSkipVerify: a.tlsSkipVerify === true,
|
|
@@ -17553,8 +17646,11 @@ var EventSourceAddCommand = {
|
|
|
17553
17646
|
if (a.interval) {
|
|
17554
17647
|
output.log(` Interval: ${chalk59.gray(`${a.interval}ms`)}`);
|
|
17555
17648
|
}
|
|
17556
|
-
if (
|
|
17557
|
-
output.log(` Profile: ${chalk59.gray(
|
|
17649
|
+
if (resolvedProfileName) {
|
|
17650
|
+
output.log(` Profile: ${chalk59.gray(resolvedProfileName)}`);
|
|
17651
|
+
}
|
|
17652
|
+
if (resolvedEmail) {
|
|
17653
|
+
output.log(` Email: ${chalk59.gray(resolvedEmail)}`);
|
|
17558
17654
|
}
|
|
17559
17655
|
if (a.address) {
|
|
17560
17656
|
output.log(` Address: ${chalk59.gray(a.address)}`);
|
|
@@ -17624,7 +17720,13 @@ var EventSourceUpdateCommand = {
|
|
|
17624
17720
|
describe: "是否启用",
|
|
17625
17721
|
type: "boolean"
|
|
17626
17722
|
}).option("address", {
|
|
17627
|
-
describe: "Agent IM 地址(bounty-im 类型用,格式:agent-id@host
|
|
17723
|
+
describe: "Agent IM 地址(bounty-im 类型用,格式:agent-id@host,v0.12 向后兼容)",
|
|
17724
|
+
type: "string"
|
|
17725
|
+
}).option("email", {
|
|
17726
|
+
describe: "Agent IM 注册邮箱(bounty-im 类型用,v0.13;与 --profile 互斥)",
|
|
17727
|
+
type: "string"
|
|
17728
|
+
}).option("profile", {
|
|
17729
|
+
describe: "Profile 名称(bounty-im 类型用,从 ~/.config/bounty/profiles/<name>.json 读取并自动更新 email + imServerUrl)",
|
|
17628
17730
|
type: "string"
|
|
17629
17731
|
}).option("tls-skip-verify", {
|
|
17630
17732
|
describe: "跳过 TLS 证书校验(bounty-im 类型用,wss:// 自签名场景,生产环境不推荐)",
|
|
@@ -17659,6 +17761,25 @@ var EventSourceUpdateCommand = {
|
|
|
17659
17761
|
}
|
|
17660
17762
|
process.exit(1);
|
|
17661
17763
|
}
|
|
17764
|
+
if (match.source.type === "bounty-im" && a.email && a.profile) {
|
|
17765
|
+
output.error(chalk60.red(`
|
|
17766
|
+
✗ --email 和 --profile 互斥(profile 文件已包含 email)。请选择其一。
|
|
17767
|
+
`));
|
|
17768
|
+
process.exit(1);
|
|
17769
|
+
}
|
|
17770
|
+
let profileEmail;
|
|
17771
|
+
let profileApiBase;
|
|
17772
|
+
if (a.profile && match.source.type === "bounty-im") {
|
|
17773
|
+
const profile = readBountyProfile(a.profile);
|
|
17774
|
+
if (!profile) {
|
|
17775
|
+
output.error(chalk60.red(`
|
|
17776
|
+
✗ Profile '${a.profile}' 不存在或格式错误。期望路径:~/.config/bounty/profiles/${a.profile}.json
|
|
17777
|
+
`));
|
|
17778
|
+
process.exit(1);
|
|
17779
|
+
}
|
|
17780
|
+
profileEmail = profile.email;
|
|
17781
|
+
profileApiBase = profile.api_base;
|
|
17782
|
+
}
|
|
17662
17783
|
const partial = {};
|
|
17663
17784
|
if (a.name !== undefined)
|
|
17664
17785
|
partial.name = a.name;
|
|
@@ -17677,10 +17798,18 @@ var EventSourceUpdateCommand = {
|
|
|
17677
17798
|
partial.enabled = a.enabled;
|
|
17678
17799
|
if (a.address !== undefined)
|
|
17679
17800
|
partial.address = a.address;
|
|
17680
|
-
if (a.
|
|
17801
|
+
if (a.email !== undefined)
|
|
17802
|
+
partial.email = a.email;
|
|
17803
|
+
if (profileEmail !== undefined)
|
|
17804
|
+
partial.email = profileEmail;
|
|
17805
|
+
if (a.serverUrl !== undefined || a.imServerUrl !== undefined || profileApiBase !== undefined) {
|
|
17681
17806
|
const envUrl = process.env.BOUNTY_SERVER_URL;
|
|
17682
17807
|
const fallback = envUrl || "http://localhost:8787";
|
|
17683
|
-
|
|
17808
|
+
if (a.serverUrl !== undefined || a.imServerUrl !== undefined) {
|
|
17809
|
+
partial.imServerUrl = resolveServerUrl(a.serverUrl ?? a.imServerUrl, fallback);
|
|
17810
|
+
} else if (profileApiBase !== undefined) {
|
|
17811
|
+
partial.imServerUrl = profileToWsUrl(profileApiBase);
|
|
17812
|
+
}
|
|
17684
17813
|
}
|
|
17685
17814
|
if (a.tlsSkipVerify !== undefined)
|
|
17686
17815
|
partial.tlsSkipVerify = a.tlsSkipVerify === true;
|
|
@@ -19126,6 +19255,121 @@ class DecoratorNodeValidator extends BaseNodeValidator {
|
|
|
19126
19255
|
}
|
|
19127
19256
|
}
|
|
19128
19257
|
|
|
19258
|
+
// src/commands/workflow/validators/nodes/python-call-node-validator.ts
|
|
19259
|
+
class PythonCallNodeValidator extends BaseNodeValidator {
|
|
19260
|
+
nodeType = "python_call";
|
|
19261
|
+
getRequiredFields() {
|
|
19262
|
+
return ["module", "function"];
|
|
19263
|
+
}
|
|
19264
|
+
validateTypeSpecific(node) {
|
|
19265
|
+
const errors = [];
|
|
19266
|
+
const config = node.config ?? {};
|
|
19267
|
+
const moduleVal = config.module;
|
|
19268
|
+
if (moduleVal === undefined || moduleVal === null) {
|
|
19269
|
+
errors.push({
|
|
19270
|
+
type: "MISSING_REQUIRED_FIELD" /* MISSING_REQUIRED_FIELD */,
|
|
19271
|
+
description: 'Field "module" is required for python_call node',
|
|
19272
|
+
expected: 'module: "<python.module.path>"',
|
|
19273
|
+
actual: "undefined",
|
|
19274
|
+
fix: 'Add `module: "<python.module.path>"` to the node config',
|
|
19275
|
+
nodeId: node.id
|
|
19276
|
+
});
|
|
19277
|
+
} else if (typeof moduleVal !== "string") {
|
|
19278
|
+
errors.push({
|
|
19279
|
+
type: "INVALID_FIELD_TYPE" /* INVALID_FIELD_TYPE */,
|
|
19280
|
+
description: 'Field "module" has invalid type',
|
|
19281
|
+
expected: 'string (Python module path, e.g. "investment_strategy.scripts.market_timing")',
|
|
19282
|
+
actual: typeof moduleVal,
|
|
19283
|
+
fix: "Change `module` to a string",
|
|
19284
|
+
nodeId: node.id
|
|
19285
|
+
});
|
|
19286
|
+
} else if (!/^[A-Za-z_]\w*(\.[A-Za-z_]\w*)*$/.test(moduleVal)) {
|
|
19287
|
+
errors.push({
|
|
19288
|
+
type: "INVALID_FIELD_TYPE" /* INVALID_FIELD_TYPE */,
|
|
19289
|
+
description: `Field "module" is not a valid Python module path: "${moduleVal}"`,
|
|
19290
|
+
expected: 'dotted identifier like "pkg.sub.mod"',
|
|
19291
|
+
actual: moduleVal,
|
|
19292
|
+
fix: "Use only letters, digits, underscores, and dots",
|
|
19293
|
+
nodeId: node.id
|
|
19294
|
+
});
|
|
19295
|
+
}
|
|
19296
|
+
const fnVal = config.function;
|
|
19297
|
+
if (fnVal === undefined || fnVal === null) {
|
|
19298
|
+
errors.push({
|
|
19299
|
+
type: "MISSING_REQUIRED_FIELD" /* MISSING_REQUIRED_FIELD */,
|
|
19300
|
+
description: 'Field "function" is required for python_call node',
|
|
19301
|
+
expected: 'function: "<python_function_name>"',
|
|
19302
|
+
actual: "undefined",
|
|
19303
|
+
fix: 'Add `function: "<name>"` to the node config',
|
|
19304
|
+
nodeId: node.id
|
|
19305
|
+
});
|
|
19306
|
+
} else if (typeof fnVal !== "string") {
|
|
19307
|
+
errors.push({
|
|
19308
|
+
type: "INVALID_FIELD_TYPE" /* INVALID_FIELD_TYPE */,
|
|
19309
|
+
description: 'Field "function" has invalid type',
|
|
19310
|
+
expected: 'string (Python function name, e.g. "run")',
|
|
19311
|
+
actual: typeof fnVal,
|
|
19312
|
+
fix: "Change `function` to a string",
|
|
19313
|
+
nodeId: node.id
|
|
19314
|
+
});
|
|
19315
|
+
} else if (!/^[A-Za-z_]\w*$/.test(fnVal)) {
|
|
19316
|
+
errors.push({
|
|
19317
|
+
type: "INVALID_FIELD_TYPE" /* INVALID_FIELD_TYPE */,
|
|
19318
|
+
description: `Field "function" is not a valid Python identifier: "${fnVal}"`,
|
|
19319
|
+
expected: "Python identifier: starts with letter/underscore, contains only [A-Za-z0-9_]",
|
|
19320
|
+
actual: fnVal,
|
|
19321
|
+
fix: "Use a plain Python function name (no dots, no operators)",
|
|
19322
|
+
nodeId: node.id
|
|
19323
|
+
});
|
|
19324
|
+
}
|
|
19325
|
+
const argsVal = config.args;
|
|
19326
|
+
if (argsVal !== undefined && (typeof argsVal !== "object" || argsVal === null || Array.isArray(argsVal))) {
|
|
19327
|
+
errors.push({
|
|
19328
|
+
type: "INVALID_FIELD_TYPE" /* INVALID_FIELD_TYPE */,
|
|
19329
|
+
description: 'Field "args" has invalid type',
|
|
19330
|
+
expected: "object (kwargs to pass to the function)",
|
|
19331
|
+
actual: Array.isArray(argsVal) ? "array" : typeof argsVal,
|
|
19332
|
+
fix: "Change `args` to an object: args: { key: value }",
|
|
19333
|
+
nodeId: node.id
|
|
19334
|
+
});
|
|
19335
|
+
}
|
|
19336
|
+
if (config.cwd !== undefined && typeof config.cwd !== "string") {
|
|
19337
|
+
errors.push({
|
|
19338
|
+
type: "INVALID_FIELD_TYPE" /* INVALID_FIELD_TYPE */,
|
|
19339
|
+
description: 'Field "cwd" has invalid type',
|
|
19340
|
+
expected: "string (filesystem path)",
|
|
19341
|
+
actual: typeof config.cwd,
|
|
19342
|
+
fix: "Change `cwd` to a string",
|
|
19343
|
+
nodeId: node.id
|
|
19344
|
+
});
|
|
19345
|
+
}
|
|
19346
|
+
if (config.python !== undefined && typeof config.python !== "string") {
|
|
19347
|
+
errors.push({
|
|
19348
|
+
type: "INVALID_FIELD_TYPE" /* INVALID_FIELD_TYPE */,
|
|
19349
|
+
description: 'Field "python" has invalid type',
|
|
19350
|
+
expected: "string (path to python interpreter)",
|
|
19351
|
+
actual: typeof config.python,
|
|
19352
|
+
fix: "Change `python` to a string",
|
|
19353
|
+
nodeId: node.id
|
|
19354
|
+
});
|
|
19355
|
+
}
|
|
19356
|
+
if (config.timeout !== undefined) {
|
|
19357
|
+
const t = config.timeout;
|
|
19358
|
+
if (typeof t !== "number" || !Number.isFinite(t) || t <= 0) {
|
|
19359
|
+
errors.push({
|
|
19360
|
+
type: "INVALID_FIELD_TYPE" /* INVALID_FIELD_TYPE */,
|
|
19361
|
+
description: 'Field "timeout" has invalid type',
|
|
19362
|
+
expected: "positive number (milliseconds)",
|
|
19363
|
+
actual: typeof t === "number" ? `${t}` : typeof t,
|
|
19364
|
+
fix: "Change `timeout` to a positive number, e.g. timeout: 60000",
|
|
19365
|
+
nodeId: node.id
|
|
19366
|
+
});
|
|
19367
|
+
}
|
|
19368
|
+
}
|
|
19369
|
+
return errors;
|
|
19370
|
+
}
|
|
19371
|
+
}
|
|
19372
|
+
|
|
19129
19373
|
// src/commands/workflow/validators/node-validator-factory.ts
|
|
19130
19374
|
var validators = new Map;
|
|
19131
19375
|
validators.set("tool", new ToolNodeValidator);
|
|
@@ -19135,6 +19379,7 @@ validators.set("workflow", new WorkflowNodeValidator);
|
|
|
19135
19379
|
validators.set("condition", new ConditionNodeValidator);
|
|
19136
19380
|
validators.set("merge", new MergeNodeValidator);
|
|
19137
19381
|
validators.set("decorator", new DecoratorNodeValidator);
|
|
19382
|
+
validators.set("python_call", new PythonCallNodeValidator);
|
|
19138
19383
|
function getNodeValidator(type) {
|
|
19139
19384
|
return validators.get(type) || null;
|
|
19140
19385
|
}
|
|
@@ -20859,7 +21104,7 @@ Use `) + chalk74.cyan("roy-agent workflow nodes <type>") + chalk74.gray(" for de
|
|
|
20859
21104
|
|
|
20860
21105
|
// src/commands/workflow/commands/validate.ts
|
|
20861
21106
|
import chalk75 from "chalk";
|
|
20862
|
-
import { readFileSync } from "fs";
|
|
21107
|
+
import { readFileSync as readFileSync2 } from "fs";
|
|
20863
21108
|
async function parseWorkflowInput(input, yamlStr) {
|
|
20864
21109
|
const parseYaml = async (content) => {
|
|
20865
21110
|
const YAML2 = await Promise.resolve().then(() => __toESM(require_dist(), 1));
|
|
@@ -20867,7 +21112,7 @@ async function parseWorkflowInput(input, yamlStr) {
|
|
|
20867
21112
|
};
|
|
20868
21113
|
if (input && !yamlStr) {
|
|
20869
21114
|
try {
|
|
20870
|
-
const content =
|
|
21115
|
+
const content = readFileSync2(input, "utf-8");
|
|
20871
21116
|
return await parseYaml(content);
|
|
20872
21117
|
} catch (error) {
|
|
20873
21118
|
throw new Error(`Failed to read file "${input}": ${error.message}`);
|
|
@@ -21602,24 +21847,24 @@ var LspCommand = {
|
|
|
21602
21847
|
|
|
21603
21848
|
// src/commands/install/index.ts
|
|
21604
21849
|
import { spawnSync } from "node:child_process";
|
|
21605
|
-
import { existsSync as
|
|
21606
|
-
import { join as
|
|
21607
|
-
import { homedir as
|
|
21850
|
+
import { existsSync as existsSync4, readFileSync as readFileSync3, writeFileSync, mkdirSync, cpSync } from "node:fs";
|
|
21851
|
+
import { join as join5, resolve } from "node:path";
|
|
21852
|
+
import { homedir as homedir4 } from "node:os";
|
|
21608
21853
|
function getConfigDir(scope) {
|
|
21609
|
-
return scope === "global" ?
|
|
21854
|
+
return scope === "global" ? join5(homedir4(), ".roy-agent") : join5(process.cwd(), ".roy");
|
|
21610
21855
|
}
|
|
21611
21856
|
function detectDefaultScope() {
|
|
21612
|
-
const projectDir =
|
|
21613
|
-
return
|
|
21857
|
+
const projectDir = join5(process.cwd(), ".roy");
|
|
21858
|
+
return existsSync4(projectDir) ? "project" : "global";
|
|
21614
21859
|
}
|
|
21615
21860
|
function getConfigPath(scope) {
|
|
21616
|
-
return
|
|
21861
|
+
return join5(getConfigDir(scope), "plugins.json");
|
|
21617
21862
|
}
|
|
21618
21863
|
function loadPlugins(scope) {
|
|
21619
21864
|
const configPath = getConfigPath(scope);
|
|
21620
21865
|
try {
|
|
21621
|
-
if (
|
|
21622
|
-
const raw =
|
|
21866
|
+
if (existsSync4(configPath)) {
|
|
21867
|
+
const raw = readFileSync3(configPath, "utf-8");
|
|
21623
21868
|
const config = JSON.parse(raw);
|
|
21624
21869
|
return config.plugins ?? [];
|
|
21625
21870
|
}
|
|
@@ -21629,7 +21874,7 @@ function loadPlugins(scope) {
|
|
|
21629
21874
|
function savePlugins(plugins, scope) {
|
|
21630
21875
|
const configDir = getConfigDir(scope);
|
|
21631
21876
|
const configPath = getConfigPath(scope);
|
|
21632
|
-
if (!
|
|
21877
|
+
if (!existsSync4(configDir)) {
|
|
21633
21878
|
mkdirSync(configDir, { recursive: true });
|
|
21634
21879
|
}
|
|
21635
21880
|
const config = { plugins };
|
|
@@ -21645,10 +21890,10 @@ function stripVersionSpec(packageName) {
|
|
|
21645
21890
|
function readPackageInfo(packageName) {
|
|
21646
21891
|
const bareName = packageName.startsWith("/") || packageName.startsWith(".") ? packageName : stripVersionSpec(packageName);
|
|
21647
21892
|
if (packageName.startsWith("/") || packageName.startsWith(".")) {
|
|
21648
|
-
const localPkgPath =
|
|
21649
|
-
if (
|
|
21893
|
+
const localPkgPath = join5(packageName, "package.json");
|
|
21894
|
+
if (existsSync4(localPkgPath)) {
|
|
21650
21895
|
try {
|
|
21651
|
-
const pkg = JSON.parse(
|
|
21896
|
+
const pkg = JSON.parse(readFileSync3(localPkgPath, "utf-8"));
|
|
21652
21897
|
return {
|
|
21653
21898
|
version: pkg.version ?? "0.0.0",
|
|
21654
21899
|
name: pkg.name ?? packageName,
|
|
@@ -21660,19 +21905,19 @@ function readPackageInfo(packageName) {
|
|
|
21660
21905
|
}
|
|
21661
21906
|
}
|
|
21662
21907
|
const searchPaths = [
|
|
21663
|
-
|
|
21908
|
+
join5(process.cwd(), "node_modules", bareName, "package.json"),
|
|
21664
21909
|
resolve(process.cwd(), "..", "node_modules", bareName, "package.json"),
|
|
21665
|
-
|
|
21666
|
-
|
|
21910
|
+
join5(process.cwd(), ".roy", "plugins", bareName, "package.json"),
|
|
21911
|
+
join5(homedir4(), ".roy-agent", "node_modules", bareName, "package.json"),
|
|
21667
21912
|
...(() => {
|
|
21668
21913
|
const globalRoot = getNpmGlobalRoot();
|
|
21669
|
-
return globalRoot ? [
|
|
21914
|
+
return globalRoot ? [join5(globalRoot, bareName, "package.json")] : [];
|
|
21670
21915
|
})()
|
|
21671
21916
|
];
|
|
21672
21917
|
for (const pkgPath of searchPaths) {
|
|
21673
21918
|
try {
|
|
21674
|
-
if (
|
|
21675
|
-
const pkg = JSON.parse(
|
|
21919
|
+
if (existsSync4(pkgPath)) {
|
|
21920
|
+
const pkg = JSON.parse(readFileSync3(pkgPath, "utf-8"));
|
|
21676
21921
|
return {
|
|
21677
21922
|
version: pkg.version ?? "0.0.0",
|
|
21678
21923
|
name: pkg.name ?? bareName,
|
|
@@ -21695,15 +21940,15 @@ function getNpmGlobalRoot() {
|
|
|
21695
21940
|
return null;
|
|
21696
21941
|
}
|
|
21697
21942
|
function getPackageManagerCommand() {
|
|
21698
|
-
if (
|
|
21699
|
-
if (
|
|
21943
|
+
if (existsSync4(join5(process.cwd(), "pnpm-lock.yaml"))) {
|
|
21944
|
+
if (existsSync4(join5(process.cwd(), "pnpm-workspace.yaml"))) {
|
|
21700
21945
|
return "pnpm -w";
|
|
21701
21946
|
}
|
|
21702
21947
|
return "pnpm";
|
|
21703
21948
|
}
|
|
21704
|
-
if (
|
|
21949
|
+
if (existsSync4(join5(process.cwd(), "yarn.lock")))
|
|
21705
21950
|
return "yarn";
|
|
21706
|
-
if (
|
|
21951
|
+
if (existsSync4(join5(process.cwd(), "bun.lock")) || existsSync4(join5(process.cwd(), "bun.lockb")))
|
|
21707
21952
|
return "bun";
|
|
21708
21953
|
return "npm";
|
|
21709
21954
|
}
|
|
@@ -21742,14 +21987,14 @@ var InstallPackageCommand = {
|
|
|
21742
21987
|
}
|
|
21743
21988
|
resolvedName = info2.name;
|
|
21744
21989
|
const srcDir = resolve(packageName);
|
|
21745
|
-
if (!
|
|
21990
|
+
if (!existsSync4(srcDir)) {
|
|
21746
21991
|
console.error(`
|
|
21747
21992
|
❌ Local path '${srcDir}' does not exist.
|
|
21748
21993
|
`);
|
|
21749
21994
|
process.exit(1);
|
|
21750
21995
|
}
|
|
21751
|
-
const pluginDir =
|
|
21752
|
-
if (!
|
|
21996
|
+
const pluginDir = join5(process.cwd(), ".roy", "plugins", resolvedName);
|
|
21997
|
+
if (!existsSync4(pluginDir)) {
|
|
21753
21998
|
mkdirSync(pluginDir, { recursive: true });
|
|
21754
21999
|
}
|
|
21755
22000
|
const result = spawnSync("cp", ["-r", `${srcDir}/.`, pluginDir], {
|
|
@@ -21784,12 +22029,12 @@ var InstallPackageCommand = {
|
|
|
21784
22029
|
process.exit(1);
|
|
21785
22030
|
}
|
|
21786
22031
|
resolvedName = info2.name;
|
|
21787
|
-
const pluginDir =
|
|
21788
|
-
if (!
|
|
22032
|
+
const pluginDir = join5(process.cwd(), ".roy", "plugins", resolvedName);
|
|
22033
|
+
if (!existsSync4(pluginDir)) {
|
|
21789
22034
|
mkdirSync(pluginDir, { recursive: true });
|
|
21790
22035
|
}
|
|
21791
|
-
const nmPath =
|
|
21792
|
-
if (
|
|
22036
|
+
const nmPath = join5(process.cwd(), "node_modules", packageName);
|
|
22037
|
+
if (existsSync4(nmPath)) {
|
|
21793
22038
|
spawnSync("cp", ["-r", `${nmPath}/.`, pluginDir], { stdio: "inherit", shell: false });
|
|
21794
22039
|
}
|
|
21795
22040
|
}
|
|
@@ -21820,14 +22065,14 @@ var InstallPackageCommand = {
|
|
|
21820
22065
|
`);
|
|
21821
22066
|
process.exit(1);
|
|
21822
22067
|
}
|
|
21823
|
-
const globalNm =
|
|
21824
|
-
if (!
|
|
21825
|
-
mkdirSync(
|
|
22068
|
+
const globalNm = join5(homedir4(), ".roy-agent", "node_modules", resolvedGlobalName);
|
|
22069
|
+
if (!existsSync4(globalNm)) {
|
|
22070
|
+
mkdirSync(join5(homedir4(), ".roy-agent", "node_modules"), { recursive: true });
|
|
21826
22071
|
const rootResult = spawnSync("npm", ["root", "-g"], { stdio: "pipe", shell: false });
|
|
21827
22072
|
const globalRoot = rootResult.stdout?.toString().trim();
|
|
21828
22073
|
if (globalRoot) {
|
|
21829
|
-
const globalInstalled =
|
|
21830
|
-
if (
|
|
22074
|
+
const globalInstalled = join5(globalRoot, resolvedGlobalName);
|
|
22075
|
+
if (existsSync4(globalInstalled)) {
|
|
21831
22076
|
cpSync(globalInstalled, globalNm, { recursive: true });
|
|
21832
22077
|
}
|
|
21833
22078
|
}
|
|
@@ -21938,8 +22183,8 @@ var InstallRemoveCommand = {
|
|
|
21938
22183
|
\uD83D\uDDD1️ Removing plugin: ${plugin.packageName}@${plugin.version} (${scope})
|
|
21939
22184
|
`);
|
|
21940
22185
|
if (scope === "project") {
|
|
21941
|
-
const pluginDir =
|
|
21942
|
-
if (
|
|
22186
|
+
const pluginDir = join5(process.cwd(), ".roy", "plugins", plugin.packageName);
|
|
22187
|
+
if (existsSync4(pluginDir)) {
|
|
21943
22188
|
spawnSync("rm", ["-rf", pluginDir], { stdio: "inherit", shell: false });
|
|
21944
22189
|
console.log(` Removed plugin directory: ${pluginDir}`);
|
|
21945
22190
|
}
|
|
@@ -21954,8 +22199,8 @@ var InstallRemoveCommand = {
|
|
|
21954
22199
|
`);
|
|
21955
22200
|
process.exit(result.status ?? 1);
|
|
21956
22201
|
}
|
|
21957
|
-
const globalNm =
|
|
21958
|
-
if (
|
|
22202
|
+
const globalNm = join5(homedir4(), ".roy-agent", "node_modules", plugin.packageName);
|
|
22203
|
+
if (existsSync4(globalNm)) {
|
|
21959
22204
|
spawnSync("rm", ["-rf", globalNm], { stdio: "inherit", shell: false });
|
|
21960
22205
|
}
|
|
21961
22206
|
}
|