@ai-setting/roy-agent-cli 1.5.73 → 1.5.75
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 +368 -126
- package/dist/index.js +368 -126
- package/dist/roy-agent-linux-x64/bin/roy-agent +0 -0
- package/package.json +2 -2
package/dist/bin/roy-agent.js
CHANGED
|
@@ -326,7 +326,7 @@ var init_stream_output_service = __esm(() => {
|
|
|
326
326
|
};
|
|
327
327
|
});
|
|
328
328
|
|
|
329
|
-
// ../../node_modules/.
|
|
329
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/identity.js
|
|
330
330
|
var require_identity = __commonJS((exports) => {
|
|
331
331
|
var ALIAS = Symbol.for("yaml.alias");
|
|
332
332
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -380,7 +380,7 @@ var require_identity = __commonJS((exports) => {
|
|
|
380
380
|
exports.isSeq = isSeq;
|
|
381
381
|
});
|
|
382
382
|
|
|
383
|
-
// ../../node_modules/.
|
|
383
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/visit.js
|
|
384
384
|
var require_visit = __commonJS((exports) => {
|
|
385
385
|
var identity = require_identity();
|
|
386
386
|
var BREAK = Symbol("break visit");
|
|
@@ -535,7 +535,7 @@ var require_visit = __commonJS((exports) => {
|
|
|
535
535
|
exports.visitAsync = visitAsync;
|
|
536
536
|
});
|
|
537
537
|
|
|
538
|
-
// ../../node_modules/.
|
|
538
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/directives.js
|
|
539
539
|
var require_directives = __commonJS((exports) => {
|
|
540
540
|
var identity = require_identity();
|
|
541
541
|
var visit = require_visit();
|
|
@@ -687,7 +687,7 @@ var require_directives = __commonJS((exports) => {
|
|
|
687
687
|
exports.Directives = Directives;
|
|
688
688
|
});
|
|
689
689
|
|
|
690
|
-
// ../../node_modules/.
|
|
690
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/anchors.js
|
|
691
691
|
var require_anchors = __commonJS((exports) => {
|
|
692
692
|
var identity = require_identity();
|
|
693
693
|
var visit = require_visit();
|
|
@@ -749,7 +749,7 @@ var require_anchors = __commonJS((exports) => {
|
|
|
749
749
|
exports.findNewAnchor = findNewAnchor;
|
|
750
750
|
});
|
|
751
751
|
|
|
752
|
-
// ../../node_modules/.
|
|
752
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/applyReviver.js
|
|
753
753
|
var require_applyReviver = __commonJS((exports) => {
|
|
754
754
|
function applyReviver(reviver, obj, key, val) {
|
|
755
755
|
if (val && typeof val === "object") {
|
|
@@ -796,7 +796,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
|
796
796
|
exports.applyReviver = applyReviver;
|
|
797
797
|
});
|
|
798
798
|
|
|
799
|
-
// ../../node_modules/.
|
|
799
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/toJS.js
|
|
800
800
|
var require_toJS = __commonJS((exports) => {
|
|
801
801
|
var identity = require_identity();
|
|
802
802
|
function toJS(value, arg, ctx) {
|
|
@@ -823,7 +823,7 @@ var require_toJS = __commonJS((exports) => {
|
|
|
823
823
|
exports.toJS = toJS;
|
|
824
824
|
});
|
|
825
825
|
|
|
826
|
-
// ../../node_modules/.
|
|
826
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Node.js
|
|
827
827
|
var require_Node = __commonJS((exports) => {
|
|
828
828
|
var applyReviver = require_applyReviver();
|
|
829
829
|
var identity = require_identity();
|
|
@@ -860,7 +860,7 @@ var require_Node = __commonJS((exports) => {
|
|
|
860
860
|
exports.NodeBase = NodeBase;
|
|
861
861
|
});
|
|
862
862
|
|
|
863
|
-
// ../../node_modules/.
|
|
863
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Alias.js
|
|
864
864
|
var require_Alias = __commonJS((exports) => {
|
|
865
865
|
var anchors = require_anchors();
|
|
866
866
|
var visit = require_visit();
|
|
@@ -970,7 +970,7 @@ var require_Alias = __commonJS((exports) => {
|
|
|
970
970
|
exports.Alias = Alias;
|
|
971
971
|
});
|
|
972
972
|
|
|
973
|
-
// ../../node_modules/.
|
|
973
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Scalar.js
|
|
974
974
|
var require_Scalar = __commonJS((exports) => {
|
|
975
975
|
var identity = require_identity();
|
|
976
976
|
var Node = require_Node();
|
|
@@ -998,7 +998,7 @@ var require_Scalar = __commonJS((exports) => {
|
|
|
998
998
|
exports.isScalarValue = isScalarValue;
|
|
999
999
|
});
|
|
1000
1000
|
|
|
1001
|
-
// ../../node_modules/.
|
|
1001
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/createNode.js
|
|
1002
1002
|
var require_createNode = __commonJS((exports) => {
|
|
1003
1003
|
var Alias = require_Alias();
|
|
1004
1004
|
var identity = require_identity();
|
|
@@ -1070,7 +1070,7 @@ var require_createNode = __commonJS((exports) => {
|
|
|
1070
1070
|
exports.createNode = createNode;
|
|
1071
1071
|
});
|
|
1072
1072
|
|
|
1073
|
-
// ../../node_modules/.
|
|
1073
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Collection.js
|
|
1074
1074
|
var require_Collection = __commonJS((exports) => {
|
|
1075
1075
|
var createNode = require_createNode();
|
|
1076
1076
|
var identity = require_identity();
|
|
@@ -1185,7 +1185,7 @@ var require_Collection = __commonJS((exports) => {
|
|
|
1185
1185
|
exports.isEmptyPath = isEmptyPath;
|
|
1186
1186
|
});
|
|
1187
1187
|
|
|
1188
|
-
// ../../node_modules/.
|
|
1188
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
1189
1189
|
var require_stringifyComment = __commonJS((exports) => {
|
|
1190
1190
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
1191
1191
|
function indentComment(comment, indent) {
|
|
@@ -1202,7 +1202,7 @@ var require_stringifyComment = __commonJS((exports) => {
|
|
|
1202
1202
|
exports.stringifyComment = stringifyComment;
|
|
1203
1203
|
});
|
|
1204
1204
|
|
|
1205
|
-
// ../../node_modules/.
|
|
1205
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
1206
1206
|
var require_foldFlowLines = __commonJS((exports) => {
|
|
1207
1207
|
var FOLD_FLOW = "flow";
|
|
1208
1208
|
var FOLD_BLOCK = "block";
|
|
@@ -1339,7 +1339,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1339
1339
|
exports.foldFlowLines = foldFlowLines;
|
|
1340
1340
|
});
|
|
1341
1341
|
|
|
1342
|
-
// ../../node_modules/.
|
|
1342
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1343
1343
|
var require_stringifyString = __commonJS((exports) => {
|
|
1344
1344
|
var Scalar = require_Scalar();
|
|
1345
1345
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1637,7 +1637,7 @@ ${indent}`);
|
|
|
1637
1637
|
exports.stringifyString = stringifyString;
|
|
1638
1638
|
});
|
|
1639
1639
|
|
|
1640
|
-
// ../../node_modules/.
|
|
1640
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringify.js
|
|
1641
1641
|
var require_stringify = __commonJS((exports) => {
|
|
1642
1642
|
var anchors = require_anchors();
|
|
1643
1643
|
var identity = require_identity();
|
|
@@ -1758,7 +1758,7 @@ ${ctx.indent}${str}`;
|
|
|
1758
1758
|
exports.stringify = stringify;
|
|
1759
1759
|
});
|
|
1760
1760
|
|
|
1761
|
-
// ../../node_modules/.
|
|
1761
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1762
1762
|
var require_stringifyPair = __commonJS((exports) => {
|
|
1763
1763
|
var identity = require_identity();
|
|
1764
1764
|
var Scalar = require_Scalar();
|
|
@@ -1894,7 +1894,7 @@ ${ctx.indent}`;
|
|
|
1894
1894
|
exports.stringifyPair = stringifyPair;
|
|
1895
1895
|
});
|
|
1896
1896
|
|
|
1897
|
-
// ../../node_modules/.
|
|
1897
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/log.js
|
|
1898
1898
|
var require_log = __commonJS((exports) => {
|
|
1899
1899
|
var node_process = __require("process");
|
|
1900
1900
|
function debug(logLevel, ...messages) {
|
|
@@ -1913,7 +1913,7 @@ var require_log = __commonJS((exports) => {
|
|
|
1913
1913
|
exports.warn = warn;
|
|
1914
1914
|
});
|
|
1915
1915
|
|
|
1916
|
-
// ../../node_modules/.
|
|
1916
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/merge.js
|
|
1917
1917
|
var require_merge = __commonJS((exports) => {
|
|
1918
1918
|
var identity = require_identity();
|
|
1919
1919
|
var Scalar = require_Scalar();
|
|
@@ -1970,7 +1970,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
1970
1970
|
exports.merge = merge;
|
|
1971
1971
|
});
|
|
1972
1972
|
|
|
1973
|
-
// ../../node_modules/.
|
|
1973
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1974
1974
|
var require_addPairToJSMap = __commonJS((exports) => {
|
|
1975
1975
|
var log = require_log();
|
|
1976
1976
|
var merge = require_merge();
|
|
@@ -2031,7 +2031,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
2031
2031
|
exports.addPairToJSMap = addPairToJSMap;
|
|
2032
2032
|
});
|
|
2033
2033
|
|
|
2034
|
-
// ../../node_modules/.
|
|
2034
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Pair.js
|
|
2035
2035
|
var require_Pair = __commonJS((exports) => {
|
|
2036
2036
|
var createNode = require_createNode();
|
|
2037
2037
|
var stringifyPair = require_stringifyPair();
|
|
@@ -2069,7 +2069,7 @@ var require_Pair = __commonJS((exports) => {
|
|
|
2069
2069
|
exports.createPair = createPair;
|
|
2070
2070
|
});
|
|
2071
2071
|
|
|
2072
|
-
// ../../node_modules/.
|
|
2072
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
2073
2073
|
var require_stringifyCollection = __commonJS((exports) => {
|
|
2074
2074
|
var identity = require_identity();
|
|
2075
2075
|
var stringify = require_stringify();
|
|
@@ -2221,7 +2221,7 @@ ${indent}${end}`;
|
|
|
2221
2221
|
exports.stringifyCollection = stringifyCollection;
|
|
2222
2222
|
});
|
|
2223
2223
|
|
|
2224
|
-
// ../../node_modules/.
|
|
2224
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
2225
2225
|
var require_YAMLMap = __commonJS((exports) => {
|
|
2226
2226
|
var stringifyCollection = require_stringifyCollection();
|
|
2227
2227
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2348,7 +2348,7 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
2348
2348
|
exports.findPair = findPair;
|
|
2349
2349
|
});
|
|
2350
2350
|
|
|
2351
|
-
// ../../node_modules/.
|
|
2351
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/map.js
|
|
2352
2352
|
var require_map = __commonJS((exports) => {
|
|
2353
2353
|
var identity = require_identity();
|
|
2354
2354
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2367,7 +2367,7 @@ var require_map = __commonJS((exports) => {
|
|
|
2367
2367
|
exports.map = map;
|
|
2368
2368
|
});
|
|
2369
2369
|
|
|
2370
|
-
// ../../node_modules/.
|
|
2370
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2371
2371
|
var require_YAMLSeq = __commonJS((exports) => {
|
|
2372
2372
|
var createNode = require_createNode();
|
|
2373
2373
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2460,7 +2460,7 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
2460
2460
|
exports.YAMLSeq = YAMLSeq;
|
|
2461
2461
|
});
|
|
2462
2462
|
|
|
2463
|
-
// ../../node_modules/.
|
|
2463
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/seq.js
|
|
2464
2464
|
var require_seq = __commonJS((exports) => {
|
|
2465
2465
|
var identity = require_identity();
|
|
2466
2466
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2479,7 +2479,7 @@ var require_seq = __commonJS((exports) => {
|
|
|
2479
2479
|
exports.seq = seq;
|
|
2480
2480
|
});
|
|
2481
2481
|
|
|
2482
|
-
// ../../node_modules/.
|
|
2482
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/string.js
|
|
2483
2483
|
var require_string = __commonJS((exports) => {
|
|
2484
2484
|
var stringifyString = require_stringifyString();
|
|
2485
2485
|
var string = {
|
|
@@ -2495,7 +2495,7 @@ var require_string = __commonJS((exports) => {
|
|
|
2495
2495
|
exports.string = string;
|
|
2496
2496
|
});
|
|
2497
2497
|
|
|
2498
|
-
// ../../node_modules/.
|
|
2498
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/null.js
|
|
2499
2499
|
var require_null = __commonJS((exports) => {
|
|
2500
2500
|
var Scalar = require_Scalar();
|
|
2501
2501
|
var nullTag = {
|
|
@@ -2510,7 +2510,7 @@ var require_null = __commonJS((exports) => {
|
|
|
2510
2510
|
exports.nullTag = nullTag;
|
|
2511
2511
|
});
|
|
2512
2512
|
|
|
2513
|
-
// ../../node_modules/.
|
|
2513
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/bool.js
|
|
2514
2514
|
var require_bool = __commonJS((exports) => {
|
|
2515
2515
|
var Scalar = require_Scalar();
|
|
2516
2516
|
var boolTag = {
|
|
@@ -2531,7 +2531,7 @@ var require_bool = __commonJS((exports) => {
|
|
|
2531
2531
|
exports.boolTag = boolTag;
|
|
2532
2532
|
});
|
|
2533
2533
|
|
|
2534
|
-
// ../../node_modules/.
|
|
2534
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2535
2535
|
var require_stringifyNumber = __commonJS((exports) => {
|
|
2536
2536
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2537
2537
|
if (typeof value === "bigint")
|
|
@@ -2555,7 +2555,7 @@ var require_stringifyNumber = __commonJS((exports) => {
|
|
|
2555
2555
|
exports.stringifyNumber = stringifyNumber;
|
|
2556
2556
|
});
|
|
2557
2557
|
|
|
2558
|
-
// ../../node_modules/.
|
|
2558
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/float.js
|
|
2559
2559
|
var require_float = __commonJS((exports) => {
|
|
2560
2560
|
var Scalar = require_Scalar();
|
|
2561
2561
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2598,7 +2598,7 @@ var require_float = __commonJS((exports) => {
|
|
|
2598
2598
|
exports.floatNaN = floatNaN;
|
|
2599
2599
|
});
|
|
2600
2600
|
|
|
2601
|
-
// ../../node_modules/.
|
|
2601
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/int.js
|
|
2602
2602
|
var require_int = __commonJS((exports) => {
|
|
2603
2603
|
var stringifyNumber = require_stringifyNumber();
|
|
2604
2604
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2640,7 +2640,7 @@ var require_int = __commonJS((exports) => {
|
|
|
2640
2640
|
exports.intOct = intOct;
|
|
2641
2641
|
});
|
|
2642
2642
|
|
|
2643
|
-
// ../../node_modules/.
|
|
2643
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/schema.js
|
|
2644
2644
|
var require_schema = __commonJS((exports) => {
|
|
2645
2645
|
var map = require_map();
|
|
2646
2646
|
var _null = require_null();
|
|
@@ -2665,7 +2665,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
2665
2665
|
exports.schema = schema;
|
|
2666
2666
|
});
|
|
2667
2667
|
|
|
2668
|
-
// ../../node_modules/.
|
|
2668
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/json/schema.js
|
|
2669
2669
|
var require_schema2 = __commonJS((exports) => {
|
|
2670
2670
|
var Scalar = require_Scalar();
|
|
2671
2671
|
var map = require_map();
|
|
@@ -2729,7 +2729,7 @@ var require_schema2 = __commonJS((exports) => {
|
|
|
2729
2729
|
exports.schema = schema;
|
|
2730
2730
|
});
|
|
2731
2731
|
|
|
2732
|
-
// ../../node_modules/.
|
|
2732
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2733
2733
|
var require_binary = __commonJS((exports) => {
|
|
2734
2734
|
var node_buffer = __require("buffer");
|
|
2735
2735
|
var Scalar = require_Scalar();
|
|
@@ -2784,7 +2784,7 @@ var require_binary = __commonJS((exports) => {
|
|
|
2784
2784
|
exports.binary = binary;
|
|
2785
2785
|
});
|
|
2786
2786
|
|
|
2787
|
-
// ../../node_modules/.
|
|
2787
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2788
2788
|
var require_pairs = __commonJS((exports) => {
|
|
2789
2789
|
var identity = require_identity();
|
|
2790
2790
|
var Pair = require_Pair();
|
|
@@ -2859,7 +2859,7 @@ ${cn.comment}` : item.comment;
|
|
|
2859
2859
|
exports.resolvePairs = resolvePairs;
|
|
2860
2860
|
});
|
|
2861
2861
|
|
|
2862
|
-
// ../../node_modules/.
|
|
2862
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2863
2863
|
var require_omap = __commonJS((exports) => {
|
|
2864
2864
|
var identity = require_identity();
|
|
2865
2865
|
var toJS = require_toJS();
|
|
@@ -2931,7 +2931,7 @@ var require_omap = __commonJS((exports) => {
|
|
|
2931
2931
|
exports.omap = omap;
|
|
2932
2932
|
});
|
|
2933
2933
|
|
|
2934
|
-
// ../../node_modules/.
|
|
2934
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2935
2935
|
var require_bool2 = __commonJS((exports) => {
|
|
2936
2936
|
var Scalar = require_Scalar();
|
|
2937
2937
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2960,7 +2960,7 @@ var require_bool2 = __commonJS((exports) => {
|
|
|
2960
2960
|
exports.trueTag = trueTag;
|
|
2961
2961
|
});
|
|
2962
2962
|
|
|
2963
|
-
// ../../node_modules/.
|
|
2963
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2964
2964
|
var require_float2 = __commonJS((exports) => {
|
|
2965
2965
|
var Scalar = require_Scalar();
|
|
2966
2966
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -3006,7 +3006,7 @@ var require_float2 = __commonJS((exports) => {
|
|
|
3006
3006
|
exports.floatNaN = floatNaN;
|
|
3007
3007
|
});
|
|
3008
3008
|
|
|
3009
|
-
// ../../node_modules/.
|
|
3009
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
3010
3010
|
var require_int2 = __commonJS((exports) => {
|
|
3011
3011
|
var stringifyNumber = require_stringifyNumber();
|
|
3012
3012
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -3082,7 +3082,7 @@ var require_int2 = __commonJS((exports) => {
|
|
|
3082
3082
|
exports.intOct = intOct;
|
|
3083
3083
|
});
|
|
3084
3084
|
|
|
3085
|
-
// ../../node_modules/.
|
|
3085
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
3086
3086
|
var require_set = __commonJS((exports) => {
|
|
3087
3087
|
var identity = require_identity();
|
|
3088
3088
|
var Pair = require_Pair();
|
|
@@ -3165,7 +3165,7 @@ var require_set = __commonJS((exports) => {
|
|
|
3165
3165
|
exports.set = set;
|
|
3166
3166
|
});
|
|
3167
3167
|
|
|
3168
|
-
// ../../node_modules/.
|
|
3168
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
3169
3169
|
var require_timestamp = __commonJS((exports) => {
|
|
3170
3170
|
var stringifyNumber = require_stringifyNumber();
|
|
3171
3171
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3247,7 +3247,7 @@ var require_timestamp = __commonJS((exports) => {
|
|
|
3247
3247
|
exports.timestamp = timestamp;
|
|
3248
3248
|
});
|
|
3249
3249
|
|
|
3250
|
-
// ../../node_modules/.
|
|
3250
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3251
3251
|
var require_schema3 = __commonJS((exports) => {
|
|
3252
3252
|
var map = require_map();
|
|
3253
3253
|
var _null = require_null();
|
|
@@ -3288,7 +3288,7 @@ var require_schema3 = __commonJS((exports) => {
|
|
|
3288
3288
|
exports.schema = schema;
|
|
3289
3289
|
});
|
|
3290
3290
|
|
|
3291
|
-
// ../../node_modules/.
|
|
3291
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/tags.js
|
|
3292
3292
|
var require_tags = __commonJS((exports) => {
|
|
3293
3293
|
var map = require_map();
|
|
3294
3294
|
var _null = require_null();
|
|
@@ -3379,7 +3379,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
3379
3379
|
exports.getTags = getTags;
|
|
3380
3380
|
});
|
|
3381
3381
|
|
|
3382
|
-
// ../../node_modules/.
|
|
3382
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/Schema.js
|
|
3383
3383
|
var require_Schema = __commonJS((exports) => {
|
|
3384
3384
|
var identity = require_identity();
|
|
3385
3385
|
var map = require_map();
|
|
@@ -3409,7 +3409,7 @@ var require_Schema = __commonJS((exports) => {
|
|
|
3409
3409
|
exports.Schema = Schema;
|
|
3410
3410
|
});
|
|
3411
3411
|
|
|
3412
|
-
// ../../node_modules/.
|
|
3412
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3413
3413
|
var require_stringifyDocument = __commonJS((exports) => {
|
|
3414
3414
|
var identity = require_identity();
|
|
3415
3415
|
var stringify = require_stringify();
|
|
@@ -3489,7 +3489,7 @@ var require_stringifyDocument = __commonJS((exports) => {
|
|
|
3489
3489
|
exports.stringifyDocument = stringifyDocument;
|
|
3490
3490
|
});
|
|
3491
3491
|
|
|
3492
|
-
// ../../node_modules/.
|
|
3492
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/Document.js
|
|
3493
3493
|
var require_Document = __commonJS((exports) => {
|
|
3494
3494
|
var Alias = require_Alias();
|
|
3495
3495
|
var Collection = require_Collection();
|
|
@@ -3724,7 +3724,7 @@ var require_Document = __commonJS((exports) => {
|
|
|
3724
3724
|
exports.Document = Document;
|
|
3725
3725
|
});
|
|
3726
3726
|
|
|
3727
|
-
// ../../node_modules/.
|
|
3727
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/errors.js
|
|
3728
3728
|
var require_errors = __commonJS((exports) => {
|
|
3729
3729
|
class YAMLError extends Error {
|
|
3730
3730
|
constructor(name, pos, code, message) {
|
|
@@ -3789,7 +3789,7 @@ ${pointer}
|
|
|
3789
3789
|
exports.prettifyError = prettifyError;
|
|
3790
3790
|
});
|
|
3791
3791
|
|
|
3792
|
-
// ../../node_modules/.
|
|
3792
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-props.js
|
|
3793
3793
|
var require_resolve_props = __commonJS((exports) => {
|
|
3794
3794
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3795
3795
|
let spaceBefore = false;
|
|
@@ -3919,7 +3919,7 @@ var require_resolve_props = __commonJS((exports) => {
|
|
|
3919
3919
|
exports.resolveProps = resolveProps;
|
|
3920
3920
|
});
|
|
3921
3921
|
|
|
3922
|
-
// ../../node_modules/.
|
|
3922
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3923
3923
|
var require_util_contains_newline = __commonJS((exports) => {
|
|
3924
3924
|
function containsNewline(key) {
|
|
3925
3925
|
if (!key)
|
|
@@ -3959,7 +3959,7 @@ var require_util_contains_newline = __commonJS((exports) => {
|
|
|
3959
3959
|
exports.containsNewline = containsNewline;
|
|
3960
3960
|
});
|
|
3961
3961
|
|
|
3962
|
-
// ../../node_modules/.
|
|
3962
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3963
3963
|
var require_util_flow_indent_check = __commonJS((exports) => {
|
|
3964
3964
|
var utilContainsNewline = require_util_contains_newline();
|
|
3965
3965
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3974,7 +3974,7 @@ var require_util_flow_indent_check = __commonJS((exports) => {
|
|
|
3974
3974
|
exports.flowIndentCheck = flowIndentCheck;
|
|
3975
3975
|
});
|
|
3976
3976
|
|
|
3977
|
-
// ../../node_modules/.
|
|
3977
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3978
3978
|
var require_util_map_includes = __commonJS((exports) => {
|
|
3979
3979
|
var identity = require_identity();
|
|
3980
3980
|
function mapIncludes(ctx, items, search) {
|
|
@@ -3987,7 +3987,7 @@ var require_util_map_includes = __commonJS((exports) => {
|
|
|
3987
3987
|
exports.mapIncludes = mapIncludes;
|
|
3988
3988
|
});
|
|
3989
3989
|
|
|
3990
|
-
// ../../node_modules/.
|
|
3990
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3991
3991
|
var require_resolve_block_map = __commonJS((exports) => {
|
|
3992
3992
|
var Pair = require_Pair();
|
|
3993
3993
|
var YAMLMap = require_YAMLMap();
|
|
@@ -4094,7 +4094,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
4094
4094
|
exports.resolveBlockMap = resolveBlockMap;
|
|
4095
4095
|
});
|
|
4096
4096
|
|
|
4097
|
-
// ../../node_modules/.
|
|
4097
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
4098
4098
|
var require_resolve_block_seq = __commonJS((exports) => {
|
|
4099
4099
|
var YAMLSeq = require_YAMLSeq();
|
|
4100
4100
|
var resolveProps = require_resolve_props();
|
|
@@ -4142,7 +4142,7 @@ var require_resolve_block_seq = __commonJS((exports) => {
|
|
|
4142
4142
|
exports.resolveBlockSeq = resolveBlockSeq;
|
|
4143
4143
|
});
|
|
4144
4144
|
|
|
4145
|
-
// ../../node_modules/.
|
|
4145
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-end.js
|
|
4146
4146
|
var require_resolve_end = __commonJS((exports) => {
|
|
4147
4147
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4148
4148
|
let comment = "";
|
|
@@ -4182,7 +4182,7 @@ var require_resolve_end = __commonJS((exports) => {
|
|
|
4182
4182
|
exports.resolveEnd = resolveEnd;
|
|
4183
4183
|
});
|
|
4184
4184
|
|
|
4185
|
-
// ../../node_modules/.
|
|
4185
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4186
4186
|
var require_resolve_flow_collection = __commonJS((exports) => {
|
|
4187
4187
|
var identity = require_identity();
|
|
4188
4188
|
var Pair = require_Pair();
|
|
@@ -4373,7 +4373,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
4373
4373
|
exports.resolveFlowCollection = resolveFlowCollection;
|
|
4374
4374
|
});
|
|
4375
4375
|
|
|
4376
|
-
// ../../node_modules/.
|
|
4376
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-collection.js
|
|
4377
4377
|
var require_compose_collection = __commonJS((exports) => {
|
|
4378
4378
|
var identity = require_identity();
|
|
4379
4379
|
var Scalar = require_Scalar();
|
|
@@ -4435,7 +4435,7 @@ var require_compose_collection = __commonJS((exports) => {
|
|
|
4435
4435
|
exports.composeCollection = composeCollection;
|
|
4436
4436
|
});
|
|
4437
4437
|
|
|
4438
|
-
// ../../node_modules/.
|
|
4438
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4439
4439
|
var require_resolve_block_scalar = __commonJS((exports) => {
|
|
4440
4440
|
var Scalar = require_Scalar();
|
|
4441
4441
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4628,7 +4628,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
|
|
|
4628
4628
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
4629
4629
|
});
|
|
4630
4630
|
|
|
4631
|
-
// ../../node_modules/.
|
|
4631
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4632
4632
|
var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
4633
4633
|
var Scalar = require_Scalar();
|
|
4634
4634
|
var resolveEnd = require_resolve_end();
|
|
@@ -4845,7 +4845,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
|
|
|
4845
4845
|
exports.resolveFlowScalar = resolveFlowScalar;
|
|
4846
4846
|
});
|
|
4847
4847
|
|
|
4848
|
-
// ../../node_modules/.
|
|
4848
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4849
4849
|
var require_compose_scalar = __commonJS((exports) => {
|
|
4850
4850
|
var identity = require_identity();
|
|
4851
4851
|
var Scalar = require_Scalar();
|
|
@@ -4923,7 +4923,7 @@ var require_compose_scalar = __commonJS((exports) => {
|
|
|
4923
4923
|
exports.composeScalar = composeScalar;
|
|
4924
4924
|
});
|
|
4925
4925
|
|
|
4926
|
-
// ../../node_modules/.
|
|
4926
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4927
4927
|
var require_util_empty_scalar_position = __commonJS((exports) => {
|
|
4928
4928
|
function emptyScalarPosition(offset, before, pos) {
|
|
4929
4929
|
if (before) {
|
|
@@ -4950,7 +4950,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
|
|
|
4950
4950
|
exports.emptyScalarPosition = emptyScalarPosition;
|
|
4951
4951
|
});
|
|
4952
4952
|
|
|
4953
|
-
// ../../node_modules/.
|
|
4953
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-node.js
|
|
4954
4954
|
var require_compose_node = __commonJS((exports) => {
|
|
4955
4955
|
var Alias = require_Alias();
|
|
4956
4956
|
var identity = require_identity();
|
|
@@ -5053,7 +5053,7 @@ var require_compose_node = __commonJS((exports) => {
|
|
|
5053
5053
|
exports.composeNode = composeNode;
|
|
5054
5054
|
});
|
|
5055
5055
|
|
|
5056
|
-
// ../../node_modules/.
|
|
5056
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-doc.js
|
|
5057
5057
|
var require_compose_doc = __commonJS((exports) => {
|
|
5058
5058
|
var Document = require_Document();
|
|
5059
5059
|
var composeNode = require_compose_node();
|
|
@@ -5093,7 +5093,7 @@ var require_compose_doc = __commonJS((exports) => {
|
|
|
5093
5093
|
exports.composeDoc = composeDoc;
|
|
5094
5094
|
});
|
|
5095
5095
|
|
|
5096
|
-
// ../../node_modules/.
|
|
5096
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/composer.js
|
|
5097
5097
|
var require_composer = __commonJS((exports) => {
|
|
5098
5098
|
var node_process = __require("process");
|
|
5099
5099
|
var directives = require_directives();
|
|
@@ -5179,10 +5179,8 @@ ${cb}` : comment;
|
|
|
5179
5179
|
}
|
|
5180
5180
|
}
|
|
5181
5181
|
if (afterDoc) {
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
for (let i = 0;i < this.warnings.length; ++i)
|
|
5185
|
-
doc.warnings.push(this.warnings[i]);
|
|
5182
|
+
Array.prototype.push.apply(doc.errors, this.errors);
|
|
5183
|
+
Array.prototype.push.apply(doc.warnings, this.warnings);
|
|
5186
5184
|
} else {
|
|
5187
5185
|
doc.errors = this.errors;
|
|
5188
5186
|
doc.warnings = this.warnings;
|
|
@@ -5284,7 +5282,7 @@ ${end.comment}` : end.comment;
|
|
|
5284
5282
|
exports.Composer = Composer;
|
|
5285
5283
|
});
|
|
5286
5284
|
|
|
5287
|
-
// ../../node_modules/.
|
|
5285
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5288
5286
|
var require_cst_scalar = __commonJS((exports) => {
|
|
5289
5287
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5290
5288
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5474,7 +5472,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
5474
5472
|
exports.setScalarValue = setScalarValue;
|
|
5475
5473
|
});
|
|
5476
5474
|
|
|
5477
|
-
// ../../node_modules/.
|
|
5475
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5478
5476
|
var require_cst_stringify = __commonJS((exports) => {
|
|
5479
5477
|
var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
|
|
5480
5478
|
function stringifyToken(token) {
|
|
@@ -5532,7 +5530,7 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
|
5532
5530
|
exports.stringify = stringify;
|
|
5533
5531
|
});
|
|
5534
5532
|
|
|
5535
|
-
// ../../node_modules/.
|
|
5533
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-visit.js
|
|
5536
5534
|
var require_cst_visit = __commonJS((exports) => {
|
|
5537
5535
|
var BREAK = Symbol("break visit");
|
|
5538
5536
|
var SKIP = Symbol("skip children");
|
|
@@ -5591,7 +5589,7 @@ var require_cst_visit = __commonJS((exports) => {
|
|
|
5591
5589
|
exports.visit = visit;
|
|
5592
5590
|
});
|
|
5593
5591
|
|
|
5594
|
-
// ../../node_modules/.
|
|
5592
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst.js
|
|
5595
5593
|
var require_cst = __commonJS((exports) => {
|
|
5596
5594
|
var cstScalar = require_cst_scalar();
|
|
5597
5595
|
var cstStringify = require_cst_stringify();
|
|
@@ -5692,7 +5690,7 @@ var require_cst = __commonJS((exports) => {
|
|
|
5692
5690
|
exports.tokenType = tokenType;
|
|
5693
5691
|
});
|
|
5694
5692
|
|
|
5695
|
-
// ../../node_modules/.
|
|
5693
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/lexer.js
|
|
5696
5694
|
var require_lexer = __commonJS((exports) => {
|
|
5697
5695
|
var cst = require_cst();
|
|
5698
5696
|
function isEmpty(ch) {
|
|
@@ -5894,7 +5892,7 @@ var require_lexer = __commonJS((exports) => {
|
|
|
5894
5892
|
const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
|
|
5895
5893
|
this.indentNext = this.indentValue + 1;
|
|
5896
5894
|
this.indentValue += n;
|
|
5897
|
-
return
|
|
5895
|
+
return yield* this.parseBlockStart();
|
|
5898
5896
|
}
|
|
5899
5897
|
return "doc";
|
|
5900
5898
|
}
|
|
@@ -6201,37 +6199,26 @@ var require_lexer = __commonJS((exports) => {
|
|
|
6201
6199
|
return 0;
|
|
6202
6200
|
}
|
|
6203
6201
|
*pushIndicators() {
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
const ch1 = this.charAt(1);
|
|
6221
|
-
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
|
|
6222
|
-
if (!inFlow)
|
|
6223
|
-
this.indentNext = this.indentValue + 1;
|
|
6224
|
-
else if (this.flowKey)
|
|
6225
|
-
this.flowKey = false;
|
|
6226
|
-
n += yield* this.pushCount(1);
|
|
6227
|
-
n += yield* this.pushSpaces(true);
|
|
6228
|
-
continue loop;
|
|
6229
|
-
}
|
|
6230
|
-
}
|
|
6202
|
+
switch (this.charAt(0)) {
|
|
6203
|
+
case "!":
|
|
6204
|
+
return (yield* this.pushTag()) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
|
|
6205
|
+
case "&":
|
|
6206
|
+
return (yield* this.pushUntil(isNotAnchorChar)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
|
|
6207
|
+
case "-":
|
|
6208
|
+
case "?":
|
|
6209
|
+
case ":": {
|
|
6210
|
+
const inFlow = this.flowLevel > 0;
|
|
6211
|
+
const ch1 = this.charAt(1);
|
|
6212
|
+
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
|
|
6213
|
+
if (!inFlow)
|
|
6214
|
+
this.indentNext = this.indentValue + 1;
|
|
6215
|
+
else if (this.flowKey)
|
|
6216
|
+
this.flowKey = false;
|
|
6217
|
+
return (yield* this.pushCount(1)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
|
|
6231
6218
|
}
|
|
6232
|
-
break loop;
|
|
6233
6219
|
}
|
|
6234
|
-
|
|
6220
|
+
}
|
|
6221
|
+
return 0;
|
|
6235
6222
|
}
|
|
6236
6223
|
*pushTag() {
|
|
6237
6224
|
if (this.charAt(1) === "<") {
|
|
@@ -6289,7 +6276,7 @@ var require_lexer = __commonJS((exports) => {
|
|
|
6289
6276
|
exports.Lexer = Lexer;
|
|
6290
6277
|
});
|
|
6291
6278
|
|
|
6292
|
-
// ../../node_modules/.
|
|
6279
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/line-counter.js
|
|
6293
6280
|
var require_line_counter = __commonJS((exports) => {
|
|
6294
6281
|
class LineCounter {
|
|
6295
6282
|
constructor() {
|
|
@@ -6317,7 +6304,7 @@ var require_line_counter = __commonJS((exports) => {
|
|
|
6317
6304
|
exports.LineCounter = LineCounter;
|
|
6318
6305
|
});
|
|
6319
6306
|
|
|
6320
|
-
// ../../node_modules/.
|
|
6307
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/parser.js
|
|
6321
6308
|
var require_parser = __commonJS((exports) => {
|
|
6322
6309
|
var node_process = __require("process");
|
|
6323
6310
|
var cst = require_cst();
|
|
@@ -6385,13 +6372,6 @@ var require_parser = __commonJS((exports) => {
|
|
|
6385
6372
|
while (prev[++i]?.type === "space") {}
|
|
6386
6373
|
return prev.splice(i, prev.length);
|
|
6387
6374
|
}
|
|
6388
|
-
function arrayPushArray(target, source) {
|
|
6389
|
-
if (source.length < 1e5)
|
|
6390
|
-
Array.prototype.push.apply(target, source);
|
|
6391
|
-
else
|
|
6392
|
-
for (let i = 0;i < source.length; ++i)
|
|
6393
|
-
target.push(source[i]);
|
|
6394
|
-
}
|
|
6395
6375
|
function fixFlowSeqItems(fc) {
|
|
6396
6376
|
if (fc.start.type === "flow-seq-start") {
|
|
6397
6377
|
for (const it of fc.items) {
|
|
@@ -6401,11 +6381,11 @@ var require_parser = __commonJS((exports) => {
|
|
|
6401
6381
|
delete it.key;
|
|
6402
6382
|
if (isFlowToken(it.value)) {
|
|
6403
6383
|
if (it.value.end)
|
|
6404
|
-
|
|
6384
|
+
Array.prototype.push.apply(it.value.end, it.sep);
|
|
6405
6385
|
else
|
|
6406
6386
|
it.value.end = it.sep;
|
|
6407
6387
|
} else
|
|
6408
|
-
|
|
6388
|
+
Array.prototype.push.apply(it.start, it.sep);
|
|
6409
6389
|
delete it.sep;
|
|
6410
6390
|
}
|
|
6411
6391
|
}
|
|
@@ -6745,7 +6725,7 @@ var require_parser = __commonJS((exports) => {
|
|
|
6745
6725
|
const prev = map.items[map.items.length - 2];
|
|
6746
6726
|
const end = prev?.value?.end;
|
|
6747
6727
|
if (Array.isArray(end)) {
|
|
6748
|
-
|
|
6728
|
+
Array.prototype.push.apply(end, it.start);
|
|
6749
6729
|
end.push(this.sourceToken);
|
|
6750
6730
|
map.items.pop();
|
|
6751
6731
|
return;
|
|
@@ -6933,7 +6913,7 @@ var require_parser = __commonJS((exports) => {
|
|
|
6933
6913
|
const prev = seq.items[seq.items.length - 2];
|
|
6934
6914
|
const end = prev?.value?.end;
|
|
6935
6915
|
if (Array.isArray(end)) {
|
|
6936
|
-
|
|
6916
|
+
Array.prototype.push.apply(end, it.start);
|
|
6937
6917
|
end.push(this.sourceToken);
|
|
6938
6918
|
seq.items.pop();
|
|
6939
6919
|
return;
|
|
@@ -7173,7 +7153,7 @@ var require_parser = __commonJS((exports) => {
|
|
|
7173
7153
|
exports.Parser = Parser;
|
|
7174
7154
|
});
|
|
7175
7155
|
|
|
7176
|
-
// ../../node_modules/.
|
|
7156
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/public-api.js
|
|
7177
7157
|
var require_public_api = __commonJS((exports) => {
|
|
7178
7158
|
var composer = require_composer();
|
|
7179
7159
|
var Document = require_Document();
|
|
@@ -7267,7 +7247,7 @@ var require_public_api = __commonJS((exports) => {
|
|
|
7267
7247
|
exports.stringify = stringify;
|
|
7268
7248
|
});
|
|
7269
7249
|
|
|
7270
|
-
// ../../node_modules/.
|
|
7250
|
+
// ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/index.js
|
|
7271
7251
|
var require_dist = __commonJS((exports) => {
|
|
7272
7252
|
var composer = require_composer();
|
|
7273
7253
|
var Document = require_Document();
|
|
@@ -7320,7 +7300,7 @@ var require_dist = __commonJS((exports) => {
|
|
|
7320
7300
|
var require_package = __commonJS((exports, module) => {
|
|
7321
7301
|
module.exports = {
|
|
7322
7302
|
name: "@ai-setting/roy-agent-cli",
|
|
7323
|
-
version: "1.5.
|
|
7303
|
+
version: "1.5.75",
|
|
7324
7304
|
type: "module",
|
|
7325
7305
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
7326
7306
|
main: "./dist/index.js",
|
|
@@ -7347,7 +7327,7 @@ var require_package = __commonJS((exports, module) => {
|
|
|
7347
7327
|
},
|
|
7348
7328
|
dependencies: {
|
|
7349
7329
|
"@ai-setting/roy-agent-coder-harness": "^1.5.48",
|
|
7350
|
-
"@ai-setting/roy-agent-core": "^1.5.
|
|
7330
|
+
"@ai-setting/roy-agent-core": "^1.5.74",
|
|
7351
7331
|
"@ai-setting/roy-agent-ontology-harness": "^1.5.47",
|
|
7352
7332
|
chalk: "^5.6.2",
|
|
7353
7333
|
commander: "^14.0.3",
|
|
@@ -7817,6 +7797,7 @@ class EnvironmentService {
|
|
|
7817
7797
|
env.registerComponent(agentComponent);
|
|
7818
7798
|
env.registerComponent(logTraceComponent);
|
|
7819
7799
|
env.registerComponent(promptComponent);
|
|
7800
|
+
this.registerCommandsPromptHook(promptComponent, commandsComponent);
|
|
7820
7801
|
await agentComponent.syncRegistryAgentsFromConfig();
|
|
7821
7802
|
env.registerComponent(taskComponent);
|
|
7822
7803
|
env.registerComponent(skillComponent);
|
|
@@ -7834,7 +7815,6 @@ class EnvironmentService {
|
|
|
7834
7815
|
}
|
|
7835
7816
|
});
|
|
7836
7817
|
env.registerComponent(pluginComponent);
|
|
7837
|
-
this.registerCommandsPromptHook(promptComponent, commandsComponent);
|
|
7838
7818
|
await env.init();
|
|
7839
7819
|
await env.start();
|
|
7840
7820
|
agentComponent.refreshDependencies();
|
|
@@ -7850,7 +7830,7 @@ class EnvironmentService {
|
|
|
7850
7830
|
name: "commands-prompt",
|
|
7851
7831
|
execute: async (ctx) => {
|
|
7852
7832
|
const hookCtx = ctx.data;
|
|
7853
|
-
if (hookCtx?.name
|
|
7833
|
+
if (!hookCtx?.name || hookCtx.name === "anonymous")
|
|
7854
7834
|
return;
|
|
7855
7835
|
try {
|
|
7856
7836
|
const metaList = await commandsComponent.getCommandsMeta();
|
|
@@ -7928,17 +7908,58 @@ class EnvironmentService {
|
|
|
7928
7908
|
}
|
|
7929
7909
|
renderCommandsSection(metaList) {
|
|
7930
7910
|
const sortedMeta = [...metaList].sort((a, b) => a.name.localeCompare(b.name));
|
|
7931
|
-
const
|
|
7911
|
+
const tableRows = sortedMeta.map((m) => `| \`${m.name}\` | ${this.escapeMd(m.description)} |`).join(`
|
|
7912
|
+
`);
|
|
7913
|
+
const detailSections = sortedMeta.map((m) => {
|
|
7914
|
+
const helpContent = this.readCommandHelp(m.filePath);
|
|
7915
|
+
if (!helpContent)
|
|
7916
|
+
return "";
|
|
7917
|
+
return `### \`${m.name}\`
|
|
7918
|
+
|
|
7919
|
+
${helpContent}`;
|
|
7920
|
+
}).filter(Boolean).join(`
|
|
7921
|
+
|
|
7932
7922
|
`);
|
|
7933
7923
|
return `## Your Commands Arsenal
|
|
7934
7924
|
|
|
7935
|
-
You have access to these custom commands
|
|
7925
|
+
You have access to these custom commands. Use them directly via bash when needed.
|
|
7936
7926
|
|
|
7937
7927
|
| Command | Description |
|
|
7938
7928
|
|---------|-------------|
|
|
7939
|
-
${
|
|
7929
|
+
${tableRows}
|
|
7940
7930
|
|
|
7941
|
-
|
|
7931
|
+
${detailSections ? `${detailSections}
|
|
7932
|
+
|
|
7933
|
+
` : ""}---
|
|
7934
|
+
> \uD83D\uDCA1 **Tip**: Run \`<command> --help\` or \`<command> <subcommand> --help\` to explore full capabilities of any command.`;
|
|
7935
|
+
}
|
|
7936
|
+
readCommandHelp(filePath) {
|
|
7937
|
+
try {
|
|
7938
|
+
const { readFileSync, existsSync } = __require("node:fs");
|
|
7939
|
+
if (!existsSync(filePath))
|
|
7940
|
+
return "";
|
|
7941
|
+
const content = readFileSync(filePath, "utf-8");
|
|
7942
|
+
const lines = content.split(`
|
|
7943
|
+
`);
|
|
7944
|
+
let startIdx = 0;
|
|
7945
|
+
if (lines[0]?.trim() === "---") {
|
|
7946
|
+
const endIdx = lines.findIndex((l, i) => i > 0 && l.trim() === "---");
|
|
7947
|
+
if (endIdx > 0) {
|
|
7948
|
+
startIdx = endIdx + 1;
|
|
7949
|
+
}
|
|
7950
|
+
}
|
|
7951
|
+
const bodyLines = lines.slice(startIdx).filter((l) => l.trim());
|
|
7952
|
+
if (bodyLines.length === 0)
|
|
7953
|
+
return "";
|
|
7954
|
+
const summary = bodyLines.slice(0, 30).join(`
|
|
7955
|
+
`);
|
|
7956
|
+
return summary;
|
|
7957
|
+
} catch {
|
|
7958
|
+
return "";
|
|
7959
|
+
}
|
|
7960
|
+
}
|
|
7961
|
+
escapeMd(s) {
|
|
7962
|
+
return s.replace(/\|/g, "\\|").replace(/\n/g, " ");
|
|
7942
7963
|
}
|
|
7943
7964
|
}
|
|
7944
7965
|
|
|
@@ -19277,6 +19298,227 @@ var LspCommand = {
|
|
|
19277
19298
|
}
|
|
19278
19299
|
};
|
|
19279
19300
|
|
|
19301
|
+
// src/commands/install/index.ts
|
|
19302
|
+
import { spawnSync } from "node:child_process";
|
|
19303
|
+
import { existsSync as existsSync3, readFileSync as readFileSync2, writeFileSync, mkdirSync } from "node:fs";
|
|
19304
|
+
import { join as join4, resolve } from "node:path";
|
|
19305
|
+
import { homedir as homedir3 } from "node:os";
|
|
19306
|
+
var CONFIG_DIR = join4(homedir3(), ".roy-agent");
|
|
19307
|
+
var CONFIG_PATH = join4(CONFIG_DIR, "plugins.json");
|
|
19308
|
+
function loadPlugins() {
|
|
19309
|
+
try {
|
|
19310
|
+
if (existsSync3(CONFIG_PATH)) {
|
|
19311
|
+
const raw = readFileSync2(CONFIG_PATH, "utf-8");
|
|
19312
|
+
const config = JSON.parse(raw);
|
|
19313
|
+
return config.plugins ?? [];
|
|
19314
|
+
}
|
|
19315
|
+
} catch {}
|
|
19316
|
+
return [];
|
|
19317
|
+
}
|
|
19318
|
+
function savePlugins(plugins) {
|
|
19319
|
+
if (!existsSync3(CONFIG_DIR)) {
|
|
19320
|
+
mkdirSync(CONFIG_DIR, { recursive: true });
|
|
19321
|
+
}
|
|
19322
|
+
const config = { plugins };
|
|
19323
|
+
writeFileSync(CONFIG_PATH, JSON.stringify(config, null, 2), "utf-8");
|
|
19324
|
+
}
|
|
19325
|
+
function readPackageInfo(packageName) {
|
|
19326
|
+
if (packageName.startsWith("/") || packageName.startsWith(".")) {
|
|
19327
|
+
const localPkgPath = join4(packageName, "package.json");
|
|
19328
|
+
if (existsSync3(localPkgPath)) {
|
|
19329
|
+
try {
|
|
19330
|
+
const pkg = JSON.parse(readFileSync2(localPkgPath, "utf-8"));
|
|
19331
|
+
return {
|
|
19332
|
+
version: pkg.version ?? "0.0.0",
|
|
19333
|
+
name: pkg.name ?? packageName,
|
|
19334
|
+
description: pkg.description
|
|
19335
|
+
};
|
|
19336
|
+
} catch (err) {
|
|
19337
|
+
console.warn(`⚠️ Failed to parse local package.json at '${localPkgPath}': ${err}`);
|
|
19338
|
+
}
|
|
19339
|
+
}
|
|
19340
|
+
}
|
|
19341
|
+
const searchPaths = [
|
|
19342
|
+
join4(process.cwd(), "node_modules", packageName, "package.json"),
|
|
19343
|
+
resolve(process.cwd(), "..", "node_modules", packageName, "package.json")
|
|
19344
|
+
];
|
|
19345
|
+
for (const pkgPath of searchPaths) {
|
|
19346
|
+
try {
|
|
19347
|
+
if (existsSync3(pkgPath)) {
|
|
19348
|
+
const pkg = JSON.parse(readFileSync2(pkgPath, "utf-8"));
|
|
19349
|
+
return {
|
|
19350
|
+
version: pkg.version ?? "0.0.0",
|
|
19351
|
+
name: pkg.name ?? packageName,
|
|
19352
|
+
description: pkg.description
|
|
19353
|
+
};
|
|
19354
|
+
}
|
|
19355
|
+
} catch (err) {
|
|
19356
|
+
console.warn(`⚠️ Failed to parse package.json at '${pkgPath}': ${err}`);
|
|
19357
|
+
continue;
|
|
19358
|
+
}
|
|
19359
|
+
}
|
|
19360
|
+
console.warn(`⚠️ Could not find package.json for '${packageName}' (searched ${searchPaths.length} paths)`);
|
|
19361
|
+
return null;
|
|
19362
|
+
}
|
|
19363
|
+
function getPackageManagerCommand() {
|
|
19364
|
+
if (existsSync3(join4(process.cwd(), "pnpm-lock.yaml"))) {
|
|
19365
|
+
if (existsSync3(join4(process.cwd(), "pnpm-workspace.yaml"))) {
|
|
19366
|
+
return "pnpm -w";
|
|
19367
|
+
}
|
|
19368
|
+
return "pnpm";
|
|
19369
|
+
}
|
|
19370
|
+
if (existsSync3(join4(process.cwd(), "yarn.lock")))
|
|
19371
|
+
return "yarn";
|
|
19372
|
+
if (existsSync3(join4(process.cwd(), "bun.lock")) || existsSync3(join4(process.cwd(), "bun.lockb")))
|
|
19373
|
+
return "bun";
|
|
19374
|
+
return "npm";
|
|
19375
|
+
}
|
|
19376
|
+
var InstallPackageCommand = {
|
|
19377
|
+
command: "$0 <package>",
|
|
19378
|
+
describe: "安装插件包",
|
|
19379
|
+
builder: (yargs) => yargs.positional("package", {
|
|
19380
|
+
describe: "npm 包名(例如 @roy-agent/plugin-example)或本地路径",
|
|
19381
|
+
type: "string"
|
|
19382
|
+
}).help(),
|
|
19383
|
+
handler: (argv) => {
|
|
19384
|
+
const packageName = argv.package;
|
|
19385
|
+
const pm = getPackageManagerCommand();
|
|
19386
|
+
const pmParts = pm.split(" ").filter(Boolean);
|
|
19387
|
+
console.log(`
|
|
19388
|
+
\uD83D\uDCE6 Installing plugin: ${packageName}
|
|
19389
|
+
`);
|
|
19390
|
+
try {
|
|
19391
|
+
const result = spawnSync(pmParts[0], [...pmParts.slice(1), "install", packageName], {
|
|
19392
|
+
cwd: process.cwd(),
|
|
19393
|
+
stdio: "inherit",
|
|
19394
|
+
shell: false
|
|
19395
|
+
});
|
|
19396
|
+
if (result.status !== 0) {
|
|
19397
|
+
console.error(`
|
|
19398
|
+
❌ Failed to install package '${packageName}': exit code ${result.status}
|
|
19399
|
+
`);
|
|
19400
|
+
process.exit(result.status ?? 1);
|
|
19401
|
+
}
|
|
19402
|
+
} catch (err) {
|
|
19403
|
+
console.error(`
|
|
19404
|
+
❌ Failed to install package '${packageName}': ${err}
|
|
19405
|
+
`);
|
|
19406
|
+
process.exit(1);
|
|
19407
|
+
}
|
|
19408
|
+
const info = readPackageInfo(packageName);
|
|
19409
|
+
if (!info) {
|
|
19410
|
+
console.error(`
|
|
19411
|
+
❌ Package '${packageName}' was installed but could not read package info.
|
|
19412
|
+
`);
|
|
19413
|
+
process.exit(1);
|
|
19414
|
+
}
|
|
19415
|
+
const plugins = loadPlugins();
|
|
19416
|
+
const resolvedPackageName = info.name;
|
|
19417
|
+
const existing = plugins.findIndex((p) => p.packageName === resolvedPackageName);
|
|
19418
|
+
const plugin = {
|
|
19419
|
+
packageName: resolvedPackageName,
|
|
19420
|
+
version: info.version,
|
|
19421
|
+
name: info.name,
|
|
19422
|
+
description: info.description
|
|
19423
|
+
};
|
|
19424
|
+
if (existing >= 0) {
|
|
19425
|
+
plugins[existing] = plugin;
|
|
19426
|
+
console.log(`
|
|
19427
|
+
✅ Updated plugin: ${plugin.packageName}@${plugin.version}
|
|
19428
|
+
`);
|
|
19429
|
+
} else {
|
|
19430
|
+
plugins.push(plugin);
|
|
19431
|
+
console.log(`
|
|
19432
|
+
✅ Installed plugin: ${plugin.packageName}@${plugin.version}
|
|
19433
|
+
`);
|
|
19434
|
+
}
|
|
19435
|
+
savePlugins(plugins);
|
|
19436
|
+
}
|
|
19437
|
+
};
|
|
19438
|
+
var InstallListCommand = {
|
|
19439
|
+
command: "list",
|
|
19440
|
+
describe: "列出已安装的插件",
|
|
19441
|
+
builder: (yargs) => yargs.help(),
|
|
19442
|
+
handler: () => {
|
|
19443
|
+
const plugins = loadPlugins();
|
|
19444
|
+
if (plugins.length === 0) {
|
|
19445
|
+
console.log(`
|
|
19446
|
+
\uD83D\uDCE6 No plugins installed.
|
|
19447
|
+
`);
|
|
19448
|
+
console.log(` Run 'roy-agent install <package>' to install a plugin.
|
|
19449
|
+
`);
|
|
19450
|
+
return;
|
|
19451
|
+
}
|
|
19452
|
+
console.log(`
|
|
19453
|
+
\uD83D\uDCE6 Installed Plugins (${plugins.length})
|
|
19454
|
+
`);
|
|
19455
|
+
for (const plugin of plugins) {
|
|
19456
|
+
console.log(` ✓ ${plugin.packageName}@${plugin.version}`);
|
|
19457
|
+
if (plugin.description) {
|
|
19458
|
+
console.log(` ${plugin.description}`);
|
|
19459
|
+
}
|
|
19460
|
+
}
|
|
19461
|
+
console.log();
|
|
19462
|
+
}
|
|
19463
|
+
};
|
|
19464
|
+
var InstallRemoveCommand = {
|
|
19465
|
+
command: "remove <name>",
|
|
19466
|
+
describe: "卸载插件",
|
|
19467
|
+
builder: (yargs) => yargs.positional("name", {
|
|
19468
|
+
describe: "插件包名",
|
|
19469
|
+
type: "string",
|
|
19470
|
+
demandOption: true
|
|
19471
|
+
}).help(),
|
|
19472
|
+
handler: (argv) => {
|
|
19473
|
+
const name = argv.name;
|
|
19474
|
+
const plugins = loadPlugins();
|
|
19475
|
+
const index = plugins.findIndex((p) => p.packageName === name || p.name === name);
|
|
19476
|
+
if (index === -1) {
|
|
19477
|
+
console.log(`
|
|
19478
|
+
⚠️ Plugin '${name}' not found in installed plugins.
|
|
19479
|
+
`);
|
|
19480
|
+
process.exit(1);
|
|
19481
|
+
}
|
|
19482
|
+
const plugin = plugins[index];
|
|
19483
|
+
const pm2 = getPackageManagerCommand();
|
|
19484
|
+
const pmParts2 = pm2.split(" ").filter(Boolean);
|
|
19485
|
+
console.log(`
|
|
19486
|
+
\uD83D\uDDD1️ Removing plugin: ${plugin.packageName}@${plugin.version}
|
|
19487
|
+
`);
|
|
19488
|
+
try {
|
|
19489
|
+
const result = spawnSync(pmParts2[0], [...pmParts2.slice(1), "uninstall", plugin.packageName], {
|
|
19490
|
+
cwd: process.cwd(),
|
|
19491
|
+
stdio: "inherit",
|
|
19492
|
+
shell: false
|
|
19493
|
+
});
|
|
19494
|
+
if (result.status !== 0) {
|
|
19495
|
+
console.error(`
|
|
19496
|
+
❌ Failed to uninstall package '${plugin.packageName}': exit code ${result.status}
|
|
19497
|
+
`);
|
|
19498
|
+
process.exit(result.status ?? 1);
|
|
19499
|
+
}
|
|
19500
|
+
} catch (err) {
|
|
19501
|
+
console.error(`
|
|
19502
|
+
❌ Failed to uninstall package '${plugin.packageName}': ${err}
|
|
19503
|
+
`);
|
|
19504
|
+
process.exit(1);
|
|
19505
|
+
}
|
|
19506
|
+
plugins.splice(index, 1);
|
|
19507
|
+
savePlugins(plugins);
|
|
19508
|
+
console.log(`
|
|
19509
|
+
✅ Removed plugin: ${plugin.packageName}
|
|
19510
|
+
`);
|
|
19511
|
+
}
|
|
19512
|
+
};
|
|
19513
|
+
var InstallCommand = {
|
|
19514
|
+
command: "install",
|
|
19515
|
+
describe: "插件安装管理 - 安装、列出、卸载插件",
|
|
19516
|
+
builder: (yargs) => yargs.command(InstallPackageCommand).command(InstallListCommand).command(InstallRemoveCommand).demandCommand().help(),
|
|
19517
|
+
handler: () => {
|
|
19518
|
+
console.log("Use 'roy-agent install --help' for usage information");
|
|
19519
|
+
}
|
|
19520
|
+
};
|
|
19521
|
+
|
|
19280
19522
|
// src/cli.ts
|
|
19281
19523
|
function quietModeMiddleware(argv) {
|
|
19282
19524
|
const quietService = CliQuietModeService.getInstance();
|
|
@@ -19326,7 +19568,7 @@ async function runCli() {
|
|
|
19326
19568
|
array: true,
|
|
19327
19569
|
description: "Enable plugin (e.g., --plugin tslsp, --plugin lsp, --plugin task-tag)",
|
|
19328
19570
|
global: true
|
|
19329
|
-
}).middleware(quietModeMiddleware, true).command(ActCommand).command(InteractiveCommand).command(SessionsCommand).command(TasksCommand).command(SkillsCommand).command(AgentsCommand).command(PromptCommand).command(CommandsCommand).command(ConfigCommand).command(McpCommand).command(ToolsCommand2).command(MemoryCommand).command(EventSourceCommand).command(DebugCommand).command(WorkflowCommand).command(LspCommand).demandCommand().help().alias("help", "h").epilog(PLUGIN_HELP).parse();
|
|
19571
|
+
}).middleware(quietModeMiddleware, true).command(ActCommand).command(InteractiveCommand).command(SessionsCommand).command(TasksCommand).command(SkillsCommand).command(AgentsCommand).command(PromptCommand).command(CommandsCommand).command(ConfigCommand).command(McpCommand).command(ToolsCommand2).command(MemoryCommand).command(EventSourceCommand).command(DebugCommand).command(WorkflowCommand).command(LspCommand).command(InstallCommand).demandCommand().help().alias("help", "h").epilog(PLUGIN_HELP).parse();
|
|
19330
19572
|
}
|
|
19331
19573
|
|
|
19332
19574
|
// src/bin/roy-agent.ts
|