@ai-setting/roy-agent-cli 1.5.80 → 1.5.82
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 +244 -168
- package/dist/index.js +244 -168
- 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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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/.bun/yaml@2.9.0/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,8 +5179,10 @@ ${cb}` : comment;
|
|
|
5179
5179
|
}
|
|
5180
5180
|
}
|
|
5181
5181
|
if (afterDoc) {
|
|
5182
|
-
|
|
5183
|
-
|
|
5182
|
+
for (let i = 0;i < this.errors.length; ++i)
|
|
5183
|
+
doc.errors.push(this.errors[i]);
|
|
5184
|
+
for (let i = 0;i < this.warnings.length; ++i)
|
|
5185
|
+
doc.warnings.push(this.warnings[i]);
|
|
5184
5186
|
} else {
|
|
5185
5187
|
doc.errors = this.errors;
|
|
5186
5188
|
doc.warnings = this.warnings;
|
|
@@ -5282,7 +5284,7 @@ ${end.comment}` : end.comment;
|
|
|
5282
5284
|
exports.Composer = Composer;
|
|
5283
5285
|
});
|
|
5284
5286
|
|
|
5285
|
-
// ../../node_modules/.
|
|
5287
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5286
5288
|
var require_cst_scalar = __commonJS((exports) => {
|
|
5287
5289
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5288
5290
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5472,7 +5474,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
5472
5474
|
exports.setScalarValue = setScalarValue;
|
|
5473
5475
|
});
|
|
5474
5476
|
|
|
5475
|
-
// ../../node_modules/.
|
|
5477
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5476
5478
|
var require_cst_stringify = __commonJS((exports) => {
|
|
5477
5479
|
var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
|
|
5478
5480
|
function stringifyToken(token) {
|
|
@@ -5530,7 +5532,7 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
|
5530
5532
|
exports.stringify = stringify;
|
|
5531
5533
|
});
|
|
5532
5534
|
|
|
5533
|
-
// ../../node_modules/.
|
|
5535
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
|
|
5534
5536
|
var require_cst_visit = __commonJS((exports) => {
|
|
5535
5537
|
var BREAK = Symbol("break visit");
|
|
5536
5538
|
var SKIP = Symbol("skip children");
|
|
@@ -5589,7 +5591,7 @@ var require_cst_visit = __commonJS((exports) => {
|
|
|
5589
5591
|
exports.visit = visit;
|
|
5590
5592
|
});
|
|
5591
5593
|
|
|
5592
|
-
// ../../node_modules/.
|
|
5594
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
|
|
5593
5595
|
var require_cst = __commonJS((exports) => {
|
|
5594
5596
|
var cstScalar = require_cst_scalar();
|
|
5595
5597
|
var cstStringify = require_cst_stringify();
|
|
@@ -5690,7 +5692,7 @@ var require_cst = __commonJS((exports) => {
|
|
|
5690
5692
|
exports.tokenType = tokenType;
|
|
5691
5693
|
});
|
|
5692
5694
|
|
|
5693
|
-
// ../../node_modules/.
|
|
5695
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
|
|
5694
5696
|
var require_lexer = __commonJS((exports) => {
|
|
5695
5697
|
var cst = require_cst();
|
|
5696
5698
|
function isEmpty(ch) {
|
|
@@ -5892,7 +5894,7 @@ var require_lexer = __commonJS((exports) => {
|
|
|
5892
5894
|
const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
|
|
5893
5895
|
this.indentNext = this.indentValue + 1;
|
|
5894
5896
|
this.indentValue += n;
|
|
5895
|
-
return
|
|
5897
|
+
return "block-start";
|
|
5896
5898
|
}
|
|
5897
5899
|
return "doc";
|
|
5898
5900
|
}
|
|
@@ -6199,26 +6201,37 @@ var require_lexer = __commonJS((exports) => {
|
|
|
6199
6201
|
return 0;
|
|
6200
6202
|
}
|
|
6201
6203
|
*pushIndicators() {
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6204
|
+
let n = 0;
|
|
6205
|
+
loop:
|
|
6206
|
+
while (true) {
|
|
6207
|
+
switch (this.charAt(0)) {
|
|
6208
|
+
case "!":
|
|
6209
|
+
n += yield* this.pushTag();
|
|
6210
|
+
n += yield* this.pushSpaces(true);
|
|
6211
|
+
continue loop;
|
|
6212
|
+
case "&":
|
|
6213
|
+
n += yield* this.pushUntil(isNotAnchorChar);
|
|
6214
|
+
n += yield* this.pushSpaces(true);
|
|
6215
|
+
continue loop;
|
|
6216
|
+
case "-":
|
|
6217
|
+
case "?":
|
|
6218
|
+
case ":": {
|
|
6219
|
+
const inFlow = this.flowLevel > 0;
|
|
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
|
+
}
|
|
6218
6231
|
}
|
|
6232
|
+
break loop;
|
|
6219
6233
|
}
|
|
6220
|
-
|
|
6221
|
-
return 0;
|
|
6234
|
+
return n;
|
|
6222
6235
|
}
|
|
6223
6236
|
*pushTag() {
|
|
6224
6237
|
if (this.charAt(1) === "<") {
|
|
@@ -6276,7 +6289,7 @@ var require_lexer = __commonJS((exports) => {
|
|
|
6276
6289
|
exports.Lexer = Lexer;
|
|
6277
6290
|
});
|
|
6278
6291
|
|
|
6279
|
-
// ../../node_modules/.
|
|
6292
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
|
|
6280
6293
|
var require_line_counter = __commonJS((exports) => {
|
|
6281
6294
|
class LineCounter {
|
|
6282
6295
|
constructor() {
|
|
@@ -6304,7 +6317,7 @@ var require_line_counter = __commonJS((exports) => {
|
|
|
6304
6317
|
exports.LineCounter = LineCounter;
|
|
6305
6318
|
});
|
|
6306
6319
|
|
|
6307
|
-
// ../../node_modules/.
|
|
6320
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
|
|
6308
6321
|
var require_parser = __commonJS((exports) => {
|
|
6309
6322
|
var node_process = __require("process");
|
|
6310
6323
|
var cst = require_cst();
|
|
@@ -6372,6 +6385,13 @@ var require_parser = __commonJS((exports) => {
|
|
|
6372
6385
|
while (prev[++i]?.type === "space") {}
|
|
6373
6386
|
return prev.splice(i, prev.length);
|
|
6374
6387
|
}
|
|
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
|
+
}
|
|
6375
6395
|
function fixFlowSeqItems(fc) {
|
|
6376
6396
|
if (fc.start.type === "flow-seq-start") {
|
|
6377
6397
|
for (const it of fc.items) {
|
|
@@ -6381,11 +6401,11 @@ var require_parser = __commonJS((exports) => {
|
|
|
6381
6401
|
delete it.key;
|
|
6382
6402
|
if (isFlowToken(it.value)) {
|
|
6383
6403
|
if (it.value.end)
|
|
6384
|
-
|
|
6404
|
+
arrayPushArray(it.value.end, it.sep);
|
|
6385
6405
|
else
|
|
6386
6406
|
it.value.end = it.sep;
|
|
6387
6407
|
} else
|
|
6388
|
-
|
|
6408
|
+
arrayPushArray(it.start, it.sep);
|
|
6389
6409
|
delete it.sep;
|
|
6390
6410
|
}
|
|
6391
6411
|
}
|
|
@@ -6725,7 +6745,7 @@ var require_parser = __commonJS((exports) => {
|
|
|
6725
6745
|
const prev = map.items[map.items.length - 2];
|
|
6726
6746
|
const end = prev?.value?.end;
|
|
6727
6747
|
if (Array.isArray(end)) {
|
|
6728
|
-
|
|
6748
|
+
arrayPushArray(end, it.start);
|
|
6729
6749
|
end.push(this.sourceToken);
|
|
6730
6750
|
map.items.pop();
|
|
6731
6751
|
return;
|
|
@@ -6913,7 +6933,7 @@ var require_parser = __commonJS((exports) => {
|
|
|
6913
6933
|
const prev = seq.items[seq.items.length - 2];
|
|
6914
6934
|
const end = prev?.value?.end;
|
|
6915
6935
|
if (Array.isArray(end)) {
|
|
6916
|
-
|
|
6936
|
+
arrayPushArray(end, it.start);
|
|
6917
6937
|
end.push(this.sourceToken);
|
|
6918
6938
|
seq.items.pop();
|
|
6919
6939
|
return;
|
|
@@ -7153,7 +7173,7 @@ var require_parser = __commonJS((exports) => {
|
|
|
7153
7173
|
exports.Parser = Parser;
|
|
7154
7174
|
});
|
|
7155
7175
|
|
|
7156
|
-
// ../../node_modules/.
|
|
7176
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/public-api.js
|
|
7157
7177
|
var require_public_api = __commonJS((exports) => {
|
|
7158
7178
|
var composer = require_composer();
|
|
7159
7179
|
var Document = require_Document();
|
|
@@ -7247,7 +7267,7 @@ var require_public_api = __commonJS((exports) => {
|
|
|
7247
7267
|
exports.stringify = stringify;
|
|
7248
7268
|
});
|
|
7249
7269
|
|
|
7250
|
-
// ../../node_modules/.
|
|
7270
|
+
// ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js
|
|
7251
7271
|
var require_dist = __commonJS((exports) => {
|
|
7252
7272
|
var composer = require_composer();
|
|
7253
7273
|
var Document = require_Document();
|
|
@@ -7300,7 +7320,7 @@ var require_dist = __commonJS((exports) => {
|
|
|
7300
7320
|
var require_package = __commonJS((exports, module) => {
|
|
7301
7321
|
module.exports = {
|
|
7302
7322
|
name: "@ai-setting/roy-agent-cli",
|
|
7303
|
-
version: "1.5.
|
|
7323
|
+
version: "1.5.82",
|
|
7304
7324
|
type: "module",
|
|
7305
7325
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
7306
7326
|
main: "./dist/index.js",
|
|
@@ -7327,7 +7347,7 @@ var require_package = __commonJS((exports, module) => {
|
|
|
7327
7347
|
},
|
|
7328
7348
|
dependencies: {
|
|
7329
7349
|
"@ai-setting/roy-agent-coder-harness": "^1.5.48",
|
|
7330
|
-
"@ai-setting/roy-agent-core": "^1.5.
|
|
7350
|
+
"@ai-setting/roy-agent-core": "^1.5.81",
|
|
7331
7351
|
"@ai-setting/roy-agent-ontology-harness": "^1.5.47",
|
|
7332
7352
|
chalk: "^5.6.2",
|
|
7333
7353
|
commander: "^14.0.3",
|
|
@@ -8068,9 +8088,17 @@ class ContextHandlerService {
|
|
|
8068
8088
|
}
|
|
8069
8089
|
throw error;
|
|
8070
8090
|
}
|
|
8071
|
-
if (compactResult.newQuery) {
|
|
8072
|
-
query
|
|
8091
|
+
if (!compactResult.newQuery || compactResult.newQuery === query) {
|
|
8092
|
+
logger3.error("Compact succeeded but produced no new query, terminating to avoid silent retry loop", {
|
|
8093
|
+
compactCount,
|
|
8094
|
+
query
|
|
8095
|
+
});
|
|
8096
|
+
if (span) {
|
|
8097
|
+
span?.end(undefined, error);
|
|
8098
|
+
}
|
|
8099
|
+
throw error;
|
|
8073
8100
|
}
|
|
8101
|
+
query = compactResult.newQuery;
|
|
8074
8102
|
continue;
|
|
8075
8103
|
}
|
|
8076
8104
|
if (span) {
|
|
@@ -16968,6 +16996,7 @@ function renderNodesList(nodes) {
|
|
|
16968
16996
|
|
|
16969
16997
|
// src/commands/workflow/commands/list.ts
|
|
16970
16998
|
import chalk61 from "chalk";
|
|
16999
|
+
import { createWorkflowListTool } from "@ai-setting/roy-agent-core/env/workflow/tools";
|
|
16971
17000
|
var WorkflowListCommand = {
|
|
16972
17001
|
command: "list",
|
|
16973
17002
|
describe: "列出所有已注册的 Workflow",
|
|
@@ -17027,29 +17056,44 @@ var WorkflowListCommand = {
|
|
|
17027
17056
|
output.error('WorkflowService not initialized. Please run "roy-agent workflow init" first.');
|
|
17028
17057
|
process.exit(1);
|
|
17029
17058
|
}
|
|
17030
|
-
const
|
|
17059
|
+
const tool = createWorkflowListTool(service);
|
|
17060
|
+
const result = await tool.execute({
|
|
17031
17061
|
tag: args.tag,
|
|
17032
|
-
taskId: args.taskId,
|
|
17033
17062
|
search: args.search,
|
|
17034
17063
|
limit: args.limit,
|
|
17035
17064
|
offset: args.offset
|
|
17036
|
-
});
|
|
17065
|
+
}, {});
|
|
17066
|
+
if (!result.success) {
|
|
17067
|
+
output.error(result.error || "Failed to list workflows");
|
|
17068
|
+
process.exit(1);
|
|
17069
|
+
}
|
|
17070
|
+
const data = JSON.parse(result.output);
|
|
17071
|
+
const workflows = data.workflows || [];
|
|
17037
17072
|
if (args.json) {
|
|
17038
17073
|
output.json({
|
|
17039
17074
|
workflows: workflows.map((w) => ({
|
|
17040
|
-
id: w.id,
|
|
17041
17075
|
name: w.name,
|
|
17042
17076
|
version: w.version,
|
|
17043
17077
|
description: w.description,
|
|
17044
17078
|
tags: w.tags,
|
|
17045
|
-
|
|
17046
|
-
|
|
17047
|
-
updatedAt: w.updatedAt.toISOString()
|
|
17079
|
+
createdAt: w.created_at,
|
|
17080
|
+
updatedAt: w.created_at
|
|
17048
17081
|
})),
|
|
17049
|
-
total: workflows.length
|
|
17082
|
+
total: data.total || workflows.length
|
|
17050
17083
|
});
|
|
17051
17084
|
} else {
|
|
17052
|
-
|
|
17085
|
+
const renderWorkflows = workflows.map((w) => ({
|
|
17086
|
+
id: w.name,
|
|
17087
|
+
name: w.name,
|
|
17088
|
+
version: w.version,
|
|
17089
|
+
description: w.description,
|
|
17090
|
+
tags: w.tags || [],
|
|
17091
|
+
createdAt: w.created_at ? new Date(w.created_at) : new Date,
|
|
17092
|
+
updatedAt: w.created_at ? new Date(w.created_at) : new Date,
|
|
17093
|
+
definition: { nodes: [], config: {}, inputs: {} },
|
|
17094
|
+
metadata: {}
|
|
17095
|
+
}));
|
|
17096
|
+
output.log(renderWorkflowList(renderWorkflows));
|
|
17053
17097
|
output.log(chalk61.green(`
|
|
17054
17098
|
✅ 共 ${workflows.length} 个 Workflow`));
|
|
17055
17099
|
}
|
|
@@ -17736,7 +17780,12 @@ var WorkflowAddCommand = {
|
|
|
17736
17780
|
}).option("config", {
|
|
17737
17781
|
describe: "配置文件路径",
|
|
17738
17782
|
type: "string"
|
|
17739
|
-
})
|
|
17783
|
+
}).epilogue(`提示:
|
|
17784
|
+
- 模版变量建议不加空格: {{nodeId.field}} 即可,{{ nodeId.field }}(带空格)也能通过自动兼容
|
|
17785
|
+
- 输出节点请使用 echo tool 的 message 参数:
|
|
17786
|
+
tool: echo
|
|
17787
|
+
message: "{{nodeId.field}}"
|
|
17788
|
+
不要用 bash tool + command 输出多行内容(shell 会执行失败)。`),
|
|
17740
17789
|
async handler(args) {
|
|
17741
17790
|
const a = args;
|
|
17742
17791
|
const output = new OutputService;
|
|
@@ -17881,6 +17930,7 @@ Agent output:
|
|
|
17881
17930
|
|
|
17882
17931
|
// src/commands/workflow/commands/get.ts
|
|
17883
17932
|
import chalk63 from "chalk";
|
|
17933
|
+
import { createWorkflowGetTool } from "@ai-setting/roy-agent-core/env/workflow/tools";
|
|
17884
17934
|
var WorkflowGetCommand = {
|
|
17885
17935
|
command: "get <identifier>",
|
|
17886
17936
|
describe: "获取 Workflow 或 Run 详情",
|
|
@@ -17930,46 +17980,59 @@ var WorkflowGetCommand = {
|
|
|
17930
17980
|
process.exit(1);
|
|
17931
17981
|
}
|
|
17932
17982
|
const service = workflowComponent.getService();
|
|
17983
|
+
const tool = createWorkflowGetTool(service);
|
|
17933
17984
|
const isRunId = args.runId || args.identifier.startsWith("run_");
|
|
17934
17985
|
if (isRunId) {
|
|
17935
|
-
const
|
|
17936
|
-
if (!
|
|
17937
|
-
output.error(`Run not found: ${args.identifier}`);
|
|
17986
|
+
const result = await tool.execute({ run_id: args.identifier }, {});
|
|
17987
|
+
if (!result.success) {
|
|
17988
|
+
output.error(result.error || `Run not found: ${args.identifier}`);
|
|
17938
17989
|
process.exit(1);
|
|
17939
17990
|
}
|
|
17940
|
-
const
|
|
17991
|
+
const data = JSON.parse(result.output);
|
|
17941
17992
|
if (args.json) {
|
|
17942
17993
|
output.json({
|
|
17943
17994
|
run: {
|
|
17944
|
-
id:
|
|
17945
|
-
workflowId:
|
|
17946
|
-
status:
|
|
17947
|
-
input:
|
|
17948
|
-
startedAt:
|
|
17995
|
+
id: data.run_id,
|
|
17996
|
+
workflowId: data.workflow_id,
|
|
17997
|
+
status: data.status,
|
|
17998
|
+
input: data.input,
|
|
17999
|
+
startedAt: data.created_at
|
|
17949
18000
|
}
|
|
17950
18001
|
});
|
|
17951
18002
|
} else {
|
|
17952
18003
|
const run = {
|
|
17953
|
-
id:
|
|
17954
|
-
workflowId:
|
|
17955
|
-
workflowName:
|
|
17956
|
-
status:
|
|
17957
|
-
input:
|
|
17958
|
-
startedAt:
|
|
18004
|
+
id: data.run_id,
|
|
18005
|
+
workflowId: data.workflow_id || "",
|
|
18006
|
+
workflowName: data.workflow_name,
|
|
18007
|
+
status: data.status,
|
|
18008
|
+
input: data.input,
|
|
18009
|
+
startedAt: data.created_at ? new Date(data.created_at) : undefined,
|
|
17959
18010
|
debugMode: false
|
|
17960
18011
|
};
|
|
17961
18012
|
output.log(renderRunDetail(run));
|
|
17962
18013
|
}
|
|
17963
18014
|
} else {
|
|
17964
|
-
const
|
|
17965
|
-
if (!
|
|
17966
|
-
output.error(`Workflow not found: ${args.identifier}`);
|
|
18015
|
+
const result = await tool.execute({ name: args.identifier }, {});
|
|
18016
|
+
if (!result.success) {
|
|
18017
|
+
output.error(result.error || `Workflow not found: ${args.identifier}`);
|
|
17967
18018
|
process.exit(1);
|
|
17968
18019
|
}
|
|
18020
|
+
const data = JSON.parse(result.output);
|
|
18021
|
+
const workflow = {
|
|
18022
|
+
id: data.name,
|
|
18023
|
+
name: data.name,
|
|
18024
|
+
version: data.version,
|
|
18025
|
+
description: data.description,
|
|
18026
|
+
tags: data.tags || [],
|
|
18027
|
+
createdAt: data.created_at ? new Date(data.created_at) : new Date,
|
|
18028
|
+
updatedAt: data.updated_at ? new Date(data.updated_at) : new Date,
|
|
18029
|
+
definition: data.definition || { inputs: {}, nodes: [], config: {} },
|
|
18030
|
+
metadata: {}
|
|
18031
|
+
};
|
|
17969
18032
|
let sessionRuns = [];
|
|
17970
18033
|
if (args.includeRuns) {
|
|
17971
18034
|
sessionRuns = await service.listSessions({ limit: 5 });
|
|
17972
|
-
sessionRuns = sessionRuns.filter((r) => r.metadata.
|
|
18035
|
+
sessionRuns = sessionRuns.filter((r) => r.metadata.workflowName === workflow.name);
|
|
17973
18036
|
}
|
|
17974
18037
|
const runs = sessionRuns.map((r) => {
|
|
17975
18038
|
const m = r.metadata;
|
|
@@ -17985,7 +18048,7 @@ var WorkflowGetCommand = {
|
|
|
17985
18048
|
if (args.json) {
|
|
17986
18049
|
output.json({
|
|
17987
18050
|
workflow: {
|
|
17988
|
-
id: workflow.
|
|
18051
|
+
id: workflow.name,
|
|
17989
18052
|
name: workflow.name,
|
|
17990
18053
|
version: workflow.version,
|
|
17991
18054
|
description: workflow.description,
|
|
@@ -18006,8 +18069,13 @@ var WorkflowGetCommand = {
|
|
|
18006
18069
|
if (args.includeNodes) {
|
|
18007
18070
|
output.log(chalk63.bold(`
|
|
18008
18071
|
\uD83D\uDCCB All Nodes:`));
|
|
18009
|
-
output.log(renderNodesList(
|
|
18072
|
+
output.log(renderNodesList(data.nodes || []));
|
|
18010
18073
|
}
|
|
18074
|
+
const yaml = await Promise.resolve().then(() => __toESM(require_dist(), 1));
|
|
18075
|
+
const defYaml = yaml.stringify(data.definition || {}, { indent: 2 });
|
|
18076
|
+
output.log(chalk63.bold(`
|
|
18077
|
+
\uD83D\uDCC4 Definition (YAML):`));
|
|
18078
|
+
output.log(chalk63.gray(defYaml));
|
|
18011
18079
|
}
|
|
18012
18080
|
}
|
|
18013
18081
|
} catch (error) {
|
|
@@ -18168,6 +18236,7 @@ var import_yaml = __toESM(require_dist(), 1);
|
|
|
18168
18236
|
import chalk66 from "chalk";
|
|
18169
18237
|
import fs5 from "fs";
|
|
18170
18238
|
import path8 from "path";
|
|
18239
|
+
import { createRunWorkflowTool } from "@ai-setting/roy-agent-core/env/workflow/tools";
|
|
18171
18240
|
import { getTracerProvider as getTracerProvider4, propagation, wrapFunction } from "@ai-setting/roy-agent-core";
|
|
18172
18241
|
var runWorkflow = wrapFunction(async function runWorkflowImpl(args) {
|
|
18173
18242
|
const output = new OutputService;
|
|
@@ -18324,18 +18393,27 @@ var runWorkflow = wrapFunction(async function runWorkflowImpl(args) {
|
|
|
18324
18393
|
\uD83D\uDCA1 Use "roy-agent workflow run ${result.runId} --session-id ${result.runId} --input '<response>'" to resume`));
|
|
18325
18394
|
}
|
|
18326
18395
|
} else {
|
|
18327
|
-
|
|
18328
|
-
const
|
|
18396
|
+
const tool = createRunWorkflowTool(service);
|
|
18397
|
+
const toolResult = await tool.execute({
|
|
18398
|
+
workflow_name: args.identifier,
|
|
18399
|
+
input: input || undefined,
|
|
18400
|
+
timeout: args.timeout
|
|
18401
|
+
}, {});
|
|
18402
|
+
if (!toolResult.success) {
|
|
18403
|
+
output.error(toolResult.error || `Failed to run workflow: ${args.identifier}`);
|
|
18404
|
+
process.exit(1);
|
|
18405
|
+
}
|
|
18406
|
+
const runData = toolResult.output;
|
|
18329
18407
|
output.log(renderRunResult({
|
|
18330
|
-
runId:
|
|
18331
|
-
status:
|
|
18332
|
-
output:
|
|
18333
|
-
error:
|
|
18334
|
-
durationMs:
|
|
18408
|
+
runId: runData.run_id,
|
|
18409
|
+
status: runData.status,
|
|
18410
|
+
output: runData.output,
|
|
18411
|
+
error: runData.error,
|
|
18412
|
+
durationMs: runData.duration_ms
|
|
18335
18413
|
}));
|
|
18336
|
-
if (
|
|
18414
|
+
if (runData.status === "paused") {
|
|
18337
18415
|
output.log(chalk66.gray(`
|
|
18338
|
-
\uD83D\uDCA1 Use "roy-agent workflow run ${
|
|
18416
|
+
\uD83D\uDCA1 Use "roy-agent workflow run ${runData.run_id} --session-id ${runData.run_id} --input '<response>'" to resume`));
|
|
18339
18417
|
}
|
|
18340
18418
|
}
|
|
18341
18419
|
if (workflowSpan) {
|
|
@@ -18407,6 +18485,7 @@ var WorkflowRunCommand = {
|
|
|
18407
18485
|
|
|
18408
18486
|
// src/commands/workflow/commands/stop.ts
|
|
18409
18487
|
import chalk67 from "chalk";
|
|
18488
|
+
import { createWorkflowRunStopTool } from "@ai-setting/roy-agent-core/env/workflow/tools";
|
|
18410
18489
|
import { wrapFunction as wrapFunction2 } from "@ai-setting/roy-agent-core";
|
|
18411
18490
|
var stopWorkflow = wrapFunction2(async function stopWorkflowImpl(args) {
|
|
18412
18491
|
const output = new OutputService;
|
|
@@ -18424,17 +18503,12 @@ var stopWorkflow = wrapFunction2(async function stopWorkflowImpl(args) {
|
|
|
18424
18503
|
process.exit(1);
|
|
18425
18504
|
}
|
|
18426
18505
|
const service = workflowComponent.getService();
|
|
18427
|
-
const
|
|
18428
|
-
|
|
18429
|
-
|
|
18506
|
+
const tool = createWorkflowRunStopTool(service);
|
|
18507
|
+
const result = await tool.execute({ run_id: args.runId }, {});
|
|
18508
|
+
if (!result.success) {
|
|
18509
|
+
output.error(result.error || `Failed to stop workflow: ${args.runId}`);
|
|
18430
18510
|
process.exit(1);
|
|
18431
18511
|
}
|
|
18432
|
-
const metadata = session.metadata;
|
|
18433
|
-
if (!["running", "paused"].includes(metadata.status)) {
|
|
18434
|
-
output.error(`Cannot stop run in status: ${metadata.status}`);
|
|
18435
|
-
process.exit(1);
|
|
18436
|
-
}
|
|
18437
|
-
await service.stopRun(args.runId);
|
|
18438
18512
|
output.log(chalk67.red(`
|
|
18439
18513
|
⏹️ Workflow stopped: ${args.runId}`));
|
|
18440
18514
|
} catch (error) {
|
|
@@ -18460,6 +18534,7 @@ var WorkflowStopCommand = {
|
|
|
18460
18534
|
|
|
18461
18535
|
// src/commands/workflow/commands/status.ts
|
|
18462
18536
|
import chalk68 from "chalk";
|
|
18537
|
+
import { createWorkflowRunStatusTool } from "@ai-setting/roy-agent-core/env/workflow/tools";
|
|
18463
18538
|
var WorkflowStatusCommand = {
|
|
18464
18539
|
command: "status <runId>",
|
|
18465
18540
|
describe: "查看 Workflow 运行状态",
|
|
@@ -18497,23 +18572,24 @@ var WorkflowStatusCommand = {
|
|
|
18497
18572
|
process.exit(1);
|
|
18498
18573
|
}
|
|
18499
18574
|
const service = workflowComponent.getService();
|
|
18575
|
+
const tool = createWorkflowRunStatusTool(service);
|
|
18500
18576
|
if (args.watch) {
|
|
18501
18577
|
let lastStatus = "";
|
|
18502
18578
|
while (true) {
|
|
18503
|
-
const
|
|
18504
|
-
if (!
|
|
18505
|
-
output.error(`Run not found: ${args.runId}`);
|
|
18579
|
+
const result = await tool.execute({ run_id: args.runId }, {});
|
|
18580
|
+
if (!result.success) {
|
|
18581
|
+
output.error(result.error || `Run not found: ${args.runId}`);
|
|
18506
18582
|
process.exit(1);
|
|
18507
18583
|
}
|
|
18508
|
-
const
|
|
18509
|
-
const status =
|
|
18584
|
+
const data = JSON.parse(result.output);
|
|
18585
|
+
const status = data.status;
|
|
18510
18586
|
if (status !== lastStatus) {
|
|
18511
18587
|
const run = {
|
|
18512
|
-
id:
|
|
18513
|
-
workflowId:
|
|
18514
|
-
workflowName:
|
|
18588
|
+
id: data.run_id,
|
|
18589
|
+
workflowId: data.workflow_id || "",
|
|
18590
|
+
workflowName: data.workflow_name,
|
|
18515
18591
|
status,
|
|
18516
|
-
startedAt:
|
|
18592
|
+
startedAt: data.created_at ? new Date(data.created_at) : undefined,
|
|
18517
18593
|
debugMode: false
|
|
18518
18594
|
};
|
|
18519
18595
|
output.log(renderRunDetail(run));
|
|
@@ -18525,19 +18601,19 @@ var WorkflowStatusCommand = {
|
|
|
18525
18601
|
await new Promise((resolve) => setTimeout(resolve, args.interval));
|
|
18526
18602
|
}
|
|
18527
18603
|
} else {
|
|
18528
|
-
const
|
|
18529
|
-
if (!
|
|
18530
|
-
output.error(`Run not found: ${args.runId}`);
|
|
18604
|
+
const result = await tool.execute({ run_id: args.runId }, {});
|
|
18605
|
+
if (!result.success) {
|
|
18606
|
+
output.error(result.error || `Run not found: ${args.runId}`);
|
|
18531
18607
|
process.exit(1);
|
|
18532
18608
|
}
|
|
18533
|
-
const
|
|
18534
|
-
const status =
|
|
18609
|
+
const data = JSON.parse(result.output);
|
|
18610
|
+
const status = data.status;
|
|
18535
18611
|
const run = {
|
|
18536
|
-
id:
|
|
18537
|
-
workflowId:
|
|
18538
|
-
workflowName:
|
|
18612
|
+
id: data.run_id,
|
|
18613
|
+
workflowId: data.workflow_id || "",
|
|
18614
|
+
workflowName: data.workflow_name,
|
|
18539
18615
|
status,
|
|
18540
|
-
startedAt:
|
|
18616
|
+
startedAt: data.created_at ? new Date(data.created_at) : undefined,
|
|
18541
18617
|
debugMode: false
|
|
18542
18618
|
};
|
|
18543
18619
|
output.log(renderRunDetail(run));
|