@ai-setting/roy-agent-cli 1.5.75 → 1.5.76

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/index.js CHANGED
@@ -325,7 +325,7 @@ var init_stream_output_service = __esm(() => {
325
325
  };
326
326
  });
327
327
 
328
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/identity.js
328
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
329
329
  var require_identity = __commonJS((exports) => {
330
330
  var ALIAS = Symbol.for("yaml.alias");
331
331
  var DOC = Symbol.for("yaml.document");
@@ -379,7 +379,7 @@ var require_identity = __commonJS((exports) => {
379
379
  exports.isSeq = isSeq;
380
380
  });
381
381
 
382
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/visit.js
382
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/visit.js
383
383
  var require_visit = __commonJS((exports) => {
384
384
  var identity = require_identity();
385
385
  var BREAK = Symbol("break visit");
@@ -534,7 +534,7 @@ var require_visit = __commonJS((exports) => {
534
534
  exports.visitAsync = visitAsync;
535
535
  });
536
536
 
537
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/directives.js
537
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js
538
538
  var require_directives = __commonJS((exports) => {
539
539
  var identity = require_identity();
540
540
  var visit = require_visit();
@@ -686,7 +686,7 @@ var require_directives = __commonJS((exports) => {
686
686
  exports.Directives = Directives;
687
687
  });
688
688
 
689
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/anchors.js
689
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js
690
690
  var require_anchors = __commonJS((exports) => {
691
691
  var identity = require_identity();
692
692
  var visit = require_visit();
@@ -748,7 +748,7 @@ var require_anchors = __commonJS((exports) => {
748
748
  exports.findNewAnchor = findNewAnchor;
749
749
  });
750
750
 
751
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/applyReviver.js
751
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js
752
752
  var require_applyReviver = __commonJS((exports) => {
753
753
  function applyReviver(reviver, obj, key, val) {
754
754
  if (val && typeof val === "object") {
@@ -795,7 +795,7 @@ var require_applyReviver = __commonJS((exports) => {
795
795
  exports.applyReviver = applyReviver;
796
796
  });
797
797
 
798
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/toJS.js
798
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js
799
799
  var require_toJS = __commonJS((exports) => {
800
800
  var identity = require_identity();
801
801
  function toJS(value, arg, ctx) {
@@ -822,7 +822,7 @@ var require_toJS = __commonJS((exports) => {
822
822
  exports.toJS = toJS;
823
823
  });
824
824
 
825
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Node.js
825
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js
826
826
  var require_Node = __commonJS((exports) => {
827
827
  var applyReviver = require_applyReviver();
828
828
  var identity = require_identity();
@@ -859,7 +859,7 @@ var require_Node = __commonJS((exports) => {
859
859
  exports.NodeBase = NodeBase;
860
860
  });
861
861
 
862
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Alias.js
862
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js
863
863
  var require_Alias = __commonJS((exports) => {
864
864
  var anchors = require_anchors();
865
865
  var visit = require_visit();
@@ -969,7 +969,7 @@ var require_Alias = __commonJS((exports) => {
969
969
  exports.Alias = Alias;
970
970
  });
971
971
 
972
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Scalar.js
972
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js
973
973
  var require_Scalar = __commonJS((exports) => {
974
974
  var identity = require_identity();
975
975
  var Node = require_Node();
@@ -997,7 +997,7 @@ var require_Scalar = __commonJS((exports) => {
997
997
  exports.isScalarValue = isScalarValue;
998
998
  });
999
999
 
1000
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/createNode.js
1000
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js
1001
1001
  var require_createNode = __commonJS((exports) => {
1002
1002
  var Alias = require_Alias();
1003
1003
  var identity = require_identity();
@@ -1069,7 +1069,7 @@ var require_createNode = __commonJS((exports) => {
1069
1069
  exports.createNode = createNode;
1070
1070
  });
1071
1071
 
1072
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Collection.js
1072
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js
1073
1073
  var require_Collection = __commonJS((exports) => {
1074
1074
  var createNode = require_createNode();
1075
1075
  var identity = require_identity();
@@ -1184,7 +1184,7 @@ var require_Collection = __commonJS((exports) => {
1184
1184
  exports.isEmptyPath = isEmptyPath;
1185
1185
  });
1186
1186
 
1187
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyComment.js
1187
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js
1188
1188
  var require_stringifyComment = __commonJS((exports) => {
1189
1189
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
1190
1190
  function indentComment(comment, indent) {
@@ -1201,7 +1201,7 @@ var require_stringifyComment = __commonJS((exports) => {
1201
1201
  exports.stringifyComment = stringifyComment;
1202
1202
  });
1203
1203
 
1204
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/foldFlowLines.js
1204
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js
1205
1205
  var require_foldFlowLines = __commonJS((exports) => {
1206
1206
  var FOLD_FLOW = "flow";
1207
1207
  var FOLD_BLOCK = "block";
@@ -1338,7 +1338,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
1338
1338
  exports.foldFlowLines = foldFlowLines;
1339
1339
  });
1340
1340
 
1341
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyString.js
1341
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js
1342
1342
  var require_stringifyString = __commonJS((exports) => {
1343
1343
  var Scalar = require_Scalar();
1344
1344
  var foldFlowLines = require_foldFlowLines();
@@ -1636,7 +1636,7 @@ ${indent}`);
1636
1636
  exports.stringifyString = stringifyString;
1637
1637
  });
1638
1638
 
1639
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringify.js
1639
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js
1640
1640
  var require_stringify = __commonJS((exports) => {
1641
1641
  var anchors = require_anchors();
1642
1642
  var identity = require_identity();
@@ -1757,7 +1757,7 @@ ${ctx.indent}${str}`;
1757
1757
  exports.stringify = stringify;
1758
1758
  });
1759
1759
 
1760
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyPair.js
1760
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js
1761
1761
  var require_stringifyPair = __commonJS((exports) => {
1762
1762
  var identity = require_identity();
1763
1763
  var Scalar = require_Scalar();
@@ -1893,7 +1893,7 @@ ${ctx.indent}`;
1893
1893
  exports.stringifyPair = stringifyPair;
1894
1894
  });
1895
1895
 
1896
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/log.js
1896
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/log.js
1897
1897
  var require_log = __commonJS((exports) => {
1898
1898
  var node_process = __require("process");
1899
1899
  function debug(logLevel, ...messages) {
@@ -1912,7 +1912,7 @@ var require_log = __commonJS((exports) => {
1912
1912
  exports.warn = warn;
1913
1913
  });
1914
1914
 
1915
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1915
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1916
1916
  var require_merge = __commonJS((exports) => {
1917
1917
  var identity = require_identity();
1918
1918
  var Scalar = require_Scalar();
@@ -1969,7 +1969,7 @@ var require_merge = __commonJS((exports) => {
1969
1969
  exports.merge = merge;
1970
1970
  });
1971
1971
 
1972
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/addPairToJSMap.js
1972
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
1973
1973
  var require_addPairToJSMap = __commonJS((exports) => {
1974
1974
  var log = require_log();
1975
1975
  var merge = require_merge();
@@ -2030,7 +2030,7 @@ var require_addPairToJSMap = __commonJS((exports) => {
2030
2030
  exports.addPairToJSMap = addPairToJSMap;
2031
2031
  });
2032
2032
 
2033
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/Pair.js
2033
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js
2034
2034
  var require_Pair = __commonJS((exports) => {
2035
2035
  var createNode = require_createNode();
2036
2036
  var stringifyPair = require_stringifyPair();
@@ -2068,7 +2068,7 @@ var require_Pair = __commonJS((exports) => {
2068
2068
  exports.createPair = createPair;
2069
2069
  });
2070
2070
 
2071
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyCollection.js
2071
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js
2072
2072
  var require_stringifyCollection = __commonJS((exports) => {
2073
2073
  var identity = require_identity();
2074
2074
  var stringify = require_stringify();
@@ -2220,7 +2220,7 @@ ${indent}${end}`;
2220
2220
  exports.stringifyCollection = stringifyCollection;
2221
2221
  });
2222
2222
 
2223
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLMap.js
2223
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js
2224
2224
  var require_YAMLMap = __commonJS((exports) => {
2225
2225
  var stringifyCollection = require_stringifyCollection();
2226
2226
  var addPairToJSMap = require_addPairToJSMap();
@@ -2347,7 +2347,7 @@ var require_YAMLMap = __commonJS((exports) => {
2347
2347
  exports.findPair = findPair;
2348
2348
  });
2349
2349
 
2350
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/map.js
2350
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js
2351
2351
  var require_map = __commonJS((exports) => {
2352
2352
  var identity = require_identity();
2353
2353
  var YAMLMap = require_YAMLMap();
@@ -2366,7 +2366,7 @@ var require_map = __commonJS((exports) => {
2366
2366
  exports.map = map;
2367
2367
  });
2368
2368
 
2369
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLSeq.js
2369
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js
2370
2370
  var require_YAMLSeq = __commonJS((exports) => {
2371
2371
  var createNode = require_createNode();
2372
2372
  var stringifyCollection = require_stringifyCollection();
@@ -2459,7 +2459,7 @@ var require_YAMLSeq = __commonJS((exports) => {
2459
2459
  exports.YAMLSeq = YAMLSeq;
2460
2460
  });
2461
2461
 
2462
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/seq.js
2462
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js
2463
2463
  var require_seq = __commonJS((exports) => {
2464
2464
  var identity = require_identity();
2465
2465
  var YAMLSeq = require_YAMLSeq();
@@ -2478,7 +2478,7 @@ var require_seq = __commonJS((exports) => {
2478
2478
  exports.seq = seq;
2479
2479
  });
2480
2480
 
2481
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/string.js
2481
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js
2482
2482
  var require_string = __commonJS((exports) => {
2483
2483
  var stringifyString = require_stringifyString();
2484
2484
  var string = {
@@ -2494,7 +2494,7 @@ var require_string = __commonJS((exports) => {
2494
2494
  exports.string = string;
2495
2495
  });
2496
2496
 
2497
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/common/null.js
2497
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js
2498
2498
  var require_null = __commonJS((exports) => {
2499
2499
  var Scalar = require_Scalar();
2500
2500
  var nullTag = {
@@ -2509,7 +2509,7 @@ var require_null = __commonJS((exports) => {
2509
2509
  exports.nullTag = nullTag;
2510
2510
  });
2511
2511
 
2512
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/bool.js
2512
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js
2513
2513
  var require_bool = __commonJS((exports) => {
2514
2514
  var Scalar = require_Scalar();
2515
2515
  var boolTag = {
@@ -2530,7 +2530,7 @@ var require_bool = __commonJS((exports) => {
2530
2530
  exports.boolTag = boolTag;
2531
2531
  });
2532
2532
 
2533
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyNumber.js
2533
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js
2534
2534
  var require_stringifyNumber = __commonJS((exports) => {
2535
2535
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
2536
2536
  if (typeof value === "bigint")
@@ -2554,7 +2554,7 @@ var require_stringifyNumber = __commonJS((exports) => {
2554
2554
  exports.stringifyNumber = stringifyNumber;
2555
2555
  });
2556
2556
 
2557
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/float.js
2557
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js
2558
2558
  var require_float = __commonJS((exports) => {
2559
2559
  var Scalar = require_Scalar();
2560
2560
  var stringifyNumber = require_stringifyNumber();
@@ -2597,7 +2597,7 @@ var require_float = __commonJS((exports) => {
2597
2597
  exports.floatNaN = floatNaN;
2598
2598
  });
2599
2599
 
2600
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/int.js
2600
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js
2601
2601
  var require_int = __commonJS((exports) => {
2602
2602
  var stringifyNumber = require_stringifyNumber();
2603
2603
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2639,7 +2639,7 @@ var require_int = __commonJS((exports) => {
2639
2639
  exports.intOct = intOct;
2640
2640
  });
2641
2641
 
2642
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/core/schema.js
2642
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js
2643
2643
  var require_schema = __commonJS((exports) => {
2644
2644
  var map = require_map();
2645
2645
  var _null = require_null();
@@ -2664,7 +2664,7 @@ var require_schema = __commonJS((exports) => {
2664
2664
  exports.schema = schema;
2665
2665
  });
2666
2666
 
2667
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/json/schema.js
2667
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js
2668
2668
  var require_schema2 = __commonJS((exports) => {
2669
2669
  var Scalar = require_Scalar();
2670
2670
  var map = require_map();
@@ -2728,7 +2728,7 @@ var require_schema2 = __commonJS((exports) => {
2728
2728
  exports.schema = schema;
2729
2729
  });
2730
2730
 
2731
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2731
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2732
2732
  var require_binary = __commonJS((exports) => {
2733
2733
  var node_buffer = __require("buffer");
2734
2734
  var Scalar = require_Scalar();
@@ -2783,7 +2783,7 @@ var require_binary = __commonJS((exports) => {
2783
2783
  exports.binary = binary;
2784
2784
  });
2785
2785
 
2786
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2786
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2787
2787
  var require_pairs = __commonJS((exports) => {
2788
2788
  var identity = require_identity();
2789
2789
  var Pair = require_Pair();
@@ -2858,7 +2858,7 @@ ${cn.comment}` : item.comment;
2858
2858
  exports.resolvePairs = resolvePairs;
2859
2859
  });
2860
2860
 
2861
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2861
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2862
2862
  var require_omap = __commonJS((exports) => {
2863
2863
  var identity = require_identity();
2864
2864
  var toJS = require_toJS();
@@ -2930,7 +2930,7 @@ var require_omap = __commonJS((exports) => {
2930
2930
  exports.omap = omap;
2931
2931
  });
2932
2932
 
2933
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2933
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2934
2934
  var require_bool2 = __commonJS((exports) => {
2935
2935
  var Scalar = require_Scalar();
2936
2936
  function boolStringify({ value, source }, ctx) {
@@ -2959,7 +2959,7 @@ var require_bool2 = __commonJS((exports) => {
2959
2959
  exports.trueTag = trueTag;
2960
2960
  });
2961
2961
 
2962
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/float.js
2962
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
2963
2963
  var require_float2 = __commonJS((exports) => {
2964
2964
  var Scalar = require_Scalar();
2965
2965
  var stringifyNumber = require_stringifyNumber();
@@ -3005,7 +3005,7 @@ var require_float2 = __commonJS((exports) => {
3005
3005
  exports.floatNaN = floatNaN;
3006
3006
  });
3007
3007
 
3008
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/int.js
3008
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
3009
3009
  var require_int2 = __commonJS((exports) => {
3010
3010
  var stringifyNumber = require_stringifyNumber();
3011
3011
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -3081,7 +3081,7 @@ var require_int2 = __commonJS((exports) => {
3081
3081
  exports.intOct = intOct;
3082
3082
  });
3083
3083
 
3084
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/set.js
3084
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
3085
3085
  var require_set = __commonJS((exports) => {
3086
3086
  var identity = require_identity();
3087
3087
  var Pair = require_Pair();
@@ -3164,7 +3164,7 @@ var require_set = __commonJS((exports) => {
3164
3164
  exports.set = set;
3165
3165
  });
3166
3166
 
3167
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
3167
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
3168
3168
  var require_timestamp = __commonJS((exports) => {
3169
3169
  var stringifyNumber = require_stringifyNumber();
3170
3170
  function parseSexagesimal(str, asBigInt) {
@@ -3246,7 +3246,7 @@ var require_timestamp = __commonJS((exports) => {
3246
3246
  exports.timestamp = timestamp;
3247
3247
  });
3248
3248
 
3249
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3249
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3250
3250
  var require_schema3 = __commonJS((exports) => {
3251
3251
  var map = require_map();
3252
3252
  var _null = require_null();
@@ -3287,7 +3287,7 @@ var require_schema3 = __commonJS((exports) => {
3287
3287
  exports.schema = schema;
3288
3288
  });
3289
3289
 
3290
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/tags.js
3290
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js
3291
3291
  var require_tags = __commonJS((exports) => {
3292
3292
  var map = require_map();
3293
3293
  var _null = require_null();
@@ -3378,7 +3378,7 @@ var require_tags = __commonJS((exports) => {
3378
3378
  exports.getTags = getTags;
3379
3379
  });
3380
3380
 
3381
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/schema/Schema.js
3381
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js
3382
3382
  var require_Schema = __commonJS((exports) => {
3383
3383
  var identity = require_identity();
3384
3384
  var map = require_map();
@@ -3408,7 +3408,7 @@ var require_Schema = __commonJS((exports) => {
3408
3408
  exports.Schema = Schema;
3409
3409
  });
3410
3410
 
3411
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyDocument.js
3411
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js
3412
3412
  var require_stringifyDocument = __commonJS((exports) => {
3413
3413
  var identity = require_identity();
3414
3414
  var stringify = require_stringify();
@@ -3488,7 +3488,7 @@ var require_stringifyDocument = __commonJS((exports) => {
3488
3488
  exports.stringifyDocument = stringifyDocument;
3489
3489
  });
3490
3490
 
3491
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/doc/Document.js
3491
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js
3492
3492
  var require_Document = __commonJS((exports) => {
3493
3493
  var Alias = require_Alias();
3494
3494
  var Collection = require_Collection();
@@ -3723,7 +3723,7 @@ var require_Document = __commonJS((exports) => {
3723
3723
  exports.Document = Document;
3724
3724
  });
3725
3725
 
3726
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/errors.js
3726
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/errors.js
3727
3727
  var require_errors = __commonJS((exports) => {
3728
3728
  class YAMLError extends Error {
3729
3729
  constructor(name, pos, code, message) {
@@ -3788,7 +3788,7 @@ ${pointer}
3788
3788
  exports.prettifyError = prettifyError;
3789
3789
  });
3790
3790
 
3791
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-props.js
3791
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js
3792
3792
  var require_resolve_props = __commonJS((exports) => {
3793
3793
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3794
3794
  let spaceBefore = false;
@@ -3918,7 +3918,7 @@ var require_resolve_props = __commonJS((exports) => {
3918
3918
  exports.resolveProps = resolveProps;
3919
3919
  });
3920
3920
 
3921
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-contains-newline.js
3921
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js
3922
3922
  var require_util_contains_newline = __commonJS((exports) => {
3923
3923
  function containsNewline(key) {
3924
3924
  if (!key)
@@ -3958,7 +3958,7 @@ var require_util_contains_newline = __commonJS((exports) => {
3958
3958
  exports.containsNewline = containsNewline;
3959
3959
  });
3960
3960
 
3961
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-flow-indent-check.js
3961
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
3962
3962
  var require_util_flow_indent_check = __commonJS((exports) => {
3963
3963
  var utilContainsNewline = require_util_contains_newline();
3964
3964
  function flowIndentCheck(indent, fc, onError) {
@@ -3973,7 +3973,7 @@ var require_util_flow_indent_check = __commonJS((exports) => {
3973
3973
  exports.flowIndentCheck = flowIndentCheck;
3974
3974
  });
3975
3975
 
3976
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-map-includes.js
3976
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js
3977
3977
  var require_util_map_includes = __commonJS((exports) => {
3978
3978
  var identity = require_identity();
3979
3979
  function mapIncludes(ctx, items, search) {
@@ -3986,7 +3986,7 @@ var require_util_map_includes = __commonJS((exports) => {
3986
3986
  exports.mapIncludes = mapIncludes;
3987
3987
  });
3988
3988
 
3989
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-map.js
3989
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js
3990
3990
  var require_resolve_block_map = __commonJS((exports) => {
3991
3991
  var Pair = require_Pair();
3992
3992
  var YAMLMap = require_YAMLMap();
@@ -4093,7 +4093,7 @@ var require_resolve_block_map = __commonJS((exports) => {
4093
4093
  exports.resolveBlockMap = resolveBlockMap;
4094
4094
  });
4095
4095
 
4096
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-seq.js
4096
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js
4097
4097
  var require_resolve_block_seq = __commonJS((exports) => {
4098
4098
  var YAMLSeq = require_YAMLSeq();
4099
4099
  var resolveProps = require_resolve_props();
@@ -4141,7 +4141,7 @@ var require_resolve_block_seq = __commonJS((exports) => {
4141
4141
  exports.resolveBlockSeq = resolveBlockSeq;
4142
4142
  });
4143
4143
 
4144
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-end.js
4144
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js
4145
4145
  var require_resolve_end = __commonJS((exports) => {
4146
4146
  function resolveEnd(end, offset, reqSpace, onError) {
4147
4147
  let comment = "";
@@ -4181,7 +4181,7 @@ var require_resolve_end = __commonJS((exports) => {
4181
4181
  exports.resolveEnd = resolveEnd;
4182
4182
  });
4183
4183
 
4184
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-collection.js
4184
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
4185
4185
  var require_resolve_flow_collection = __commonJS((exports) => {
4186
4186
  var identity = require_identity();
4187
4187
  var Pair = require_Pair();
@@ -4372,7 +4372,7 @@ var require_resolve_flow_collection = __commonJS((exports) => {
4372
4372
  exports.resolveFlowCollection = resolveFlowCollection;
4373
4373
  });
4374
4374
 
4375
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-collection.js
4375
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js
4376
4376
  var require_compose_collection = __commonJS((exports) => {
4377
4377
  var identity = require_identity();
4378
4378
  var Scalar = require_Scalar();
@@ -4434,7 +4434,7 @@ var require_compose_collection = __commonJS((exports) => {
4434
4434
  exports.composeCollection = composeCollection;
4435
4435
  });
4436
4436
 
4437
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-scalar.js
4437
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
4438
4438
  var require_resolve_block_scalar = __commonJS((exports) => {
4439
4439
  var Scalar = require_Scalar();
4440
4440
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -4627,7 +4627,7 @@ var require_resolve_block_scalar = __commonJS((exports) => {
4627
4627
  exports.resolveBlockScalar = resolveBlockScalar;
4628
4628
  });
4629
4629
 
4630
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4630
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4631
4631
  var require_resolve_flow_scalar = __commonJS((exports) => {
4632
4632
  var Scalar = require_Scalar();
4633
4633
  var resolveEnd = require_resolve_end();
@@ -4844,7 +4844,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
4844
4844
  exports.resolveFlowScalar = resolveFlowScalar;
4845
4845
  });
4846
4846
 
4847
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-scalar.js
4847
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js
4848
4848
  var require_compose_scalar = __commonJS((exports) => {
4849
4849
  var identity = require_identity();
4850
4850
  var Scalar = require_Scalar();
@@ -4922,7 +4922,7 @@ var require_compose_scalar = __commonJS((exports) => {
4922
4922
  exports.composeScalar = composeScalar;
4923
4923
  });
4924
4924
 
4925
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4925
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4926
4926
  var require_util_empty_scalar_position = __commonJS((exports) => {
4927
4927
  function emptyScalarPosition(offset, before, pos) {
4928
4928
  if (before) {
@@ -4949,7 +4949,7 @@ var require_util_empty_scalar_position = __commonJS((exports) => {
4949
4949
  exports.emptyScalarPosition = emptyScalarPosition;
4950
4950
  });
4951
4951
 
4952
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-node.js
4952
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js
4953
4953
  var require_compose_node = __commonJS((exports) => {
4954
4954
  var Alias = require_Alias();
4955
4955
  var identity = require_identity();
@@ -5052,7 +5052,7 @@ var require_compose_node = __commonJS((exports) => {
5052
5052
  exports.composeNode = composeNode;
5053
5053
  });
5054
5054
 
5055
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/compose-doc.js
5055
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js
5056
5056
  var require_compose_doc = __commonJS((exports) => {
5057
5057
  var Document = require_Document();
5058
5058
  var composeNode = require_compose_node();
@@ -5092,7 +5092,7 @@ var require_compose_doc = __commonJS((exports) => {
5092
5092
  exports.composeDoc = composeDoc;
5093
5093
  });
5094
5094
 
5095
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/compose/composer.js
5095
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js
5096
5096
  var require_composer = __commonJS((exports) => {
5097
5097
  var node_process = __require("process");
5098
5098
  var directives = require_directives();
@@ -5178,8 +5178,10 @@ ${cb}` : comment;
5178
5178
  }
5179
5179
  }
5180
5180
  if (afterDoc) {
5181
- Array.prototype.push.apply(doc.errors, this.errors);
5182
- Array.prototype.push.apply(doc.warnings, this.warnings);
5181
+ for (let i = 0;i < this.errors.length; ++i)
5182
+ doc.errors.push(this.errors[i]);
5183
+ for (let i = 0;i < this.warnings.length; ++i)
5184
+ doc.warnings.push(this.warnings[i]);
5183
5185
  } else {
5184
5186
  doc.errors = this.errors;
5185
5187
  doc.warnings = this.warnings;
@@ -5281,7 +5283,7 @@ ${end.comment}` : end.comment;
5281
5283
  exports.Composer = Composer;
5282
5284
  });
5283
5285
 
5284
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-scalar.js
5286
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
5285
5287
  var require_cst_scalar = __commonJS((exports) => {
5286
5288
  var resolveBlockScalar = require_resolve_block_scalar();
5287
5289
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -5471,7 +5473,7 @@ var require_cst_scalar = __commonJS((exports) => {
5471
5473
  exports.setScalarValue = setScalarValue;
5472
5474
  });
5473
5475
 
5474
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-stringify.js
5476
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
5475
5477
  var require_cst_stringify = __commonJS((exports) => {
5476
5478
  var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
5477
5479
  function stringifyToken(token) {
@@ -5529,7 +5531,7 @@ var require_cst_stringify = __commonJS((exports) => {
5529
5531
  exports.stringify = stringify;
5530
5532
  });
5531
5533
 
5532
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst-visit.js
5534
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
5533
5535
  var require_cst_visit = __commonJS((exports) => {
5534
5536
  var BREAK = Symbol("break visit");
5535
5537
  var SKIP = Symbol("skip children");
@@ -5588,7 +5590,7 @@ var require_cst_visit = __commonJS((exports) => {
5588
5590
  exports.visit = visit;
5589
5591
  });
5590
5592
 
5591
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/cst.js
5593
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
5592
5594
  var require_cst = __commonJS((exports) => {
5593
5595
  var cstScalar = require_cst_scalar();
5594
5596
  var cstStringify = require_cst_stringify();
@@ -5689,7 +5691,7 @@ var require_cst = __commonJS((exports) => {
5689
5691
  exports.tokenType = tokenType;
5690
5692
  });
5691
5693
 
5692
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/lexer.js
5694
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
5693
5695
  var require_lexer = __commonJS((exports) => {
5694
5696
  var cst = require_cst();
5695
5697
  function isEmpty(ch) {
@@ -5891,7 +5893,7 @@ var require_lexer = __commonJS((exports) => {
5891
5893
  const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
5892
5894
  this.indentNext = this.indentValue + 1;
5893
5895
  this.indentValue += n;
5894
- return yield* this.parseBlockStart();
5896
+ return "block-start";
5895
5897
  }
5896
5898
  return "doc";
5897
5899
  }
@@ -6198,26 +6200,37 @@ var require_lexer = __commonJS((exports) => {
6198
6200
  return 0;
6199
6201
  }
6200
6202
  *pushIndicators() {
6201
- switch (this.charAt(0)) {
6202
- case "!":
6203
- return (yield* this.pushTag()) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
6204
- case "&":
6205
- return (yield* this.pushUntil(isNotAnchorChar)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
6206
- case "-":
6207
- case "?":
6208
- case ":": {
6209
- const inFlow = this.flowLevel > 0;
6210
- const ch1 = this.charAt(1);
6211
- if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
6212
- if (!inFlow)
6213
- this.indentNext = this.indentValue + 1;
6214
- else if (this.flowKey)
6215
- this.flowKey = false;
6216
- return (yield* this.pushCount(1)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
6203
+ let n = 0;
6204
+ loop:
6205
+ while (true) {
6206
+ switch (this.charAt(0)) {
6207
+ case "!":
6208
+ n += yield* this.pushTag();
6209
+ n += yield* this.pushSpaces(true);
6210
+ continue loop;
6211
+ case "&":
6212
+ n += yield* this.pushUntil(isNotAnchorChar);
6213
+ n += yield* this.pushSpaces(true);
6214
+ continue loop;
6215
+ case "-":
6216
+ case "?":
6217
+ case ":": {
6218
+ const inFlow = this.flowLevel > 0;
6219
+ const ch1 = this.charAt(1);
6220
+ if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
6221
+ if (!inFlow)
6222
+ this.indentNext = this.indentValue + 1;
6223
+ else if (this.flowKey)
6224
+ this.flowKey = false;
6225
+ n += yield* this.pushCount(1);
6226
+ n += yield* this.pushSpaces(true);
6227
+ continue loop;
6228
+ }
6229
+ }
6217
6230
  }
6231
+ break loop;
6218
6232
  }
6219
- }
6220
- return 0;
6233
+ return n;
6221
6234
  }
6222
6235
  *pushTag() {
6223
6236
  if (this.charAt(1) === "<") {
@@ -6275,7 +6288,7 @@ var require_lexer = __commonJS((exports) => {
6275
6288
  exports.Lexer = Lexer;
6276
6289
  });
6277
6290
 
6278
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/line-counter.js
6291
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
6279
6292
  var require_line_counter = __commonJS((exports) => {
6280
6293
  class LineCounter {
6281
6294
  constructor() {
@@ -6303,7 +6316,7 @@ var require_line_counter = __commonJS((exports) => {
6303
6316
  exports.LineCounter = LineCounter;
6304
6317
  });
6305
6318
 
6306
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/parse/parser.js
6319
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
6307
6320
  var require_parser = __commonJS((exports) => {
6308
6321
  var node_process = __require("process");
6309
6322
  var cst = require_cst();
@@ -6371,6 +6384,13 @@ var require_parser = __commonJS((exports) => {
6371
6384
  while (prev[++i]?.type === "space") {}
6372
6385
  return prev.splice(i, prev.length);
6373
6386
  }
6387
+ function arrayPushArray(target, source) {
6388
+ if (source.length < 1e5)
6389
+ Array.prototype.push.apply(target, source);
6390
+ else
6391
+ for (let i = 0;i < source.length; ++i)
6392
+ target.push(source[i]);
6393
+ }
6374
6394
  function fixFlowSeqItems(fc) {
6375
6395
  if (fc.start.type === "flow-seq-start") {
6376
6396
  for (const it of fc.items) {
@@ -6380,11 +6400,11 @@ var require_parser = __commonJS((exports) => {
6380
6400
  delete it.key;
6381
6401
  if (isFlowToken(it.value)) {
6382
6402
  if (it.value.end)
6383
- Array.prototype.push.apply(it.value.end, it.sep);
6403
+ arrayPushArray(it.value.end, it.sep);
6384
6404
  else
6385
6405
  it.value.end = it.sep;
6386
6406
  } else
6387
- Array.prototype.push.apply(it.start, it.sep);
6407
+ arrayPushArray(it.start, it.sep);
6388
6408
  delete it.sep;
6389
6409
  }
6390
6410
  }
@@ -6724,7 +6744,7 @@ var require_parser = __commonJS((exports) => {
6724
6744
  const prev = map.items[map.items.length - 2];
6725
6745
  const end = prev?.value?.end;
6726
6746
  if (Array.isArray(end)) {
6727
- Array.prototype.push.apply(end, it.start);
6747
+ arrayPushArray(end, it.start);
6728
6748
  end.push(this.sourceToken);
6729
6749
  map.items.pop();
6730
6750
  return;
@@ -6912,7 +6932,7 @@ var require_parser = __commonJS((exports) => {
6912
6932
  const prev = seq.items[seq.items.length - 2];
6913
6933
  const end = prev?.value?.end;
6914
6934
  if (Array.isArray(end)) {
6915
- Array.prototype.push.apply(end, it.start);
6935
+ arrayPushArray(end, it.start);
6916
6936
  end.push(this.sourceToken);
6917
6937
  seq.items.pop();
6918
6938
  return;
@@ -7152,7 +7172,7 @@ var require_parser = __commonJS((exports) => {
7152
7172
  exports.Parser = Parser;
7153
7173
  });
7154
7174
 
7155
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/public-api.js
7175
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/public-api.js
7156
7176
  var require_public_api = __commonJS((exports) => {
7157
7177
  var composer = require_composer();
7158
7178
  var Document = require_Document();
@@ -7246,7 +7266,7 @@ var require_public_api = __commonJS((exports) => {
7246
7266
  exports.stringify = stringify;
7247
7267
  });
7248
7268
 
7249
- // ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/dist/index.js
7269
+ // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js
7250
7270
  var require_dist = __commonJS((exports) => {
7251
7271
  var composer = require_composer();
7252
7272
  var Document = require_Document();
@@ -7299,7 +7319,7 @@ var require_dist = __commonJS((exports) => {
7299
7319
  var require_package = __commonJS((exports, module) => {
7300
7320
  module.exports = {
7301
7321
  name: "@ai-setting/roy-agent-cli",
7302
- version: "1.5.75",
7322
+ version: "1.5.76",
7303
7323
  type: "module",
7304
7324
  description: "CLI for roy-agent - Non-interactive command execution",
7305
7325
  main: "./dist/index.js",
@@ -7326,7 +7346,7 @@ var require_package = __commonJS((exports, module) => {
7326
7346
  },
7327
7347
  dependencies: {
7328
7348
  "@ai-setting/roy-agent-coder-harness": "^1.5.48",
7329
- "@ai-setting/roy-agent-core": "^1.5.74",
7349
+ "@ai-setting/roy-agent-core": "^1.5.75",
7330
7350
  "@ai-setting/roy-agent-ontology-harness": "^1.5.47",
7331
7351
  chalk: "^5.6.2",
7332
7352
  commander: "^14.0.3",
@@ -19299,27 +19319,38 @@ var LspCommand = {
19299
19319
 
19300
19320
  // src/commands/install/index.ts
19301
19321
  import { spawnSync } from "node:child_process";
19302
- import { existsSync as existsSync3, readFileSync as readFileSync2, writeFileSync, mkdirSync } from "node:fs";
19322
+ import { existsSync as existsSync3, readFileSync as readFileSync2, writeFileSync, mkdirSync, cpSync } from "node:fs";
19303
19323
  import { join as join4, resolve } from "node:path";
19304
19324
  import { homedir as homedir3 } from "node:os";
19305
- var CONFIG_DIR = join4(homedir3(), ".roy-agent");
19306
- var CONFIG_PATH = join4(CONFIG_DIR, "plugins.json");
19307
- function loadPlugins() {
19325
+ function getConfigDir(scope) {
19326
+ return scope === "global" ? join4(homedir3(), ".roy-agent") : join4(process.cwd(), ".roy");
19327
+ }
19328
+ function detectDefaultScope() {
19329
+ const projectDir = join4(process.cwd(), ".roy");
19330
+ return existsSync3(projectDir) ? "project" : "global";
19331
+ }
19332
+ function getConfigPath(scope) {
19333
+ return join4(getConfigDir(scope), "plugins.json");
19334
+ }
19335
+ function loadPlugins(scope) {
19336
+ const configPath = getConfigPath(scope);
19308
19337
  try {
19309
- if (existsSync3(CONFIG_PATH)) {
19310
- const raw = readFileSync2(CONFIG_PATH, "utf-8");
19338
+ if (existsSync3(configPath)) {
19339
+ const raw = readFileSync2(configPath, "utf-8");
19311
19340
  const config = JSON.parse(raw);
19312
19341
  return config.plugins ?? [];
19313
19342
  }
19314
19343
  } catch {}
19315
19344
  return [];
19316
19345
  }
19317
- function savePlugins(plugins) {
19318
- if (!existsSync3(CONFIG_DIR)) {
19319
- mkdirSync(CONFIG_DIR, { recursive: true });
19346
+ function savePlugins(plugins, scope) {
19347
+ const configDir = getConfigDir(scope);
19348
+ const configPath = getConfigPath(scope);
19349
+ if (!existsSync3(configDir)) {
19350
+ mkdirSync(configDir, { recursive: true });
19320
19351
  }
19321
19352
  const config = { plugins };
19322
- writeFileSync(CONFIG_PATH, JSON.stringify(config, null, 2), "utf-8");
19353
+ writeFileSync(configPath, JSON.stringify(config, null, 2), "utf-8");
19323
19354
  }
19324
19355
  function readPackageInfo(packageName) {
19325
19356
  if (packageName.startsWith("/") || packageName.startsWith(".")) {
@@ -19339,7 +19370,9 @@ function readPackageInfo(packageName) {
19339
19370
  }
19340
19371
  const searchPaths = [
19341
19372
  join4(process.cwd(), "node_modules", packageName, "package.json"),
19342
- resolve(process.cwd(), "..", "node_modules", packageName, "package.json")
19373
+ resolve(process.cwd(), "..", "node_modules", packageName, "package.json"),
19374
+ join4(process.cwd(), ".roy", "plugins", packageName, "package.json"),
19375
+ join4(homedir3(), ".roy-agent", "node_modules", packageName, "package.json")
19343
19376
  ];
19344
19377
  for (const pkgPath of searchPaths) {
19345
19378
  try {
@@ -19378,31 +19411,125 @@ var InstallPackageCommand = {
19378
19411
  builder: (yargs) => yargs.positional("package", {
19379
19412
  describe: "npm 包名(例如 @roy-agent/plugin-example)或本地路径",
19380
19413
  type: "string"
19414
+ }).option("global", {
19415
+ alias: "g",
19416
+ describe: "安装到全局 ~/.roy-agent/plugins.json",
19417
+ type: "boolean",
19418
+ conflicts: "project"
19419
+ }).option("project", {
19420
+ alias: "l",
19421
+ describe: "安装到项目 .roy/plugins.json(本地)",
19422
+ type: "boolean",
19423
+ conflicts: "global"
19381
19424
  }).help(),
19382
19425
  handler: (argv) => {
19383
19426
  const packageName = argv.package;
19384
- const pm = getPackageManagerCommand();
19385
- const pmParts = pm.split(" ").filter(Boolean);
19386
- console.log(`
19387
- \uD83D\uDCE6 Installing plugin: ${packageName}
19427
+ const scope = argv.project ? "project" : argv.global ? "global" : detectDefaultScope();
19428
+ if (scope === "project") {
19429
+ console.log(`
19430
+ \uD83D\uDCE6 Installing plugin: ${packageName} (project)
19388
19431
  `);
19389
- try {
19390
- const result = spawnSync(pmParts[0], [...pmParts.slice(1), "install", packageName], {
19391
- cwd: process.cwd(),
19432
+ let resolvedName;
19433
+ if (packageName.startsWith("/") || packageName.startsWith(".")) {
19434
+ const info2 = readPackageInfo(packageName);
19435
+ if (!info2) {
19436
+ console.error(`
19437
+ ❌ Could not read package info from '${packageName}'.
19438
+ `);
19439
+ process.exit(1);
19440
+ }
19441
+ resolvedName = info2.name;
19442
+ const srcDir = resolve(packageName);
19443
+ if (!existsSync3(srcDir)) {
19444
+ console.error(`
19445
+ ❌ Local path '${srcDir}' does not exist.
19446
+ `);
19447
+ process.exit(1);
19448
+ }
19449
+ const pluginDir = join4(process.cwd(), ".roy", "plugins", resolvedName);
19450
+ if (!existsSync3(pluginDir)) {
19451
+ mkdirSync(pluginDir, { recursive: true });
19452
+ }
19453
+ const result = spawnSync("cp", ["-r", `${srcDir}/.`, pluginDir], {
19454
+ stdio: "inherit",
19455
+ shell: false
19456
+ });
19457
+ if (result.status !== 0) {
19458
+ console.error(`
19459
+ ❌ Failed to copy plugin from '${srcDir}'.
19460
+ `);
19461
+ process.exit(1);
19462
+ }
19463
+ } else {
19464
+ const pm = getPackageManagerCommand();
19465
+ const pmParts = pm.split(" ").filter(Boolean);
19466
+ const result = spawnSync(pmParts[0], [...pmParts.slice(1), "install", packageName], {
19467
+ cwd: process.cwd(),
19468
+ stdio: "inherit",
19469
+ shell: false
19470
+ });
19471
+ if (result.status !== 0) {
19472
+ console.error(`
19473
+ ❌ Failed to install package '${packageName}'.
19474
+ `);
19475
+ process.exit(1);
19476
+ }
19477
+ const info2 = readPackageInfo(packageName);
19478
+ if (!info2) {
19479
+ console.error(`
19480
+ ❌ Package '${packageName}' was installed but could not read package info.
19481
+ `);
19482
+ process.exit(1);
19483
+ }
19484
+ resolvedName = info2.name;
19485
+ const pluginDir = join4(process.cwd(), ".roy", "plugins", resolvedName);
19486
+ if (!existsSync3(pluginDir)) {
19487
+ mkdirSync(pluginDir, { recursive: true });
19488
+ }
19489
+ const nmPath = join4(process.cwd(), "node_modules", packageName);
19490
+ if (existsSync3(nmPath)) {
19491
+ spawnSync("cp", ["-r", `${nmPath}/.`, pluginDir], { stdio: "inherit", shell: false });
19492
+ }
19493
+ }
19494
+ } else {
19495
+ console.log(`
19496
+ \uD83D\uDCE6 Installing plugin: ${packageName} (global)
19497
+ `);
19498
+ let resolvedGlobalName;
19499
+ if (packageName.startsWith("/") || packageName.startsWith(".")) {
19500
+ const info2 = readPackageInfo(packageName);
19501
+ if (!info2) {
19502
+ console.error(`
19503
+ ❌ Could not read package info from '${packageName}'.
19504
+ `);
19505
+ process.exit(1);
19506
+ }
19507
+ resolvedGlobalName = info2.name;
19508
+ } else {
19509
+ resolvedGlobalName = packageName;
19510
+ }
19511
+ const result = spawnSync("npm", ["install", "-g", packageName], {
19392
19512
  stdio: "inherit",
19393
19513
  shell: false
19394
19514
  });
19395
19515
  if (result.status !== 0) {
19396
19516
  console.error(`
19397
- ❌ Failed to install package '${packageName}': exit code ${result.status}
19517
+ ❌ Failed to install package '${packageName}' globally.
19398
19518
  `);
19399
- process.exit(result.status ?? 1);
19519
+ process.exit(1);
19520
+ }
19521
+ const globalNm = join4(homedir3(), ".roy-agent", "node_modules", resolvedGlobalName);
19522
+ if (!existsSync3(globalNm)) {
19523
+ mkdirSync(join4(homedir3(), ".roy-agent", "node_modules"), { recursive: true });
19524
+ const rootResult = spawnSync("npm", ["root", "-g"], { stdio: "pipe", shell: false });
19525
+ const globalRoot = rootResult.stdout?.toString().trim();
19526
+ if (globalRoot) {
19527
+ const globalInstalled = join4(globalRoot, resolvedGlobalName);
19528
+ if (existsSync3(globalInstalled)) {
19529
+ cpSync(globalInstalled, globalNm, { recursive: true });
19530
+ }
19531
+ }
19400
19532
  }
19401
- } catch (err) {
19402
- console.error(`
19403
- ❌ Failed to install package '${packageName}': ${err}
19404
- `);
19405
- process.exit(1);
19406
19533
  }
19407
19534
  const info = readPackageInfo(packageName);
19408
19535
  if (!info) {
@@ -19411,7 +19538,7 @@ var InstallPackageCommand = {
19411
19538
  `);
19412
19539
  process.exit(1);
19413
19540
  }
19414
- const plugins = loadPlugins();
19541
+ const plugins = loadPlugins(scope);
19415
19542
  const resolvedPackageName = info.name;
19416
19543
  const existing = plugins.findIndex((p) => p.packageName === resolvedPackageName);
19417
19544
  const plugin = {
@@ -19431,7 +19558,7 @@ var InstallPackageCommand = {
19431
19558
  ✅ Installed plugin: ${plugin.packageName}@${plugin.version}
19432
19559
  `);
19433
19560
  }
19434
- savePlugins(plugins);
19561
+ savePlugins(plugins, scope);
19435
19562
  }
19436
19563
  };
19437
19564
  var InstallListCommand = {
@@ -19439,8 +19566,10 @@ var InstallListCommand = {
19439
19566
  describe: "列出已安装的插件",
19440
19567
  builder: (yargs) => yargs.help(),
19441
19568
  handler: () => {
19442
- const plugins = loadPlugins();
19443
- if (plugins.length === 0) {
19569
+ const globalPlugins = loadPlugins("global");
19570
+ const projectPlugins = loadPlugins("project");
19571
+ const hasAny = globalPlugins.length > 0 || projectPlugins.length > 0;
19572
+ if (!hasAny) {
19444
19573
  console.log(`
19445
19574
  \uD83D\uDCE6 No plugins installed.
19446
19575
  `);
@@ -19448,13 +19577,26 @@ var InstallListCommand = {
19448
19577
  `);
19449
19578
  return;
19450
19579
  }
19451
- console.log(`
19452
- \uD83D\uDCE6 Installed Plugins (${plugins.length})
19580
+ if (globalPlugins.length > 0) {
19581
+ console.log(`
19582
+ \uD83C\uDF0D Global Plugins (${globalPlugins.length})
19453
19583
  `);
19454
- for (const plugin of plugins) {
19455
- console.log(` ✓ ${plugin.packageName}@${plugin.version}`);
19456
- if (plugin.description) {
19457
- console.log(` ${plugin.description}`);
19584
+ for (const plugin of globalPlugins) {
19585
+ console.log(` ✓ ${plugin.packageName}@${plugin.version}`);
19586
+ if (plugin.description) {
19587
+ console.log(` ${plugin.description}`);
19588
+ }
19589
+ }
19590
+ }
19591
+ if (projectPlugins.length > 0) {
19592
+ console.log(`
19593
+ \uD83D\uDCC1 Project Plugins (${projectPlugins.length})
19594
+ `);
19595
+ for (const plugin of projectPlugins) {
19596
+ console.log(` ✓ ${plugin.packageName}@${plugin.version}`);
19597
+ if (plugin.description) {
19598
+ console.log(` ${plugin.description}`);
19599
+ }
19458
19600
  }
19459
19601
  }
19460
19602
  console.log();
@@ -19467,43 +19609,56 @@ var InstallRemoveCommand = {
19467
19609
  describe: "插件包名",
19468
19610
  type: "string",
19469
19611
  demandOption: true
19612
+ }).option("global", {
19613
+ alias: "g",
19614
+ describe: "从全局 ~/.roy-agent/plugins.json 移除",
19615
+ type: "boolean",
19616
+ conflicts: "project"
19617
+ }).option("project", {
19618
+ alias: "l",
19619
+ describe: "从项目 .roy/plugins.json 移除(本地)",
19620
+ type: "boolean",
19621
+ conflicts: "global"
19470
19622
  }).help(),
19471
19623
  handler: (argv) => {
19472
19624
  const name = argv.name;
19473
- const plugins = loadPlugins();
19625
+ const scope = argv.project ? "project" : argv.global ? "global" : detectDefaultScope();
19626
+ const plugins = loadPlugins(scope);
19474
19627
  const index = plugins.findIndex((p) => p.packageName === name || p.name === name);
19475
19628
  if (index === -1) {
19476
19629
  console.log(`
19477
- ⚠️ Plugin '${name}' not found in installed plugins.
19630
+ ⚠️ Plugin '${name}' not found in ${scope} installed plugins.
19478
19631
  `);
19479
19632
  process.exit(1);
19480
19633
  }
19481
19634
  const plugin = plugins[index];
19482
- const pm2 = getPackageManagerCommand();
19483
- const pmParts2 = pm2.split(" ").filter(Boolean);
19484
19635
  console.log(`
19485
- \uD83D\uDDD1️ Removing plugin: ${plugin.packageName}@${plugin.version}
19636
+ \uD83D\uDDD1️ Removing plugin: ${plugin.packageName}@${plugin.version} (${scope})
19486
19637
  `);
19487
- try {
19488
- const result = spawnSync(pmParts2[0], [...pmParts2.slice(1), "uninstall", plugin.packageName], {
19489
- cwd: process.cwd(),
19638
+ if (scope === "project") {
19639
+ const pluginDir = join4(process.cwd(), ".roy", "plugins", plugin.packageName);
19640
+ if (existsSync3(pluginDir)) {
19641
+ spawnSync("rm", ["-rf", pluginDir], { stdio: "inherit", shell: false });
19642
+ console.log(` Removed plugin directory: ${pluginDir}`);
19643
+ }
19644
+ } else {
19645
+ const result = spawnSync("npm", ["uninstall", "-g", plugin.packageName], {
19490
19646
  stdio: "inherit",
19491
19647
  shell: false
19492
19648
  });
19493
19649
  if (result.status !== 0) {
19494
19650
  console.error(`
19495
- ❌ Failed to uninstall package '${plugin.packageName}': exit code ${result.status}
19651
+ ❌ Failed to uninstall package '${plugin.packageName}' globally.
19496
19652
  `);
19497
19653
  process.exit(result.status ?? 1);
19498
19654
  }
19499
- } catch (err) {
19500
- console.error(`
19501
- Failed to uninstall package '${plugin.packageName}': ${err}
19502
- `);
19503
- process.exit(1);
19655
+ const globalNm = join4(homedir3(), ".roy-agent", "node_modules", plugin.packageName);
19656
+ if (existsSync3(globalNm)) {
19657
+ spawnSync("rm", ["-rf", globalNm], { stdio: "inherit", shell: false });
19658
+ }
19504
19659
  }
19505
19660
  plugins.splice(index, 1);
19506
- savePlugins(plugins);
19661
+ savePlugins(plugins, scope);
19507
19662
  console.log(`
19508
19663
  ✅ Removed plugin: ${plugin.packageName}
19509
19664
  `);