@anvailabs/agentbrowser-mcp 1.8.2 → 1.8.3

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,12 +1,10 @@
1
- // dist/index.js
2
- import { readFileSync } from "node:fs";
3
- import { dirname, join } from "node:path";
4
- import { fileURLToPath } from "node:url";
5
1
  var __defProp = Object.defineProperty;
6
2
  var __export = (target, all) => {
7
3
  for (var name in all)
8
4
  __defProp(target, name, { get: all[name], enumerable: true });
9
5
  };
6
+
7
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
10
8
  var value_exports = {};
11
9
  __export(value_exports, {
12
10
  HasPropertyKey: () => HasPropertyKey,
@@ -74,6 +72,8 @@ function IsUint8Array(value) {
74
72
  function IsUndefined(value) {
75
73
  return value === void 0;
76
74
  }
75
+
76
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs
77
77
  function ArrayType(value) {
78
78
  return value.map((value2) => Visit(value2));
79
79
  }
@@ -102,9 +102,13 @@ function Visit(value) {
102
102
  function Clone(value) {
103
103
  return Visit(value);
104
104
  }
105
+
106
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs
105
107
  function CloneType(schema, options) {
106
108
  return options === void 0 ? Clone(schema) : Clone({ ...options, ...schema });
107
109
  }
110
+
111
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs
108
112
  function IsAsyncIterator2(value) {
109
113
  return IsObject2(value) && globalThis.Symbol.asyncIterator in value;
110
114
  }
@@ -159,6 +163,8 @@ function IsSymbol2(value) {
159
163
  function IsValueType(value) {
160
164
  return IsBigInt2(value) || IsBoolean2(value) || IsNull2(value) || IsNumber2(value) || IsString2(value) || IsSymbol2(value) || IsUndefined2(value);
161
165
  }
166
+
167
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/system/policy.mjs
162
168
  var TypeSystemPolicy;
163
169
  (function(TypeSystemPolicy2) {
164
170
  TypeSystemPolicy2.InstanceMode = "default";
@@ -189,6 +195,8 @@ var TypeSystemPolicy;
189
195
  }
190
196
  TypeSystemPolicy2.IsVoidLike = IsVoidLike;
191
197
  })(TypeSystemPolicy || (TypeSystemPolicy = {}));
198
+
199
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs
192
200
  function ImmutableArray(value) {
193
201
  return globalThis.Object.freeze(value).map((value2) => Immutable(value2));
194
202
  }
@@ -214,6 +222,8 @@ function ImmutableObject(value) {
214
222
  function Immutable(value) {
215
223
  return IsArray(value) ? ImmutableArray(value) : IsDate(value) ? ImmutableDate(value) : IsUint8Array(value) ? ImmutableUint8Array(value) : IsRegExp(value) ? ImmutableRegExp(value) : IsObject(value) ? ImmutableObject(value) : value;
216
224
  }
225
+
226
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs
217
227
  function CreateType(schema, options) {
218
228
  const result = options !== void 0 ? { ...options, ...schema } : schema;
219
229
  switch (TypeSystemPolicy.InstanceMode) {
@@ -225,16 +235,22 @@ function CreateType(schema, options) {
225
235
  return result;
226
236
  }
227
237
  }
238
+
239
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs
228
240
  var TypeBoxError = class extends Error {
229
241
  constructor(message) {
230
242
  super(message);
231
243
  }
232
244
  };
245
+
246
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs
233
247
  var TransformKind = /* @__PURE__ */ Symbol.for("TypeBox.Transform");
234
248
  var ReadonlyKind = /* @__PURE__ */ Symbol.for("TypeBox.Readonly");
235
249
  var OptionalKind = /* @__PURE__ */ Symbol.for("TypeBox.Optional");
236
250
  var Hint = /* @__PURE__ */ Symbol.for("TypeBox.Hint");
237
251
  var Kind = /* @__PURE__ */ Symbol.for("TypeBox.Kind");
252
+
253
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs
238
254
  function IsReadonly(value) {
239
255
  return IsObject(value) && value[ReadonlyKind] === "Readonly";
240
256
  }
@@ -364,6 +380,8 @@ function IsKind(value) {
364
380
  function IsSchema(value) {
365
381
  return IsAny(value) || IsArgument(value) || IsArray3(value) || IsBoolean3(value) || IsBigInt3(value) || IsAsyncIterator3(value) || IsComputed(value) || IsConstructor(value) || IsDate3(value) || IsFunction3(value) || IsInteger2(value) || IsIntersect(value) || IsIterator3(value) || IsLiteral(value) || IsMappedKey(value) || IsMappedResult(value) || IsNever(value) || IsNot(value) || IsNull3(value) || IsNumber3(value) || IsObject3(value) || IsPromise2(value) || IsRecord(value) || IsRef(value) || IsRegExp2(value) || IsString3(value) || IsSymbol3(value) || IsTemplateLiteral(value) || IsThis(value) || IsTuple(value) || IsUndefined3(value) || IsUnion(value) || IsUint8Array3(value) || IsUnknown(value) || IsUnsafe(value) || IsVoid(value) || IsKind(value);
366
382
  }
383
+
384
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs
367
385
  var type_exports = {};
368
386
  __export(type_exports, {
369
387
  IsAny: () => IsAny2,
@@ -654,6 +672,8 @@ function IsKind2(value) {
654
672
  function IsSchema2(value) {
655
673
  return IsObject(value) && (IsAny2(value) || IsArgument2(value) || IsArray4(value) || IsBoolean4(value) || IsBigInt4(value) || IsAsyncIterator4(value) || IsComputed2(value) || IsConstructor2(value) || IsDate4(value) || IsFunction4(value) || IsInteger3(value) || IsIntersect2(value) || IsIterator4(value) || IsLiteral2(value) || IsMappedKey2(value) || IsMappedResult2(value) || IsNever2(value) || IsNot2(value) || IsNull4(value) || IsNumber4(value) || IsObject4(value) || IsPromise3(value) || IsRecord2(value) || IsRef2(value) || IsRegExp3(value) || IsString4(value) || IsSymbol4(value) || IsTemplateLiteral2(value) || IsThis2(value) || IsTuple2(value) || IsUndefined4(value) || IsUnion2(value) || IsUint8Array4(value) || IsUnknown2(value) || IsUnsafe2(value) || IsVoid2(value) || IsKind2(value));
656
674
  }
675
+
676
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs
657
677
  var PatternBoolean = "(true|false)";
658
678
  var PatternNumber = "(0|[1-9][0-9]*)";
659
679
  var PatternString = "(.*)";
@@ -662,6 +682,8 @@ var PatternBooleanExact = `^${PatternBoolean}$`;
662
682
  var PatternNumberExact = `^${PatternNumber}$`;
663
683
  var PatternStringExact = `^${PatternString}$`;
664
684
  var PatternNeverExact = `^${PatternNever}$`;
685
+
686
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs
665
687
  var format_exports = {};
666
688
  __export(format_exports, {
667
689
  Clear: () => Clear,
@@ -690,6 +712,8 @@ function Set2(format, func) {
690
712
  function Get(format) {
691
713
  return map.get(format);
692
714
  }
715
+
716
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs
693
717
  var type_exports2 = {};
694
718
  __export(type_exports2, {
695
719
  Clear: () => Clear2,
@@ -718,6 +742,8 @@ function Set3(kind, func) {
718
742
  function Get2(kind) {
719
743
  return map2.get(kind);
720
744
  }
745
+
746
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs
721
747
  function SetIncludes(T, S) {
722
748
  return T.includes(S);
723
749
  }
@@ -741,21 +767,33 @@ function SetUnionMany(T) {
741
767
  Acc.push(...L);
742
768
  return Acc;
743
769
  }
770
+
771
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs
744
772
  function Any(options) {
745
773
  return CreateType({ [Kind]: "Any" }, options);
746
774
  }
775
+
776
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs
747
777
  function Array2(items, options) {
748
778
  return CreateType({ [Kind]: "Array", type: "array", items }, options);
749
779
  }
780
+
781
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs
750
782
  function Argument(index) {
751
783
  return CreateType({ [Kind]: "Argument", index });
752
784
  }
785
+
786
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs
753
787
  function AsyncIterator(items, options) {
754
788
  return CreateType({ [Kind]: "AsyncIterator", type: "AsyncIterator", items }, options);
755
789
  }
790
+
791
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs
756
792
  function Computed(target, parameters, options) {
757
793
  return CreateType({ [Kind]: "Computed", target, parameters }, options);
758
794
  }
795
+
796
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs
759
797
  function DiscardKey(value, key) {
760
798
  const { [key]: _, ...rest } = value;
761
799
  return rest;
@@ -763,24 +801,36 @@ function DiscardKey(value, key) {
763
801
  function Discard(value, keys) {
764
802
  return keys.reduce((acc, key) => DiscardKey(acc, key), value);
765
803
  }
804
+
805
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs
766
806
  function Never(options) {
767
807
  return CreateType({ [Kind]: "Never", not: {} }, options);
768
808
  }
809
+
810
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs
769
811
  function MappedResult(properties) {
770
812
  return CreateType({
771
813
  [Kind]: "MappedResult",
772
814
  properties
773
815
  });
774
816
  }
817
+
818
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs
775
819
  function Constructor(parameters, returns, options) {
776
820
  return CreateType({ [Kind]: "Constructor", type: "Constructor", parameters, returns }, options);
777
821
  }
822
+
823
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs
778
824
  function Function(parameters, returns, options) {
779
825
  return CreateType({ [Kind]: "Function", type: "Function", parameters, returns }, options);
780
826
  }
827
+
828
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs
781
829
  function UnionCreate(T, options) {
782
830
  return CreateType({ [Kind]: "Union", anyOf: T }, options);
783
831
  }
832
+
833
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs
784
834
  function IsUnionOptional(types) {
785
835
  return types.some((type) => IsOptional(type));
786
836
  }
@@ -797,9 +847,13 @@ function ResolveUnion(types, options) {
797
847
  function UnionEvaluated(T, options) {
798
848
  return T.length === 1 ? CreateType(T[0], options) : T.length === 0 ? Never(options) : ResolveUnion(T, options);
799
849
  }
850
+
851
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs
800
852
  function Union(types, options) {
801
853
  return types.length === 0 ? Never(options) : types.length === 1 ? CreateType(types[0], options) : UnionCreate(types, options);
802
854
  }
855
+
856
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs
803
857
  var TemplateLiteralParserError = class extends TypeBoxError {
804
858
  };
805
859
  function Unescape(pattern) {
@@ -922,6 +976,8 @@ function TemplateLiteralParse(pattern) {
922
976
  function TemplateLiteralParseExact(pattern) {
923
977
  return TemplateLiteralParse(pattern.slice(1, pattern.length - 1));
924
978
  }
979
+
980
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs
925
981
  var TemplateLiteralFiniteError = class extends TypeBoxError {
926
982
  };
927
983
  function IsNumberExpression(expression) {
@@ -942,6 +998,8 @@ function IsTemplateLiteralFinite(schema) {
942
998
  const expression = TemplateLiteralParseExact(schema.pattern);
943
999
  return IsTemplateLiteralExpressionFinite(expression);
944
1000
  }
1001
+
1002
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs
945
1003
  var TemplateLiteralGenerateError = class extends TypeBoxError {
946
1004
  };
947
1005
  function* GenerateReduce(buffer) {
@@ -972,6 +1030,8 @@ function TemplateLiteralGenerate(schema) {
972
1030
  const expression = TemplateLiteralParseExact(schema.pattern);
973
1031
  return IsTemplateLiteralExpressionFinite(expression) ? [...TemplateLiteralExpressionGenerate(expression)] : [];
974
1032
  }
1033
+
1034
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs
975
1035
  function Literal(value, options) {
976
1036
  return CreateType({
977
1037
  [Kind]: "Literal",
@@ -979,18 +1039,28 @@ function Literal(value, options) {
979
1039
  type: typeof value
980
1040
  }, options);
981
1041
  }
1042
+
1043
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs
982
1044
  function Boolean2(options) {
983
1045
  return CreateType({ [Kind]: "Boolean", type: "boolean" }, options);
984
1046
  }
1047
+
1048
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs
985
1049
  function BigInt2(options) {
986
1050
  return CreateType({ [Kind]: "BigInt", type: "bigint" }, options);
987
1051
  }
1052
+
1053
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs
988
1054
  function Number2(options) {
989
1055
  return CreateType({ [Kind]: "Number", type: "number" }, options);
990
1056
  }
1057
+
1058
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs
991
1059
  function String2(options) {
992
1060
  return CreateType({ [Kind]: "String", type: "string" }, options);
993
1061
  }
1062
+
1063
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs
994
1064
  function* FromUnion(syntax) {
995
1065
  const trim = syntax.trim().replace(/"|'/g, "");
996
1066
  return trim === "boolean" ? yield Boolean2() : trim === "number" ? yield Number2() : trim === "bigint" ? yield BigInt2() : trim === "string" ? yield String2() : yield (() => {
@@ -1026,6 +1096,8 @@ function* FromSyntax(syntax) {
1026
1096
  function TemplateLiteralSyntax(syntax) {
1027
1097
  return [...FromSyntax(syntax)];
1028
1098
  }
1099
+
1100
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs
1029
1101
  var TemplateLiteralPatternError = class extends TypeBoxError {
1030
1102
  };
1031
1103
  function Escape(value) {
@@ -1039,15 +1111,21 @@ function Visit2(schema, acc) {
1039
1111
  function TemplateLiteralPattern(kinds) {
1040
1112
  return `^${kinds.map((schema) => Visit2(schema, "")).join("")}$`;
1041
1113
  }
1114
+
1115
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs
1042
1116
  function TemplateLiteralToUnion(schema) {
1043
1117
  const R = TemplateLiteralGenerate(schema);
1044
1118
  const L = R.map((S) => Literal(S));
1045
1119
  return UnionEvaluated(L);
1046
1120
  }
1121
+
1122
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs
1047
1123
  function TemplateLiteral(unresolved, options) {
1048
1124
  const pattern = IsString(unresolved) ? TemplateLiteralPattern(TemplateLiteralSyntax(unresolved)) : TemplateLiteralPattern(unresolved);
1049
1125
  return CreateType({ [Kind]: "TemplateLiteral", type: "string", pattern }, options);
1050
1126
  }
1127
+
1128
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs
1051
1129
  function FromTemplateLiteral(templateLiteral) {
1052
1130
  const keys = TemplateLiteralGenerate(templateLiteral);
1053
1131
  return keys.map((key) => key.toString());
@@ -1064,6 +1142,8 @@ function FromLiteral(literalValue) {
1064
1142
  function IndexPropertyKeys(type) {
1065
1143
  return [...new Set(IsTemplateLiteral(type) ? FromTemplateLiteral(type) : IsUnion(type) ? FromUnion2(type.anyOf) : IsLiteral(type) ? FromLiteral(type.const) : IsNumber3(type) ? ["[number]"] : IsInteger2(type) ? ["[number]"] : [])];
1066
1144
  }
1145
+
1146
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs
1067
1147
  function FromProperties(type, properties, options) {
1068
1148
  const result = {};
1069
1149
  for (const K2 of Object.getOwnPropertyNames(properties)) {
@@ -1078,6 +1158,8 @@ function IndexFromMappedResult(type, mappedResult, options) {
1078
1158
  const properties = FromMappedResult(type, mappedResult, options);
1079
1159
  return MappedResult(properties);
1080
1160
  }
1161
+
1162
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs
1081
1163
  function FromRest(types, key) {
1082
1164
  return types.map((type) => IndexFromPropertyKey(type, key));
1083
1165
  }
@@ -1124,6 +1206,8 @@ function Index(type, key, options) {
1124
1206
  return IndexFromMappedKey(type, key, options);
1125
1207
  return CreateType(IsSchema(key) ? FromSchema(type, IndexPropertyKeys(key)) : FromSchema(type, key), options);
1126
1208
  }
1209
+
1210
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs
1127
1211
  function MappedIndexPropertyKey(type, key, options) {
1128
1212
  return { [key]: Index(type, [key], Clone(options)) };
1129
1213
  }
@@ -1139,9 +1223,13 @@ function IndexFromMappedKey(type, mappedKey, options) {
1139
1223
  const properties = MappedIndexProperties(type, mappedKey, options);
1140
1224
  return MappedResult(properties);
1141
1225
  }
1226
+
1227
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs
1142
1228
  function Iterator(items, options) {
1143
1229
  return CreateType({ [Kind]: "Iterator", type: "Iterator", items }, options);
1144
1230
  }
1231
+
1232
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs
1145
1233
  function RequiredArray(properties) {
1146
1234
  return globalThis.Object.keys(properties).filter((key) => !IsOptional(properties[key]));
1147
1235
  }
@@ -1151,9 +1239,13 @@ function _Object_(properties, options) {
1151
1239
  return CreateType(schema, options);
1152
1240
  }
1153
1241
  var Object2 = _Object_;
1242
+
1243
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs
1154
1244
  function Promise2(item, options) {
1155
1245
  return CreateType({ [Kind]: "Promise", type: "Promise", item }, options);
1156
1246
  }
1247
+
1248
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs
1157
1249
  function RemoveReadonly(schema) {
1158
1250
  return CreateType(Discard(schema, [ReadonlyKind]));
1159
1251
  }
@@ -1167,6 +1259,8 @@ function Readonly(schema, enable) {
1167
1259
  const F = enable ?? true;
1168
1260
  return IsMappedResult(schema) ? ReadonlyFromMappedResult(schema, F) : ReadonlyWithFlag(schema, F);
1169
1261
  }
1262
+
1263
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs
1170
1264
  function FromProperties2(K, F) {
1171
1265
  const Acc = {};
1172
1266
  for (const K2 of globalThis.Object.getOwnPropertyNames(K))
@@ -1180,9 +1274,13 @@ function ReadonlyFromMappedResult(R, F) {
1180
1274
  const P = FromMappedResult2(R, F);
1181
1275
  return MappedResult(P);
1182
1276
  }
1277
+
1278
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs
1183
1279
  function Tuple(types, options) {
1184
1280
  return CreateType(types.length > 0 ? { [Kind]: "Tuple", type: "array", items: types, additionalItems: false, minItems: types.length, maxItems: types.length } : { [Kind]: "Tuple", type: "array", minItems: types.length, maxItems: types.length }, options);
1185
1281
  }
1282
+
1283
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs
1186
1284
  function FromMappedResult3(K, P) {
1187
1285
  return K in P ? FromSchemaType(K, P[K]) : MappedResult(P);
1188
1286
  }
@@ -1236,6 +1334,8 @@ function Mapped(key, map3, options) {
1236
1334
  const R = MappedFunctionReturnType(K, RT);
1237
1335
  return Object2(R, options);
1238
1336
  }
1337
+
1338
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs
1239
1339
  function RemoveOptional(schema) {
1240
1340
  return CreateType(Discard(schema, [OptionalKind]));
1241
1341
  }
@@ -1249,6 +1349,8 @@ function Optional(schema, enable) {
1249
1349
  const F = enable ?? true;
1250
1350
  return IsMappedResult(schema) ? OptionalFromMappedResult(schema, F) : OptionalWithFlag(schema, F);
1251
1351
  }
1352
+
1353
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs
1252
1354
  function FromProperties4(P, F) {
1253
1355
  const Acc = {};
1254
1356
  for (const K2 of globalThis.Object.getOwnPropertyNames(P))
@@ -1262,11 +1364,15 @@ function OptionalFromMappedResult(R, F) {
1262
1364
  const P = FromMappedResult4(R, F);
1263
1365
  return MappedResult(P);
1264
1366
  }
1367
+
1368
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs
1265
1369
  function IntersectCreate(T, options = {}) {
1266
1370
  const allObjects = T.every((schema) => IsObject3(schema));
1267
1371
  const clonedUnevaluatedProperties = IsSchema(options.unevaluatedProperties) ? { unevaluatedProperties: options.unevaluatedProperties } : {};
1268
1372
  return CreateType(options.unevaluatedProperties === false || IsSchema(options.unevaluatedProperties) || allObjects ? { ...clonedUnevaluatedProperties, [Kind]: "Intersect", type: "object", allOf: T } : { ...clonedUnevaluatedProperties, [Kind]: "Intersect", allOf: T }, options);
1269
1373
  }
1374
+
1375
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs
1270
1376
  function IsIntersectOptional(types) {
1271
1377
  return types.every((left) => IsOptional(left));
1272
1378
  }
@@ -1288,6 +1394,8 @@ function IntersectEvaluated(types, options = {}) {
1288
1394
  throw new Error("Cannot intersect transform types");
1289
1395
  return ResolveIntersect(types, options);
1290
1396
  }
1397
+
1398
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs
1291
1399
  function Intersect(types, options) {
1292
1400
  if (types.length === 1)
1293
1401
  return CreateType(types[0], options);
@@ -1297,12 +1405,16 @@ function Intersect(types, options) {
1297
1405
  throw new Error("Cannot intersect transform types");
1298
1406
  return IntersectCreate(types, options);
1299
1407
  }
1408
+
1409
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs
1300
1410
  function Ref(...args) {
1301
1411
  const [$ref, options] = typeof args[0] === "string" ? [args[0], args[1]] : [args[0].$id, args[1]];
1302
1412
  if (typeof $ref !== "string")
1303
1413
  throw new TypeBoxError("Ref: $ref must be a string");
1304
1414
  return CreateType({ [Kind]: "Ref", $ref }, options);
1305
1415
  }
1416
+
1417
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs
1306
1418
  function FromComputed(target, parameters) {
1307
1419
  return Computed("Awaited", [Computed(target, parameters)]);
1308
1420
  }
@@ -1324,6 +1436,8 @@ function FromRest3(types) {
1324
1436
  function Awaited(type, options) {
1325
1437
  return CreateType(IsComputed(type) ? FromComputed(type.target, type.parameters) : IsIntersect(type) ? FromIntersect2(type.allOf) : IsUnion(type) ? FromUnion4(type.anyOf) : IsPromise2(type) ? FromPromise(type.item) : IsRef(type) ? FromRef(type.$ref) : type, options);
1326
1438
  }
1439
+
1440
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs
1327
1441
  function FromRest4(types) {
1328
1442
  const result = [];
1329
1443
  for (const L of types)
@@ -1368,6 +1482,8 @@ function KeyOfPattern(schema) {
1368
1482
  const pattern = keys.map((key) => `(${key})`);
1369
1483
  return `^(${pattern.join("|")})$`;
1370
1484
  }
1485
+
1486
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs
1371
1487
  function FromComputed2(target, parameters) {
1372
1488
  return Computed("KeyOf", [Computed(target, parameters)]);
1373
1489
  }
@@ -1386,6 +1502,8 @@ function KeyOfPropertyKeysToRest(propertyKeys) {
1386
1502
  function KeyOf(type, options) {
1387
1503
  return IsComputed(type) ? FromComputed2(type.target, type.parameters) : IsRef(type) ? FromRef2(type.$ref) : IsMappedResult(type) ? KeyOfFromMappedResult(type, options) : KeyOfFromType(type, options);
1388
1504
  }
1505
+
1506
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs
1389
1507
  function FromProperties6(properties, options) {
1390
1508
  const result = {};
1391
1509
  for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
@@ -1399,11 +1517,15 @@ function KeyOfFromMappedResult(mappedResult, options) {
1399
1517
  const properties = FromMappedResult5(mappedResult, options);
1400
1518
  return MappedResult(properties);
1401
1519
  }
1520
+
1521
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.mjs
1402
1522
  function KeyOfPropertyEntries(schema) {
1403
1523
  const keys = KeyOfPropertyKeys(schema);
1404
1524
  const schemas = IndexFromPropertyKeys(schema, keys);
1405
1525
  return keys.map((_, index) => [keys[index], schemas[index]]);
1406
1526
  }
1527
+
1528
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs
1407
1529
  function CompositeKeys(T) {
1408
1530
  const Acc = [];
1409
1531
  for (const L of T)
@@ -1432,24 +1554,38 @@ function Composite(T, options) {
1432
1554
  const R = Object2(P, options);
1433
1555
  return R;
1434
1556
  }
1557
+
1558
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs
1435
1559
  function Date2(options) {
1436
1560
  return CreateType({ [Kind]: "Date", type: "Date" }, options);
1437
1561
  }
1562
+
1563
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs
1438
1564
  function Null(options) {
1439
1565
  return CreateType({ [Kind]: "Null", type: "null" }, options);
1440
1566
  }
1567
+
1568
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs
1441
1569
  function Symbol2(options) {
1442
1570
  return CreateType({ [Kind]: "Symbol", type: "symbol" }, options);
1443
1571
  }
1572
+
1573
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs
1444
1574
  function Undefined(options) {
1445
1575
  return CreateType({ [Kind]: "Undefined", type: "undefined" }, options);
1446
1576
  }
1577
+
1578
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs
1447
1579
  function Uint8Array2(options) {
1448
1580
  return CreateType({ [Kind]: "Uint8Array", type: "Uint8Array" }, options);
1449
1581
  }
1582
+
1583
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs
1450
1584
  function Unknown(options) {
1451
1585
  return CreateType({ [Kind]: "Unknown" }, options);
1452
1586
  }
1587
+
1588
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs
1453
1589
  function FromArray3(T) {
1454
1590
  return T.map((L) => FromValue(L, false));
1455
1591
  }
@@ -1468,9 +1604,13 @@ function FromValue(value, root) {
1468
1604
  function Const(T, options) {
1469
1605
  return CreateType(FromValue(T, true), options);
1470
1606
  }
1607
+
1608
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs
1471
1609
  function ConstructorParameters(schema, options) {
1472
1610
  return IsConstructor(schema) ? Tuple(schema.parameters, options) : Never(options);
1473
1611
  }
1612
+
1613
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs
1474
1614
  function Enum(item, options) {
1475
1615
  if (IsUndefined(item))
1476
1616
  throw new Error("Enum undefined or empty");
@@ -1479,6 +1619,8 @@ function Enum(item, options) {
1479
1619
  const anyOf = values2.map((value) => Literal(value));
1480
1620
  return Union(anyOf, { ...options, [Hint]: "Enum" });
1481
1621
  }
1622
+
1623
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs
1482
1624
  var ExtendsResolverError = class extends TypeBoxError {
1483
1625
  };
1484
1626
  var ExtendsResult;
@@ -1728,6 +1870,8 @@ function Visit3(left, right) {
1728
1870
  function ExtendsCheck(left, right) {
1729
1871
  return Visit3(left, right);
1730
1872
  }
1873
+
1874
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs
1731
1875
  function FromProperties8(P, Right, True, False, options) {
1732
1876
  const Acc = {};
1733
1877
  for (const K2 of globalThis.Object.getOwnPropertyNames(P))
@@ -1741,6 +1885,8 @@ function ExtendsFromMappedResult(Left, Right, True, False, options) {
1741
1885
  const P = FromMappedResult6(Left, Right, True, False, options);
1742
1886
  return MappedResult(P);
1743
1887
  }
1888
+
1889
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs
1744
1890
  function ExtendsResolve(left, right, trueType, falseType) {
1745
1891
  const R = ExtendsCheck(left, right);
1746
1892
  return R === ExtendsResult.Union ? Union([trueType, falseType]) : R === ExtendsResult.True ? trueType : falseType;
@@ -1748,6 +1894,8 @@ function ExtendsResolve(left, right, trueType, falseType) {
1748
1894
  function Extends(L, R, T, F, options) {
1749
1895
  return IsMappedResult(L) ? ExtendsFromMappedResult(L, R, T, F, options) : IsMappedKey(L) ? CreateType(ExtendsFromMappedKey(L, R, T, F, options)) : CreateType(ExtendsResolve(L, R, T, F), options);
1750
1896
  }
1897
+
1898
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs
1751
1899
  function FromPropertyKey(K, U, L, R, options) {
1752
1900
  return {
1753
1901
  [K]: Extends(Literal(K), U, L, R, Clone(options))
@@ -1765,6 +1913,8 @@ function ExtendsFromMappedKey(T, U, L, R, options) {
1765
1913
  const P = FromMappedKey2(T, U, L, R, options);
1766
1914
  return MappedResult(P);
1767
1915
  }
1916
+
1917
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.mjs
1768
1918
  function Intersect2(schema) {
1769
1919
  return schema.allOf.every((schema2) => ExtendsUndefinedCheck(schema2));
1770
1920
  }
@@ -1777,9 +1927,13 @@ function Not(schema) {
1777
1927
  function ExtendsUndefinedCheck(schema) {
1778
1928
  return schema[Kind] === "Intersect" ? Intersect2(schema) : schema[Kind] === "Union" ? Union2(schema) : schema[Kind] === "Not" ? Not(schema) : schema[Kind] === "Undefined" ? true : false;
1779
1929
  }
1930
+
1931
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs
1780
1932
  function ExcludeFromTemplateLiteral(L, R) {
1781
1933
  return Exclude(TemplateLiteralToUnion(L), R);
1782
1934
  }
1935
+
1936
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs
1783
1937
  function ExcludeRest(L, R) {
1784
1938
  const excluded = L.filter((inner) => ExtendsCheck(inner, R) === ExtendsResult.False);
1785
1939
  return excluded.length === 1 ? excluded[0] : Union(excluded);
@@ -1791,6 +1945,8 @@ function Exclude(L, R, options = {}) {
1791
1945
  return CreateType(ExcludeFromMappedResult(L, R), options);
1792
1946
  return CreateType(IsUnion(L) ? ExcludeRest(L.anyOf, R) : ExtendsCheck(L, R) !== ExtendsResult.False ? Never() : L, options);
1793
1947
  }
1948
+
1949
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs
1794
1950
  function FromProperties9(P, U) {
1795
1951
  const Acc = {};
1796
1952
  for (const K2 of globalThis.Object.getOwnPropertyNames(P))
@@ -1804,9 +1960,13 @@ function ExcludeFromMappedResult(R, T) {
1804
1960
  const P = FromMappedResult7(R, T);
1805
1961
  return MappedResult(P);
1806
1962
  }
1963
+
1964
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs
1807
1965
  function ExtractFromTemplateLiteral(L, R) {
1808
1966
  return Extract(TemplateLiteralToUnion(L), R);
1809
1967
  }
1968
+
1969
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs
1810
1970
  function ExtractRest(L, R) {
1811
1971
  const extracted = L.filter((inner) => ExtendsCheck(inner, R) !== ExtendsResult.False);
1812
1972
  return extracted.length === 1 ? extracted[0] : Union(extracted);
@@ -1818,6 +1978,8 @@ function Extract(L, R, options) {
1818
1978
  return CreateType(ExtractFromMappedResult(L, R), options);
1819
1979
  return CreateType(IsUnion(L) ? ExtractRest(L.anyOf, R) : ExtendsCheck(L, R) !== ExtendsResult.False ? L : Never(), options);
1820
1980
  }
1981
+
1982
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs
1821
1983
  function FromProperties10(P, T) {
1822
1984
  const Acc = {};
1823
1985
  for (const K2 of globalThis.Object.getOwnPropertyNames(P))
@@ -1831,12 +1993,18 @@ function ExtractFromMappedResult(R, T) {
1831
1993
  const P = FromMappedResult8(R, T);
1832
1994
  return MappedResult(P);
1833
1995
  }
1996
+
1997
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs
1834
1998
  function InstanceType(schema, options) {
1835
1999
  return IsConstructor(schema) ? CreateType(schema.returns, options) : Never(options);
1836
2000
  }
2001
+
2002
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs
1837
2003
  function ReadonlyOptional(schema) {
1838
2004
  return Readonly(Optional(schema));
1839
2005
  }
2006
+
2007
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs
1840
2008
  function RecordCreateFromPattern(pattern, T, options) {
1841
2009
  return CreateType({ [Kind]: "Record", type: "object", patternProperties: { [pattern]: T } }, options);
1842
2010
  }
@@ -1890,6 +2058,8 @@ function RecordKey2(type) {
1890
2058
  function RecordValue2(type) {
1891
2059
  return type.patternProperties[RecordPattern(type)];
1892
2060
  }
2061
+
2062
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs
1893
2063
  function FromConstructor2(args, type) {
1894
2064
  type.parameters = FromTypes(args, type.parameters);
1895
2065
  type.returns = FromType(args, type.returns);
@@ -1963,9 +2133,13 @@ function FromType(args, type) {
1963
2133
  function Instantiate(type, args) {
1964
2134
  return FromType(args, CloneType(type));
1965
2135
  }
2136
+
2137
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs
1966
2138
  function Integer(options) {
1967
2139
  return CreateType({ [Kind]: "Integer", type: "integer" }, options);
1968
2140
  }
2141
+
2142
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs
1969
2143
  function MappedIntrinsicPropertyKey(K, M, options) {
1970
2144
  return {
1971
2145
  [K]: Intrinsic(Literal(K), M, Clone(options))
@@ -1984,6 +2158,8 @@ function IntrinsicFromMappedKey(T, M, options) {
1984
2158
  const P = MappedIntrinsicProperties(T, M, options);
1985
2159
  return MappedResult(P);
1986
2160
  }
2161
+
2162
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs
1987
2163
  function ApplyUncapitalize(value) {
1988
2164
  const [first, rest] = [value.slice(0, 1), value.slice(1)];
1989
2165
  return [first.toLowerCase(), rest].join("");
@@ -2027,18 +2203,28 @@ function Intrinsic(schema, mode, options = {}) {
2027
2203
  )
2028
2204
  );
2029
2205
  }
2206
+
2207
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs
2030
2208
  function Capitalize(T, options = {}) {
2031
2209
  return Intrinsic(T, "Capitalize", options);
2032
2210
  }
2211
+
2212
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs
2033
2213
  function Lowercase(T, options = {}) {
2034
2214
  return Intrinsic(T, "Lowercase", options);
2035
2215
  }
2216
+
2217
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs
2036
2218
  function Uncapitalize(T, options = {}) {
2037
2219
  return Intrinsic(T, "Uncapitalize", options);
2038
2220
  }
2221
+
2222
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs
2039
2223
  function Uppercase(T, options = {}) {
2040
2224
  return Intrinsic(T, "Uppercase", options);
2041
2225
  }
2226
+
2227
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs
2042
2228
  function FromProperties12(properties, propertyKeys, options) {
2043
2229
  const result = {};
2044
2230
  for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
@@ -2052,6 +2238,8 @@ function OmitFromMappedResult(mappedResult, propertyKeys, options) {
2052
2238
  const properties = FromMappedResult9(mappedResult, propertyKeys, options);
2053
2239
  return MappedResult(properties);
2054
2240
  }
2241
+
2242
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs
2055
2243
  function FromIntersect6(types, propertyKeys) {
2056
2244
  return types.map((type) => OmitResolve(type, propertyKeys));
2057
2245
  }
@@ -2084,6 +2272,8 @@ function Omit(type, key, options) {
2084
2272
  const isKeyRef = IsRef(key);
2085
2273
  return IsMappedResult(type) ? OmitFromMappedResult(type, propertyKeys, options) : IsMappedKey(key) ? OmitFromMappedKey(type, key, options) : isTypeRef && isKeyRef ? Computed("Omit", [type, typeKey], options) : !isTypeRef && isKeyRef ? Computed("Omit", [type, typeKey], options) : isTypeRef && !isKeyRef ? Computed("Omit", [type, typeKey], options) : CreateType({ ...OmitResolve(type, propertyKeys), ...options });
2086
2274
  }
2275
+
2276
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs
2087
2277
  function FromPropertyKey2(type, key, options) {
2088
2278
  return { [key]: Omit(type, [key], Clone(options)) };
2089
2279
  }
@@ -2099,6 +2289,8 @@ function OmitFromMappedKey(type, mappedKey, options) {
2099
2289
  const properties = FromMappedKey3(type, mappedKey, options);
2100
2290
  return MappedResult(properties);
2101
2291
  }
2292
+
2293
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs
2102
2294
  function FromProperties14(properties, propertyKeys, options) {
2103
2295
  const result = {};
2104
2296
  for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
@@ -2112,6 +2304,8 @@ function PickFromMappedResult(mappedResult, propertyKeys, options) {
2112
2304
  const properties = FromMappedResult10(mappedResult, propertyKeys, options);
2113
2305
  return MappedResult(properties);
2114
2306
  }
2307
+
2308
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs
2115
2309
  function FromIntersect7(types, propertyKeys) {
2116
2310
  return types.map((type) => PickResolve(type, propertyKeys));
2117
2311
  }
@@ -2144,6 +2338,8 @@ function Pick(type, key, options) {
2144
2338
  const isKeyRef = IsRef(key);
2145
2339
  return IsMappedResult(type) ? PickFromMappedResult(type, propertyKeys, options) : IsMappedKey(key) ? PickFromMappedKey(type, key, options) : isTypeRef && isKeyRef ? Computed("Pick", [type, typeKey], options) : !isTypeRef && isKeyRef ? Computed("Pick", [type, typeKey], options) : isTypeRef && !isKeyRef ? Computed("Pick", [type, typeKey], options) : CreateType({ ...PickResolve(type, propertyKeys), ...options });
2146
2340
  }
2341
+
2342
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs
2147
2343
  function FromPropertyKey3(type, key, options) {
2148
2344
  return {
2149
2345
  [key]: Pick(type, [key], Clone(options))
@@ -2161,6 +2357,8 @@ function PickFromMappedKey(type, mappedKey, options) {
2161
2357
  const properties = FromMappedKey4(type, mappedKey, options);
2162
2358
  return MappedResult(properties);
2163
2359
  }
2360
+
2361
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs
2164
2362
  function FromComputed3(target, parameters) {
2165
2363
  return Computed("Partial", [Computed(target, parameters)]);
2166
2364
  }
@@ -2200,6 +2398,8 @@ function Partial(type, options) {
2200
2398
  return CreateType({ ...PartialResolve(type), ...options });
2201
2399
  }
2202
2400
  }
2401
+
2402
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs
2203
2403
  function FromProperties17(K, options) {
2204
2404
  const Acc = {};
2205
2405
  for (const K2 of globalThis.Object.getOwnPropertyNames(K))
@@ -2213,6 +2413,8 @@ function PartialFromMappedResult(R, options) {
2213
2413
  const P = FromMappedResult11(R, options);
2214
2414
  return MappedResult(P);
2215
2415
  }
2416
+
2417
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs
2216
2418
  function FromComputed4(target, parameters) {
2217
2419
  return Computed("Required", [Computed(target, parameters)]);
2218
2420
  }
@@ -2252,6 +2454,8 @@ function Required(type, options) {
2252
2454
  return CreateType({ ...RequiredResolve(type), ...options });
2253
2455
  }
2254
2456
  }
2457
+
2458
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs
2255
2459
  function FromProperties19(P, options) {
2256
2460
  const Acc = {};
2257
2461
  for (const K2 of globalThis.Object.getOwnPropertyNames(P))
@@ -2265,6 +2469,8 @@ function RequiredFromMappedResult(R, options) {
2265
2469
  const P = FromMappedResult12(R, options);
2266
2470
  return MappedResult(P);
2267
2471
  }
2472
+
2473
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs
2268
2474
  function DereferenceParameters(moduleProperties, types) {
2269
2475
  return types.map((type) => {
2270
2476
  return IsRef(type) ? Dereference(moduleProperties, type.$ref) : FromType2(moduleProperties, type);
@@ -2359,6 +2565,8 @@ function ComputeModuleProperties(moduleProperties) {
2359
2565
  return { ...result, [key]: ComputeType(moduleProperties, key) };
2360
2566
  }, {});
2361
2567
  }
2568
+
2569
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs
2362
2570
  var TModule = class {
2363
2571
  constructor($defs) {
2364
2572
  const computed = ComputeModuleProperties($defs);
@@ -2380,12 +2588,18 @@ var TModule = class {
2380
2588
  function Module(properties) {
2381
2589
  return new TModule(properties);
2382
2590
  }
2591
+
2592
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs
2383
2593
  function Not2(type, options) {
2384
2594
  return CreateType({ [Kind]: "Not", not: type }, options);
2385
2595
  }
2596
+
2597
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs
2386
2598
  function Parameters(schema, options) {
2387
2599
  return IsFunction3(schema) ? Tuple(schema.parameters, options) : Never();
2388
2600
  }
2601
+
2602
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs
2389
2603
  var Ordinal = 0;
2390
2604
  function Recursive(callback, options = {}) {
2391
2605
  if (IsUndefined(options.$id))
@@ -2394,19 +2608,27 @@ function Recursive(callback, options = {}) {
2394
2608
  thisType.$id = options.$id;
2395
2609
  return CreateType({ [Hint]: "Recursive", ...thisType }, options);
2396
2610
  }
2611
+
2612
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs
2397
2613
  function RegExp2(unresolved, options) {
2398
2614
  const expr = IsString(unresolved) ? new globalThis.RegExp(unresolved) : unresolved;
2399
2615
  return CreateType({ [Kind]: "RegExp", type: "RegExp", source: expr.source, flags: expr.flags }, options);
2400
2616
  }
2617
+
2618
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs
2401
2619
  function RestResolve(T) {
2402
2620
  return IsIntersect(T) ? T.allOf : IsUnion(T) ? T.anyOf : IsTuple(T) ? T.items ?? [] : [];
2403
2621
  }
2404
2622
  function Rest(T) {
2405
2623
  return RestResolve(T);
2406
2624
  }
2625
+
2626
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs
2407
2627
  function ReturnType(schema, options) {
2408
2628
  return IsFunction3(schema) ? CreateType(schema.returns, options) : Never(options);
2409
2629
  }
2630
+
2631
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs
2410
2632
  var TransformDecodeBuilder = class {
2411
2633
  constructor(schema) {
2412
2634
  this.schema = schema;
@@ -2437,12 +2659,18 @@ var TransformEncodeBuilder = class {
2437
2659
  function Transform(schema) {
2438
2660
  return new TransformDecodeBuilder(schema);
2439
2661
  }
2662
+
2663
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs
2440
2664
  function Unsafe(options = {}) {
2441
2665
  return CreateType({ [Kind]: options[Kind] ?? "Unsafe" }, options);
2442
2666
  }
2667
+
2668
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs
2443
2669
  function Void(options) {
2444
2670
  return CreateType({ [Kind]: "Void", type: "void" }, options);
2445
2671
  }
2672
+
2673
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/type/type.mjs
2446
2674
  var type_exports3 = {};
2447
2675
  __export(type_exports3, {
2448
2676
  Any: () => Any,
@@ -2508,10 +2736,16 @@ __export(type_exports3, {
2508
2736
  Uppercase: () => Uppercase,
2509
2737
  Void: () => Void
2510
2738
  });
2739
+
2740
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs
2511
2741
  var Type = type_exports3;
2742
+
2743
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/system/evaluate.mjs
2512
2744
  function Evaluate(...args) {
2513
2745
  return new globalThis.Function(...args);
2514
2746
  }
2747
+
2748
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/errors/function.mjs
2515
2749
  function DefaultErrorFunction(error2) {
2516
2750
  switch (error2.errorType) {
2517
2751
  case ValueErrorType.ArrayContains:
@@ -2650,6 +2884,8 @@ var errorFunction = DefaultErrorFunction;
2650
2884
  function GetErrorFunction() {
2651
2885
  return errorFunction;
2652
2886
  }
2887
+
2888
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/value/deref/deref.mjs
2653
2889
  var TypeDereferenceError = class extends TypeBoxError {
2654
2890
  constructor(schema) {
2655
2891
  super(`Unable to dereference schema with $id '${schema.$ref}'`);
@@ -2671,6 +2907,8 @@ function Pushref(schema, references) {
2671
2907
  function Deref(schema, references) {
2672
2908
  return schema[Kind] === "This" || schema[Kind] === "Ref" ? Resolve(schema, references) : schema;
2673
2909
  }
2910
+
2911
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/value/hash/hash.mjs
2674
2912
  var ValueHashError = class extends TypeBoxError {
2675
2913
  constructor(value) {
2676
2914
  super(`Unable to hash value`);
@@ -2799,6 +3037,8 @@ function Hash(value) {
2799
3037
  Visit4(value);
2800
3038
  return Accumulator;
2801
3039
  }
3040
+
3041
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/value/check/check.mjs
2802
3042
  var ValueCheckUnknownTypeError = class extends TypeBoxError {
2803
3043
  constructor(schema) {
2804
3044
  super(`Unknown type`);
@@ -3229,6 +3469,8 @@ function Visit5(schema, references, value) {
3229
3469
  function Check(...args) {
3230
3470
  return args.length === 3 ? Visit5(args[0], args[1], args[2]) : Visit5(args[0], [], args[1]);
3231
3471
  }
3472
+
3473
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/errors/errors.mjs
3232
3474
  var ValueErrorType;
3233
3475
  (function(ValueErrorType2) {
3234
3476
  ValueErrorType2[ValueErrorType2["ArrayContains"] = 0] = "ArrayContains";
@@ -3785,6 +4027,8 @@ function Errors(...args) {
3785
4027
  const iterator = args.length === 3 ? Visit6(args[0], args[1], "", args[2]) : Visit6(args[0], [], "", args[1]);
3786
4028
  return new ValueErrorIterator(iterator);
3787
4029
  }
4030
+
4031
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/value/transform/decode.mjs
3788
4032
  var TransformDecodeCheckError = class extends TypeBoxError {
3789
4033
  constructor(schema, value, error2) {
3790
4034
  super(`Unable to decode value as it does not match the expected schema`);
@@ -3942,6 +4186,8 @@ function Visit7(schema, references, path, value) {
3942
4186
  function TransformDecode(schema, references, value) {
3943
4187
  return Visit7(schema, references, "", value);
3944
4188
  }
4189
+
4190
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/value/transform/encode.mjs
3945
4191
  var TransformEncodeCheckError = class extends TypeBoxError {
3946
4192
  constructor(schema, value, error2) {
3947
4193
  super(`The encoded value does not match the expected schema`);
@@ -4110,6 +4356,8 @@ function Visit8(schema, references, path, value) {
4110
4356
  function TransformEncode(schema, references, value) {
4111
4357
  return Visit8(schema, references, "", value);
4112
4358
  }
4359
+
4360
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/value/transform/has.mjs
4113
4361
  function FromArray11(schema, references) {
4114
4362
  return IsTransform(schema) || Visit9(schema.items, references);
4115
4363
  }
@@ -4210,6 +4458,8 @@ function HasTransform(schema, references) {
4210
4458
  visited.clear();
4211
4459
  return Visit9(schema, references);
4212
4460
  }
4461
+
4462
+ // ../protocol/dist/types.js
4213
4463
  var REF_PATTERN = /^e\d+_\d+$/;
4214
4464
  var DELIVERED_EXTRACT_FORMATS = [
4215
4465
  "text",
@@ -4238,6 +4488,8 @@ var DELIVERED_ACTION_TYPES = [
4238
4488
  "acceptDialog",
4239
4489
  "dismissDialog"
4240
4490
  ];
4491
+
4492
+ // ../protocol/dist/schemas.js
4241
4493
  var ErrorCodeEnum = Type.Union([
4242
4494
  Type.Literal("INVALID_REQUEST"),
4243
4495
  Type.Literal("INVALID_TENANT_ID"),
@@ -4644,6 +4896,8 @@ var ActionResultSchema = Type.Object({
4644
4896
  artifacts: Type.Optional(Type.Array(ArtifactRefSchema)),
4645
4897
  error: Type.Optional(ApiErrorDetailSchema)
4646
4898
  });
4899
+
4900
+ // ../../node_modules/.pnpm/@sinclair+typebox@0.34.52/node_modules/@sinclair/typebox/build/esm/compiler/compiler.mjs
4647
4901
  var TypeCheck = class {
4648
4902
  constructor(schema, references, checkFunc, code) {
4649
4903
  this.schema = schema;
@@ -5205,9 +5459,13 @@ var TypeCompiler;
5205
5459
  }
5206
5460
  TypeCompiler2.Compile = Compile;
5207
5461
  })(TypeCompiler || (TypeCompiler = {}));
5462
+
5463
+ // ../protocol/dist/validators.js
5208
5464
  var sessionRequest = TypeCompiler.Compile(SessionRequestSchema);
5209
5465
  var action = TypeCompiler.Compile(ActionSchema);
5210
5466
  var planStep = TypeCompiler.Compile(PlanStepSchema);
5467
+
5468
+ // ../protocol/dist/errors.js
5211
5469
  var ErrorCode;
5212
5470
  (function(ErrorCode2) {
5213
5471
  ErrorCode2["INVALID_REQUEST"] = "INVALID_REQUEST";
@@ -5256,20 +5514,20 @@ ${staleHint}`;
5256
5514
  }
5257
5515
  return String(error2);
5258
5516
  }
5517
+
5518
+ // dist/mcp-server.js
5259
5519
  var PROTOCOL_VERSION = "2024-11-05";
5260
- function buildMcpServer(deps) {
5261
- const client = deps.createClient({ baseUrl: deps.baseUrl ?? "http://localhost:3000" });
5262
- const serverInfo = deps.serverInfo ?? { name: "agentbrowser", version: "1.0.0" };
5263
- const sessionAndPage = (args) => {
5264
- if (typeof args.sessionId !== "string" || args.sessionId.length === 0) {
5265
- throw new UsageError("sessionId is required and must be a non-empty string.");
5266
- }
5267
- if (typeof args.pageId !== "string" || args.pageId.length === 0) {
5268
- throw new UsageError("pageId is required and must be a non-empty string.");
5269
- }
5270
- return [args.sessionId, args.pageId];
5271
- };
5272
- const tools = [
5520
+ function sessionAndPage(args) {
5521
+ if (typeof args.sessionId !== "string" || args.sessionId.length === 0) {
5522
+ throw new UsageError("sessionId is required and must be a non-empty string.");
5523
+ }
5524
+ if (typeof args.pageId !== "string" || args.pageId.length === 0) {
5525
+ throw new UsageError("pageId is required and must be a non-empty string.");
5526
+ }
5527
+ return [args.sessionId, args.pageId];
5528
+ }
5529
+ function buildTools(client) {
5530
+ return [
5273
5531
  {
5274
5532
  name: "browser_create",
5275
5533
  description: "Create a new isolated browser session. Sessions are ephemeral; element refs are scoped to a single session and page. Returns the sessionId.",
@@ -5616,6 +5874,11 @@ function buildMcpServer(deps) {
5616
5874
  }
5617
5875
  }
5618
5876
  ];
5877
+ }
5878
+ function buildMcpServer(deps) {
5879
+ const client = deps.createClient({ baseUrl: deps.baseUrl ?? "http://localhost:3000" });
5880
+ const serverInfo = deps.serverInfo ?? { name: "agentbrowser", version: "1.0.0" };
5881
+ const tools = buildTools(client);
5619
5882
  const toolByName = new Map(tools.map((tool) => [tool.name, tool]));
5620
5883
  return {
5621
5884
  async handle(line) {
@@ -5696,6 +5959,11 @@ function ok(id, result) {
5696
5959
  function error(id, code, message) {
5697
5960
  return JSON.stringify({ jsonrpc: "2.0", id, error: { code, message } });
5698
5961
  }
5962
+
5963
+ // dist/version.js
5964
+ import { readFileSync } from "node:fs";
5965
+ import { dirname, join } from "node:path";
5966
+ import { fileURLToPath } from "node:url";
5699
5967
  function readPackageVersion(moduleUrl) {
5700
5968
  try {
5701
5969
  const here = dirname(fileURLToPath(moduleUrl));