replicas-mcp 0.2.0 → 0.2.1

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
@@ -1,39 +1,13 @@
1
1
  #!/usr/bin/env node
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
- }) : x)(function(x) {
11
- if (typeof require !== "undefined") return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
13
- });
14
- var __commonJS = (cb, mod) => function __require2() {
15
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
- };
17
- var __copyProps = (to, from, except, desc) => {
18
- if (from && typeof from === "object" || typeof from === "function") {
19
- for (let key of __getOwnPropNames(from))
20
- if (!__hasOwnProp.call(to, key) && key !== except)
21
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
- }
23
- return to;
24
- };
25
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
- // If the importer is in node compatibility mode or this is not an ESM
27
- // file that has been converted to a CommonJS file using a Babel-
28
- // compatible transform (i.e. "__esModule" has not been set), then set
29
- // "default" to the CommonJS "module.exports" for node compatibility.
30
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
31
- mod
32
- ));
2
+ import {
3
+ __commonJS,
4
+ __require,
5
+ __toESM
6
+ } from "./chunk-MO4EEYFW.js";
33
7
 
34
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
8
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/identity.js
35
9
  var require_identity = __commonJS({
36
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js"(exports) {
10
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/identity.js"(exports) {
37
11
  "use strict";
38
12
  var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
39
13
  var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
@@ -88,9 +62,9 @@ var require_identity = __commonJS({
88
62
  }
89
63
  });
90
64
 
91
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/visit.js
65
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/visit.js
92
66
  var require_visit = __commonJS({
93
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/visit.js"(exports) {
67
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/visit.js"(exports) {
94
68
  "use strict";
95
69
  var identity = require_identity();
96
70
  var BREAK = /* @__PURE__ */ Symbol("break visit");
@@ -246,9 +220,9 @@ var require_visit = __commonJS({
246
220
  }
247
221
  });
248
222
 
249
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
223
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/directives.js
250
224
  var require_directives = __commonJS({
251
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js"(exports) {
225
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/directives.js"(exports) {
252
226
  "use strict";
253
227
  var identity = require_identity();
254
228
  var visit = require_visit();
@@ -417,9 +391,9 @@ var require_directives = __commonJS({
417
391
  }
418
392
  });
419
393
 
420
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
394
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/anchors.js
421
395
  var require_anchors = __commonJS({
422
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js"(exports) {
396
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/anchors.js"(exports) {
423
397
  "use strict";
424
398
  var identity = require_identity();
425
399
  var visit = require_visit();
@@ -487,9 +461,9 @@ var require_anchors = __commonJS({
487
461
  }
488
462
  });
489
463
 
490
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
464
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/applyReviver.js
491
465
  var require_applyReviver = __commonJS({
492
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
466
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
493
467
  "use strict";
494
468
  function applyReviver(reviver, obj, key, val) {
495
469
  if (val && typeof val === "object") {
@@ -537,9 +511,9 @@ var require_applyReviver = __commonJS({
537
511
  }
538
512
  });
539
513
 
540
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
514
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/toJS.js
541
515
  var require_toJS = __commonJS({
542
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js"(exports) {
516
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/toJS.js"(exports) {
543
517
  "use strict";
544
518
  var identity = require_identity();
545
519
  function toJS(value, arg, ctx) {
@@ -567,9 +541,9 @@ var require_toJS = __commonJS({
567
541
  }
568
542
  });
569
543
 
570
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
544
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Node.js
571
545
  var require_Node = __commonJS({
572
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js"(exports) {
546
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Node.js"(exports) {
573
547
  "use strict";
574
548
  var applyReviver = require_applyReviver();
575
549
  var identity = require_identity();
@@ -608,9 +582,9 @@ var require_Node = __commonJS({
608
582
  }
609
583
  });
610
584
 
611
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
585
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Alias.js
612
586
  var require_Alias = __commonJS({
613
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js"(exports) {
587
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Alias.js"(exports) {
614
588
  "use strict";
615
589
  var anchors = require_anchors();
616
590
  var visit = require_visit();
@@ -632,6 +606,8 @@ var require_Alias = __commonJS({
632
606
  * instance of the `source` anchor before this node.
633
607
  */
634
608
  resolve(doc, ctx) {
609
+ if (ctx?.maxAliasCount === 0)
610
+ throw new ReferenceError("Alias resolution is disabled");
635
611
  let nodes;
636
612
  if (ctx?.aliasResolveCache) {
637
613
  nodes = ctx.aliasResolveCache;
@@ -722,9 +698,9 @@ var require_Alias = __commonJS({
722
698
  }
723
699
  });
724
700
 
725
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
701
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Scalar.js
726
702
  var require_Scalar = __commonJS({
727
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
703
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
728
704
  "use strict";
729
705
  var identity = require_identity();
730
706
  var Node = require_Node();
@@ -752,9 +728,9 @@ var require_Scalar = __commonJS({
752
728
  }
753
729
  });
754
730
 
755
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
731
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/createNode.js
756
732
  var require_createNode = __commonJS({
757
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js"(exports) {
733
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/createNode.js"(exports) {
758
734
  "use strict";
759
735
  var Alias = require_Alias();
760
736
  var identity = require_identity();
@@ -827,9 +803,9 @@ var require_createNode = __commonJS({
827
803
  }
828
804
  });
829
805
 
830
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
806
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Collection.js
831
807
  var require_Collection = __commonJS({
832
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js"(exports) {
808
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Collection.js"(exports) {
833
809
  "use strict";
834
810
  var createNode = require_createNode();
835
811
  var identity = require_identity();
@@ -970,9 +946,9 @@ var require_Collection = __commonJS({
970
946
  }
971
947
  });
972
948
 
973
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
949
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyComment.js
974
950
  var require_stringifyComment = __commonJS({
975
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
951
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
976
952
  "use strict";
977
953
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
978
954
  function indentComment(comment, indent) {
@@ -987,9 +963,9 @@ var require_stringifyComment = __commonJS({
987
963
  }
988
964
  });
989
965
 
990
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
966
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/foldFlowLines.js
991
967
  var require_foldFlowLines = __commonJS({
992
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
968
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
993
969
  "use strict";
994
970
  var FOLD_FLOW = "flow";
995
971
  var FOLD_BLOCK = "block";
@@ -1123,9 +1099,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
1123
1099
  }
1124
1100
  });
1125
1101
 
1126
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
1102
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyString.js
1127
1103
  var require_stringifyString = __commonJS({
1128
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
1104
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
1129
1105
  "use strict";
1130
1106
  var Scalar = require_Scalar();
1131
1107
  var foldFlowLines = require_foldFlowLines();
@@ -1406,9 +1382,9 @@ ${indent}`);
1406
1382
  }
1407
1383
  });
1408
1384
 
1409
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
1385
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringify.js
1410
1386
  var require_stringify = __commonJS({
1411
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js"(exports) {
1387
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringify.js"(exports) {
1412
1388
  "use strict";
1413
1389
  var anchors = require_anchors();
1414
1390
  var identity = require_identity();
@@ -1530,9 +1506,9 @@ ${ctx.indent}${str}`;
1530
1506
  }
1531
1507
  });
1532
1508
 
1533
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
1509
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyPair.js
1534
1510
  var require_stringifyPair = __commonJS({
1535
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
1511
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
1536
1512
  "use strict";
1537
1513
  var identity = require_identity();
1538
1514
  var Scalar = require_Scalar();
@@ -1663,9 +1639,9 @@ ${ctx.indent}`;
1663
1639
  }
1664
1640
  });
1665
1641
 
1666
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/log.js
1642
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/log.js
1667
1643
  var require_log = __commonJS({
1668
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/log.js"(exports) {
1644
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/log.js"(exports) {
1669
1645
  "use strict";
1670
1646
  var node_process = __require("process");
1671
1647
  function debug(logLevel, ...messages) {
@@ -1685,9 +1661,9 @@ var require_log = __commonJS({
1685
1661
  }
1686
1662
  });
1687
1663
 
1688
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1664
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1689
1665
  var require_merge = __commonJS({
1690
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
1666
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
1691
1667
  "use strict";
1692
1668
  var identity = require_identity();
1693
1669
  var Scalar = require_Scalar();
@@ -1704,18 +1680,18 @@ var require_merge = __commonJS({
1704
1680
  };
1705
1681
  var isMergeKey = (ctx, key) => (merge.identify(key) || identity.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge.tag && tag.default);
1706
1682
  function addMergeToJSMap(ctx, map, value) {
1707
- value = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
1708
- if (identity.isSeq(value))
1709
- for (const it of value.items)
1683
+ const source = resolveAliasValue(ctx, value);
1684
+ if (identity.isSeq(source))
1685
+ for (const it of source.items)
1710
1686
  mergeValue(ctx, map, it);
1711
- else if (Array.isArray(value))
1712
- for (const it of value)
1687
+ else if (Array.isArray(source))
1688
+ for (const it of source)
1713
1689
  mergeValue(ctx, map, it);
1714
1690
  else
1715
- mergeValue(ctx, map, value);
1691
+ mergeValue(ctx, map, source);
1716
1692
  }
1717
1693
  function mergeValue(ctx, map, value) {
1718
- const source = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
1694
+ const source = resolveAliasValue(ctx, value);
1719
1695
  if (!identity.isMap(source))
1720
1696
  throw new Error("Merge sources must be maps or map aliases");
1721
1697
  const srcMap = source.toJSON(null, ctx, Map);
@@ -1736,15 +1712,18 @@ var require_merge = __commonJS({
1736
1712
  }
1737
1713
  return map;
1738
1714
  }
1715
+ function resolveAliasValue(ctx, value) {
1716
+ return ctx && identity.isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
1717
+ }
1739
1718
  exports.addMergeToJSMap = addMergeToJSMap;
1740
1719
  exports.isMergeKey = isMergeKey;
1741
1720
  exports.merge = merge;
1742
1721
  }
1743
1722
  });
1744
1723
 
1745
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
1724
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/addPairToJSMap.js
1746
1725
  var require_addPairToJSMap = __commonJS({
1747
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
1726
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
1748
1727
  "use strict";
1749
1728
  var log = require_log();
1750
1729
  var merge = require_merge();
@@ -1806,9 +1785,9 @@ var require_addPairToJSMap = __commonJS({
1806
1785
  }
1807
1786
  });
1808
1787
 
1809
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
1788
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Pair.js
1810
1789
  var require_Pair = __commonJS({
1811
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js"(exports) {
1790
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/Pair.js"(exports) {
1812
1791
  "use strict";
1813
1792
  var createNode = require_createNode();
1814
1793
  var stringifyPair = require_stringifyPair();
@@ -1846,9 +1825,9 @@ var require_Pair = __commonJS({
1846
1825
  }
1847
1826
  });
1848
1827
 
1849
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
1828
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyCollection.js
1850
1829
  var require_stringifyCollection = __commonJS({
1851
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
1830
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
1852
1831
  "use strict";
1853
1832
  var identity = require_identity();
1854
1833
  var stringify = require_stringify();
@@ -1997,9 +1976,9 @@ ${indent}${end}`;
1997
1976
  }
1998
1977
  });
1999
1978
 
2000
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
1979
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLMap.js
2001
1980
  var require_YAMLMap = __commonJS({
2002
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
1981
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
2003
1982
  "use strict";
2004
1983
  var stringifyCollection = require_stringifyCollection();
2005
1984
  var addPairToJSMap = require_addPairToJSMap();
@@ -2141,9 +2120,9 @@ var require_YAMLMap = __commonJS({
2141
2120
  }
2142
2121
  });
2143
2122
 
2144
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
2123
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/common/map.js
2145
2124
  var require_map = __commonJS({
2146
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js"(exports) {
2125
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/common/map.js"(exports) {
2147
2126
  "use strict";
2148
2127
  var identity = require_identity();
2149
2128
  var YAMLMap = require_YAMLMap();
@@ -2163,9 +2142,9 @@ var require_map = __commonJS({
2163
2142
  }
2164
2143
  });
2165
2144
 
2166
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
2145
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLSeq.js
2167
2146
  var require_YAMLSeq = __commonJS({
2168
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
2147
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
2169
2148
  "use strict";
2170
2149
  var createNode = require_createNode();
2171
2150
  var stringifyCollection = require_stringifyCollection();
@@ -2279,9 +2258,9 @@ var require_YAMLSeq = __commonJS({
2279
2258
  }
2280
2259
  });
2281
2260
 
2282
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
2261
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/common/seq.js
2283
2262
  var require_seq = __commonJS({
2284
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js"(exports) {
2263
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/common/seq.js"(exports) {
2285
2264
  "use strict";
2286
2265
  var identity = require_identity();
2287
2266
  var YAMLSeq = require_YAMLSeq();
@@ -2301,9 +2280,9 @@ var require_seq = __commonJS({
2301
2280
  }
2302
2281
  });
2303
2282
 
2304
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
2283
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/common/string.js
2305
2284
  var require_string = __commonJS({
2306
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js"(exports) {
2285
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/common/string.js"(exports) {
2307
2286
  "use strict";
2308
2287
  var stringifyString = require_stringifyString();
2309
2288
  var string = {
@@ -2320,9 +2299,9 @@ var require_string = __commonJS({
2320
2299
  }
2321
2300
  });
2322
2301
 
2323
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
2302
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/common/null.js
2324
2303
  var require_null = __commonJS({
2325
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js"(exports) {
2304
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/common/null.js"(exports) {
2326
2305
  "use strict";
2327
2306
  var Scalar = require_Scalar();
2328
2307
  var nullTag = {
@@ -2338,9 +2317,9 @@ var require_null = __commonJS({
2338
2317
  }
2339
2318
  });
2340
2319
 
2341
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
2320
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/core/bool.js
2342
2321
  var require_bool = __commonJS({
2343
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js"(exports) {
2322
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/core/bool.js"(exports) {
2344
2323
  "use strict";
2345
2324
  var Scalar = require_Scalar();
2346
2325
  var boolTag = {
@@ -2362,9 +2341,9 @@ var require_bool = __commonJS({
2362
2341
  }
2363
2342
  });
2364
2343
 
2365
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
2344
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyNumber.js
2366
2345
  var require_stringifyNumber = __commonJS({
2367
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
2346
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
2368
2347
  "use strict";
2369
2348
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
2370
2349
  if (typeof value === "bigint")
@@ -2373,7 +2352,7 @@ var require_stringifyNumber = __commonJS({
2373
2352
  if (!isFinite(num))
2374
2353
  return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
2375
2354
  let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
2376
- if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n)) {
2355
+ if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^-?\d/.test(n) && !n.includes("e")) {
2377
2356
  let i = n.indexOf(".");
2378
2357
  if (i < 0) {
2379
2358
  i = n.length;
@@ -2389,9 +2368,9 @@ var require_stringifyNumber = __commonJS({
2389
2368
  }
2390
2369
  });
2391
2370
 
2392
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
2371
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/core/float.js
2393
2372
  var require_float = __commonJS({
2394
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js"(exports) {
2373
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/core/float.js"(exports) {
2395
2374
  "use strict";
2396
2375
  var Scalar = require_Scalar();
2397
2376
  var stringifyNumber = require_stringifyNumber();
@@ -2435,9 +2414,9 @@ var require_float = __commonJS({
2435
2414
  }
2436
2415
  });
2437
2416
 
2438
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
2417
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/core/int.js
2439
2418
  var require_int = __commonJS({
2440
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js"(exports) {
2419
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/core/int.js"(exports) {
2441
2420
  "use strict";
2442
2421
  var stringifyNumber = require_stringifyNumber();
2443
2422
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2480,9 +2459,9 @@ var require_int = __commonJS({
2480
2459
  }
2481
2460
  });
2482
2461
 
2483
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
2462
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/core/schema.js
2484
2463
  var require_schema = __commonJS({
2485
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js"(exports) {
2464
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/core/schema.js"(exports) {
2486
2465
  "use strict";
2487
2466
  var map = require_map();
2488
2467
  var _null = require_null();
@@ -2508,9 +2487,9 @@ var require_schema = __commonJS({
2508
2487
  }
2509
2488
  });
2510
2489
 
2511
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
2490
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/json/schema.js
2512
2491
  var require_schema2 = __commonJS({
2513
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js"(exports) {
2492
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/json/schema.js"(exports) {
2514
2493
  "use strict";
2515
2494
  var Scalar = require_Scalar();
2516
2495
  var map = require_map();
@@ -2575,9 +2554,9 @@ var require_schema2 = __commonJS({
2575
2554
  }
2576
2555
  });
2577
2556
 
2578
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2557
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2579
2558
  var require_binary = __commonJS({
2580
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
2559
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
2581
2560
  "use strict";
2582
2561
  var node_buffer = __require("buffer");
2583
2562
  var Scalar = require_Scalar();
@@ -2641,9 +2620,9 @@ var require_binary = __commonJS({
2641
2620
  }
2642
2621
  });
2643
2622
 
2644
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2623
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2645
2624
  var require_pairs = __commonJS({
2646
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
2625
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
2647
2626
  "use strict";
2648
2627
  var identity = require_identity();
2649
2628
  var Pair = require_Pair();
@@ -2719,9 +2698,9 @@ ${cn.comment}` : item.comment;
2719
2698
  }
2720
2699
  });
2721
2700
 
2722
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2701
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2723
2702
  var require_omap = __commonJS({
2724
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
2703
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
2725
2704
  "use strict";
2726
2705
  var identity = require_identity();
2727
2706
  var toJS = require_toJS();
@@ -2797,9 +2776,9 @@ var require_omap = __commonJS({
2797
2776
  }
2798
2777
  });
2799
2778
 
2800
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2779
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2801
2780
  var require_bool2 = __commonJS({
2802
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
2781
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
2803
2782
  "use strict";
2804
2783
  var Scalar = require_Scalar();
2805
2784
  function boolStringify({ value, source }, ctx) {
@@ -2829,9 +2808,9 @@ var require_bool2 = __commonJS({
2829
2808
  }
2830
2809
  });
2831
2810
 
2832
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
2811
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/float.js
2833
2812
  var require_float2 = __commonJS({
2834
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
2813
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
2835
2814
  "use strict";
2836
2815
  var Scalar = require_Scalar();
2837
2816
  var stringifyNumber = require_stringifyNumber();
@@ -2878,9 +2857,9 @@ var require_float2 = __commonJS({
2878
2857
  }
2879
2858
  });
2880
2859
 
2881
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
2860
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/int.js
2882
2861
  var require_int2 = __commonJS({
2883
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
2862
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
2884
2863
  "use strict";
2885
2864
  var stringifyNumber = require_stringifyNumber();
2886
2865
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2957,9 +2936,9 @@ var require_int2 = __commonJS({
2957
2936
  }
2958
2937
  });
2959
2938
 
2960
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
2939
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/set.js
2961
2940
  var require_set = __commonJS({
2962
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
2941
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
2963
2942
  "use strict";
2964
2943
  var identity = require_identity();
2965
2944
  var Pair = require_Pair();
@@ -3046,9 +3025,9 @@ var require_set = __commonJS({
3046
3025
  }
3047
3026
  });
3048
3027
 
3049
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
3028
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
3050
3029
  var require_timestamp = __commonJS({
3051
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
3030
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
3052
3031
  "use strict";
3053
3032
  var stringifyNumber = require_stringifyNumber();
3054
3033
  function parseSexagesimal(str, asBigInt) {
@@ -3134,9 +3113,9 @@ var require_timestamp = __commonJS({
3134
3113
  }
3135
3114
  });
3136
3115
 
3137
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3116
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3138
3117
  var require_schema3 = __commonJS({
3139
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
3118
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
3140
3119
  "use strict";
3141
3120
  var map = require_map();
3142
3121
  var _null = require_null();
@@ -3178,9 +3157,9 @@ var require_schema3 = __commonJS({
3178
3157
  }
3179
3158
  });
3180
3159
 
3181
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
3160
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/tags.js
3182
3161
  var require_tags = __commonJS({
3183
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js"(exports) {
3162
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/tags.js"(exports) {
3184
3163
  "use strict";
3185
3164
  var map = require_map();
3186
3165
  var _null = require_null();
@@ -3272,9 +3251,9 @@ var require_tags = __commonJS({
3272
3251
  }
3273
3252
  });
3274
3253
 
3275
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
3254
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/Schema.js
3276
3255
  var require_Schema = __commonJS({
3277
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js"(exports) {
3256
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/schema/Schema.js"(exports) {
3278
3257
  "use strict";
3279
3258
  var identity = require_identity();
3280
3259
  var map = require_map();
@@ -3304,9 +3283,9 @@ var require_Schema = __commonJS({
3304
3283
  }
3305
3284
  });
3306
3285
 
3307
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
3286
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyDocument.js
3308
3287
  var require_stringifyDocument = __commonJS({
3309
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
3288
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
3310
3289
  "use strict";
3311
3290
  var identity = require_identity();
3312
3291
  var stringify = require_stringify();
@@ -3384,9 +3363,9 @@ var require_stringifyDocument = __commonJS({
3384
3363
  }
3385
3364
  });
3386
3365
 
3387
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
3366
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/Document.js
3388
3367
  var require_Document = __commonJS({
3389
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js"(exports) {
3368
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/doc/Document.js"(exports) {
3390
3369
  "use strict";
3391
3370
  var Alias = require_Alias();
3392
3371
  var Collection = require_Collection();
@@ -3693,9 +3672,9 @@ var require_Document = __commonJS({
3693
3672
  }
3694
3673
  });
3695
3674
 
3696
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/errors.js
3675
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/errors.js
3697
3676
  var require_errors = __commonJS({
3698
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/errors.js"(exports) {
3677
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/errors.js"(exports) {
3699
3678
  "use strict";
3700
3679
  var YAMLError = class extends Error {
3701
3680
  constructor(name, pos, code, message) {
@@ -3758,9 +3737,9 @@ ${pointer}
3758
3737
  }
3759
3738
  });
3760
3739
 
3761
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
3740
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-props.js
3762
3741
  var require_resolve_props = __commonJS({
3763
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
3742
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
3764
3743
  "use strict";
3765
3744
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3766
3745
  let spaceBefore = false;
@@ -3892,9 +3871,9 @@ var require_resolve_props = __commonJS({
3892
3871
  }
3893
3872
  });
3894
3873
 
3895
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
3874
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/util-contains-newline.js
3896
3875
  var require_util_contains_newline = __commonJS({
3897
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
3876
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
3898
3877
  "use strict";
3899
3878
  function containsNewline(key) {
3900
3879
  if (!key)
@@ -3934,9 +3913,9 @@ var require_util_contains_newline = __commonJS({
3934
3913
  }
3935
3914
  });
3936
3915
 
3937
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
3916
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/util-flow-indent-check.js
3938
3917
  var require_util_flow_indent_check = __commonJS({
3939
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
3918
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
3940
3919
  "use strict";
3941
3920
  var utilContainsNewline = require_util_contains_newline();
3942
3921
  function flowIndentCheck(indent, fc, onError) {
@@ -3952,9 +3931,9 @@ var require_util_flow_indent_check = __commonJS({
3952
3931
  }
3953
3932
  });
3954
3933
 
3955
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
3934
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/util-map-includes.js
3956
3935
  var require_util_map_includes = __commonJS({
3957
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
3936
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
3958
3937
  "use strict";
3959
3938
  var identity = require_identity();
3960
3939
  function mapIncludes(ctx, items, search) {
@@ -3968,9 +3947,9 @@ var require_util_map_includes = __commonJS({
3968
3947
  }
3969
3948
  });
3970
3949
 
3971
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
3950
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-map.js
3972
3951
  var require_resolve_block_map = __commonJS({
3973
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
3952
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
3974
3953
  "use strict";
3975
3954
  var Pair = require_Pair();
3976
3955
  var YAMLMap = require_YAMLMap();
@@ -4076,9 +4055,9 @@ var require_resolve_block_map = __commonJS({
4076
4055
  }
4077
4056
  });
4078
4057
 
4079
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
4058
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-seq.js
4080
4059
  var require_resolve_block_seq = __commonJS({
4081
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
4060
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
4082
4061
  "use strict";
4083
4062
  var YAMLSeq = require_YAMLSeq();
4084
4063
  var resolveProps = require_resolve_props();
@@ -4127,9 +4106,9 @@ var require_resolve_block_seq = __commonJS({
4127
4106
  }
4128
4107
  });
4129
4108
 
4130
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
4109
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-end.js
4131
4110
  var require_resolve_end = __commonJS({
4132
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
4111
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
4133
4112
  "use strict";
4134
4113
  function resolveEnd(end, offset, reqSpace, onError) {
4135
4114
  let comment = "";
@@ -4170,9 +4149,9 @@ var require_resolve_end = __commonJS({
4170
4149
  }
4171
4150
  });
4172
4151
 
4173
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
4152
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-collection.js
4174
4153
  var require_resolve_flow_collection = __commonJS({
4175
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
4154
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
4176
4155
  "use strict";
4177
4156
  var identity = require_identity();
4178
4157
  var Pair = require_Pair();
@@ -4364,9 +4343,9 @@ var require_resolve_flow_collection = __commonJS({
4364
4343
  }
4365
4344
  });
4366
4345
 
4367
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
4346
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/compose-collection.js
4368
4347
  var require_compose_collection = __commonJS({
4369
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
4348
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
4370
4349
  "use strict";
4371
4350
  var identity = require_identity();
4372
4351
  var Scalar = require_Scalar();
@@ -4429,9 +4408,9 @@ var require_compose_collection = __commonJS({
4429
4408
  }
4430
4409
  });
4431
4410
 
4432
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
4411
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-scalar.js
4433
4412
  var require_resolve_block_scalar = __commonJS({
4434
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
4413
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
4435
4414
  "use strict";
4436
4415
  var Scalar = require_Scalar();
4437
4416
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -4612,9 +4591,9 @@ var require_resolve_block_scalar = __commonJS({
4612
4591
  }
4613
4592
  });
4614
4593
 
4615
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4594
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4616
4595
  var require_resolve_flow_scalar = __commonJS({
4617
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
4596
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
4618
4597
  "use strict";
4619
4598
  var Scalar = require_Scalar();
4620
4599
  var resolveEnd = require_resolve_end();
@@ -4745,7 +4724,7 @@ var require_resolve_flow_scalar = __commonJS({
4745
4724
  while (next === " " || next === " ")
4746
4725
  next = source[++i + 1];
4747
4726
  } else if (next === "x" || next === "u" || next === "U") {
4748
- const length = { x: 2, u: 4, U: 8 }[next];
4727
+ const length = next === "x" ? 2 : next === "u" ? 4 : 8;
4749
4728
  res += parseCharCode(source, i + 1, length, onError);
4750
4729
  i += length;
4751
4730
  } else {
@@ -4820,20 +4799,21 @@ var require_resolve_flow_scalar = __commonJS({
4820
4799
  const cc = source.substr(offset, length);
4821
4800
  const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc);
4822
4801
  const code = ok ? parseInt(cc, 16) : NaN;
4823
- if (isNaN(code)) {
4802
+ try {
4803
+ return String.fromCodePoint(code);
4804
+ } catch {
4824
4805
  const raw = source.substr(offset - 2, length + 2);
4825
4806
  onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
4826
4807
  return raw;
4827
4808
  }
4828
- return String.fromCodePoint(code);
4829
4809
  }
4830
4810
  exports.resolveFlowScalar = resolveFlowScalar;
4831
4811
  }
4832
4812
  });
4833
4813
 
4834
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
4814
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/compose-scalar.js
4835
4815
  var require_compose_scalar = __commonJS({
4836
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
4816
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
4837
4817
  "use strict";
4838
4818
  var identity = require_identity();
4839
4819
  var Scalar = require_Scalar();
@@ -4912,9 +4892,9 @@ var require_compose_scalar = __commonJS({
4912
4892
  }
4913
4893
  });
4914
4894
 
4915
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4895
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4916
4896
  var require_util_empty_scalar_position = __commonJS({
4917
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
4897
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
4918
4898
  "use strict";
4919
4899
  function emptyScalarPosition(offset, before, pos) {
4920
4900
  if (before) {
@@ -4942,9 +4922,9 @@ var require_util_empty_scalar_position = __commonJS({
4942
4922
  }
4943
4923
  });
4944
4924
 
4945
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
4925
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/compose-node.js
4946
4926
  var require_compose_node = __commonJS({
4947
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js"(exports) {
4927
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/compose-node.js"(exports) {
4948
4928
  "use strict";
4949
4929
  var Alias = require_Alias();
4950
4930
  var identity = require_identity();
@@ -5048,9 +5028,9 @@ var require_compose_node = __commonJS({
5048
5028
  }
5049
5029
  });
5050
5030
 
5051
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
5031
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/compose-doc.js
5052
5032
  var require_compose_doc = __commonJS({
5053
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
5033
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
5054
5034
  "use strict";
5055
5035
  var Document = require_Document();
5056
5036
  var composeNode = require_compose_node();
@@ -5091,9 +5071,9 @@ var require_compose_doc = __commonJS({
5091
5071
  }
5092
5072
  });
5093
5073
 
5094
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
5074
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/composer.js
5095
5075
  var require_composer = __commonJS({
5096
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js"(exports) {
5076
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/compose/composer.js"(exports) {
5097
5077
  "use strict";
5098
5078
  var node_process = __require("process");
5099
5079
  var directives = require_directives();
@@ -5297,9 +5277,9 @@ ${end.comment}` : end.comment;
5297
5277
  }
5298
5278
  });
5299
5279
 
5300
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
5280
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/cst-scalar.js
5301
5281
  var require_cst_scalar = __commonJS({
5302
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
5282
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
5303
5283
  "use strict";
5304
5284
  var resolveBlockScalar = require_resolve_block_scalar();
5305
5285
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -5482,9 +5462,9 @@ var require_cst_scalar = __commonJS({
5482
5462
  }
5483
5463
  });
5484
5464
 
5485
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
5465
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/cst-stringify.js
5486
5466
  var require_cst_stringify = __commonJS({
5487
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
5467
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
5488
5468
  "use strict";
5489
5469
  var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
5490
5470
  function stringifyToken(token) {
@@ -5543,9 +5523,9 @@ var require_cst_stringify = __commonJS({
5543
5523
  }
5544
5524
  });
5545
5525
 
5546
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
5526
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/cst-visit.js
5547
5527
  var require_cst_visit = __commonJS({
5548
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
5528
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
5549
5529
  "use strict";
5550
5530
  var BREAK = /* @__PURE__ */ Symbol("break visit");
5551
5531
  var SKIP = /* @__PURE__ */ Symbol("skip children");
@@ -5605,9 +5585,9 @@ var require_cst_visit = __commonJS({
5605
5585
  }
5606
5586
  });
5607
5587
 
5608
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
5588
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/cst.js
5609
5589
  var require_cst = __commonJS({
5610
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js"(exports) {
5590
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/cst.js"(exports) {
5611
5591
  "use strict";
5612
5592
  var cstScalar = require_cst_scalar();
5613
5593
  var cstStringify = require_cst_stringify();
@@ -5707,9 +5687,9 @@ var require_cst = __commonJS({
5707
5687
  }
5708
5688
  });
5709
5689
 
5710
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
5690
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/lexer.js
5711
5691
  var require_lexer = __commonJS({
5712
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js"(exports) {
5692
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/lexer.js"(exports) {
5713
5693
  "use strict";
5714
5694
  var cst = require_cst();
5715
5695
  function isEmpty(ch) {
@@ -6286,9 +6266,9 @@ var require_lexer = __commonJS({
6286
6266
  }
6287
6267
  });
6288
6268
 
6289
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
6269
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/line-counter.js
6290
6270
  var require_line_counter = __commonJS({
6291
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js"(exports) {
6271
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/line-counter.js"(exports) {
6292
6272
  "use strict";
6293
6273
  var LineCounter = class {
6294
6274
  constructor() {
@@ -6317,9 +6297,9 @@ var require_line_counter = __commonJS({
6317
6297
  }
6318
6298
  });
6319
6299
 
6320
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
6300
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/parser.js
6321
6301
  var require_parser = __commonJS({
6322
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js"(exports) {
6302
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/parse/parser.js"(exports) {
6323
6303
  "use strict";
6324
6304
  var node_process = __require("process");
6325
6305
  var cst = require_cst();
@@ -7184,9 +7164,9 @@ var require_parser = __commonJS({
7184
7164
  }
7185
7165
  });
7186
7166
 
7187
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/public-api.js
7167
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/public-api.js
7188
7168
  var require_public_api = __commonJS({
7189
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/public-api.js"(exports) {
7169
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/public-api.js"(exports) {
7190
7170
  "use strict";
7191
7171
  var composer = require_composer();
7192
7172
  var Document = require_Document();
@@ -7281,9 +7261,9 @@ var require_public_api = __commonJS({
7281
7261
  }
7282
7262
  });
7283
7263
 
7284
- // ../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/index.js
7264
+ // ../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/index.js
7285
7265
  var require_dist = __commonJS({
7286
- "../node_modules/.bun/yaml@2.8.3/node_modules/yaml/dist/index.js"(exports) {
7266
+ "../node_modules/.bun/yaml@2.8.4/node_modules/yaml/dist/index.js"(exports) {
7287
7267
  "use strict";
7288
7268
  var composer = require_composer();
7289
7269
  var Document = require_Document();
@@ -7338,6 +7318,9 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
7338
7318
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
7339
7319
  import { z } from "zod";
7340
7320
 
7321
+ // ../shared/src/event.ts
7322
+ var CODEX_QUOTA_STATUS_EVENT_TYPE = "codex-quota-status";
7323
+
7341
7324
  // ../shared/src/pricing.ts
7342
7325
  var PLANS = {
7343
7326
  hobby: {
@@ -7345,31 +7328,47 @@ var PLANS = {
7345
7328
  name: "Hobby",
7346
7329
  monthlyPrice: 0,
7347
7330
  seatPriceCents: 0,
7348
- creditsIncluded: 20,
7349
- features: ["20 hours of usage"]
7331
+ creditsIncluded: 1200,
7332
+ features: [
7333
+ "1,200 minutes of human-initiated workspace usage (one-time)",
7334
+ "1,200 minutes of API + automation usage (one-time)",
7335
+ "Automations (limited to 2)",
7336
+ "Warm pools and warm hooks",
7337
+ "Up to 3 repositories",
7338
+ "Up to 5 environments"
7339
+ ]
7350
7340
  },
7351
7341
  developer: {
7352
7342
  id: "developer",
7353
7343
  name: "Developer",
7354
- monthlyPrice: 30,
7355
- seatPriceCents: 3e3,
7344
+ monthlyPrice: 120,
7345
+ seatPriceCents: 12e3,
7356
7346
  creditsIncluded: 0,
7357
- features: ["Unlimited usage", "API access ($0.0166/min)"]
7347
+ features: [
7348
+ "Unlimited human-initiated workspaces",
7349
+ "5,000 included automation/API minutes per month",
7350
+ "Up to 10 repositories",
7351
+ "Up to 15 environments",
7352
+ "Up to 5 automations",
7353
+ "Warm pools and warm hooks",
7354
+ "API access"
7355
+ ]
7358
7356
  },
7359
7357
  team: {
7360
7358
  id: "team",
7361
7359
  name: "Team",
7362
- monthlyPrice: 120,
7363
- seatPriceCents: 12e3,
7360
+ monthlyPrice: 300,
7361
+ seatPriceCents: 3e4,
7364
7362
  creditsIncluded: 0,
7365
7363
  features: [
7366
- "Unlimited usage",
7364
+ "Unlimited human-initiated workspaces",
7365
+ "15,000 included automation/API minutes per month",
7366
+ "Unlimited repositories",
7367
7367
  "Unlimited automations",
7368
- "API access",
7369
7368
  "Higher API rate limits",
7370
- "Warm hooks and pool access",
7371
- "Shared Slack support channel",
7372
- "Optional add-ons for higher resources, warm pools, rate limits, and SOC 2"
7369
+ "Warm pools and warm hooks",
7370
+ "Auto-upgraded sandbox resources (32 GB disk, 16 GB memory)",
7371
+ "Shared Slack support channel"
7373
7372
  ]
7374
7373
  },
7375
7374
  enterprise: {
@@ -7406,11 +7405,22 @@ var import_yaml = __toESM(require_dist());
7406
7405
  // ../shared/src/warm-hooks.ts
7407
7406
  var DEFAULT_WARM_HOOK_TIMEOUT_MS = 5 * 60 * 1e3;
7408
7407
  var MAX_WARM_HOOK_TIMEOUT_MS = 15 * 60 * 1e3;
7408
+ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
7409
7409
 
7410
7410
  // ../shared/src/routes/workspaces.ts
7411
7411
  var WORKSPACE_FILE_UPLOAD_MAX_SIZE_BYTES = 20 * 1024 * 1024;
7412
7412
  var WORKSPACE_FILE_CONTENT_MAX_SIZE_BYTES = 1 * 1024 * 1024;
7413
7413
 
7414
+ // ../shared/src/audit-log.ts
7415
+ var AUDIT_LOG_ACTION = {
7416
+ CREATE: "create",
7417
+ UPDATE: "update",
7418
+ DELETE: "delete",
7419
+ CONNECT: "connect",
7420
+ DISCONNECT: "disconnect"
7421
+ };
7422
+ var AUDIT_LOG_ACTIONS = Object.values(AUDIT_LOG_ACTION);
7423
+
7414
7424
  // ../shared/src/display-message/parsers/codex-parser.ts
7415
7425
  function safeJsonParse(str, fallback) {
7416
7426
  try {
@@ -7487,6 +7497,22 @@ function parseCodexEvents(events) {
7487
7497
  const pendingCommands = /* @__PURE__ */ new Map();
7488
7498
  const pendingPatches = /* @__PURE__ */ new Map();
7489
7499
  events.forEach((event, eventIndex) => {
7500
+ if (event.type === CODEX_QUOTA_STATUS_EVENT_TYPE) {
7501
+ const state = event.payload?.state;
7502
+ if (state) {
7503
+ messages.push({
7504
+ id: `codex-quota-${event.timestamp}-${eventIndex}`,
7505
+ type: "quota_status",
7506
+ provider: "codex",
7507
+ state,
7508
+ balance: event.payload?.balance ?? null,
7509
+ rateLimitResetType: event.payload?.rateLimitResetType ?? null,
7510
+ planType: event.payload?.planType ?? null,
7511
+ timestamp: event.timestamp
7512
+ });
7513
+ }
7514
+ return;
7515
+ }
7490
7516
  if (event.type === "event_msg" && event.payload?.type === "user_message") {
7491
7517
  messages.push({
7492
7518
  id: `user-${event.timestamp}-${eventIndex}`,
@@ -7678,11 +7704,11 @@ function parseClaudeEvents(events, parentToolUseId) {
7678
7704
  timestamp: event.timestamp
7679
7705
  });
7680
7706
  }
7681
- if (block.type === "thinking" && block.text) {
7707
+ if (block.type === "thinking" && block.thinking) {
7682
7708
  messages.push({
7683
7709
  id: `reasoning-${event.timestamp}-${messages.length}`,
7684
7710
  type: "reasoning",
7685
- content: block.text,
7711
+ content: block.thinking,
7686
7712
  status: "completed",
7687
7713
  timestamp: event.timestamp
7688
7714
  });
@@ -7799,6 +7825,32 @@ function parseClaudeEvents(events, parentToolUseId) {
7799
7825
  status: "in_progress",
7800
7826
  timestamp: event.timestamp
7801
7827
  });
7828
+ } else if (toolName === "mcp__relay-subagent-tools__spawn_agent") {
7829
+ const inputObj = typeof toolInput === "string" ? safeJsonParse2(toolInput, {}) : toolInput;
7830
+ messages.push({
7831
+ id: `subagent-${event.timestamp}-${messages.length}`,
7832
+ type: "subagent",
7833
+ toolUseId,
7834
+ description: inputObj.title || `Relay subagent (${inputObj.provider || "unknown"})`,
7835
+ prompt: inputObj.prompt || "",
7836
+ subagentType: inputObj.provider || "unknown",
7837
+ model: inputObj.model,
7838
+ status: "in_progress",
7839
+ nestedEvents: [],
7840
+ isChatBased: true,
7841
+ timestamp: event.timestamp
7842
+ });
7843
+ } else if (toolName === "mcp__relay-subagent-tools__delete_agent") {
7844
+ const inputObj = typeof toolInput === "string" ? safeJsonParse2(toolInput, {}) : toolInput;
7845
+ messages.push({
7846
+ id: `toolcall-${event.timestamp}-${messages.length}`,
7847
+ type: "tool_call",
7848
+ server: "relay-subagent-tools",
7849
+ tool: "delete_agent",
7850
+ input: inputObj,
7851
+ status: "in_progress",
7852
+ timestamp: event.timestamp
7853
+ });
7802
7854
  } else {
7803
7855
  messages.push({
7804
7856
  id: `toolcall-${event.timestamp}-${messages.length}`,
@@ -7860,6 +7912,12 @@ function parseClaudeEvents(events, parentToolUseId) {
7860
7912
  } else if (message.type === "subagent") {
7861
7913
  message.output = resultContent;
7862
7914
  message.status = status;
7915
+ if (!message.chatId && resultContent) {
7916
+ const parsed = safeJsonParse2(resultContent, {});
7917
+ if (parsed.chatId) {
7918
+ message.chatId = parsed.chatId;
7919
+ }
7920
+ }
7863
7921
  }
7864
7922
  }
7865
7923
  }
@@ -7871,14 +7929,20 @@ function parseClaudeEvents(events, parentToolUseId) {
7871
7929
  function parseAgentEvents(events, agentType) {
7872
7930
  if (agentType === "codex") {
7873
7931
  return parseCodexEvents(events);
7874
- } else if (agentType === "claude") {
7875
- return parseClaudeEvents(events);
7876
7932
  }
7877
- return [];
7933
+ return parseClaudeEvents(events);
7878
7934
  }
7879
7935
 
7936
+ // ../shared/src/object-store/types.ts
7937
+ var MEDIA_KIND = {
7938
+ IMAGE: "image",
7939
+ VIDEO: "video",
7940
+ AUDIO: "audio"
7941
+ };
7942
+ var MEDIA_KINDS = [MEDIA_KIND.IMAGE, MEDIA_KIND.VIDEO, MEDIA_KIND.AUDIO];
7943
+
7880
7944
  // src/index.ts
7881
- var API_URL = process.env.REPLICAS_API_URL || "https://api.replicas.dev";
7945
+ var API_URL = process.env.REPLICAS_API_URL || "https://api.tryreplicas.com";
7882
7946
  var API_KEY = process.env.REPLICAS_API_KEY;
7883
7947
  if (!API_KEY) {
7884
7948
  console.error("REPLICAS_API_KEY environment variable required");
@@ -7910,7 +7974,7 @@ function result(data, isError = false) {
7910
7974
  }
7911
7975
  var server = new McpServer({
7912
7976
  name: "replicas-mcp",
7913
- version: "0.2.0"
7977
+ version: "0.2.1"
7914
7978
  });
7915
7979
  var registerTool = server.registerTool.bind(server);
7916
7980
  registerTool(