agent-relay 6.0.3 → 6.0.4

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.
Files changed (157) hide show
  1. package/dist/index.cjs +1395 -674
  2. package/node_modules/@relaycast/sdk/node_modules/zod/README.md +1 -1
  3. package/node_modules/@relaycast/sdk/node_modules/zod/locales/package.json +2 -1
  4. package/node_modules/@relaycast/sdk/node_modules/zod/mini/package.json +2 -1
  5. package/node_modules/@relaycast/sdk/node_modules/zod/package.json +1 -1
  6. package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/all-errors.test.ts +3 -3
  7. package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/object.test.ts +5 -5
  8. package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/partials.test.ts +3 -3
  9. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/errors.ts +2 -2
  10. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/external.ts +1 -0
  11. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/from-json-schema.ts +39 -23
  12. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/parse.ts +6 -6
  13. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/schemas.ts +389 -148
  14. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/catch.test.ts +4 -2
  15. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/codec.test.ts +142 -1
  16. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/continuability.test.ts +1 -1
  17. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/datetime.test.ts +1 -1
  18. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/default.test.ts +44 -0
  19. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
  20. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +31 -1
  21. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +214 -2
  22. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +161 -0
  23. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/function.test.ts +6 -6
  24. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
  25. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/index.test.ts +2 -2
  26. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
  27. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  28. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  29. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/number.test.ts +55 -0
  30. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/object.test.ts +83 -6
  31. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/optional.test.ts +114 -4
  32. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/partial.test.ts +28 -2
  33. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/prefault.test.ts +1 -1
  34. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/record.test.ts +85 -0
  35. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +49 -0
  36. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/refine.test.ts +63 -0
  37. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/string.test.ts +50 -1
  38. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +4 -4
  39. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +128 -14
  40. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/transform.test.ts +17 -0
  41. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/tuple.test.ts +315 -2
  42. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/union.test.ts +54 -0
  43. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/api.ts +25 -2
  44. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/checks.ts +1 -1
  45. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/core.ts +17 -2
  46. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/errors.ts +31 -24
  47. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/json-schema-processors.ts +15 -17
  48. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/parse.ts +7 -7
  49. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/regexes.ts +8 -1
  50. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/schemas.ts +218 -66
  51. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
  52. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  53. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  54. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +22 -0
  55. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +58 -0
  56. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/to-json-schema.ts +9 -1
  57. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/util.ts +52 -35
  58. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/versions.ts +2 -2
  59. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/el.ts +121 -0
  60. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/en.ts +4 -0
  61. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/fr.ts +24 -8
  62. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/hr.ts +131 -0
  63. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/index.ts +3 -0
  64. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/it.ts +1 -1
  65. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ka.ts +8 -8
  66. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ro.ts +129 -0
  67. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/uz.ts +1 -0
  68. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/external.ts +1 -0
  69. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/schemas.ts +55 -24
  70. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/codec.test.ts +19 -0
  71. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/index.test.ts +27 -2
  72. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/object.test.ts +9 -9
  73. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +51 -1
  74. package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/string.test.ts +5 -0
  75. package/node_modules/@relaycast/sdk/node_modules/zod/v3/package.json +2 -1
  76. package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/errors.js +2 -2
  77. package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/external.d.cts +1 -0
  78. package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/external.d.ts +1 -0
  79. package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/from-json-schema.cjs +31 -16
  80. package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/from-json-schema.js +31 -16
  81. package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/package.json +2 -1
  82. package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/schemas.cjs +346 -117
  83. package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/schemas.d.cts +34 -12
  84. package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/schemas.d.ts +34 -12
  85. package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/schemas.js +345 -117
  86. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/api.cjs +7 -2
  87. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/api.d.cts +20 -1
  88. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/api.d.ts +20 -1
  89. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/api.js +7 -2
  90. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/checks.d.cts +1 -1
  91. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/checks.d.ts +1 -1
  92. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/core.cjs +3 -1
  93. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/core.js +4 -2
  94. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/errors.cjs +26 -23
  95. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/errors.d.cts +1 -0
  96. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/errors.d.ts +1 -0
  97. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/errors.js +26 -23
  98. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema-processors.cjs +14 -19
  99. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema-processors.js +14 -19
  100. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/package.json +2 -1
  101. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/parse.cjs +7 -7
  102. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/parse.js +7 -7
  103. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/regexes.cjs +9 -3
  104. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/regexes.d.cts +6 -0
  105. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/regexes.d.ts +6 -0
  106. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/regexes.js +7 -1
  107. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/schemas.cjs +196 -59
  108. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/schemas.d.cts +21 -1
  109. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/schemas.d.ts +21 -1
  110. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/schemas.js +196 -59
  111. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/to-json-schema.cjs +10 -1
  112. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/to-json-schema.js +10 -1
  113. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/util.cjs +54 -30
  114. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/util.d.cts +1 -0
  115. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/util.d.ts +1 -0
  116. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/util.js +55 -32
  117. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/versions.cjs +2 -2
  118. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/versions.d.cts +1 -1
  119. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/versions.d.ts +1 -1
  120. package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/versions.js +2 -2
  121. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/el.cjs +136 -0
  122. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/el.d.cts +5 -0
  123. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/el.d.ts +4 -0
  124. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/el.js +109 -0
  125. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/en.cjs +4 -0
  126. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/en.js +4 -0
  127. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fr.cjs +24 -7
  128. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fr.js +24 -7
  129. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hr.cjs +149 -0
  130. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hr.d.cts +5 -0
  131. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hr.d.ts +4 -0
  132. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hr.js +122 -0
  133. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/index.cjs +8 -1
  134. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/index.d.cts +3 -0
  135. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/index.d.ts +3 -0
  136. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/index.js +3 -0
  137. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/it.cjs +1 -1
  138. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/it.js +1 -1
  139. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ka.cjs +8 -8
  140. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ka.js +8 -8
  141. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/package.json +2 -1
  142. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ro.cjs +146 -0
  143. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ro.d.cts +5 -0
  144. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ro.d.ts +4 -0
  145. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ro.js +119 -0
  146. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/uz.cjs +1 -0
  147. package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/uz.js +1 -0
  148. package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/external.d.cts +1 -0
  149. package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/external.d.ts +1 -0
  150. package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/package.json +2 -1
  151. package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/schemas.cjs +41 -4
  152. package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/schemas.d.cts +27 -9
  153. package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/schemas.d.ts +27 -9
  154. package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/schemas.js +40 -4
  155. package/node_modules/@relaycast/sdk/node_modules/zod/v4/package.json +2 -1
  156. package/node_modules/@relaycast/sdk/node_modules/zod/v4-mini/package.json +2 -1
  157. package/package.json +9 -9
package/dist/index.cjs CHANGED
@@ -927,26 +927,26 @@ var require_receiver = __commonJS({
927
927
  }
928
928
  const buf = this.consume(2);
929
929
  if ((buf[0] & 48) !== 0) {
930
- const error48 = this.createError(
930
+ const error51 = this.createError(
931
931
  RangeError,
932
932
  "RSV2 and RSV3 must be clear",
933
933
  true,
934
934
  1002,
935
935
  "WS_ERR_UNEXPECTED_RSV_2_3"
936
936
  );
937
- cb(error48);
937
+ cb(error51);
938
938
  return;
939
939
  }
940
940
  const compressed = (buf[0] & 64) === 64;
941
941
  if (compressed && !this._extensions[PerMessageDeflate2.extensionName]) {
942
- const error48 = this.createError(
942
+ const error51 = this.createError(
943
943
  RangeError,
944
944
  "RSV1 must be clear",
945
945
  true,
946
946
  1002,
947
947
  "WS_ERR_UNEXPECTED_RSV_1"
948
948
  );
949
- cb(error48);
949
+ cb(error51);
950
950
  return;
951
951
  }
952
952
  this._fin = (buf[0] & 128) === 128;
@@ -954,109 +954,109 @@ var require_receiver = __commonJS({
954
954
  this._payloadLength = buf[1] & 127;
955
955
  if (this._opcode === 0) {
956
956
  if (compressed) {
957
- const error48 = this.createError(
957
+ const error51 = this.createError(
958
958
  RangeError,
959
959
  "RSV1 must be clear",
960
960
  true,
961
961
  1002,
962
962
  "WS_ERR_UNEXPECTED_RSV_1"
963
963
  );
964
- cb(error48);
964
+ cb(error51);
965
965
  return;
966
966
  }
967
967
  if (!this._fragmented) {
968
- const error48 = this.createError(
968
+ const error51 = this.createError(
969
969
  RangeError,
970
970
  "invalid opcode 0",
971
971
  true,
972
972
  1002,
973
973
  "WS_ERR_INVALID_OPCODE"
974
974
  );
975
- cb(error48);
975
+ cb(error51);
976
976
  return;
977
977
  }
978
978
  this._opcode = this._fragmented;
979
979
  } else if (this._opcode === 1 || this._opcode === 2) {
980
980
  if (this._fragmented) {
981
- const error48 = this.createError(
981
+ const error51 = this.createError(
982
982
  RangeError,
983
983
  `invalid opcode ${this._opcode}`,
984
984
  true,
985
985
  1002,
986
986
  "WS_ERR_INVALID_OPCODE"
987
987
  );
988
- cb(error48);
988
+ cb(error51);
989
989
  return;
990
990
  }
991
991
  this._compressed = compressed;
992
992
  } else if (this._opcode > 7 && this._opcode < 11) {
993
993
  if (!this._fin) {
994
- const error48 = this.createError(
994
+ const error51 = this.createError(
995
995
  RangeError,
996
996
  "FIN must be set",
997
997
  true,
998
998
  1002,
999
999
  "WS_ERR_EXPECTED_FIN"
1000
1000
  );
1001
- cb(error48);
1001
+ cb(error51);
1002
1002
  return;
1003
1003
  }
1004
1004
  if (compressed) {
1005
- const error48 = this.createError(
1005
+ const error51 = this.createError(
1006
1006
  RangeError,
1007
1007
  "RSV1 must be clear",
1008
1008
  true,
1009
1009
  1002,
1010
1010
  "WS_ERR_UNEXPECTED_RSV_1"
1011
1011
  );
1012
- cb(error48);
1012
+ cb(error51);
1013
1013
  return;
1014
1014
  }
1015
1015
  if (this._payloadLength > 125 || this._opcode === 8 && this._payloadLength === 1) {
1016
- const error48 = this.createError(
1016
+ const error51 = this.createError(
1017
1017
  RangeError,
1018
1018
  `invalid payload length ${this._payloadLength}`,
1019
1019
  true,
1020
1020
  1002,
1021
1021
  "WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"
1022
1022
  );
1023
- cb(error48);
1023
+ cb(error51);
1024
1024
  return;
1025
1025
  }
1026
1026
  } else {
1027
- const error48 = this.createError(
1027
+ const error51 = this.createError(
1028
1028
  RangeError,
1029
1029
  `invalid opcode ${this._opcode}`,
1030
1030
  true,
1031
1031
  1002,
1032
1032
  "WS_ERR_INVALID_OPCODE"
1033
1033
  );
1034
- cb(error48);
1034
+ cb(error51);
1035
1035
  return;
1036
1036
  }
1037
1037
  if (!this._fin && !this._fragmented) this._fragmented = this._opcode;
1038
1038
  this._masked = (buf[1] & 128) === 128;
1039
1039
  if (this._isServer) {
1040
1040
  if (!this._masked) {
1041
- const error48 = this.createError(
1041
+ const error51 = this.createError(
1042
1042
  RangeError,
1043
1043
  "MASK must be set",
1044
1044
  true,
1045
1045
  1002,
1046
1046
  "WS_ERR_EXPECTED_MASK"
1047
1047
  );
1048
- cb(error48);
1048
+ cb(error51);
1049
1049
  return;
1050
1050
  }
1051
1051
  } else if (this._masked) {
1052
- const error48 = this.createError(
1052
+ const error51 = this.createError(
1053
1053
  RangeError,
1054
1054
  "MASK must be clear",
1055
1055
  true,
1056
1056
  1002,
1057
1057
  "WS_ERR_UNEXPECTED_MASK"
1058
1058
  );
1059
- cb(error48);
1059
+ cb(error51);
1060
1060
  return;
1061
1061
  }
1062
1062
  if (this._payloadLength === 126) this._state = GET_PAYLOAD_LENGTH_16;
@@ -1091,14 +1091,14 @@ var require_receiver = __commonJS({
1091
1091
  const buf = this.consume(8);
1092
1092
  const num = buf.readUInt32BE(0);
1093
1093
  if (num > Math.pow(2, 53 - 32) - 1) {
1094
- const error48 = this.createError(
1094
+ const error51 = this.createError(
1095
1095
  RangeError,
1096
1096
  "Unsupported WebSocket frame: payload length > 2^53 - 1",
1097
1097
  false,
1098
1098
  1009,
1099
1099
  "WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"
1100
1100
  );
1101
- cb(error48);
1101
+ cb(error51);
1102
1102
  return;
1103
1103
  }
1104
1104
  this._payloadLength = num * Math.pow(2, 32) + buf.readUInt32BE(4);
@@ -1114,14 +1114,14 @@ var require_receiver = __commonJS({
1114
1114
  if (this._payloadLength && this._opcode < 8) {
1115
1115
  this._totalPayloadLength += this._payloadLength;
1116
1116
  if (this._totalPayloadLength > this._maxPayload && this._maxPayload > 0) {
1117
- const error48 = this.createError(
1117
+ const error51 = this.createError(
1118
1118
  RangeError,
1119
1119
  "Max payload size exceeded",
1120
1120
  false,
1121
1121
  1009,
1122
1122
  "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"
1123
1123
  );
1124
- cb(error48);
1124
+ cb(error51);
1125
1125
  return;
1126
1126
  }
1127
1127
  }
@@ -1188,14 +1188,14 @@ var require_receiver = __commonJS({
1188
1188
  if (buf.length) {
1189
1189
  this._messageLength += buf.length;
1190
1190
  if (this._messageLength > this._maxPayload && this._maxPayload > 0) {
1191
- const error48 = this.createError(
1191
+ const error51 = this.createError(
1192
1192
  RangeError,
1193
1193
  "Max payload size exceeded",
1194
1194
  false,
1195
1195
  1009,
1196
1196
  "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"
1197
1197
  );
1198
- cb(error48);
1198
+ cb(error51);
1199
1199
  return;
1200
1200
  }
1201
1201
  this._fragments.push(buf);
@@ -1246,14 +1246,14 @@ var require_receiver = __commonJS({
1246
1246
  } else {
1247
1247
  const buf = concat(fragments, messageLength);
1248
1248
  if (!this._skipUTF8Validation && !isValidUTF8(buf)) {
1249
- const error48 = this.createError(
1249
+ const error51 = this.createError(
1250
1250
  Error,
1251
1251
  "invalid UTF-8 sequence",
1252
1252
  true,
1253
1253
  1007,
1254
1254
  "WS_ERR_INVALID_UTF8"
1255
1255
  );
1256
- cb(error48);
1256
+ cb(error51);
1257
1257
  return;
1258
1258
  }
1259
1259
  if (this._state === INFLATING || this._allowSynchronousEvents) {
@@ -1285,14 +1285,14 @@ var require_receiver = __commonJS({
1285
1285
  } else {
1286
1286
  const code = data.readUInt16BE(0);
1287
1287
  if (!isValidStatusCode(code)) {
1288
- const error48 = this.createError(
1288
+ const error51 = this.createError(
1289
1289
  RangeError,
1290
1290
  `invalid status code ${code}`,
1291
1291
  true,
1292
1292
  1002,
1293
1293
  "WS_ERR_INVALID_CLOSE_CODE"
1294
1294
  );
1295
- cb(error48);
1295
+ cb(error51);
1296
1296
  return;
1297
1297
  }
1298
1298
  const buf = new FastBuffer(
@@ -1301,14 +1301,14 @@ var require_receiver = __commonJS({
1301
1301
  data.length - 2
1302
1302
  );
1303
1303
  if (!this._skipUTF8Validation && !isValidUTF8(buf)) {
1304
- const error48 = this.createError(
1304
+ const error51 = this.createError(
1305
1305
  Error,
1306
1306
  "invalid UTF-8 sequence",
1307
1307
  true,
1308
1308
  1007,
1309
1309
  "WS_ERR_INVALID_UTF8"
1310
1310
  );
1311
- cb(error48);
1311
+ cb(error51);
1312
1312
  return;
1313
1313
  }
1314
1314
  this._loop = false;
@@ -2017,10 +2017,10 @@ var require_event_target = __commonJS({
2017
2017
  callListener(handler, this, event);
2018
2018
  };
2019
2019
  } else if (type === "error") {
2020
- wrapper = function onError(error48) {
2020
+ wrapper = function onError(error51) {
2021
2021
  const event = new ErrorEvent2("error", {
2022
- error: error48,
2023
- message: error48.message
2022
+ error: error51,
2023
+ message: error51.message
2024
2024
  });
2025
2025
  event[kTarget] = this;
2026
2026
  callListener(handler, this, event);
@@ -3148,7 +3148,7 @@ var require_stream = __commonJS({
3148
3148
  const data = !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;
3149
3149
  if (!duplex.push(data)) ws2.pause();
3150
3150
  });
3151
- ws2.once("error", function error48(err) {
3151
+ ws2.once("error", function error51(err) {
3152
3152
  if (duplex.destroyed) return;
3153
3153
  terminateOnDestroy = false;
3154
3154
  duplex.destroy(err);
@@ -3164,7 +3164,7 @@ var require_stream = __commonJS({
3164
3164
  return;
3165
3165
  }
3166
3166
  let called = false;
3167
- ws2.once("error", function error48(err2) {
3167
+ ws2.once("error", function error51(err2) {
3168
3168
  called = true;
3169
3169
  callback(err2);
3170
3170
  });
@@ -6002,8 +6002,8 @@ var require_directives = __commonJS({
6002
6002
  if (prefix) {
6003
6003
  try {
6004
6004
  return prefix + decodeURIComponent(suffix);
6005
- } catch (error48) {
6006
- onError(String(error48));
6005
+ } catch (error51) {
6006
+ onError(String(error51));
6007
6007
  return null;
6008
6008
  }
6009
6009
  }
@@ -6105,9 +6105,9 @@ var require_anchors = __commonJS({
6105
6105
  if (typeof ref === "object" && ref.anchor && (identity.isScalar(ref.node) || identity.isCollection(ref.node))) {
6106
6106
  ref.node.anchor = ref.anchor;
6107
6107
  } else {
6108
- const error48 = new Error("Failed to resolve repeated object (this should not happen)");
6109
- error48.source = source;
6110
- throw error48;
6108
+ const error51 = new Error("Failed to resolve repeated object (this should not happen)");
6109
+ error51.source = source;
6110
+ throw error51;
6111
6111
  }
6112
6112
  }
6113
6113
  },
@@ -9350,12 +9350,12 @@ var require_errors = __commonJS({
9350
9350
  super("YAMLWarning", pos, code, message);
9351
9351
  }
9352
9352
  };
9353
- var prettifyError2 = (src, lc) => (error48) => {
9354
- if (error48.pos[0] === -1)
9353
+ var prettifyError2 = (src, lc) => (error51) => {
9354
+ if (error51.pos[0] === -1)
9355
9355
  return;
9356
- error48.linePos = error48.pos.map((pos) => lc.linePos(pos));
9357
- const { line, col } = error48.linePos[0];
9358
- error48.message += ` at line ${line}, column ${col}`;
9356
+ error51.linePos = error51.pos.map((pos) => lc.linePos(pos));
9357
+ const { line, col } = error51.linePos[0];
9358
+ error51.message += ` at line ${line}, column ${col}`;
9359
9359
  let ci2 = col - 1;
9360
9360
  let lineStr = src.substring(lc.lineStarts[line - 1], lc.lineStarts[line]).replace(/[\n\r]+$/, "");
9361
9361
  if (ci2 >= 60 && lineStr.length > 80) {
@@ -9373,12 +9373,12 @@ var require_errors = __commonJS({
9373
9373
  }
9374
9374
  if (/[^ ]/.test(lineStr)) {
9375
9375
  let count = 1;
9376
- const end = error48.linePos[1];
9376
+ const end = error51.linePos[1];
9377
9377
  if (end?.line === line && end.col > col) {
9378
9378
  count = Math.max(1, Math.min(end.col - col, 80 - ci2));
9379
9379
  }
9380
9380
  const pointer = " ".repeat(ci2) + "^".repeat(count);
9381
- error48.message += `:
9381
+ error51.message += `:
9382
9382
 
9383
9383
  ${lineStr}
9384
9384
  ${pointer}
@@ -10181,7 +10181,7 @@ var require_resolve_block_scalar = __commonJS({
10181
10181
  const mode = source[0];
10182
10182
  let indent2 = 0;
10183
10183
  let chomp = "";
10184
- let error48 = -1;
10184
+ let error51 = -1;
10185
10185
  for (let i = 1; i < source.length; ++i) {
10186
10186
  const ch = source[i];
10187
10187
  if (!chomp && (ch === "-" || ch === "+"))
@@ -10190,12 +10190,12 @@ var require_resolve_block_scalar = __commonJS({
10190
10190
  const n = Number(ch);
10191
10191
  if (!indent2 && n)
10192
10192
  indent2 = n;
10193
- else if (error48 === -1)
10194
- error48 = offset + i;
10193
+ else if (error51 === -1)
10194
+ error51 = offset + i;
10195
10195
  }
10196
10196
  }
10197
- if (error48 !== -1)
10198
- onError(error48, "UNEXPECTED_TOKEN", `Block scalar header includes extra characters: ${source}`);
10197
+ if (error51 !== -1)
10198
+ onError(error51, "UNEXPECTED_TOKEN", `Block scalar header includes extra characters: ${source}`);
10199
10199
  let hasSpace = false;
10200
10200
  let comment = "";
10201
10201
  let length = source.length;
@@ -10489,8 +10489,8 @@ var require_compose_scalar = __commonJS({
10489
10489
  try {
10490
10490
  const res = tag.resolve(value, (msg) => onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg), ctx.options);
10491
10491
  scalar = identity.isScalar(res) ? res : new Scalar.Scalar(res);
10492
- } catch (error48) {
10493
- const msg = error48 instanceof Error ? error48.message : String(error48);
10492
+ } catch (error51) {
10493
+ const msg = error51 instanceof Error ? error51.message : String(error51);
10494
10494
  onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
10495
10495
  scalar = new Scalar.Scalar(value);
10496
10496
  }
@@ -10613,8 +10613,8 @@ var require_compose_node = __commonJS({
10613
10613
  node = composeCollection.composeCollection(CN, ctx, token, props, onError);
10614
10614
  if (anchor)
10615
10615
  node.anchor = anchor.source.substring(1);
10616
- } catch (error48) {
10617
- const message = error48 instanceof Error ? error48.message : String(error48);
10616
+ } catch (error51) {
10617
+ const message = error51 instanceof Error ? error51.message : String(error51);
10618
10618
  onError(token, "RESOURCE_EXHAUSTION", message);
10619
10619
  }
10620
10620
  break;
@@ -10877,11 +10877,11 @@ ${cb}` : comment;
10877
10877
  break;
10878
10878
  case "error": {
10879
10879
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
10880
- const error48 = new errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
10880
+ const error51 = new errors.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
10881
10881
  if (this.atDirectives || !this.doc)
10882
- this.errors.push(error48);
10882
+ this.errors.push(error51);
10883
10883
  else
10884
- this.doc.errors.push(error48);
10884
+ this.doc.errors.push(error51);
10885
10885
  break;
10886
10886
  }
10887
10887
  case "doc-end": {
@@ -12177,8 +12177,8 @@ var require_parser = __commonJS({
12177
12177
  peek(n) {
12178
12178
  return this.stack[this.stack.length - n];
12179
12179
  }
12180
- *pop(error48) {
12181
- const token = error48 ?? this.stack.pop();
12180
+ *pop(error51) {
12181
+ const token = error51 ?? this.stack.pop();
12182
12182
  if (!token) {
12183
12183
  const message = "Tried to pop an empty stack";
12184
12184
  yield { type: "error", offset: this.offset, source: "", message };
@@ -17972,9 +17972,9 @@ var init_dist = __esm({
17972
17972
  ListrError = class extends Error {
17973
17973
  path;
17974
17974
  ctx;
17975
- constructor(error48, type, task) {
17976
- super(error48.message);
17977
- this.error = error48;
17975
+ constructor(error51, type, task) {
17976
+ super(error51.message);
17977
+ this.error = error51;
17978
17978
  this.type = type;
17979
17979
  this.task = task;
17980
17980
  this.name = "ListrError";
@@ -17983,7 +17983,7 @@ var init_dist = __esm({
17983
17983
  this.task = cloneObject(task);
17984
17984
  this.ctx = cloneObject(task.listr.ctx);
17985
17985
  }
17986
- this.stack = error48?.stack;
17986
+ this.stack = error51?.stack;
17987
17987
  }
17988
17988
  };
17989
17989
  ListrRendererError = class extends Error {
@@ -18042,9 +18042,9 @@ var init_dist = __esm({
18042
18042
  *
18043
18043
  * @see {@link https://listr2.kilic.dev/task/error-handling.html}
18044
18044
  */
18045
- report(error48, type) {
18046
- if (this.task.options.collectErrors !== false) this.task.listr.errors.push(new ListrError(error48, type, this.task));
18047
- this.task.message$ = { error: error48.message ?? this.task?.title };
18045
+ report(error51, type) {
18046
+ if (this.task.options.collectErrors !== false) this.task.listr.errors.push(new ListrError(error51, type, this.task));
18047
+ this.task.message$ = { error: error51.message ?? this.task?.title };
18048
18048
  }
18049
18049
  /**
18050
18050
  * Skip the current task.
@@ -18299,7 +18299,7 @@ var init_dist = __esm({
18299
18299
  result.on("data", (data) => {
18300
18300
  this.output$ = data.toString();
18301
18301
  });
18302
- result.on("error", (error48) => reject(error48));
18302
+ result.on("error", (error51) => reject(error51));
18303
18303
  result.on("end", () => resolve4(null));
18304
18304
  });
18305
18305
  else if (isObservable(result)) result = new Promise((resolve4, reject) => {
@@ -18347,10 +18347,10 @@ var init_dist = __esm({
18347
18347
  this.message$ = { duration: Date.now() - startTime };
18348
18348
  this.state$ = ListrTaskState.COMPLETED;
18349
18349
  }
18350
- } catch (error48) {
18351
- if (this.prompt instanceof PromptError) error48 = this.prompt;
18350
+ } catch (error51) {
18351
+ if (this.prompt instanceof PromptError) error51 = this.prompt;
18352
18352
  if (this.task?.rollback) {
18353
- wrapper.report(error48, ListrErrorTypes.WILL_ROLLBACK);
18353
+ wrapper.report(error51, ListrErrorTypes.WILL_ROLLBACK);
18354
18354
  try {
18355
18355
  this.state$ = ListrTaskState.ROLLING_BACK;
18356
18356
  await this.task.rollback(context, wrapper);
@@ -18364,15 +18364,15 @@ var init_dist = __esm({
18364
18364
  }
18365
18365
  if (this.listr.options?.exitAfterRollback !== false) {
18366
18366
  this.close();
18367
- throw error48;
18367
+ throw error51;
18368
18368
  }
18369
18369
  } else {
18370
18370
  this.state$ = ListrTaskState.FAILED;
18371
18371
  if (this.listr.options.exitOnError !== false && await assertFunctionOrSelf(this.task?.exitOnError, context) !== false) {
18372
- wrapper.report(error48, ListrErrorTypes.HAS_FAILED);
18372
+ wrapper.report(error51, ListrErrorTypes.HAS_FAILED);
18373
18373
  this.close();
18374
- throw error48;
18375
- } else if (!this.hasSubtasks()) wrapper.report(error48, ListrErrorTypes.HAS_FAILED_WITHOUT_ERROR);
18374
+ throw error51;
18375
+ } else if (!this.hasSubtasks()) wrapper.report(error51, ListrErrorTypes.HAS_FAILED_WITHOUT_ERROR);
18376
18376
  }
18377
18377
  } finally {
18378
18378
  this.close();
@@ -19073,15 +19073,15 @@ var init_supermemory = __esm({
19073
19073
  body: JSON.stringify({ limit: 1 })
19074
19074
  });
19075
19075
  if (!response.ok && response.status !== 404) {
19076
- const error48 = await response.text();
19077
- throw new Error(`Supermemory API error: ${error48}`);
19076
+ const error51 = await response.text();
19077
+ throw new Error(`Supermemory API error: ${error51}`);
19078
19078
  }
19079
19079
  this.initialized = true;
19080
- } catch (error48) {
19081
- if (error48 instanceof Error && error48.message.includes("fetch")) {
19082
- throw new Error(`Failed to connect to Supermemory API: ${error48.message}`);
19080
+ } catch (error51) {
19081
+ if (error51 instanceof Error && error51.message.includes("fetch")) {
19082
+ throw new Error(`Failed to connect to Supermemory API: ${error51.message}`);
19083
19083
  }
19084
- throw error48;
19084
+ throw error51;
19085
19085
  }
19086
19086
  }
19087
19087
  async add(content, options) {
@@ -19111,15 +19111,15 @@ var init_supermemory = __esm({
19111
19111
  body: JSON.stringify(body)
19112
19112
  });
19113
19113
  if (!response.ok) {
19114
- const error48 = await response.text();
19115
- return { success: false, error: `Failed to add memory: ${error48}` };
19114
+ const error51 = await response.text();
19115
+ return { success: false, error: `Failed to add memory: ${error51}` };
19116
19116
  }
19117
19117
  const result = await response.json();
19118
19118
  return { success: true, id: result.id ?? result.documentId };
19119
- } catch (error48) {
19119
+ } catch (error51) {
19120
19120
  return {
19121
19121
  success: false,
19122
- error: error48 instanceof Error ? error48.message : "Unknown error"
19122
+ error: error51 instanceof Error ? error51.message : "Unknown error"
19123
19123
  };
19124
19124
  }
19125
19125
  }
@@ -19157,8 +19157,8 @@ var init_supermemory = __esm({
19157
19157
  const result = await response.json();
19158
19158
  const results = result.results ?? [];
19159
19159
  return results.map((doc) => this.documentToMemoryEntry(doc));
19160
- } catch (error48) {
19161
- console.error("[supermemory] Search error:", error48);
19160
+ } catch (error51) {
19161
+ console.error("[supermemory] Search error:", error51);
19162
19162
  return [];
19163
19163
  }
19164
19164
  }
@@ -19176,8 +19176,8 @@ var init_supermemory = __esm({
19176
19176
  }
19177
19177
  const doc = await response.json();
19178
19178
  return this.documentToMemoryEntry(doc);
19179
- } catch (error48) {
19180
- console.error("[supermemory] Get error:", error48);
19179
+ } catch (error51) {
19180
+ console.error("[supermemory] Get error:", error51);
19181
19181
  return null;
19182
19182
  }
19183
19183
  }
@@ -19187,14 +19187,14 @@ var init_supermemory = __esm({
19187
19187
  method: "DELETE"
19188
19188
  });
19189
19189
  if (!response.ok && response.status !== 404) {
19190
- const error48 = await response.text();
19191
- return { success: false, error: `Failed to delete: ${error48}` };
19190
+ const error51 = await response.text();
19191
+ return { success: false, error: `Failed to delete: ${error51}` };
19192
19192
  }
19193
19193
  return { success: true, id };
19194
- } catch (error48) {
19194
+ } catch (error51) {
19195
19195
  return {
19196
19196
  success: false,
19197
- error: error48 instanceof Error ? error48.message : "Unknown error"
19197
+ error: error51 instanceof Error ? error51.message : "Unknown error"
19198
19198
  };
19199
19199
  }
19200
19200
  }
@@ -19216,14 +19216,14 @@ var init_supermemory = __esm({
19216
19216
  body: JSON.stringify(body)
19217
19217
  });
19218
19218
  if (!response.ok) {
19219
- const error48 = await response.text();
19220
- return { success: false, error: `Failed to update: ${error48}` };
19219
+ const error51 = await response.text();
19220
+ return { success: false, error: `Failed to update: ${error51}` };
19221
19221
  }
19222
19222
  return { success: true, id };
19223
- } catch (error48) {
19223
+ } catch (error51) {
19224
19224
  return {
19225
19225
  success: false,
19226
- error: error48 instanceof Error ? error48.message : "Unknown error"
19226
+ error: error51 instanceof Error ? error51.message : "Unknown error"
19227
19227
  };
19228
19228
  }
19229
19229
  }
@@ -19255,8 +19255,8 @@ var init_supermemory = __esm({
19255
19255
  }
19256
19256
  const result = await response.json();
19257
19257
  return (result.documents ?? []).map((doc) => this.documentToMemoryEntry(doc));
19258
- } catch (error48) {
19259
- console.error("[supermemory] List error:", error48);
19258
+ } catch (error51) {
19259
+ console.error("[supermemory] List error:", error51);
19260
19260
  return [];
19261
19261
  }
19262
19262
  }
@@ -19282,10 +19282,10 @@ var init_supermemory = __esm({
19282
19282
  await this.delete(memory.id);
19283
19283
  }
19284
19284
  return { success: true };
19285
- } catch (error48) {
19285
+ } catch (error51) {
19286
19286
  return {
19287
19287
  success: false,
19288
- error: error48 instanceof Error ? error48.message : "Unknown error"
19288
+ error: error51 instanceof Error ? error51.message : "Unknown error"
19289
19289
  };
19290
19290
  }
19291
19291
  }
@@ -19479,8 +19479,8 @@ var init_service = __esm({
19479
19479
  });
19480
19480
  this.available = true;
19481
19481
  return this.adapter;
19482
- } catch (error48) {
19483
- console.error("[memory] Failed to initialize adapter:", error48);
19482
+ } catch (error51) {
19483
+ console.error("[memory] Failed to initialize adapter:", error51);
19484
19484
  this.available = false;
19485
19485
  return null;
19486
19486
  }
@@ -19589,8 +19589,8 @@ async function getAdapter(state) {
19589
19589
  ...state.options.config,
19590
19590
  defaultAgentId: state.options.agentId,
19591
19591
  defaultProjectId: state.options.projectId
19592
- }).catch((error48) => {
19593
- console.error("[memory-hooks] Failed to create adapter:", error48);
19592
+ }).catch((error51) => {
19593
+ console.error("[memory-hooks] Failed to create adapter:", error51);
19594
19594
  return null;
19595
19595
  });
19596
19596
  }
@@ -19625,8 +19625,8 @@ function createSessionStartHook(state) {
19625
19625
  ${formattedMemories}
19626
19626
  `
19627
19627
  };
19628
- } catch (error48) {
19629
- console.error("[memory-hooks] Failed to load memories:", error48);
19628
+ } catch (error51) {
19629
+ console.error("[memory-hooks] Failed to load memories:", error51);
19630
19630
  }
19631
19631
  };
19632
19632
  }
@@ -20818,8 +20818,8 @@ function isProcessRunning(pid) {
20818
20818
  try {
20819
20819
  process.kill(pid, 0);
20820
20820
  return true;
20821
- } catch (error48) {
20822
- return error48.code === "EPERM";
20821
+ } catch (error51) {
20822
+ return error51.code === "EPERM";
20823
20823
  }
20824
20824
  }
20825
20825
  function buildBrokerInitArgs(args) {
@@ -21100,11 +21100,11 @@ var AgentRelayClient = class _AgentRelayClient {
21100
21100
  mode: input.mode
21101
21101
  })
21102
21102
  });
21103
- } catch (error48) {
21104
- if (error48 instanceof AgentRelayProtocolError && error48.code === "unsupported_operation") {
21103
+ } catch (error51) {
21104
+ if (error51 instanceof AgentRelayProtocolError && error51.code === "unsupported_operation") {
21105
21105
  return { event_id: "unsupported_operation", targets: [] };
21106
21106
  }
21107
- throw error48;
21107
+ throw error51;
21108
21108
  }
21109
21109
  }
21110
21110
  // ── Model control ──────────────────────────────────────────────────
@@ -21612,8 +21612,8 @@ var ZodError = class _ZodError extends Error {
21612
21612
  return issue2.message;
21613
21613
  };
21614
21614
  const fieldErrors = { _errors: [] };
21615
- const processError = (error48) => {
21616
- for (const issue2 of error48.issues) {
21615
+ const processError = (error51) => {
21616
+ for (const issue2 of error51.issues) {
21617
21617
  if (issue2.code === "invalid_union") {
21618
21618
  issue2.unionErrors.map(processError);
21619
21619
  } else if (issue2.code === "invalid_return_type") {
@@ -21676,8 +21676,8 @@ var ZodError = class _ZodError extends Error {
21676
21676
  }
21677
21677
  };
21678
21678
  ZodError.create = (issues) => {
21679
- const error48 = new ZodError(issues);
21680
- return error48;
21679
+ const error51 = new ZodError(issues);
21680
+ return error51;
21681
21681
  };
21682
21682
 
21683
21683
  // node_modules/zod/v3/locales/en.js
@@ -21941,8 +21941,8 @@ var handleResult = (ctx, result) => {
21941
21941
  get error() {
21942
21942
  if (this._error)
21943
21943
  return this._error;
21944
- const error48 = new ZodError(ctx.common.issues);
21945
- this._error = error48;
21944
+ const error51 = new ZodError(ctx.common.issues);
21945
+ this._error = error51;
21946
21946
  return this._error;
21947
21947
  }
21948
21948
  };
@@ -24597,25 +24597,25 @@ var ZodFunction = class _ZodFunction extends ZodType {
24597
24597
  });
24598
24598
  return INVALID;
24599
24599
  }
24600
- function makeArgsIssue(args, error48) {
24600
+ function makeArgsIssue(args, error51) {
24601
24601
  return makeIssue({
24602
24602
  data: args,
24603
24603
  path: ctx.path,
24604
24604
  errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x) => !!x),
24605
24605
  issueData: {
24606
24606
  code: ZodIssueCode.invalid_arguments,
24607
- argumentsError: error48
24607
+ argumentsError: error51
24608
24608
  }
24609
24609
  });
24610
24610
  }
24611
- function makeReturnsIssue(returns, error48) {
24611
+ function makeReturnsIssue(returns, error51) {
24612
24612
  return makeIssue({
24613
24613
  data: returns,
24614
24614
  path: ctx.path,
24615
24615
  errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x) => !!x),
24616
24616
  issueData: {
24617
24617
  code: ZodIssueCode.invalid_return_type,
24618
- returnTypeError: error48
24618
+ returnTypeError: error51
24619
24619
  }
24620
24620
  });
24621
24621
  }
@@ -24624,15 +24624,15 @@ var ZodFunction = class _ZodFunction extends ZodType {
24624
24624
  if (this._def.returns instanceof ZodPromise) {
24625
24625
  const me2 = this;
24626
24626
  return OK(async function(...args) {
24627
- const error48 = new ZodError([]);
24627
+ const error51 = new ZodError([]);
24628
24628
  const parsedArgs = await me2._def.args.parseAsync(args, params).catch((e) => {
24629
- error48.addIssue(makeArgsIssue(args, e));
24630
- throw error48;
24629
+ error51.addIssue(makeArgsIssue(args, e));
24630
+ throw error51;
24631
24631
  });
24632
24632
  const result = await Reflect.apply(fn2, this, parsedArgs);
24633
24633
  const parsedReturns = await me2._def.returns._def.type.parseAsync(result, params).catch((e) => {
24634
- error48.addIssue(makeReturnsIssue(result, e));
24635
- throw error48;
24634
+ error51.addIssue(makeReturnsIssue(result, e));
24635
+ throw error51;
24636
24636
  });
24637
24637
  return parsedReturns;
24638
24638
  });
@@ -27795,6 +27795,7 @@ __export(external_exports2, {
27795
27795
  int32: () => int32,
27796
27796
  int64: () => int64,
27797
27797
  intersection: () => intersection,
27798
+ invertCodec: () => invertCodec,
27798
27799
  ipv4: () => ipv42,
27799
27800
  ipv6: () => ipv62,
27800
27801
  iso: () => iso_exports,
@@ -28175,7 +28176,8 @@ __export(core_exports2, {
28175
28176
  });
28176
28177
 
28177
28178
  // node_modules/@relaycast/sdk/node_modules/zod/v4/core/core.js
28178
- var NEVER2 = Object.freeze({
28179
+ var _a;
28180
+ var NEVER2 = /* @__PURE__ */ Object.freeze({
28179
28181
  status: "aborted"
28180
28182
  });
28181
28183
  // @__NO_SIDE_EFFECTS__
@@ -28210,10 +28212,10 @@ function $constructor(name, initializer3, params) {
28210
28212
  }
28211
28213
  Object.defineProperty(Definition, "name", { value: name });
28212
28214
  function _2(def) {
28213
- var _a2;
28215
+ var _a3;
28214
28216
  const inst = params?.Parent ? new Definition() : this;
28215
28217
  init(inst, def);
28216
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
28218
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
28217
28219
  for (const fn2 of inst._zod.deferred) {
28218
28220
  fn2();
28219
28221
  }
@@ -28242,7 +28244,8 @@ var $ZodEncodeError = class extends Error {
28242
28244
  this.name = "ZodEncodeError";
28243
28245
  }
28244
28246
  };
28245
- var globalConfig = {};
28247
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
28248
+ var globalConfig = globalThis.__zod_globalConfig;
28246
28249
  function config(newConfig) {
28247
28250
  if (newConfig)
28248
28251
  Object.assign(globalConfig, newConfig);
@@ -28275,6 +28278,7 @@ __export(util_exports, {
28275
28278
  defineLazy: () => defineLazy,
28276
28279
  esc: () => esc,
28277
28280
  escapeRegex: () => escapeRegex,
28281
+ explicitlyAborted: () => explicitlyAborted,
28278
28282
  extend: () => extend,
28279
28283
  finalizeIssue: () => finalizeIssue,
28280
28284
  floatSafeRemainder: () => floatSafeRemainder2,
@@ -28363,19 +28367,12 @@ function cleanRegex(source) {
28363
28367
  return source.slice(start, end);
28364
28368
  }
28365
28369
  function floatSafeRemainder2(val, step) {
28366
- const valDecCount = (val.toString().split(".")[1] || "").length;
28367
- const stepString = step.toString();
28368
- let stepDecCount = (stepString.split(".")[1] || "").length;
28369
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
28370
- const match = stepString.match(/\d?e-(\d?)/);
28371
- if (match?.[1]) {
28372
- stepDecCount = Number.parseInt(match[1]);
28373
- }
28374
- }
28375
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
28376
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
28377
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
28378
- return valInt % stepInt / 10 ** decCount;
28370
+ const ratio = val / step;
28371
+ const roundedRatio = Math.round(ratio);
28372
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
28373
+ if (Math.abs(ratio - roundedRatio) < tolerance)
28374
+ return 0;
28375
+ return ratio - roundedRatio;
28379
28376
  }
28380
28377
  var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
28381
28378
  function defineLazy(object2, key, getter) {
@@ -28457,7 +28454,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
28457
28454
  function isObject(data) {
28458
28455
  return typeof data === "object" && data !== null && !Array.isArray(data);
28459
28456
  }
28460
- var allowsEval = cached(() => {
28457
+ var allowsEval = /* @__PURE__ */ cached(() => {
28458
+ if (globalConfig.jitless) {
28459
+ return false;
28460
+ }
28461
28461
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
28462
28462
  return false;
28463
28463
  }
@@ -28490,6 +28490,10 @@ function shallowClone(o) {
28490
28490
  return { ...o };
28491
28491
  if (Array.isArray(o))
28492
28492
  return [...o];
28493
+ if (o instanceof Map)
28494
+ return new Map(o);
28495
+ if (o instanceof Set)
28496
+ return new Set(o);
28493
28497
  return o;
28494
28498
  }
28495
28499
  function numKeys(data) {
@@ -28546,7 +28550,14 @@ var getParsedType2 = (data) => {
28546
28550
  }
28547
28551
  };
28548
28552
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
28549
- var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
28553
+ var primitiveTypes = /* @__PURE__ */ new Set([
28554
+ "string",
28555
+ "number",
28556
+ "bigint",
28557
+ "boolean",
28558
+ "symbol",
28559
+ "undefined"
28560
+ ]);
28550
28561
  function escapeRegex(str) {
28551
28562
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
28552
28563
  }
@@ -28715,6 +28726,9 @@ function safeExtend(schema, shape) {
28715
28726
  return clone(schema, def);
28716
28727
  }
28717
28728
  function merge(a, b2) {
28729
+ if (a._zod.def.checks?.length) {
28730
+ throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
28731
+ }
28718
28732
  const def = mergeDefs(a._zod.def, {
28719
28733
  get shape() {
28720
28734
  const _shape = { ...a._zod.def.shape, ...b2._zod.def.shape };
@@ -28724,8 +28738,7 @@ function merge(a, b2) {
28724
28738
  get catchall() {
28725
28739
  return b2._zod.def.catchall;
28726
28740
  },
28727
- checks: []
28728
- // delete existing checks
28741
+ checks: b2._zod.def.checks ?? []
28729
28742
  });
28730
28743
  return clone(a, def);
28731
28744
  }
@@ -28808,10 +28821,20 @@ function aborted(x, startIndex = 0) {
28808
28821
  }
28809
28822
  return false;
28810
28823
  }
28824
+ function explicitlyAborted(x, startIndex = 0) {
28825
+ if (x.aborted === true)
28826
+ return true;
28827
+ for (let i = startIndex; i < x.issues.length; i++) {
28828
+ if (x.issues[i]?.continue === false) {
28829
+ return true;
28830
+ }
28831
+ }
28832
+ return false;
28833
+ }
28811
28834
  function prefixIssues(path25, issues) {
28812
28835
  return issues.map((iss) => {
28813
- var _a2;
28814
- (_a2 = iss).path ?? (_a2.path = []);
28836
+ var _a3;
28837
+ (_a3 = iss).path ?? (_a3.path = []);
28815
28838
  iss.path.unshift(path25);
28816
28839
  return iss;
28817
28840
  });
@@ -28820,17 +28843,14 @@ function unwrapMessage(message) {
28820
28843
  return typeof message === "string" ? message : message?.message;
28821
28844
  }
28822
28845
  function finalizeIssue(iss, ctx, config2) {
28823
- const full = { ...iss, path: iss.path ?? [] };
28824
- if (!iss.message) {
28825
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
28826
- full.message = message;
28846
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
28847
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
28848
+ rest.path ?? (rest.path = []);
28849
+ rest.message = message;
28850
+ if (ctx?.reportInput) {
28851
+ rest.input = _input;
28827
28852
  }
28828
- delete full.inst;
28829
- delete full.continue;
28830
- if (!ctx?.reportInput) {
28831
- delete full.input;
28832
- }
28833
- return full;
28853
+ return rest;
28834
28854
  }
28835
28855
  function getSizableOrigin(input) {
28836
28856
  if (input instanceof Set)
@@ -28947,10 +28967,10 @@ var initializer = (inst, def) => {
28947
28967
  };
28948
28968
  var $ZodError = $constructor("$ZodError", initializer);
28949
28969
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
28950
- function flattenError(error48, mapper = (issue2) => issue2.message) {
28970
+ function flattenError(error51, mapper = (issue2) => issue2.message) {
28951
28971
  const fieldErrors = {};
28952
28972
  const formErrors = [];
28953
- for (const sub of error48.issues) {
28973
+ for (const sub of error51.issues) {
28954
28974
  if (sub.path.length > 0) {
28955
28975
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
28956
28976
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -28960,50 +28980,53 @@ function flattenError(error48, mapper = (issue2) => issue2.message) {
28960
28980
  }
28961
28981
  return { formErrors, fieldErrors };
28962
28982
  }
28963
- function formatError(error48, mapper = (issue2) => issue2.message) {
28983
+ function formatError(error51, mapper = (issue2) => issue2.message) {
28964
28984
  const fieldErrors = { _errors: [] };
28965
- const processError = (error49) => {
28966
- for (const issue2 of error49.issues) {
28985
+ const processError = (error52, path25 = []) => {
28986
+ for (const issue2 of error52.issues) {
28967
28987
  if (issue2.code === "invalid_union" && issue2.errors.length) {
28968
- issue2.errors.map((issues) => processError({ issues }));
28988
+ issue2.errors.map((issues) => processError({ issues }, [...path25, ...issue2.path]));
28969
28989
  } else if (issue2.code === "invalid_key") {
28970
- processError({ issues: issue2.issues });
28990
+ processError({ issues: issue2.issues }, [...path25, ...issue2.path]);
28971
28991
  } else if (issue2.code === "invalid_element") {
28972
- processError({ issues: issue2.issues });
28973
- } else if (issue2.path.length === 0) {
28974
- fieldErrors._errors.push(mapper(issue2));
28992
+ processError({ issues: issue2.issues }, [...path25, ...issue2.path]);
28975
28993
  } else {
28976
- let curr = fieldErrors;
28977
- let i = 0;
28978
- while (i < issue2.path.length) {
28979
- const el = issue2.path[i];
28980
- const terminal2 = i === issue2.path.length - 1;
28981
- if (!terminal2) {
28982
- curr[el] = curr[el] || { _errors: [] };
28983
- } else {
28984
- curr[el] = curr[el] || { _errors: [] };
28985
- curr[el]._errors.push(mapper(issue2));
28994
+ const fullpath = [...path25, ...issue2.path];
28995
+ if (fullpath.length === 0) {
28996
+ fieldErrors._errors.push(mapper(issue2));
28997
+ } else {
28998
+ let curr = fieldErrors;
28999
+ let i = 0;
29000
+ while (i < fullpath.length) {
29001
+ const el = fullpath[i];
29002
+ const terminal2 = i === fullpath.length - 1;
29003
+ if (!terminal2) {
29004
+ curr[el] = curr[el] || { _errors: [] };
29005
+ } else {
29006
+ curr[el] = curr[el] || { _errors: [] };
29007
+ curr[el]._errors.push(mapper(issue2));
29008
+ }
29009
+ curr = curr[el];
29010
+ i++;
28986
29011
  }
28987
- curr = curr[el];
28988
- i++;
28989
29012
  }
28990
29013
  }
28991
29014
  }
28992
29015
  };
28993
- processError(error48);
29016
+ processError(error51);
28994
29017
  return fieldErrors;
28995
29018
  }
28996
- function treeifyError(error48, mapper = (issue2) => issue2.message) {
29019
+ function treeifyError(error51, mapper = (issue2) => issue2.message) {
28997
29020
  const result = { errors: [] };
28998
- const processError = (error49, path25 = []) => {
28999
- var _a2, _b;
29000
- for (const issue2 of error49.issues) {
29021
+ const processError = (error52, path25 = []) => {
29022
+ var _a3, _b;
29023
+ for (const issue2 of error52.issues) {
29001
29024
  if (issue2.code === "invalid_union" && issue2.errors.length) {
29002
- issue2.errors.map((issues) => processError({ issues }, issue2.path));
29025
+ issue2.errors.map((issues) => processError({ issues }, [...path25, ...issue2.path]));
29003
29026
  } else if (issue2.code === "invalid_key") {
29004
- processError({ issues: issue2.issues }, issue2.path);
29027
+ processError({ issues: issue2.issues }, [...path25, ...issue2.path]);
29005
29028
  } else if (issue2.code === "invalid_element") {
29006
- processError({ issues: issue2.issues }, issue2.path);
29029
+ processError({ issues: issue2.issues }, [...path25, ...issue2.path]);
29007
29030
  } else {
29008
29031
  const fullpath = [...path25, ...issue2.path];
29009
29032
  if (fullpath.length === 0) {
@@ -29017,7 +29040,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
29017
29040
  const terminal2 = i === fullpath.length - 1;
29018
29041
  if (typeof el === "string") {
29019
29042
  curr.properties ?? (curr.properties = {});
29020
- (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
29043
+ (_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
29021
29044
  curr = curr.properties[el];
29022
29045
  } else {
29023
29046
  curr.items ?? (curr.items = []);
@@ -29032,7 +29055,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
29032
29055
  }
29033
29056
  }
29034
29057
  };
29035
- processError(error48);
29058
+ processError(error51);
29036
29059
  return result;
29037
29060
  }
29038
29061
  function toDotPath(_path) {
@@ -29053,9 +29076,9 @@ function toDotPath(_path) {
29053
29076
  }
29054
29077
  return segs.join("");
29055
29078
  }
29056
- function prettifyError(error48) {
29079
+ function prettifyError(error51) {
29057
29080
  const lines = [];
29058
- const issues = [...error48.issues].sort((a, b2) => (a.path ?? []).length - (b2.path ?? []).length);
29081
+ const issues = [...error51.issues].sort((a, b2) => (a.path ?? []).length - (b2.path ?? []).length);
29059
29082
  for (const issue2 of issues) {
29060
29083
  lines.push(`\u2716 ${issue2.message}`);
29061
29084
  if (issue2.path?.length)
@@ -29066,7 +29089,7 @@ function prettifyError(error48) {
29066
29089
 
29067
29090
  // node_modules/@relaycast/sdk/node_modules/zod/v4/core/parse.js
29068
29091
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
29069
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
29092
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
29070
29093
  const result = schema._zod.run({ value, issues: [] }, ctx);
29071
29094
  if (result instanceof Promise) {
29072
29095
  throw new $ZodAsyncError();
@@ -29080,7 +29103,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
29080
29103
  };
29081
29104
  var parse = /* @__PURE__ */ _parse($ZodRealError);
29082
29105
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
29083
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
29106
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
29084
29107
  let result = schema._zod.run({ value, issues: [] }, ctx);
29085
29108
  if (result instanceof Promise)
29086
29109
  result = await result;
@@ -29105,7 +29128,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
29105
29128
  };
29106
29129
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
29107
29130
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
29108
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
29131
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
29109
29132
  let result = schema._zod.run({ value, issues: [] }, ctx);
29110
29133
  if (result instanceof Promise)
29111
29134
  result = await result;
@@ -29116,7 +29139,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
29116
29139
  };
29117
29140
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
29118
29141
  var _encode = (_Err) => (schema, value, _ctx) => {
29119
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
29142
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
29120
29143
  return _parse(_Err)(schema, value, ctx);
29121
29144
  };
29122
29145
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -29125,7 +29148,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
29125
29148
  };
29126
29149
  var decode = /* @__PURE__ */ _decode($ZodRealError);
29127
29150
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
29128
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
29151
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
29129
29152
  return _parseAsync(_Err)(schema, value, ctx);
29130
29153
  };
29131
29154
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -29134,7 +29157,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
29134
29157
  };
29135
29158
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
29136
29159
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
29137
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
29160
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
29138
29161
  return _safeParse(_Err)(schema, value, ctx);
29139
29162
  };
29140
29163
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -29143,7 +29166,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
29143
29166
  };
29144
29167
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
29145
29168
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
29146
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
29169
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
29147
29170
  return _safeParseAsync(_Err)(schema, value, ctx);
29148
29171
  };
29149
29172
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -29176,6 +29199,7 @@ __export(regexes_exports, {
29176
29199
  hex: () => hex,
29177
29200
  hostname: () => hostname,
29178
29201
  html5Email: () => html5Email,
29202
+ httpProtocol: () => httpProtocol,
29179
29203
  idnEmail: () => idnEmail,
29180
29204
  integer: () => integer,
29181
29205
  ipv4: () => ipv4,
@@ -29214,7 +29238,7 @@ __export(regexes_exports, {
29214
29238
  uuid7: () => uuid7,
29215
29239
  xid: () => xid
29216
29240
  });
29217
- var cuid = /^[cC][^\s-]{8,}$/;
29241
+ var cuid = /^[cC][0-9a-z]{6,}$/;
29218
29242
  var cuid2 = /^[0-9a-z]+$/;
29219
29243
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
29220
29244
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -29253,6 +29277,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
29253
29277
  var base64url = /^[A-Za-z0-9_-]*$/;
29254
29278
  var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
29255
29279
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
29280
+ var httpProtocol = /^https?$/;
29256
29281
  var e164 = /^\+[1-9]\d{6,14}$/;
29257
29282
  var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
29258
29283
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -29311,10 +29336,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
29311
29336
 
29312
29337
  // node_modules/@relaycast/sdk/node_modules/zod/v4/core/checks.js
29313
29338
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
29314
- var _a2;
29339
+ var _a3;
29315
29340
  inst._zod ?? (inst._zod = {});
29316
29341
  inst._zod.def = def;
29317
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
29342
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
29318
29343
  });
29319
29344
  var numericOriginMap = {
29320
29345
  number: "number",
@@ -29380,8 +29405,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
29380
29405
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
29381
29406
  $ZodCheck.init(inst, def);
29382
29407
  inst._zod.onattach.push((inst2) => {
29383
- var _a2;
29384
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
29408
+ var _a3;
29409
+ (_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
29385
29410
  });
29386
29411
  inst._zod.check = (payload) => {
29387
29412
  if (typeof payload.value !== typeof def.value)
@@ -29514,9 +29539,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
29514
29539
  };
29515
29540
  });
29516
29541
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
29517
- var _a2;
29542
+ var _a3;
29518
29543
  $ZodCheck.init(inst, def);
29519
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
29544
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
29520
29545
  const val = payload.value;
29521
29546
  return !nullish(val) && val.size !== void 0;
29522
29547
  });
@@ -29542,9 +29567,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
29542
29567
  };
29543
29568
  });
29544
29569
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
29545
- var _a2;
29570
+ var _a3;
29546
29571
  $ZodCheck.init(inst, def);
29547
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
29572
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
29548
29573
  const val = payload.value;
29549
29574
  return !nullish(val) && val.size !== void 0;
29550
29575
  });
@@ -29570,9 +29595,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
29570
29595
  };
29571
29596
  });
29572
29597
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
29573
- var _a2;
29598
+ var _a3;
29574
29599
  $ZodCheck.init(inst, def);
29575
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
29600
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
29576
29601
  const val = payload.value;
29577
29602
  return !nullish(val) && val.size !== void 0;
29578
29603
  });
@@ -29600,9 +29625,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
29600
29625
  };
29601
29626
  });
29602
29627
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
29603
- var _a2;
29628
+ var _a3;
29604
29629
  $ZodCheck.init(inst, def);
29605
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
29630
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
29606
29631
  const val = payload.value;
29607
29632
  return !nullish(val) && val.length !== void 0;
29608
29633
  });
@@ -29629,9 +29654,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
29629
29654
  };
29630
29655
  });
29631
29656
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
29632
- var _a2;
29657
+ var _a3;
29633
29658
  $ZodCheck.init(inst, def);
29634
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
29659
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
29635
29660
  const val = payload.value;
29636
29661
  return !nullish(val) && val.length !== void 0;
29637
29662
  });
@@ -29658,9 +29683,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
29658
29683
  };
29659
29684
  });
29660
29685
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
29661
- var _a2;
29686
+ var _a3;
29662
29687
  $ZodCheck.init(inst, def);
29663
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
29688
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
29664
29689
  const val = payload.value;
29665
29690
  return !nullish(val) && val.length !== void 0;
29666
29691
  });
@@ -29689,7 +29714,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
29689
29714
  };
29690
29715
  });
29691
29716
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
29692
- var _a2, _b;
29717
+ var _a3, _b;
29693
29718
  $ZodCheck.init(inst, def);
29694
29719
  inst._zod.onattach.push((inst2) => {
29695
29720
  const bag = inst2._zod.bag;
@@ -29700,7 +29725,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
29700
29725
  }
29701
29726
  });
29702
29727
  if (def.pattern)
29703
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
29728
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
29704
29729
  def.pattern.lastIndex = 0;
29705
29730
  if (def.pattern.test(payload.value))
29706
29731
  return;
@@ -29896,13 +29921,13 @@ var Doc = class {
29896
29921
  // node_modules/@relaycast/sdk/node_modules/zod/v4/core/versions.js
29897
29922
  var version = {
29898
29923
  major: 4,
29899
- minor: 3,
29900
- patch: 6
29924
+ minor: 4,
29925
+ patch: 1
29901
29926
  };
29902
29927
 
29903
29928
  // node_modules/@relaycast/sdk/node_modules/zod/v4/core/schemas.js
29904
29929
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
29905
- var _a2;
29930
+ var _a3;
29906
29931
  inst ?? (inst = {});
29907
29932
  inst._zod.def = def;
29908
29933
  inst._zod.bag = inst._zod.bag || {};
@@ -29917,7 +29942,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
29917
29942
  }
29918
29943
  }
29919
29944
  if (checks.length === 0) {
29920
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
29945
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
29921
29946
  inst._zod.deferred?.push(() => {
29922
29947
  inst._zod.run = inst._zod.parse;
29923
29948
  });
@@ -29927,6 +29952,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
29927
29952
  let asyncResult;
29928
29953
  for (const ch of checks2) {
29929
29954
  if (ch._zod.def.when) {
29955
+ if (explicitlyAborted(payload))
29956
+ continue;
29930
29957
  const shouldRun = ch._zod.def.when(payload);
29931
29958
  if (!shouldRun)
29932
29959
  continue;
@@ -30067,6 +30094,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
30067
30094
  inst._zod.check = (payload) => {
30068
30095
  try {
30069
30096
  const trimmed = payload.value.trim();
30097
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
30098
+ if (!/^https?:\/\//i.test(trimmed)) {
30099
+ payload.issues.push({
30100
+ code: "invalid_format",
30101
+ format: "url",
30102
+ note: "Invalid URL format",
30103
+ input: payload.value,
30104
+ inst,
30105
+ continue: !def.abort
30106
+ });
30107
+ return;
30108
+ }
30109
+ }
30070
30110
  const url2 = new URL(trimmed);
30071
30111
  if (def.hostname) {
30072
30112
  def.hostname.lastIndex = 0;
@@ -30220,6 +30260,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
30220
30260
  function isValidBase64(data) {
30221
30261
  if (data === "")
30222
30262
  return true;
30263
+ if (/\s/.test(data))
30264
+ return false;
30223
30265
  if (data.length % 4 !== 0)
30224
30266
  return false;
30225
30267
  try {
@@ -30412,8 +30454,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
30412
30454
  $ZodType.init(inst, def);
30413
30455
  inst._zod.pattern = _undefined;
30414
30456
  inst._zod.values = /* @__PURE__ */ new Set([void 0]);
30415
- inst._zod.optin = "optional";
30416
- inst._zod.optout = "optional";
30417
30457
  inst._zod.parse = (payload, _ctx) => {
30418
30458
  const input = payload.value;
30419
30459
  if (typeof input === "undefined")
@@ -30542,15 +30582,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
30542
30582
  return payload;
30543
30583
  };
30544
30584
  });
30545
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
30585
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
30586
+ const isPresent = key in input;
30546
30587
  if (result.issues.length) {
30547
- if (isOptionalOut && !(key in input)) {
30588
+ if (isOptionalIn && isOptionalOut && !isPresent) {
30548
30589
  return;
30549
30590
  }
30550
30591
  final.issues.push(...prefixIssues(key, result.issues));
30551
30592
  }
30593
+ if (!isPresent && !isOptionalIn) {
30594
+ if (!result.issues.length) {
30595
+ final.issues.push({
30596
+ code: "invalid_type",
30597
+ expected: "nonoptional",
30598
+ input: void 0,
30599
+ path: [key]
30600
+ });
30601
+ }
30602
+ return;
30603
+ }
30552
30604
  if (result.value === void 0) {
30553
- if (key in input) {
30605
+ if (isPresent) {
30554
30606
  final.value[key] = void 0;
30555
30607
  }
30556
30608
  } else {
@@ -30578,8 +30630,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
30578
30630
  const keySet = def.keySet;
30579
30631
  const _catchall = def.catchall._zod;
30580
30632
  const t = _catchall.def.type;
30633
+ const isOptionalIn = _catchall.optin === "optional";
30581
30634
  const isOptionalOut = _catchall.optout === "optional";
30582
30635
  for (const key in input) {
30636
+ if (key === "__proto__")
30637
+ continue;
30583
30638
  if (keySet.has(key))
30584
30639
  continue;
30585
30640
  if (t === "never") {
@@ -30588,9 +30643,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
30588
30643
  }
30589
30644
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
30590
30645
  if (r instanceof Promise) {
30591
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
30646
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
30592
30647
  } else {
30593
- handlePropertyResult(r, payload, key, input, isOptionalOut);
30648
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
30594
30649
  }
30595
30650
  }
30596
30651
  if (unrecognized.length) {
@@ -30656,12 +30711,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
30656
30711
  const shape = value.shape;
30657
30712
  for (const key of value.keys) {
30658
30713
  const el = shape[key];
30714
+ const isOptionalIn = el._zod.optin === "optional";
30659
30715
  const isOptionalOut = el._zod.optout === "optional";
30660
30716
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
30661
30717
  if (r instanceof Promise) {
30662
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
30718
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
30663
30719
  } else {
30664
- handlePropertyResult(r, payload, key, input, isOptionalOut);
30720
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
30665
30721
  }
30666
30722
  }
30667
30723
  if (!catchall) {
@@ -30692,9 +30748,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
30692
30748
  const id = ids[key];
30693
30749
  const k2 = esc(key);
30694
30750
  const schema = shape[key];
30751
+ const isOptionalIn = schema?._zod?.optin === "optional";
30695
30752
  const isOptionalOut = schema?._zod?.optout === "optional";
30696
30753
  doc.write(`const ${id} = ${parseStr(key)};`);
30697
- if (isOptionalOut) {
30754
+ if (isOptionalIn && isOptionalOut) {
30698
30755
  doc.write(`
30699
30756
  if (${id}.issues.length) {
30700
30757
  if (${k2} in input) {
@@ -30713,6 +30770,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
30713
30770
  newResult[${k2}] = ${id}.value;
30714
30771
  }
30715
30772
 
30773
+ `);
30774
+ } else if (!isOptionalIn) {
30775
+ doc.write(`
30776
+ const ${id}_present = ${k2} in input;
30777
+ if (${id}.issues.length) {
30778
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
30779
+ ...iss,
30780
+ path: iss.path ? [${k2}, ...iss.path] : [${k2}]
30781
+ })));
30782
+ }
30783
+ if (!${id}_present && !${id}.issues.length) {
30784
+ payload.issues.push({
30785
+ code: "invalid_type",
30786
+ expected: "nonoptional",
30787
+ input: undefined,
30788
+ path: [${k2}]
30789
+ });
30790
+ }
30791
+
30792
+ if (${id}_present) {
30793
+ if (${id}.value === undefined) {
30794
+ newResult[${k2}] = undefined;
30795
+ } else {
30796
+ newResult[${k2}] = ${id}.value;
30797
+ }
30798
+ }
30799
+
30716
30800
  `);
30717
30801
  } else {
30718
30802
  doc.write(`
@@ -30806,10 +30890,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
30806
30890
  }
30807
30891
  return void 0;
30808
30892
  });
30809
- const single = def.options.length === 1;
30810
- const first = def.options[0]._zod.run;
30893
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
30811
30894
  inst._zod.parse = (payload, ctx) => {
30812
- if (single) {
30895
+ if (first) {
30813
30896
  return first(payload, ctx);
30814
30897
  }
30815
30898
  let async = false;
@@ -30862,10 +30945,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
30862
30945
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
30863
30946
  $ZodUnion.init(inst, def);
30864
30947
  def.inclusive = false;
30865
- const single = def.options.length === 1;
30866
- const first = def.options[0]._zod.run;
30948
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
30867
30949
  inst._zod.parse = (payload, ctx) => {
30868
- if (single) {
30950
+ if (first) {
30869
30951
  return first(payload, ctx);
30870
30952
  }
30871
30953
  let async = false;
@@ -30940,7 +31022,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
30940
31022
  if (opt) {
30941
31023
  return opt._zod.run(payload, ctx);
30942
31024
  }
30943
- if (def.unionFallback) {
31025
+ if (def.unionFallback || ctx.direction === "backward") {
30944
31026
  return _super(payload, ctx);
30945
31027
  }
30946
31028
  payload.issues.push({
@@ -30948,6 +31030,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
30948
31030
  errors: [],
30949
31031
  note: "No matching discriminator",
30950
31032
  discriminator: def.discriminator,
31033
+ options: Array.from(disc.value.keys()),
30951
31034
  input,
30952
31035
  path: [def.discriminator],
30953
31036
  inst
@@ -31069,64 +31152,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
31069
31152
  }
31070
31153
  payload.value = [];
31071
31154
  const proms = [];
31072
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
31073
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
31155
+ const optinStart = getTupleOptStart(items, "optin");
31156
+ const optoutStart = getTupleOptStart(items, "optout");
31074
31157
  if (!def.rest) {
31075
- const tooBig = input.length > items.length;
31076
- const tooSmall = input.length < optStart - 1;
31077
- if (tooBig || tooSmall) {
31158
+ if (input.length < optinStart) {
31078
31159
  payload.issues.push({
31079
- ...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
31160
+ code: "too_small",
31161
+ minimum: optinStart,
31162
+ inclusive: true,
31080
31163
  input,
31081
31164
  inst,
31082
31165
  origin: "array"
31083
31166
  });
31084
31167
  return payload;
31085
31168
  }
31086
- }
31087
- let i = -1;
31088
- for (const item of items) {
31089
- i++;
31090
- if (i >= input.length) {
31091
- if (i >= optStart)
31092
- continue;
31169
+ if (input.length > items.length) {
31170
+ payload.issues.push({
31171
+ code: "too_big",
31172
+ maximum: items.length,
31173
+ inclusive: true,
31174
+ input,
31175
+ inst,
31176
+ origin: "array"
31177
+ });
31093
31178
  }
31094
- const result = item._zod.run({
31095
- value: input[i],
31096
- issues: []
31097
- }, ctx);
31098
- if (result instanceof Promise) {
31099
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
31179
+ }
31180
+ const itemResults = new Array(items.length);
31181
+ for (let i = 0; i < items.length; i++) {
31182
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
31183
+ if (r instanceof Promise) {
31184
+ proms.push(r.then((rr2) => {
31185
+ itemResults[i] = rr2;
31186
+ }));
31100
31187
  } else {
31101
- handleTupleResult(result, payload, i);
31188
+ itemResults[i] = r;
31102
31189
  }
31103
31190
  }
31104
31191
  if (def.rest) {
31192
+ let i = items.length - 1;
31105
31193
  const rest = input.slice(items.length);
31106
31194
  for (const el of rest) {
31107
31195
  i++;
31108
- const result = def.rest._zod.run({
31109
- value: el,
31110
- issues: []
31111
- }, ctx);
31196
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
31112
31197
  if (result instanceof Promise) {
31113
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
31198
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
31114
31199
  } else {
31115
31200
  handleTupleResult(result, payload, i);
31116
31201
  }
31117
31202
  }
31118
31203
  }
31119
- if (proms.length)
31120
- return Promise.all(proms).then(() => payload);
31121
- return payload;
31204
+ if (proms.length) {
31205
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
31206
+ }
31207
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
31122
31208
  };
31123
31209
  });
31210
+ function getTupleOptStart(items, key) {
31211
+ for (let i = items.length - 1; i >= 0; i--) {
31212
+ if (items[i]._zod[key] !== "optional")
31213
+ return i + 1;
31214
+ }
31215
+ return 0;
31216
+ }
31124
31217
  function handleTupleResult(result, final, index) {
31125
31218
  if (result.issues.length) {
31126
31219
  final.issues.push(...prefixIssues(index, result.issues));
31127
31220
  }
31128
31221
  final.value[index] = result.value;
31129
31222
  }
31223
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
31224
+ for (let i = 0; i < items.length; i++) {
31225
+ const r = itemResults[i];
31226
+ const isPresent = i < input.length;
31227
+ if (r.issues.length) {
31228
+ if (!isPresent && i >= optoutStart) {
31229
+ final.value.length = i;
31230
+ break;
31231
+ }
31232
+ final.issues.push(...prefixIssues(i, r.issues));
31233
+ }
31234
+ final.value[i] = r.value;
31235
+ }
31236
+ for (let i = final.value.length - 1; i >= input.length; i--) {
31237
+ if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
31238
+ final.value.length = i;
31239
+ } else {
31240
+ break;
31241
+ }
31242
+ }
31243
+ return final;
31244
+ }
31130
31245
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
31131
31246
  $ZodType.init(inst, def);
31132
31247
  inst._zod.parse = (payload, ctx) => {
@@ -31148,19 +31263,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
31148
31263
  for (const key of values) {
31149
31264
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
31150
31265
  recordKeys.add(typeof key === "number" ? key.toString() : key);
31266
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
31267
+ if (keyResult instanceof Promise) {
31268
+ throw new Error("Async schemas not supported in object keys currently");
31269
+ }
31270
+ if (keyResult.issues.length) {
31271
+ payload.issues.push({
31272
+ code: "invalid_key",
31273
+ origin: "record",
31274
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
31275
+ input: key,
31276
+ path: [key],
31277
+ inst
31278
+ });
31279
+ continue;
31280
+ }
31281
+ const outKey = keyResult.value;
31151
31282
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
31152
31283
  if (result instanceof Promise) {
31153
31284
  proms.push(result.then((result2) => {
31154
31285
  if (result2.issues.length) {
31155
31286
  payload.issues.push(...prefixIssues(key, result2.issues));
31156
31287
  }
31157
- payload.value[key] = result2.value;
31288
+ payload.value[outKey] = result2.value;
31158
31289
  }));
31159
31290
  } else {
31160
31291
  if (result.issues.length) {
31161
31292
  payload.issues.push(...prefixIssues(key, result.issues));
31162
31293
  }
31163
- payload.value[key] = result.value;
31294
+ payload.value[outKey] = result.value;
31164
31295
  }
31165
31296
  }
31166
31297
  }
@@ -31184,6 +31315,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
31184
31315
  for (const key of Reflect.ownKeys(input)) {
31185
31316
  if (key === "__proto__")
31186
31317
  continue;
31318
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
31319
+ continue;
31187
31320
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
31188
31321
  if (keyResult instanceof Promise) {
31189
31322
  throw new Error("Async schemas not supported in object keys currently");
@@ -31827,7 +31960,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
31827
31960
  });
31828
31961
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
31829
31962
  $ZodType.init(inst, def);
31830
- defineLazy(inst._zod, "innerType", () => def.getter());
31963
+ defineLazy(inst._zod, "innerType", () => {
31964
+ const d = def;
31965
+ if (!d._cachedInner)
31966
+ d._cachedInner = def.getter();
31967
+ return d._cachedInner;
31968
+ });
31831
31969
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
31832
31970
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
31833
31971
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
@@ -31882,6 +32020,7 @@ __export(locales_exports, {
31882
32020
  cs: () => cs_default,
31883
32021
  da: () => da_default,
31884
32022
  de: () => de_default,
32023
+ el: () => el_default,
31885
32024
  en: () => en_default2,
31886
32025
  eo: () => eo_default,
31887
32026
  es: () => es_default,
@@ -31890,6 +32029,7 @@ __export(locales_exports, {
31890
32029
  fr: () => fr_default,
31891
32030
  frCA: () => fr_CA_default,
31892
32031
  he: () => he_default,
32032
+ hr: () => hr_default,
31893
32033
  hu: () => hu_default,
31894
32034
  hy: () => hy_default,
31895
32035
  id: () => id_default,
@@ -31909,6 +32049,7 @@ __export(locales_exports, {
31909
32049
  pl: () => pl_default,
31910
32050
  ps: () => ps_default,
31911
32051
  pt: () => pt_default,
32052
+ ro: () => ro_default,
31912
32053
  ru: () => ru_default,
31913
32054
  sl: () => sl_default,
31914
32055
  sv: () => sv_default,
@@ -32862,8 +33003,118 @@ function de_default() {
32862
33003
  };
32863
33004
  }
32864
33005
 
32865
- // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/en.js
33006
+ // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/el.js
32866
33007
  var error9 = () => {
33008
+ const Sizable = {
33009
+ string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
33010
+ file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
33011
+ array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
33012
+ set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
33013
+ map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
33014
+ };
33015
+ function getSizing(origin) {
33016
+ return Sizable[origin] ?? null;
33017
+ }
33018
+ const FormatDictionary = {
33019
+ regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
33020
+ email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
33021
+ url: "URL",
33022
+ emoji: "emoji",
33023
+ uuid: "UUID",
33024
+ uuidv4: "UUIDv4",
33025
+ uuidv6: "UUIDv6",
33026
+ nanoid: "nanoid",
33027
+ guid: "GUID",
33028
+ cuid: "cuid",
33029
+ cuid2: "cuid2",
33030
+ ulid: "ULID",
33031
+ xid: "XID",
33032
+ ksuid: "KSUID",
33033
+ datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
33034
+ date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
33035
+ time: "ISO \u03CE\u03C1\u03B1",
33036
+ duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
33037
+ ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
33038
+ ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
33039
+ mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
33040
+ cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
33041
+ cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
33042
+ base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
33043
+ base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
33044
+ json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
33045
+ e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
33046
+ jwt: "JWT",
33047
+ template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
33048
+ };
33049
+ const TypeDictionary = {
33050
+ nan: "NaN"
33051
+ };
33052
+ return (issue2) => {
33053
+ switch (issue2.code) {
33054
+ case "invalid_type": {
33055
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
33056
+ const receivedType = parsedType(issue2.input);
33057
+ const received = TypeDictionary[receivedType] ?? receivedType;
33058
+ if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
33059
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
33060
+ }
33061
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
33062
+ }
33063
+ case "invalid_value":
33064
+ if (issue2.values.length === 1)
33065
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`;
33066
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`;
33067
+ case "too_big": {
33068
+ const adj = issue2.inclusive ? "<=" : "<";
33069
+ const sizing = getSizing(issue2.origin);
33070
+ if (sizing)
33071
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
33072
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`;
33073
+ }
33074
+ case "too_small": {
33075
+ const adj = issue2.inclusive ? ">=" : ">";
33076
+ const sizing = getSizing(issue2.origin);
33077
+ if (sizing) {
33078
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
33079
+ }
33080
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`;
33081
+ }
33082
+ case "invalid_format": {
33083
+ const _issue = issue2;
33084
+ if (_issue.format === "starts_with") {
33085
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
33086
+ }
33087
+ if (_issue.format === "ends_with")
33088
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
33089
+ if (_issue.format === "includes")
33090
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
33091
+ if (_issue.format === "regex")
33092
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
33093
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
33094
+ }
33095
+ case "not_multiple_of":
33096
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;
33097
+ case "unrecognized_keys":
33098
+ return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`;
33099
+ case "invalid_key":
33100
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
33101
+ case "invalid_union":
33102
+ return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
33103
+ case "invalid_element":
33104
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
33105
+ default:
33106
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
33107
+ }
33108
+ };
33109
+ };
33110
+ function el_default() {
33111
+ return {
33112
+ localeError: error9()
33113
+ };
33114
+ }
33115
+
33116
+ // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/en.js
33117
+ var error10 = () => {
32867
33118
  const Sizable = {
32868
33119
  string: { unit: "characters", verb: "to have" },
32869
33120
  file: { unit: "bytes", verb: "to have" },
@@ -32957,6 +33208,10 @@ var error9 = () => {
32957
33208
  case "invalid_key":
32958
33209
  return `Invalid key in ${issue2.origin}`;
32959
33210
  case "invalid_union":
33211
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
33212
+ const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
33213
+ return `Invalid discriminator value. Expected ${opts}`;
33214
+ }
32960
33215
  return "Invalid input";
32961
33216
  case "invalid_element":
32962
33217
  return `Invalid value in ${issue2.origin}`;
@@ -32967,12 +33222,12 @@ var error9 = () => {
32967
33222
  };
32968
33223
  function en_default2() {
32969
33224
  return {
32970
- localeError: error9()
33225
+ localeError: error10()
32971
33226
  };
32972
33227
  }
32973
33228
 
32974
33229
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/eo.js
32975
- var error10 = () => {
33230
+ var error11 = () => {
32976
33231
  const Sizable = {
32977
33232
  string: { unit: "karaktrojn", verb: "havi" },
32978
33233
  file: { unit: "bajtojn", verb: "havi" },
@@ -33077,12 +33332,12 @@ var error10 = () => {
33077
33332
  };
33078
33333
  function eo_default() {
33079
33334
  return {
33080
- localeError: error10()
33335
+ localeError: error11()
33081
33336
  };
33082
33337
  }
33083
33338
 
33084
33339
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/es.js
33085
- var error11 = () => {
33340
+ var error12 = () => {
33086
33341
  const Sizable = {
33087
33342
  string: { unit: "caracteres", verb: "tener" },
33088
33343
  file: { unit: "bytes", verb: "tener" },
@@ -33210,12 +33465,12 @@ var error11 = () => {
33210
33465
  };
33211
33466
  function es_default() {
33212
33467
  return {
33213
- localeError: error11()
33468
+ localeError: error12()
33214
33469
  };
33215
33470
  }
33216
33471
 
33217
33472
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fa.js
33218
- var error12 = () => {
33473
+ var error13 = () => {
33219
33474
  const Sizable = {
33220
33475
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
33221
33476
  file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -33325,12 +33580,12 @@ var error12 = () => {
33325
33580
  };
33326
33581
  function fa_default() {
33327
33582
  return {
33328
- localeError: error12()
33583
+ localeError: error13()
33329
33584
  };
33330
33585
  }
33331
33586
 
33332
33587
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fi.js
33333
- var error13 = () => {
33588
+ var error14 = () => {
33334
33589
  const Sizable = {
33335
33590
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
33336
33591
  file: { unit: "tavua", subject: "tiedoston" },
@@ -33438,12 +33693,12 @@ var error13 = () => {
33438
33693
  };
33439
33694
  function fi_default() {
33440
33695
  return {
33441
- localeError: error13()
33696
+ localeError: error14()
33442
33697
  };
33443
33698
  }
33444
33699
 
33445
33700
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fr.js
33446
- var error14 = () => {
33701
+ var error15 = () => {
33447
33702
  const Sizable = {
33448
33703
  string: { unit: "caract\xE8res", verb: "avoir" },
33449
33704
  file: { unit: "octets", verb: "avoir" },
@@ -33484,9 +33739,27 @@ var error14 = () => {
33484
33739
  template_literal: "entr\xE9e"
33485
33740
  };
33486
33741
  const TypeDictionary = {
33487
- nan: "NaN",
33742
+ string: "cha\xEEne",
33488
33743
  number: "nombre",
33489
- array: "tableau"
33744
+ int: "entier",
33745
+ boolean: "bool\xE9en",
33746
+ bigint: "grand entier",
33747
+ symbol: "symbole",
33748
+ undefined: "ind\xE9fini",
33749
+ null: "null",
33750
+ never: "jamais",
33751
+ void: "vide",
33752
+ date: "date",
33753
+ array: "tableau",
33754
+ object: "objet",
33755
+ tuple: "tuple",
33756
+ record: "enregistrement",
33757
+ map: "carte",
33758
+ set: "ensemble",
33759
+ file: "fichier",
33760
+ nonoptional: "non-optionnel",
33761
+ nan: "NaN",
33762
+ function: "fonction"
33490
33763
  };
33491
33764
  return (issue2) => {
33492
33765
  switch (issue2.code) {
@@ -33507,16 +33780,15 @@ var error14 = () => {
33507
33780
  const adj = issue2.inclusive ? "<=" : "<";
33508
33781
  const sizing = getSizing(issue2.origin);
33509
33782
  if (sizing)
33510
- return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
33511
- return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
33783
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
33784
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
33512
33785
  }
33513
33786
  case "too_small": {
33514
33787
  const adj = issue2.inclusive ? ">=" : ">";
33515
33788
  const sizing = getSizing(issue2.origin);
33516
- if (sizing) {
33517
- return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
33518
- }
33519
- return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
33789
+ if (sizing)
33790
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
33791
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
33520
33792
  }
33521
33793
  case "invalid_format": {
33522
33794
  const _issue = issue2;
@@ -33547,12 +33819,12 @@ var error14 = () => {
33547
33819
  };
33548
33820
  function fr_default() {
33549
33821
  return {
33550
- localeError: error14()
33822
+ localeError: error15()
33551
33823
  };
33552
33824
  }
33553
33825
 
33554
33826
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fr-CA.js
33555
- var error15 = () => {
33827
+ var error16 = () => {
33556
33828
  const Sizable = {
33557
33829
  string: { unit: "caract\xE8res", verb: "avoir" },
33558
33830
  file: { unit: "octets", verb: "avoir" },
@@ -33655,12 +33927,12 @@ var error15 = () => {
33655
33927
  };
33656
33928
  function fr_CA_default() {
33657
33929
  return {
33658
- localeError: error15()
33930
+ localeError: error16()
33659
33931
  };
33660
33932
  }
33661
33933
 
33662
33934
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/he.js
33663
- var error16 = () => {
33935
+ var error17 = () => {
33664
33936
  const TypeNames = {
33665
33937
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
33666
33938
  number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
@@ -33850,12 +34122,135 @@ var error16 = () => {
33850
34122
  };
33851
34123
  function he_default() {
33852
34124
  return {
33853
- localeError: error16()
34125
+ localeError: error17()
34126
+ };
34127
+ }
34128
+
34129
+ // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hr.js
34130
+ var error18 = () => {
34131
+ const Sizable = {
34132
+ string: { unit: "znakova", verb: "imati" },
34133
+ file: { unit: "bajtova", verb: "imati" },
34134
+ array: { unit: "stavki", verb: "imati" },
34135
+ set: { unit: "stavki", verb: "imati" }
34136
+ };
34137
+ function getSizing(origin) {
34138
+ return Sizable[origin] ?? null;
34139
+ }
34140
+ const FormatDictionary = {
34141
+ regex: "unos",
34142
+ email: "email adresa",
34143
+ url: "URL",
34144
+ emoji: "emoji",
34145
+ uuid: "UUID",
34146
+ uuidv4: "UUIDv4",
34147
+ uuidv6: "UUIDv6",
34148
+ nanoid: "nanoid",
34149
+ guid: "GUID",
34150
+ cuid: "cuid",
34151
+ cuid2: "cuid2",
34152
+ ulid: "ULID",
34153
+ xid: "XID",
34154
+ ksuid: "KSUID",
34155
+ datetime: "ISO datum i vrijeme",
34156
+ date: "ISO datum",
34157
+ time: "ISO vrijeme",
34158
+ duration: "ISO trajanje",
34159
+ ipv4: "IPv4 adresa",
34160
+ ipv6: "IPv6 adresa",
34161
+ cidrv4: "IPv4 raspon",
34162
+ cidrv6: "IPv6 raspon",
34163
+ base64: "base64 kodirani tekst",
34164
+ base64url: "base64url kodirani tekst",
34165
+ json_string: "JSON tekst",
34166
+ e164: "E.164 broj",
34167
+ jwt: "JWT",
34168
+ template_literal: "unos"
34169
+ };
34170
+ const TypeDictionary = {
34171
+ nan: "NaN",
34172
+ string: "tekst",
34173
+ number: "broj",
34174
+ boolean: "boolean",
34175
+ array: "niz",
34176
+ object: "objekt",
34177
+ set: "skup",
34178
+ file: "datoteka",
34179
+ date: "datum",
34180
+ bigint: "bigint",
34181
+ symbol: "simbol",
34182
+ undefined: "undefined",
34183
+ null: "null",
34184
+ function: "funkcija",
34185
+ map: "mapa"
34186
+ };
34187
+ return (issue2) => {
34188
+ switch (issue2.code) {
34189
+ case "invalid_type": {
34190
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
34191
+ const receivedType = parsedType(issue2.input);
34192
+ const received = TypeDictionary[receivedType] ?? receivedType;
34193
+ if (/^[A-Z]/.test(issue2.expected)) {
34194
+ return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
34195
+ }
34196
+ return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
34197
+ }
34198
+ case "invalid_value":
34199
+ if (issue2.values.length === 1)
34200
+ return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
34201
+ return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
34202
+ case "too_big": {
34203
+ const adj = issue2.inclusive ? "<=" : "<";
34204
+ const sizing = getSizing(issue2.origin);
34205
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
34206
+ if (sizing)
34207
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
34208
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
34209
+ }
34210
+ case "too_small": {
34211
+ const adj = issue2.inclusive ? ">=" : ">";
34212
+ const sizing = getSizing(issue2.origin);
34213
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
34214
+ if (sizing) {
34215
+ return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
34216
+ }
34217
+ return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
34218
+ }
34219
+ case "invalid_format": {
34220
+ const _issue = issue2;
34221
+ if (_issue.format === "starts_with")
34222
+ return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
34223
+ if (_issue.format === "ends_with")
34224
+ return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
34225
+ if (_issue.format === "includes")
34226
+ return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
34227
+ if (_issue.format === "regex")
34228
+ return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
34229
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
34230
+ }
34231
+ case "not_multiple_of":
34232
+ return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
34233
+ case "unrecognized_keys":
34234
+ return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
34235
+ case "invalid_key":
34236
+ return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
34237
+ case "invalid_union":
34238
+ return "Neispravan unos";
34239
+ case "invalid_element":
34240
+ return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
34241
+ default:
34242
+ return `Neispravan unos`;
34243
+ }
34244
+ };
34245
+ };
34246
+ function hr_default() {
34247
+ return {
34248
+ localeError: error18()
33854
34249
  };
33855
34250
  }
33856
34251
 
33857
34252
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hu.js
33858
- var error17 = () => {
34253
+ var error19 = () => {
33859
34254
  const Sizable = {
33860
34255
  string: { unit: "karakter", verb: "legyen" },
33861
34256
  file: { unit: "byte", verb: "legyen" },
@@ -33959,7 +34354,7 @@ var error17 = () => {
33959
34354
  };
33960
34355
  function hu_default() {
33961
34356
  return {
33962
- localeError: error17()
34357
+ localeError: error19()
33963
34358
  };
33964
34359
  }
33965
34360
 
@@ -33974,7 +34369,7 @@ function withDefiniteArticle(word) {
33974
34369
  const lastChar = word[word.length - 1];
33975
34370
  return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
33976
34371
  }
33977
- var error18 = () => {
34372
+ var error20 = () => {
33978
34373
  const Sizable = {
33979
34374
  string: {
33980
34375
  unit: {
@@ -34107,12 +34502,12 @@ var error18 = () => {
34107
34502
  };
34108
34503
  function hy_default() {
34109
34504
  return {
34110
- localeError: error18()
34505
+ localeError: error20()
34111
34506
  };
34112
34507
  }
34113
34508
 
34114
34509
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/id.js
34115
- var error19 = () => {
34510
+ var error21 = () => {
34116
34511
  const Sizable = {
34117
34512
  string: { unit: "karakter", verb: "memiliki" },
34118
34513
  file: { unit: "byte", verb: "memiliki" },
@@ -34214,12 +34609,12 @@ var error19 = () => {
34214
34609
  };
34215
34610
  function id_default() {
34216
34611
  return {
34217
- localeError: error19()
34612
+ localeError: error21()
34218
34613
  };
34219
34614
  }
34220
34615
 
34221
34616
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/is.js
34222
- var error20 = () => {
34617
+ var error22 = () => {
34223
34618
  const Sizable = {
34224
34619
  string: { unit: "stafi", verb: "a\xF0 hafa" },
34225
34620
  file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
@@ -34324,12 +34719,12 @@ var error20 = () => {
34324
34719
  };
34325
34720
  function is_default() {
34326
34721
  return {
34327
- localeError: error20()
34722
+ localeError: error22()
34328
34723
  };
34329
34724
  }
34330
34725
 
34331
34726
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/it.js
34332
- var error21 = () => {
34727
+ var error23 = () => {
34333
34728
  const Sizable = {
34334
34729
  string: { unit: "caratteri", verb: "avere" },
34335
34730
  file: { unit: "byte", verb: "avere" },
@@ -34414,7 +34809,7 @@ var error21 = () => {
34414
34809
  return `Stringa non valida: deve includere "${_issue.includes}"`;
34415
34810
  if (_issue.format === "regex")
34416
34811
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
34417
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
34812
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
34418
34813
  }
34419
34814
  case "not_multiple_of":
34420
34815
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -34433,12 +34828,12 @@ var error21 = () => {
34433
34828
  };
34434
34829
  function it_default() {
34435
34830
  return {
34436
- localeError: error21()
34831
+ localeError: error23()
34437
34832
  };
34438
34833
  }
34439
34834
 
34440
34835
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ja.js
34441
- var error22 = () => {
34836
+ var error24 = () => {
34442
34837
  const Sizable = {
34443
34838
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
34444
34839
  file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
@@ -34541,12 +34936,12 @@ var error22 = () => {
34541
34936
  };
34542
34937
  function ja_default() {
34543
34938
  return {
34544
- localeError: error22()
34939
+ localeError: error24()
34545
34940
  };
34546
34941
  }
34547
34942
 
34548
34943
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ka.js
34549
- var error23 = () => {
34944
+ var error25 = () => {
34550
34945
  const Sizable = {
34551
34946
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
34552
34947
  file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -34579,9 +34974,9 @@ var error23 = () => {
34579
34974
  ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
34580
34975
  cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
34581
34976
  cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
34582
- base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
34583
- base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
34584
- json_string: "JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
34977
+ base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
34978
+ base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
34979
+ json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
34585
34980
  e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
34586
34981
  jwt: "JWT",
34587
34982
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
@@ -34589,7 +34984,7 @@ var error23 = () => {
34589
34984
  const TypeDictionary = {
34590
34985
  nan: "NaN",
34591
34986
  number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
34592
- string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
34987
+ string: "\u10D5\u10D4\u10DA\u10D8",
34593
34988
  boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
34594
34989
  function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
34595
34990
  array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
@@ -34627,14 +35022,14 @@ var error23 = () => {
34627
35022
  case "invalid_format": {
34628
35023
  const _issue = issue2;
34629
35024
  if (_issue.format === "starts_with") {
34630
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
35025
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
34631
35026
  }
34632
35027
  if (_issue.format === "ends_with")
34633
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
35028
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
34634
35029
  if (_issue.format === "includes")
34635
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
35030
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
34636
35031
  if (_issue.format === "regex")
34637
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
35032
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
34638
35033
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
34639
35034
  }
34640
35035
  case "not_multiple_of":
@@ -34654,12 +35049,12 @@ var error23 = () => {
34654
35049
  };
34655
35050
  function ka_default() {
34656
35051
  return {
34657
- localeError: error23()
35052
+ localeError: error25()
34658
35053
  };
34659
35054
  }
34660
35055
 
34661
35056
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/km.js
34662
- var error24 = () => {
35057
+ var error26 = () => {
34663
35058
  const Sizable = {
34664
35059
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
34665
35060
  file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -34765,7 +35160,7 @@ var error24 = () => {
34765
35160
  };
34766
35161
  function km_default() {
34767
35162
  return {
34768
- localeError: error24()
35163
+ localeError: error26()
34769
35164
  };
34770
35165
  }
34771
35166
 
@@ -34775,7 +35170,7 @@ function kh_default() {
34775
35170
  }
34776
35171
 
34777
35172
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ko.js
34778
- var error25 = () => {
35173
+ var error27 = () => {
34779
35174
  const Sizable = {
34780
35175
  string: { unit: "\uBB38\uC790", verb: "to have" },
34781
35176
  file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
@@ -34882,7 +35277,7 @@ var error25 = () => {
34882
35277
  };
34883
35278
  function ko_default() {
34884
35279
  return {
34885
- localeError: error25()
35280
+ localeError: error27()
34886
35281
  };
34887
35282
  }
34888
35283
 
@@ -34900,7 +35295,7 @@ function getUnitTypeFromNumber(number4) {
34900
35295
  return "one";
34901
35296
  return "few";
34902
35297
  }
34903
- var error26 = () => {
35298
+ var error28 = () => {
34904
35299
  const Sizable = {
34905
35300
  string: {
34906
35301
  unit: {
@@ -35086,12 +35481,12 @@ var error26 = () => {
35086
35481
  };
35087
35482
  function lt_default() {
35088
35483
  return {
35089
- localeError: error26()
35484
+ localeError: error28()
35090
35485
  };
35091
35486
  }
35092
35487
 
35093
35488
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/mk.js
35094
- var error27 = () => {
35489
+ var error29 = () => {
35095
35490
  const Sizable = {
35096
35491
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
35097
35492
  file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -35196,12 +35591,12 @@ var error27 = () => {
35196
35591
  };
35197
35592
  function mk_default() {
35198
35593
  return {
35199
- localeError: error27()
35594
+ localeError: error29()
35200
35595
  };
35201
35596
  }
35202
35597
 
35203
35598
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ms.js
35204
- var error28 = () => {
35599
+ var error30 = () => {
35205
35600
  const Sizable = {
35206
35601
  string: { unit: "aksara", verb: "mempunyai" },
35207
35602
  file: { unit: "bait", verb: "mempunyai" },
@@ -35304,12 +35699,12 @@ var error28 = () => {
35304
35699
  };
35305
35700
  function ms_default() {
35306
35701
  return {
35307
- localeError: error28()
35702
+ localeError: error30()
35308
35703
  };
35309
35704
  }
35310
35705
 
35311
35706
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/nl.js
35312
- var error29 = () => {
35707
+ var error31 = () => {
35313
35708
  const Sizable = {
35314
35709
  string: { unit: "tekens", verb: "heeft" },
35315
35710
  file: { unit: "bytes", verb: "heeft" },
@@ -35415,12 +35810,12 @@ var error29 = () => {
35415
35810
  };
35416
35811
  function nl_default() {
35417
35812
  return {
35418
- localeError: error29()
35813
+ localeError: error31()
35419
35814
  };
35420
35815
  }
35421
35816
 
35422
35817
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/no.js
35423
- var error30 = () => {
35818
+ var error32 = () => {
35424
35819
  const Sizable = {
35425
35820
  string: { unit: "tegn", verb: "\xE5 ha" },
35426
35821
  file: { unit: "bytes", verb: "\xE5 ha" },
@@ -35524,12 +35919,12 @@ var error30 = () => {
35524
35919
  };
35525
35920
  function no_default() {
35526
35921
  return {
35527
- localeError: error30()
35922
+ localeError: error32()
35528
35923
  };
35529
35924
  }
35530
35925
 
35531
35926
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ota.js
35532
- var error31 = () => {
35927
+ var error33 = () => {
35533
35928
  const Sizable = {
35534
35929
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
35535
35930
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -35634,12 +36029,12 @@ var error31 = () => {
35634
36029
  };
35635
36030
  function ota_default() {
35636
36031
  return {
35637
- localeError: error31()
36032
+ localeError: error33()
35638
36033
  };
35639
36034
  }
35640
36035
 
35641
36036
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ps.js
35642
- var error32 = () => {
36037
+ var error34 = () => {
35643
36038
  const Sizable = {
35644
36039
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
35645
36040
  file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
@@ -35749,12 +36144,12 @@ var error32 = () => {
35749
36144
  };
35750
36145
  function ps_default() {
35751
36146
  return {
35752
- localeError: error32()
36147
+ localeError: error34()
35753
36148
  };
35754
36149
  }
35755
36150
 
35756
36151
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/pl.js
35757
- var error33 = () => {
36152
+ var error35 = () => {
35758
36153
  const Sizable = {
35759
36154
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
35760
36155
  file: { unit: "bajt\xF3w", verb: "mie\u0107" },
@@ -35859,12 +36254,12 @@ var error33 = () => {
35859
36254
  };
35860
36255
  function pl_default() {
35861
36256
  return {
35862
- localeError: error33()
36257
+ localeError: error35()
35863
36258
  };
35864
36259
  }
35865
36260
 
35866
36261
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/pt.js
35867
- var error34 = () => {
36262
+ var error36 = () => {
35868
36263
  const Sizable = {
35869
36264
  string: { unit: "caracteres", verb: "ter" },
35870
36265
  file: { unit: "bytes", verb: "ter" },
@@ -35968,7 +36363,127 @@ var error34 = () => {
35968
36363
  };
35969
36364
  function pt_default() {
35970
36365
  return {
35971
- localeError: error34()
36366
+ localeError: error36()
36367
+ };
36368
+ }
36369
+
36370
+ // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ro.js
36371
+ var error37 = () => {
36372
+ const Sizable = {
36373
+ string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
36374
+ file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
36375
+ array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
36376
+ set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
36377
+ map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
36378
+ };
36379
+ function getSizing(origin) {
36380
+ return Sizable[origin] ?? null;
36381
+ }
36382
+ const FormatDictionary = {
36383
+ regex: "intrare",
36384
+ email: "adres\u0103 de email",
36385
+ url: "URL",
36386
+ emoji: "emoji",
36387
+ uuid: "UUID",
36388
+ uuidv4: "UUIDv4",
36389
+ uuidv6: "UUIDv6",
36390
+ nanoid: "nanoid",
36391
+ guid: "GUID",
36392
+ cuid: "cuid",
36393
+ cuid2: "cuid2",
36394
+ ulid: "ULID",
36395
+ xid: "XID",
36396
+ ksuid: "KSUID",
36397
+ datetime: "dat\u0103 \u0219i or\u0103 ISO",
36398
+ date: "dat\u0103 ISO",
36399
+ time: "or\u0103 ISO",
36400
+ duration: "durat\u0103 ISO",
36401
+ ipv4: "adres\u0103 IPv4",
36402
+ ipv6: "adres\u0103 IPv6",
36403
+ mac: "adres\u0103 MAC",
36404
+ cidrv4: "interval IPv4",
36405
+ cidrv6: "interval IPv6",
36406
+ base64: "\u0219ir codat base64",
36407
+ base64url: "\u0219ir codat base64url",
36408
+ json_string: "\u0219ir JSON",
36409
+ e164: "num\u0103r E.164",
36410
+ jwt: "JWT",
36411
+ template_literal: "intrare"
36412
+ };
36413
+ const TypeDictionary = {
36414
+ nan: "NaN",
36415
+ string: "\u0219ir",
36416
+ number: "num\u0103r",
36417
+ boolean: "boolean",
36418
+ function: "func\u021Bie",
36419
+ array: "matrice",
36420
+ object: "obiect",
36421
+ undefined: "nedefinit",
36422
+ symbol: "simbol",
36423
+ bigint: "num\u0103r mare",
36424
+ void: "void",
36425
+ never: "never",
36426
+ map: "hart\u0103",
36427
+ set: "set"
36428
+ };
36429
+ return (issue2) => {
36430
+ switch (issue2.code) {
36431
+ case "invalid_type": {
36432
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
36433
+ const receivedType = parsedType(issue2.input);
36434
+ const received = TypeDictionary[receivedType] ?? receivedType;
36435
+ return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
36436
+ }
36437
+ case "invalid_value":
36438
+ if (issue2.values.length === 1)
36439
+ return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
36440
+ return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
36441
+ case "too_big": {
36442
+ const adj = issue2.inclusive ? "<=" : "<";
36443
+ const sizing = getSizing(issue2.origin);
36444
+ if (sizing)
36445
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
36446
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
36447
+ }
36448
+ case "too_small": {
36449
+ const adj = issue2.inclusive ? ">=" : ">";
36450
+ const sizing = getSizing(issue2.origin);
36451
+ if (sizing) {
36452
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
36453
+ }
36454
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
36455
+ }
36456
+ case "invalid_format": {
36457
+ const _issue = issue2;
36458
+ if (_issue.format === "starts_with") {
36459
+ return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
36460
+ }
36461
+ if (_issue.format === "ends_with")
36462
+ return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
36463
+ if (_issue.format === "includes")
36464
+ return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
36465
+ if (_issue.format === "regex")
36466
+ return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
36467
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
36468
+ }
36469
+ case "not_multiple_of":
36470
+ return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
36471
+ case "unrecognized_keys":
36472
+ return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
36473
+ case "invalid_key":
36474
+ return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
36475
+ case "invalid_union":
36476
+ return "Intrare invalid\u0103";
36477
+ case "invalid_element":
36478
+ return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
36479
+ default:
36480
+ return `Intrare invalid\u0103`;
36481
+ }
36482
+ };
36483
+ };
36484
+ function ro_default() {
36485
+ return {
36486
+ localeError: error37()
35972
36487
  };
35973
36488
  }
35974
36489
 
@@ -35988,7 +36503,7 @@ function getRussianPlural(count, one, few, many) {
35988
36503
  }
35989
36504
  return many;
35990
36505
  }
35991
- var error35 = () => {
36506
+ var error38 = () => {
35992
36507
  const Sizable = {
35993
36508
  string: {
35994
36509
  unit: {
@@ -36125,12 +36640,12 @@ var error35 = () => {
36125
36640
  };
36126
36641
  function ru_default() {
36127
36642
  return {
36128
- localeError: error35()
36643
+ localeError: error38()
36129
36644
  };
36130
36645
  }
36131
36646
 
36132
36647
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/sl.js
36133
- var error36 = () => {
36648
+ var error39 = () => {
36134
36649
  const Sizable = {
36135
36650
  string: { unit: "znakov", verb: "imeti" },
36136
36651
  file: { unit: "bajtov", verb: "imeti" },
@@ -36235,12 +36750,12 @@ var error36 = () => {
36235
36750
  };
36236
36751
  function sl_default() {
36237
36752
  return {
36238
- localeError: error36()
36753
+ localeError: error39()
36239
36754
  };
36240
36755
  }
36241
36756
 
36242
36757
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/sv.js
36243
- var error37 = () => {
36758
+ var error40 = () => {
36244
36759
  const Sizable = {
36245
36760
  string: { unit: "tecken", verb: "att ha" },
36246
36761
  file: { unit: "bytes", verb: "att ha" },
@@ -36346,12 +36861,12 @@ var error37 = () => {
36346
36861
  };
36347
36862
  function sv_default() {
36348
36863
  return {
36349
- localeError: error37()
36864
+ localeError: error40()
36350
36865
  };
36351
36866
  }
36352
36867
 
36353
36868
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ta.js
36354
- var error38 = () => {
36869
+ var error41 = () => {
36355
36870
  const Sizable = {
36356
36871
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
36357
36872
  file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -36457,12 +36972,12 @@ var error38 = () => {
36457
36972
  };
36458
36973
  function ta_default() {
36459
36974
  return {
36460
- localeError: error38()
36975
+ localeError: error41()
36461
36976
  };
36462
36977
  }
36463
36978
 
36464
36979
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/th.js
36465
- var error39 = () => {
36980
+ var error42 = () => {
36466
36981
  const Sizable = {
36467
36982
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
36468
36983
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -36568,12 +37083,12 @@ var error39 = () => {
36568
37083
  };
36569
37084
  function th_default() {
36570
37085
  return {
36571
- localeError: error39()
37086
+ localeError: error42()
36572
37087
  };
36573
37088
  }
36574
37089
 
36575
37090
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/tr.js
36576
- var error40 = () => {
37091
+ var error43 = () => {
36577
37092
  const Sizable = {
36578
37093
  string: { unit: "karakter", verb: "olmal\u0131" },
36579
37094
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -36674,12 +37189,12 @@ var error40 = () => {
36674
37189
  };
36675
37190
  function tr_default() {
36676
37191
  return {
36677
- localeError: error40()
37192
+ localeError: error43()
36678
37193
  };
36679
37194
  }
36680
37195
 
36681
37196
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/uk.js
36682
- var error41 = () => {
37197
+ var error44 = () => {
36683
37198
  const Sizable = {
36684
37199
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
36685
37200
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -36783,7 +37298,7 @@ var error41 = () => {
36783
37298
  };
36784
37299
  function uk_default() {
36785
37300
  return {
36786
- localeError: error41()
37301
+ localeError: error44()
36787
37302
  };
36788
37303
  }
36789
37304
 
@@ -36793,7 +37308,7 @@ function ua_default() {
36793
37308
  }
36794
37309
 
36795
37310
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ur.js
36796
- var error42 = () => {
37311
+ var error45 = () => {
36797
37312
  const Sizable = {
36798
37313
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
36799
37314
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -36899,17 +37414,18 @@ var error42 = () => {
36899
37414
  };
36900
37415
  function ur_default() {
36901
37416
  return {
36902
- localeError: error42()
37417
+ localeError: error45()
36903
37418
  };
36904
37419
  }
36905
37420
 
36906
37421
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/uz.js
36907
- var error43 = () => {
37422
+ var error46 = () => {
36908
37423
  const Sizable = {
36909
37424
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
36910
37425
  file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
36911
37426
  array: { unit: "element", verb: "bo\u2018lishi kerak" },
36912
- set: { unit: "element", verb: "bo\u2018lishi kerak" }
37427
+ set: { unit: "element", verb: "bo\u2018lishi kerak" },
37428
+ map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
36913
37429
  };
36914
37430
  function getSizing(origin) {
36915
37431
  return Sizable[origin] ?? null;
@@ -37009,12 +37525,12 @@ var error43 = () => {
37009
37525
  };
37010
37526
  function uz_default() {
37011
37527
  return {
37012
- localeError: error43()
37528
+ localeError: error46()
37013
37529
  };
37014
37530
  }
37015
37531
 
37016
37532
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/vi.js
37017
- var error44 = () => {
37533
+ var error47 = () => {
37018
37534
  const Sizable = {
37019
37535
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
37020
37536
  file: { unit: "byte", verb: "c\xF3" },
@@ -37118,12 +37634,12 @@ var error44 = () => {
37118
37634
  };
37119
37635
  function vi_default() {
37120
37636
  return {
37121
- localeError: error44()
37637
+ localeError: error47()
37122
37638
  };
37123
37639
  }
37124
37640
 
37125
37641
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/zh-CN.js
37126
- var error45 = () => {
37642
+ var error48 = () => {
37127
37643
  const Sizable = {
37128
37644
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
37129
37645
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -37228,12 +37744,12 @@ var error45 = () => {
37228
37744
  };
37229
37745
  function zh_CN_default() {
37230
37746
  return {
37231
- localeError: error45()
37747
+ localeError: error48()
37232
37748
  };
37233
37749
  }
37234
37750
 
37235
37751
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/zh-TW.js
37236
- var error46 = () => {
37752
+ var error49 = () => {
37237
37753
  const Sizable = {
37238
37754
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
37239
37755
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -37336,12 +37852,12 @@ var error46 = () => {
37336
37852
  };
37337
37853
  function zh_TW_default() {
37338
37854
  return {
37339
- localeError: error46()
37855
+ localeError: error49()
37340
37856
  };
37341
37857
  }
37342
37858
 
37343
37859
  // node_modules/@relaycast/sdk/node_modules/zod/v4/locales/yo.js
37344
- var error47 = () => {
37860
+ var error50 = () => {
37345
37861
  const Sizable = {
37346
37862
  string: { unit: "\xE0mi", verb: "n\xED" },
37347
37863
  file: { unit: "bytes", verb: "n\xED" },
@@ -37444,12 +37960,12 @@ var error47 = () => {
37444
37960
  };
37445
37961
  function yo_default() {
37446
37962
  return {
37447
- localeError: error47()
37963
+ localeError: error50()
37448
37964
  };
37449
37965
  }
37450
37966
 
37451
37967
  // node_modules/@relaycast/sdk/node_modules/zod/v4/core/registries.js
37452
- var _a;
37968
+ var _a2;
37453
37969
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
37454
37970
  var $input = /* @__PURE__ */ Symbol("ZodInput");
37455
37971
  var $ZodRegistry = class {
@@ -37495,7 +38011,7 @@ var $ZodRegistry = class {
37495
38011
  function registry() {
37496
38012
  return new $ZodRegistry();
37497
38013
  }
37498
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
38014
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
37499
38015
  var globalRegistry = globalThis.__zod_globalRegistry;
37500
38016
 
37501
38017
  // node_modules/@relaycast/sdk/node_modules/zod/v4/core/api.js
@@ -38413,7 +38929,7 @@ function _refine(Class2, fn2, _params) {
38413
38929
  return schema;
38414
38930
  }
38415
38931
  // @__NO_SIDE_EFFECTS__
38416
- function _superRefine(fn2) {
38932
+ function _superRefine(fn2, params) {
38417
38933
  const ch = /* @__PURE__ */ _check((payload) => {
38418
38934
  payload.addIssue = (issue2) => {
38419
38935
  if (typeof issue2 === "string") {
@@ -38430,7 +38946,7 @@ function _superRefine(fn2) {
38430
38946
  }
38431
38947
  };
38432
38948
  return fn2(payload.value, payload);
38433
- });
38949
+ }, params);
38434
38950
  return ch;
38435
38951
  }
38436
38952
  // @__NO_SIDE_EFFECTS__
@@ -38560,7 +39076,7 @@ function initializeContext(params) {
38560
39076
  };
38561
39077
  }
38562
39078
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
38563
- var _a2;
39079
+ var _a3;
38564
39080
  const def = schema._zod.def;
38565
39081
  const seen = ctx.seen.get(schema);
38566
39082
  if (seen) {
@@ -38607,8 +39123,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
38607
39123
  delete result.schema.examples;
38608
39124
  delete result.schema.default;
38609
39125
  }
38610
- if (ctx.io === "input" && result.schema._prefault)
38611
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
39126
+ if (ctx.io === "input" && "_prefault" in result.schema)
39127
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
38612
39128
  delete result.schema._prefault;
38613
39129
  const _result = ctx.seen.get(schema);
38614
39130
  return _result.schema;
@@ -38789,10 +39305,15 @@ function finalize(ctx, schema) {
38789
39305
  result.$id = ctx.external.uri(id);
38790
39306
  }
38791
39307
  Object.assign(result, root.def ?? root.schema);
39308
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
39309
+ if (rootMetaId !== void 0 && result.id === rootMetaId)
39310
+ delete result.id;
38792
39311
  const defs = ctx.external?.defs ?? {};
38793
39312
  for (const entry of ctx.seen.entries()) {
38794
39313
  const seen = entry[1];
38795
39314
  if (seen.def && seen.defId) {
39315
+ if (seen.def.id === seen.defId)
39316
+ delete seen.def.id;
38796
39317
  defs[seen.defId] = seen.def;
38797
39318
  }
38798
39319
  }
@@ -38937,39 +39458,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
38937
39458
  json2.type = "integer";
38938
39459
  else
38939
39460
  json2.type = "number";
38940
- if (typeof exclusiveMinimum === "number") {
38941
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
39461
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
39462
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
39463
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
39464
+ if (exMin) {
39465
+ if (legacy) {
38942
39466
  json2.minimum = exclusiveMinimum;
38943
39467
  json2.exclusiveMinimum = true;
38944
39468
  } else {
38945
39469
  json2.exclusiveMinimum = exclusiveMinimum;
38946
39470
  }
38947
- }
38948
- if (typeof minimum === "number") {
39471
+ } else if (typeof minimum === "number") {
38949
39472
  json2.minimum = minimum;
38950
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
38951
- if (exclusiveMinimum >= minimum)
38952
- delete json2.minimum;
38953
- else
38954
- delete json2.exclusiveMinimum;
38955
- }
38956
39473
  }
38957
- if (typeof exclusiveMaximum === "number") {
38958
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
39474
+ if (exMax) {
39475
+ if (legacy) {
38959
39476
  json2.maximum = exclusiveMaximum;
38960
39477
  json2.exclusiveMaximum = true;
38961
39478
  } else {
38962
39479
  json2.exclusiveMaximum = exclusiveMaximum;
38963
39480
  }
38964
- }
38965
- if (typeof maximum === "number") {
39481
+ } else if (typeof maximum === "number") {
38966
39482
  json2.maximum = maximum;
38967
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
38968
- if (exclusiveMaximum <= maximum)
38969
- delete json2.maximum;
38970
- else
38971
- delete json2.exclusiveMaximum;
38972
- }
38973
39483
  }
38974
39484
  if (typeof multipleOf === "number")
38975
39485
  json2.multipleOf = multipleOf;
@@ -39141,7 +39651,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
39141
39651
  if (typeof maximum === "number")
39142
39652
  json2.maxItems = maximum;
39143
39653
  json2.type = "array";
39144
- json2.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] });
39654
+ json2.items = process2(def.element, ctx, {
39655
+ ...params,
39656
+ path: [...params.path, "items"]
39657
+ });
39145
39658
  };
39146
39659
  var objectProcessor = (schema, ctx, _json, params) => {
39147
39660
  const json2 = _json;
@@ -39628,6 +40141,7 @@ __export(schemas_exports2, {
39628
40141
  int32: () => int32,
39629
40142
  int64: () => int64,
39630
40143
  intersection: () => intersection,
40144
+ invertCodec: () => invertCodec,
39631
40145
  ipv4: () => ipv42,
39632
40146
  ipv6: () => ipv62,
39633
40147
  json: () => json,
@@ -39797,8 +40311,8 @@ var initializer2 = (inst, issues) => {
39797
40311
  }
39798
40312
  });
39799
40313
  };
39800
- var ZodError2 = $constructor("ZodError", initializer2);
39801
- var ZodRealError = $constructor("ZodError", initializer2, {
40314
+ var ZodError2 = /* @__PURE__ */ $constructor("ZodError", initializer2);
40315
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
39802
40316
  Parent: Error
39803
40317
  });
39804
40318
 
@@ -39817,6 +40331,43 @@ var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
39817
40331
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
39818
40332
 
39819
40333
  // node_modules/@relaycast/sdk/node_modules/zod/v4/classic/schemas.js
40334
+ var _installedGroups = /* @__PURE__ */ new WeakMap();
40335
+ function _installLazyMethods(inst, group, methods) {
40336
+ const proto = Object.getPrototypeOf(inst);
40337
+ let installed = _installedGroups.get(proto);
40338
+ if (!installed) {
40339
+ installed = /* @__PURE__ */ new Set();
40340
+ _installedGroups.set(proto, installed);
40341
+ }
40342
+ if (installed.has(group))
40343
+ return;
40344
+ installed.add(group);
40345
+ for (const key in methods) {
40346
+ const fn2 = methods[key];
40347
+ Object.defineProperty(proto, key, {
40348
+ configurable: true,
40349
+ enumerable: false,
40350
+ get() {
40351
+ const bound = fn2.bind(this);
40352
+ Object.defineProperty(this, key, {
40353
+ configurable: true,
40354
+ writable: true,
40355
+ enumerable: true,
40356
+ value: bound
40357
+ });
40358
+ return bound;
40359
+ },
40360
+ set(v2) {
40361
+ Object.defineProperty(this, key, {
40362
+ configurable: true,
40363
+ writable: true,
40364
+ enumerable: true,
40365
+ value: v2
40366
+ });
40367
+ }
40368
+ });
40369
+ }
40370
+ }
39820
40371
  var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
39821
40372
  $ZodType.init(inst, def);
39822
40373
  Object.assign(inst["~standard"], {
@@ -39829,23 +40380,6 @@ var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
39829
40380
  inst.def = def;
39830
40381
  inst.type = def.type;
39831
40382
  Object.defineProperty(inst, "_def", { value: def });
39832
- inst.check = (...checks) => {
39833
- return inst.clone(util_exports.mergeDefs(def, {
39834
- checks: [
39835
- ...def.checks ?? [],
39836
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
39837
- ]
39838
- }), {
39839
- parent: true
39840
- });
39841
- };
39842
- inst.with = inst.check;
39843
- inst.clone = (def2, params) => clone(inst, def2, params);
39844
- inst.brand = () => inst;
39845
- inst.register = ((reg, meta3) => {
39846
- reg.add(inst, meta3);
39847
- return inst;
39848
- });
39849
40383
  inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
39850
40384
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
39851
40385
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -39859,45 +40393,108 @@ var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
39859
40393
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
39860
40394
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
39861
40395
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
39862
- inst.refine = (check2, params) => inst.check(refine(check2, params));
39863
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
39864
- inst.overwrite = (fn2) => inst.check(_overwrite(fn2));
39865
- inst.optional = () => optional(inst);
39866
- inst.exactOptional = () => exactOptional(inst);
39867
- inst.nullable = () => nullable(inst);
39868
- inst.nullish = () => optional(nullable(inst));
39869
- inst.nonoptional = (params) => nonoptional(inst, params);
39870
- inst.array = () => array(inst);
39871
- inst.or = (arg) => union([inst, arg]);
39872
- inst.and = (arg) => intersection(inst, arg);
39873
- inst.transform = (tx) => pipe(inst, transform(tx));
39874
- inst.default = (def2) => _default2(inst, def2);
39875
- inst.prefault = (def2) => prefault(inst, def2);
39876
- inst.catch = (params) => _catch2(inst, params);
39877
- inst.pipe = (target) => pipe(inst, target);
39878
- inst.readonly = () => readonly(inst);
39879
- inst.describe = (description) => {
39880
- const cl = inst.clone();
39881
- globalRegistry.add(cl, { description });
39882
- return cl;
39883
- };
40396
+ _installLazyMethods(inst, "ZodType", {
40397
+ check(...chks) {
40398
+ const def2 = this.def;
40399
+ return this.clone(util_exports.mergeDefs(def2, {
40400
+ checks: [
40401
+ ...def2.checks ?? [],
40402
+ ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
40403
+ ]
40404
+ }), { parent: true });
40405
+ },
40406
+ with(...chks) {
40407
+ return this.check(...chks);
40408
+ },
40409
+ clone(def2, params) {
40410
+ return clone(this, def2, params);
40411
+ },
40412
+ brand() {
40413
+ return this;
40414
+ },
40415
+ register(reg, meta3) {
40416
+ reg.add(this, meta3);
40417
+ return this;
40418
+ },
40419
+ refine(check2, params) {
40420
+ return this.check(refine(check2, params));
40421
+ },
40422
+ superRefine(refinement, params) {
40423
+ return this.check(superRefine(refinement, params));
40424
+ },
40425
+ overwrite(fn2) {
40426
+ return this.check(_overwrite(fn2));
40427
+ },
40428
+ optional() {
40429
+ return optional(this);
40430
+ },
40431
+ exactOptional() {
40432
+ return exactOptional(this);
40433
+ },
40434
+ nullable() {
40435
+ return nullable(this);
40436
+ },
40437
+ nullish() {
40438
+ return optional(nullable(this));
40439
+ },
40440
+ nonoptional(params) {
40441
+ return nonoptional(this, params);
40442
+ },
40443
+ array() {
40444
+ return array(this);
40445
+ },
40446
+ or(arg) {
40447
+ return union([this, arg]);
40448
+ },
40449
+ and(arg) {
40450
+ return intersection(this, arg);
40451
+ },
40452
+ transform(tx) {
40453
+ return pipe(this, transform(tx));
40454
+ },
40455
+ default(d) {
40456
+ return _default2(this, d);
40457
+ },
40458
+ prefault(d) {
40459
+ return prefault(this, d);
40460
+ },
40461
+ catch(params) {
40462
+ return _catch2(this, params);
40463
+ },
40464
+ pipe(target) {
40465
+ return pipe(this, target);
40466
+ },
40467
+ readonly() {
40468
+ return readonly(this);
40469
+ },
40470
+ describe(description) {
40471
+ const cl = this.clone();
40472
+ globalRegistry.add(cl, { description });
40473
+ return cl;
40474
+ },
40475
+ meta(...args) {
40476
+ if (args.length === 0)
40477
+ return globalRegistry.get(this);
40478
+ const cl = this.clone();
40479
+ globalRegistry.add(cl, args[0]);
40480
+ return cl;
40481
+ },
40482
+ isOptional() {
40483
+ return this.safeParse(void 0).success;
40484
+ },
40485
+ isNullable() {
40486
+ return this.safeParse(null).success;
40487
+ },
40488
+ apply(fn2) {
40489
+ return fn2(this);
40490
+ }
40491
+ });
39884
40492
  Object.defineProperty(inst, "description", {
39885
40493
  get() {
39886
40494
  return globalRegistry.get(inst)?.description;
39887
40495
  },
39888
40496
  configurable: true
39889
40497
  });
39890
- inst.meta = (...args) => {
39891
- if (args.length === 0) {
39892
- return globalRegistry.get(inst);
39893
- }
39894
- const cl = inst.clone();
39895
- globalRegistry.add(cl, args[0]);
39896
- return cl;
39897
- };
39898
- inst.isOptional = () => inst.safeParse(void 0).success;
39899
- inst.isNullable = () => inst.safeParse(null).success;
39900
- inst.apply = (fn2) => fn2(inst);
39901
40498
  return inst;
39902
40499
  });
39903
40500
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -39908,21 +40505,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
39908
40505
  inst.format = bag.format ?? null;
39909
40506
  inst.minLength = bag.minimum ?? null;
39910
40507
  inst.maxLength = bag.maximum ?? null;
39911
- inst.regex = (...args) => inst.check(_regex(...args));
39912
- inst.includes = (...args) => inst.check(_includes(...args));
39913
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
39914
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
39915
- inst.min = (...args) => inst.check(_minLength(...args));
39916
- inst.max = (...args) => inst.check(_maxLength(...args));
39917
- inst.length = (...args) => inst.check(_length(...args));
39918
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
39919
- inst.lowercase = (params) => inst.check(_lowercase(params));
39920
- inst.uppercase = (params) => inst.check(_uppercase(params));
39921
- inst.trim = () => inst.check(_trim());
39922
- inst.normalize = (...args) => inst.check(_normalize(...args));
39923
- inst.toLowerCase = () => inst.check(_toLowerCase());
39924
- inst.toUpperCase = () => inst.check(_toUpperCase());
39925
- inst.slugify = () => inst.check(_slugify());
40508
+ _installLazyMethods(inst, "_ZodString", {
40509
+ regex(...args) {
40510
+ return this.check(_regex(...args));
40511
+ },
40512
+ includes(...args) {
40513
+ return this.check(_includes(...args));
40514
+ },
40515
+ startsWith(...args) {
40516
+ return this.check(_startsWith(...args));
40517
+ },
40518
+ endsWith(...args) {
40519
+ return this.check(_endsWith(...args));
40520
+ },
40521
+ min(...args) {
40522
+ return this.check(_minLength(...args));
40523
+ },
40524
+ max(...args) {
40525
+ return this.check(_maxLength(...args));
40526
+ },
40527
+ length(...args) {
40528
+ return this.check(_length(...args));
40529
+ },
40530
+ nonempty(...args) {
40531
+ return this.check(_minLength(1, ...args));
40532
+ },
40533
+ lowercase(params) {
40534
+ return this.check(_lowercase(params));
40535
+ },
40536
+ uppercase(params) {
40537
+ return this.check(_uppercase(params));
40538
+ },
40539
+ trim() {
40540
+ return this.check(_trim());
40541
+ },
40542
+ normalize(...args) {
40543
+ return this.check(_normalize(...args));
40544
+ },
40545
+ toLowerCase() {
40546
+ return this.check(_toLowerCase());
40547
+ },
40548
+ toUpperCase() {
40549
+ return this.check(_toUpperCase());
40550
+ },
40551
+ slugify() {
40552
+ return this.check(_slugify());
40553
+ }
40554
+ });
39926
40555
  });
39927
40556
  var ZodString2 = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
39928
40557
  $ZodString.init(inst, def);
@@ -40001,7 +40630,7 @@ function url(params) {
40001
40630
  }
40002
40631
  function httpUrl(params) {
40003
40632
  return _url(ZodURL, {
40004
- protocol: /^https?$/,
40633
+ protocol: regexes_exports.httpProtocol,
40005
40634
  hostname: regexes_exports.domain,
40006
40635
  ...util_exports.normalizeParams(params)
40007
40636
  });
@@ -40143,21 +40772,53 @@ var ZodNumber2 = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
40143
40772
  $ZodNumber.init(inst, def);
40144
40773
  ZodType2.init(inst, def);
40145
40774
  inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
40146
- inst.gt = (value, params) => inst.check(_gt(value, params));
40147
- inst.gte = (value, params) => inst.check(_gte(value, params));
40148
- inst.min = (value, params) => inst.check(_gte(value, params));
40149
- inst.lt = (value, params) => inst.check(_lt(value, params));
40150
- inst.lte = (value, params) => inst.check(_lte(value, params));
40151
- inst.max = (value, params) => inst.check(_lte(value, params));
40152
- inst.int = (params) => inst.check(int(params));
40153
- inst.safe = (params) => inst.check(int(params));
40154
- inst.positive = (params) => inst.check(_gt(0, params));
40155
- inst.nonnegative = (params) => inst.check(_gte(0, params));
40156
- inst.negative = (params) => inst.check(_lt(0, params));
40157
- inst.nonpositive = (params) => inst.check(_lte(0, params));
40158
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
40159
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
40160
- inst.finite = () => inst;
40775
+ _installLazyMethods(inst, "ZodNumber", {
40776
+ gt(value, params) {
40777
+ return this.check(_gt(value, params));
40778
+ },
40779
+ gte(value, params) {
40780
+ return this.check(_gte(value, params));
40781
+ },
40782
+ min(value, params) {
40783
+ return this.check(_gte(value, params));
40784
+ },
40785
+ lt(value, params) {
40786
+ return this.check(_lt(value, params));
40787
+ },
40788
+ lte(value, params) {
40789
+ return this.check(_lte(value, params));
40790
+ },
40791
+ max(value, params) {
40792
+ return this.check(_lte(value, params));
40793
+ },
40794
+ int(params) {
40795
+ return this.check(int(params));
40796
+ },
40797
+ safe(params) {
40798
+ return this.check(int(params));
40799
+ },
40800
+ positive(params) {
40801
+ return this.check(_gt(0, params));
40802
+ },
40803
+ nonnegative(params) {
40804
+ return this.check(_gte(0, params));
40805
+ },
40806
+ negative(params) {
40807
+ return this.check(_lt(0, params));
40808
+ },
40809
+ nonpositive(params) {
40810
+ return this.check(_lte(0, params));
40811
+ },
40812
+ multipleOf(value, params) {
40813
+ return this.check(_multipleOf(value, params));
40814
+ },
40815
+ step(value, params) {
40816
+ return this.check(_multipleOf(value, params));
40817
+ },
40818
+ finite() {
40819
+ return this;
40820
+ }
40821
+ });
40161
40822
  const bag = inst._zod.bag;
40162
40823
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
40163
40824
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -40304,11 +40965,23 @@ var ZodArray2 = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
40304
40965
  ZodType2.init(inst, def);
40305
40966
  inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
40306
40967
  inst.element = def.element;
40307
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
40308
- inst.nonempty = (params) => inst.check(_minLength(1, params));
40309
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
40310
- inst.length = (len, params) => inst.check(_length(len, params));
40311
- inst.unwrap = () => inst.element;
40968
+ _installLazyMethods(inst, "ZodArray", {
40969
+ min(n, params) {
40970
+ return this.check(_minLength(n, params));
40971
+ },
40972
+ nonempty(params) {
40973
+ return this.check(_minLength(1, params));
40974
+ },
40975
+ max(n, params) {
40976
+ return this.check(_maxLength(n, params));
40977
+ },
40978
+ length(n, params) {
40979
+ return this.check(_length(n, params));
40980
+ },
40981
+ unwrap() {
40982
+ return this.element;
40983
+ }
40984
+ });
40312
40985
  });
40313
40986
  function array(element, params) {
40314
40987
  return _array(ZodArray2, element, params);
@@ -40324,23 +40997,47 @@ var ZodObject2 = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
40324
40997
  util_exports.defineLazy(inst, "shape", () => {
40325
40998
  return def.shape;
40326
40999
  });
40327
- inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
40328
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
40329
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
40330
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
40331
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
40332
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
40333
- inst.extend = (incoming) => {
40334
- return util_exports.extend(inst, incoming);
40335
- };
40336
- inst.safeExtend = (incoming) => {
40337
- return util_exports.safeExtend(inst, incoming);
40338
- };
40339
- inst.merge = (other) => util_exports.merge(inst, other);
40340
- inst.pick = (mask) => util_exports.pick(inst, mask);
40341
- inst.omit = (mask) => util_exports.omit(inst, mask);
40342
- inst.partial = (...args) => util_exports.partial(ZodOptional2, inst, args[0]);
40343
- inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
41000
+ _installLazyMethods(inst, "ZodObject", {
41001
+ keyof() {
41002
+ return _enum2(Object.keys(this._zod.def.shape));
41003
+ },
41004
+ catchall(catchall) {
41005
+ return this.clone({ ...this._zod.def, catchall });
41006
+ },
41007
+ passthrough() {
41008
+ return this.clone({ ...this._zod.def, catchall: unknown() });
41009
+ },
41010
+ loose() {
41011
+ return this.clone({ ...this._zod.def, catchall: unknown() });
41012
+ },
41013
+ strict() {
41014
+ return this.clone({ ...this._zod.def, catchall: never() });
41015
+ },
41016
+ strip() {
41017
+ return this.clone({ ...this._zod.def, catchall: void 0 });
41018
+ },
41019
+ extend(incoming) {
41020
+ return util_exports.extend(this, incoming);
41021
+ },
41022
+ safeExtend(incoming) {
41023
+ return util_exports.safeExtend(this, incoming);
41024
+ },
41025
+ merge(other) {
41026
+ return util_exports.merge(this, other);
41027
+ },
41028
+ pick(mask) {
41029
+ return util_exports.pick(this, mask);
41030
+ },
41031
+ omit(mask) {
41032
+ return util_exports.omit(this, mask);
41033
+ },
41034
+ partial(...args) {
41035
+ return util_exports.partial(ZodOptional2, this, args[0]);
41036
+ },
41037
+ required(...args) {
41038
+ return util_exports.required(ZodNonOptional, this, args[0]);
41039
+ }
41040
+ });
40344
41041
  });
40345
41042
  function object(shape, params) {
40346
41043
  const def = {
@@ -40445,6 +41142,14 @@ var ZodRecord2 = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
40445
41142
  inst.valueType = def.valueType;
40446
41143
  });
40447
41144
  function record(keyType, valueType, params) {
41145
+ if (!valueType || !valueType._zod) {
41146
+ return new ZodRecord2({
41147
+ type: "record",
41148
+ keyType: string2(),
41149
+ valueType: keyType,
41150
+ ...util_exports.normalizeParams(valueType)
41151
+ });
41152
+ }
40448
41153
  return new ZodRecord2({
40449
41154
  type: "record",
40450
41155
  keyType,
@@ -40774,6 +41479,16 @@ function codec(in_, out, params) {
40774
41479
  reverseTransform: params.encode
40775
41480
  });
40776
41481
  }
41482
+ function invertCodec(codec2) {
41483
+ const def = codec2._zod.def;
41484
+ return new ZodCodec({
41485
+ type: "pipe",
41486
+ in: def.out,
41487
+ out: def.in,
41488
+ transform: def.reverseTransform,
41489
+ reverseTransform: def.transform
41490
+ });
41491
+ }
40777
41492
  var ZodReadonly2 = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
40778
41493
  $ZodReadonly.init(inst, def);
40779
41494
  ZodType2.init(inst, def);
@@ -40853,8 +41568,8 @@ function custom2(fn2, _params) {
40853
41568
  function refine(fn2, _params = {}) {
40854
41569
  return _refine(ZodCustom, fn2, _params);
40855
41570
  }
40856
- function superRefine(fn2) {
40857
- return _superRefine(fn2);
41571
+ function superRefine(fn2, params) {
41572
+ return _superRefine(fn2, params);
40858
41573
  }
40859
41574
  var describe2 = describe;
40860
41575
  var meta2 = meta;
@@ -41313,12 +42028,6 @@ function convertBaseSchema(schema, ctx) {
41313
42028
  default:
41314
42029
  throw new Error(`Unsupported type: ${type}`);
41315
42030
  }
41316
- if (schema.description) {
41317
- zodSchema = zodSchema.describe(schema.description);
41318
- }
41319
- if (schema.default !== void 0) {
41320
- zodSchema = zodSchema.default(schema.default);
41321
- }
41322
42031
  return zodSchema;
41323
42032
  }
41324
42033
  function convertSchema(schema, ctx) {
@@ -41355,6 +42064,9 @@ function convertSchema(schema, ctx) {
41355
42064
  if (schema.readOnly === true) {
41356
42065
  baseSchema = z.readonly(baseSchema);
41357
42066
  }
42067
+ if (schema.default !== void 0) {
42068
+ baseSchema = baseSchema.default(schema.default);
42069
+ }
41358
42070
  const extraMeta = {};
41359
42071
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
41360
42072
  for (const key of coreMetadataKeys) {
@@ -41376,23 +42088,32 @@ function convertSchema(schema, ctx) {
41376
42088
  if (Object.keys(extraMeta).length > 0) {
41377
42089
  ctx.registry.add(baseSchema, extraMeta);
41378
42090
  }
42091
+ if (schema.description) {
42092
+ baseSchema = baseSchema.describe(schema.description);
42093
+ }
41379
42094
  return baseSchema;
41380
42095
  }
41381
42096
  function fromJSONSchema(schema, params) {
41382
42097
  if (typeof schema === "boolean") {
41383
42098
  return schema ? z.any() : z.never();
41384
42099
  }
41385
- const version2 = detectVersion(schema, params?.defaultTarget);
41386
- const defs = schema.$defs || schema.definitions || {};
42100
+ let normalized;
42101
+ try {
42102
+ normalized = JSON.parse(JSON.stringify(schema));
42103
+ } catch {
42104
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
42105
+ }
42106
+ const version2 = detectVersion(normalized, params?.defaultTarget);
42107
+ const defs = normalized.$defs || normalized.definitions || {};
41387
42108
  const ctx = {
41388
42109
  version: version2,
41389
42110
  defs,
41390
42111
  refs: /* @__PURE__ */ new Map(),
41391
42112
  processing: /* @__PURE__ */ new Set(),
41392
- rootSchema: schema,
42113
+ rootSchema: normalized,
41393
42114
  registry: params?.registry ?? globalRegistry
41394
42115
  };
41395
- return convertSchema(schema, ctx);
42116
+ return convertSchema(normalized, ctx);
41396
42117
  }
41397
42118
 
41398
42119
  // node_modules/@relaycast/sdk/node_modules/zod/v4/classic/coerce.js
@@ -43857,8 +44578,8 @@ async function listLoggedAgents(logsDir) {
43857
44578
  }
43858
44579
 
43859
44580
  // packages/sdk/dist/relay.js
43860
- function isUnsupportedOperation(error48) {
43861
- return error48 instanceof AgentRelayProtocolError && error48.code === "unsupported_operation";
44581
+ function isUnsupportedOperation(error51) {
44582
+ return error51 instanceof AgentRelayProtocolError && error51.code === "unsupported_operation";
43862
44583
  }
43863
44584
  function buildUnsupportedOperationMessage(from, input) {
43864
44585
  return {
@@ -44120,12 +44841,12 @@ var AgentRelay = class {
44120
44841
  restartPolicy: input.restartPolicy,
44121
44842
  skipRelayPrompt: input.skipRelayPrompt
44122
44843
  });
44123
- } catch (error48) {
44844
+ } catch (error51) {
44124
44845
  await this.invokeLifecycleHook(input.onError, {
44125
44846
  ...lifecycleContext,
44126
- error: error48
44847
+ error: error51
44127
44848
  }, `spawnPty("${input.name}") onError`);
44128
- throw error48;
44849
+ throw error51;
44129
44850
  }
44130
44851
  this.resetAgentLifecycleState(result.name);
44131
44852
  const agent = this.makeAgent(result.name, result.runtime, channels);
@@ -44183,11 +44904,11 @@ var AgentRelay = class {
44183
44904
  data: input.data,
44184
44905
  mode: input.mode
44185
44906
  });
44186
- } catch (error48) {
44187
- if (isUnsupportedOperation(error48)) {
44907
+ } catch (error51) {
44908
+ if (isUnsupportedOperation(error51)) {
44188
44909
  return buildUnsupportedOperationMessage(opts.name, input);
44189
44910
  }
44190
- throw error48;
44911
+ throw error51;
44191
44912
  }
44192
44913
  if (result?.event_id === "unsupported_operation") {
44193
44914
  return buildUnsupportedOperationMessage(opts.name, input);
@@ -44389,12 +45110,12 @@ var AgentRelay = class {
44389
45110
  cleanup();
44390
45111
  resolve4(agent);
44391
45112
  };
44392
- const rejectWith = (error48) => {
45113
+ const rejectWith = (error51) => {
44393
45114
  if (settled)
44394
45115
  return;
44395
45116
  settled = true;
44396
45117
  cleanup();
44397
- reject(error48);
45118
+ reject(error51);
44398
45119
  };
44399
45120
  const unsubscribe = client.onEvent((event) => {
44400
45121
  if (event.kind !== "worker_ready" || event.name !== name) {
@@ -44437,12 +45158,12 @@ var AgentRelay = class {
44437
45158
  cleanup();
44438
45159
  resolve4(agent);
44439
45160
  };
44440
- const rejectWith = (error48) => {
45161
+ const rejectWith = (error51) => {
44441
45162
  if (settled)
44442
45163
  return;
44443
45164
  settled = true;
44444
45165
  cleanup();
44445
- reject(error48);
45166
+ reject(error51);
44446
45167
  };
44447
45168
  const unsubscribe = client.onEvent((event) => {
44448
45169
  if (event.kind === "relay_inbound" && event.from === name) {
@@ -44899,8 +45620,8 @@ var AgentRelay = class {
44899
45620
  try {
44900
45621
  await client.release(name, releaseOptions.reason);
44901
45622
  await relay.invokeLifecycleHook(releaseOptions.onSuccess, releaseContext, `release("${name}") onSuccess`);
44902
- } catch (error48) {
44903
- if (error48 instanceof AgentRelayProtocolError && error48.code === "agent_not_found") {
45623
+ } catch (error51) {
45624
+ if (error51 instanceof AgentRelayProtocolError && error51.code === "agent_not_found") {
44904
45625
  relay.exitedAgents.add(name);
44905
45626
  relay.readyAgents.delete(name);
44906
45627
  relay.messageReadyAgents.delete(name);
@@ -44916,9 +45637,9 @@ var AgentRelay = class {
44916
45637
  }
44917
45638
  await relay.invokeLifecycleHook(releaseOptions.onError, {
44918
45639
  ...releaseContext,
44919
- error: error48
45640
+ error: error51
44920
45641
  }, `release("${name}") onError`);
44921
- throw error48;
45642
+ throw error51;
44922
45643
  }
44923
45644
  },
44924
45645
  async waitForReady(timeoutMs = 6e4) {
@@ -44999,11 +45720,11 @@ var AgentRelay = class {
44999
45720
  data: input.data,
45000
45721
  mode: input.mode
45001
45722
  });
45002
- } catch (error48) {
45003
- if (isUnsupportedOperation(error48)) {
45723
+ } catch (error51) {
45724
+ if (isUnsupportedOperation(error51)) {
45004
45725
  return buildUnsupportedOperationMessage(name, input);
45005
45726
  }
45006
- throw error48;
45727
+ throw error51;
45007
45728
  }
45008
45729
  if (result?.event_id === "unsupported_operation") {
45009
45730
  return buildUnsupportedOperationMessage(name, input);
@@ -45099,12 +45820,12 @@ var AgentRelay = class {
45099
45820
  agentToken: options?.agentToken,
45100
45821
  skipRelayPrompt: options?.skipRelayPrompt
45101
45822
  });
45102
- } catch (error48) {
45823
+ } catch (error51) {
45103
45824
  await this.invokeLifecycleHook(options?.onError, {
45104
45825
  ...lifecycleContext,
45105
- error: error48
45826
+ error: error51
45106
45827
  }, `spawn("${name}") onError`);
45107
- throw error48;
45828
+ throw error51;
45108
45829
  }
45109
45830
  this.resetAgentLifecycleState(result.name);
45110
45831
  const agent = this.makeAgent(result.name, result.runtime, channels);
@@ -45124,8 +45845,8 @@ var AgentRelay = class {
45124
45845
  }
45125
45846
  try {
45126
45847
  await hook(context);
45127
- } catch (error48) {
45128
- console.warn(`[AgentRelay] ${label} hook threw`, error48);
45848
+ } catch (error51) {
45849
+ console.warn(`[AgentRelay] ${label} hook threw`, error51);
45129
45850
  }
45130
45851
  }
45131
45852
  resetAgentLifecycleState(name) {
@@ -47139,19 +47860,19 @@ function downloadBinary(url2, destPath, maxRedirects = 5) {
47139
47860
  fileStream.on("finish", () => {
47140
47861
  fileStream.close(() => resolve4());
47141
47862
  });
47142
- fileStream.on("error", (error48) => reject(error48 instanceof Error ? error48 : new Error(String(error48))));
47143
- res.on("error", (error48) => reject(error48 instanceof Error ? error48 : new Error(String(error48))));
47863
+ fileStream.on("error", (error51) => reject(error51 instanceof Error ? error51 : new Error(String(error51))));
47864
+ res.on("error", (error51) => reject(error51 instanceof Error ? error51 : new Error(String(error51))));
47144
47865
  });
47145
- request.on("error", (error48) => reject(error48 instanceof Error ? error48 : new Error(String(error48))));
47866
+ request.on("error", (error51) => reject(error51 instanceof Error ? error51 : new Error(String(error51))));
47146
47867
  };
47147
47868
  return new Promise((resolve4, reject) => {
47148
47869
  attemptDownload(url2, maxRedirects, resolve4, reject);
47149
- }).catch((error48) => {
47870
+ }).catch((error51) => {
47150
47871
  try {
47151
47872
  (0, import_node_fs7.rmSync)(destPath, { force: true });
47152
47873
  } catch {
47153
47874
  }
47154
- throw error48;
47875
+ throw error51;
47155
47876
  });
47156
47877
  }
47157
47878
  function downloadText(url2, maxRedirects = 5) {
@@ -47181,9 +47902,9 @@ function downloadText(url2, maxRedirects = 5) {
47181
47902
  chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
47182
47903
  });
47183
47904
  res.on("end", () => resolve4(Buffer.concat(chunks).toString("utf8")));
47184
- res.on("error", (error48) => reject(error48 instanceof Error ? error48 : new Error(String(error48))));
47905
+ res.on("error", (error51) => reject(error51 instanceof Error ? error51 : new Error(String(error51))));
47185
47906
  });
47186
- request.on("error", (error48) => reject(error48 instanceof Error ? error48 : new Error(String(error48))));
47907
+ request.on("error", (error51) => reject(error51 instanceof Error ? error51 : new Error(String(error51))));
47187
47908
  };
47188
47909
  return new Promise((resolve4, reject) => {
47189
47910
  fetchWithRedirects(url2, maxRedirects, resolve4, reject);
@@ -47252,12 +47973,12 @@ async function ensureRelayfileMountBinary(binaryPath) {
47252
47973
  (0, import_node_fs7.writeFileSync)(VERSION_PATH, `${RELAYFILE_VERSION}
47253
47974
  `, "utf8");
47254
47975
  return CACHE_PATH;
47255
- } catch (error48) {
47976
+ } catch (error51) {
47256
47977
  try {
47257
47978
  (0, import_node_fs7.rmSync)(tempPath, { force: true });
47258
47979
  } catch {
47259
47980
  }
47260
- const message = error48 instanceof Error ? error48.message : String(error48);
47981
+ const message = error51 instanceof Error ? error51.message : String(error51);
47261
47982
  throw new Error(`Failed to install relayfile-mount from ${downloadUrl}: ${message}`);
47262
47983
  }
47263
47984
  }
@@ -47273,8 +47994,8 @@ async function runCommandCapture(command, args, env) {
47273
47994
  proc.stderr.on("data", (chunk) => {
47274
47995
  output += chunk;
47275
47996
  });
47276
- proc.on("error", (error48) => {
47277
- reject(error48);
47997
+ proc.on("error", (error51) => {
47998
+ reject(error51);
47278
47999
  });
47279
48000
  proc.on("close", (code, signal) => {
47280
48001
  if (code === 0) {
@@ -47353,12 +48074,12 @@ async function ensureRelayfileMount(config2) {
47353
48074
  await stopMountProcess(startedMountProc).catch(() => void 0);
47354
48075
  throw new Error(`mount process for workspace ${config2.workspace} exited before continuing`);
47355
48076
  }
47356
- } catch (error48) {
48077
+ } catch (error51) {
47357
48078
  if (mountProc) {
47358
48079
  await stopMountProcess(mountProc).catch(() => void 0);
47359
48080
  }
47360
48081
  await (0, import_promises4.rm)(mountPoint, { recursive: true, force: true }).catch(() => void 0);
47361
- const message = error48 instanceof Error ? error48.message : String(error48);
48082
+ const message = error51 instanceof Error ? error51.message : String(error51);
47362
48083
  throw new Error(`${startupPhase} failed for ${config2.workspace}: ${message}`);
47363
48084
  }
47364
48085
  if (!mountProc || typeof mountProc.pid !== "number") {
@@ -47552,8 +48273,8 @@ var RelayFileWebSocketConnection = class {
47552
48273
  throw new Error("Invalid WebSocket event: 'path' must be a string.");
47553
48274
  }
47554
48275
  parsed = raw;
47555
- } catch (error48) {
47556
- const parseError = error48 instanceof Error ? error48 : new Error("Failed to parse WebSocket event payload.");
48276
+ } catch (error51) {
48277
+ const parseError = error51 instanceof Error ? error51 : new Error("Failed to parse WebSocket event payload.");
47557
48278
  for (const handler of this.handlers.error) {
47558
48279
  handler(parseError);
47559
48280
  }
@@ -47972,13 +48693,13 @@ var RelayFileClient = class {
47972
48693
  let response;
47973
48694
  try {
47974
48695
  response = await this.fetchImpl(url2, requestInit);
47975
- } catch (error48) {
47976
- if (this.shouldRetryError(error48, retries, params.signal)) {
48696
+ } catch (error51) {
48697
+ if (this.shouldRetryError(error51, retries, params.signal)) {
47977
48698
  retries += 1;
47978
48699
  await this.sleep(this.computeRetryDelayMs(retries, null), params.signal);
47979
48700
  continue;
47980
48701
  }
47981
- throw error48;
48702
+ throw error51;
47982
48703
  }
47983
48704
  if (response.ok) {
47984
48705
  return response;
@@ -48001,11 +48722,11 @@ var RelayFileClient = class {
48001
48722
  }
48002
48723
  return status === 429 || status >= 500 && status <= 599;
48003
48724
  }
48004
- shouldRetryError(error48, retries, signal) {
48725
+ shouldRetryError(error51, retries, signal) {
48005
48726
  if (signal?.aborted) {
48006
48727
  return false;
48007
48728
  }
48008
- if (error48 instanceof Error && error48.name === "AbortError") {
48729
+ if (error51 instanceof Error && error51.name === "AbortError") {
48009
48730
  return false;
48010
48731
  }
48011
48732
  return retries < this.retryOptions.maxRetries;
@@ -51175,9 +51896,9 @@ async function writeBulkWrite(baseUrl, token, workspaceId, files, correlationId)
51175
51896
  correlationId
51176
51897
  });
51177
51898
  return parseBulkWriteResponse(response);
51178
- } catch (error48) {
51179
- if (typeof error48.status === "number") {
51180
- throw error48;
51899
+ } catch (error51) {
51900
+ if (typeof error51.status === "number") {
51901
+ throw error51;
51181
51902
  }
51182
51903
  }
51183
51904
  return postBulkWrite(baseUrl, token, workspaceId, files, correlationId);
@@ -51222,8 +51943,8 @@ async function createWorkspaceIfNeeded(baseUrl, token, workspaceId) {
51222
51943
  if (response.status < 500 && response.status !== 409) {
51223
51944
  continue;
51224
51945
  }
51225
- } catch (error48) {
51226
- lastFailure = String(error48);
51946
+ } catch (error51) {
51947
+ lastFailure = String(error51);
51227
51948
  }
51228
51949
  }
51229
51950
  if (lastFailure) {
@@ -51616,9 +52337,9 @@ async function provisionWorkflowAgents(config2) {
51616
52337
  } finally {
51617
52338
  try {
51618
52339
  await audit.writeTo(auditPath);
51619
- } catch (error48) {
52340
+ } catch (error51) {
51620
52341
  if (config2.verbose) {
51621
- const message = error48 instanceof Error ? error48.message : String(error48);
52342
+ const message = error51 instanceof Error ? error51.message : String(error51);
51622
52343
  console.warn(`Failed to write permission audit to ${auditPath}: ${message}`);
51623
52344
  }
51624
52345
  }
@@ -52672,8 +53393,8 @@ function formatStepOutput(stepName, output, maxLength = 2e3) {
52672
53393
  ${preview}
52673
53394
  \`\`\``;
52674
53395
  }
52675
- function formatError2(stepName, error48) {
52676
- const raw = error48 instanceof Error ? error48.message : String(error48);
53396
+ function formatError2(stepName, error51) {
53397
+ const raw = error51 instanceof Error ? error51.message : String(error51);
52677
53398
  const message = raw.replace(/(?:\/[\w.-]+){3,}/g, "[path]");
52678
53399
  return `**[${stepName}]** Failed: ${message}`;
52679
53400
  }
@@ -53034,8 +53755,8 @@ function execCustomVerification(command, cwd, timeoutMs = DEFAULT_CUSTOM_VERIFY_
53034
53755
  encoding: "utf-8"
53035
53756
  });
53036
53757
  return { passed: true, output: stdout.trim() };
53037
- } catch (error48) {
53038
- const execError = error48;
53758
+ } catch (error51) {
53759
+ const execError = error51;
53039
53760
  const stdout = typeof execError.stdout === "string" ? execError.stdout : execError.stdout?.toString("utf-8") ?? "";
53040
53761
  const stderr = typeof execError.stderr === "string" ? execError.stderr : execError.stderr?.toString("utf-8") ?? "";
53041
53762
  const combinedOutput = [stdout, stderr].filter((chunk) => chunk.length > 0).join("\n").trim();
@@ -53167,9 +53888,9 @@ async function runCommand(command, opts) {
53167
53888
  if (killTimer)
53168
53889
  clearTimeout(killTimer);
53169
53890
  };
53170
- child.once("error", (error48) => {
53891
+ child.once("error", (error51) => {
53171
53892
  clearTimer();
53172
- reject(error48);
53893
+ reject(error51);
53173
53894
  });
53174
53895
  child.once("close", (exitCode, exitSignal) => {
53175
53896
  clearTimer();
@@ -53647,9 +54368,9 @@ var StepExecutor = class {
53647
54368
  duration: completion.duration ?? Date.now() - attemptStartedAt,
53648
54369
  retries: completion.retries ?? attempt
53649
54370
  });
53650
- } catch (error48) {
53651
- lastError = error48;
53652
- await options.onAttemptFailed?.(error48, attempt, state);
54371
+ } catch (error51) {
54372
+ lastError = error51;
54373
+ await options.onAttemptFailed?.(error51, attempt, state);
53653
54374
  }
53654
54375
  }
53655
54376
  const failure = options.getFailureResult?.(lastError, maxRetries, state) ?? {
@@ -53713,7 +54434,7 @@ var StepExecutor = class {
53713
54434
  }
53714
54435
  continue;
53715
54436
  }
53716
- const error48 = settledResult.reason instanceof Error ? settledResult.reason.message : String(settledResult.reason);
54437
+ const error51 = settledResult.reason instanceof Error ? settledResult.reason.message : String(settledResult.reason);
53717
54438
  if (state) {
53718
54439
  const failed = state.row.status === "failed" ? {
53719
54440
  status: "failed",
@@ -53721,11 +54442,11 @@ var StepExecutor = class {
53721
54442
  duration: 0,
53722
54443
  retries: state.row.retryCount,
53723
54444
  completionReason: state.row.completionReason,
53724
- error: state.row.error ?? error48
54445
+ error: state.row.error ?? error51
53725
54446
  } : await this.completeStep(step, state, {
53726
54447
  status: "failed",
53727
54448
  output: "",
53728
- error: error48,
54449
+ error: error51,
53729
54450
  retries: state.row.retryCount
53730
54451
  });
53731
54452
  results.set(step.name, failed);
@@ -53735,11 +54456,11 @@ var StepExecutor = class {
53735
54456
  agent: step.agent ?? "deterministic",
53736
54457
  status: "failed",
53737
54458
  attempts: (state?.row.retryCount ?? 0) + 1,
53738
- error: error48
54459
+ error: error51
53739
54460
  });
53740
54461
  await this.deps.markDownstreamSkipped?.(step.name);
53741
54462
  if (strategy === "fail-fast") {
53742
- throw new Error(`Step "${step.name}" failed: ${error48}`);
54463
+ throw new Error(`Step "${step.name}" failed: ${error51}`);
53743
54464
  }
53744
54465
  }
53745
54466
  if (readySteps.length > 1 && batchOutcomes.length > 0) {
@@ -53777,8 +54498,8 @@ var StepExecutor = class {
53777
54498
  }
53778
54499
  return this.executeWithProcessSpawner(step, state, agentMap, errorHandling);
53779
54500
  }
53780
- async markFailed(stepName, error48) {
53781
- this.deps.postToChannel?.(`**[${stepName}]** Failed: ${error48}`);
54501
+ async markFailed(stepName, error51) {
54502
+ this.deps.postToChannel?.(`**[${stepName}]** Failed: ${error51}`);
53782
54503
  }
53783
54504
  buildStepOutputContext(stepStates) {
53784
54505
  const steps = {};
@@ -54541,8 +55262,8 @@ var FileStorage = class {
54541
55262
  if (!file2.endsWith(".json")) continue;
54542
55263
  discovered.push((0, import_path4.join)(this.activeDir, file2));
54543
55264
  }
54544
- } catch (error48) {
54545
- if (error48.code !== "ENOENT") throw error48;
55265
+ } catch (error51) {
55266
+ if (error51.code !== "ENOENT") throw error51;
54546
55267
  }
54547
55268
  await this.walkJsonFilesInto(this.completedDir, discovered);
54548
55269
  for (const filePath of discovered) {
@@ -54600,9 +55321,9 @@ var FileStorage = class {
54600
55321
  let entries;
54601
55322
  try {
54602
55323
  entries = await (0, import_promises7.readdir)(dir, { withFileTypes: true });
54603
- } catch (error48) {
54604
- if (error48.code === "ENOENT") return;
54605
- throw error48;
55324
+ } catch (error51) {
55325
+ if (error51.code === "ENOENT") return;
55326
+ throw error51;
54606
55327
  }
54607
55328
  for (const entry of entries) {
54608
55329
  const entryPath = (0, import_path4.join)(dir, entry.name);
@@ -54679,9 +55400,9 @@ var FileStorage = class {
54679
55400
  return this.readTrajectoryOrNull(filePath);
54680
55401
  }
54681
55402
  }
54682
- } catch (error48) {
54683
- if (error48.code !== "ENOENT") {
54684
- console.error("Error searching completed trajectories:", error48);
55403
+ } catch (error51) {
55404
+ if (error51.code !== "ENOENT") {
55405
+ console.error("Error searching completed trajectories:", error51);
54685
55406
  }
54686
55407
  }
54687
55408
  return null;
@@ -54711,11 +55432,11 @@ var FileStorage = class {
54711
55432
  }
54712
55433
  }
54713
55434
  return mostRecent;
54714
- } catch (error48) {
54715
- if (error48.code === "ENOENT") {
55435
+ } catch (error51) {
55436
+ if (error51.code === "ENOENT") {
54716
55437
  return null;
54717
55438
  }
54718
- console.error("Error reading active trajectories:", error48);
55439
+ console.error("Error reading active trajectories:", error51);
54719
55440
  return null;
54720
55441
  }
54721
55442
  }
@@ -54839,14 +55560,14 @@ var FileStorage = class {
54839
55560
  let content;
54840
55561
  try {
54841
55562
  content = await (0, import_promises7.readFile)(path25, "utf-8");
54842
- } catch (error48) {
54843
- return { ok: false, reason: "io_error", path: path25, error: error48 };
55563
+ } catch (error51) {
55564
+ return { ok: false, reason: "io_error", path: path25, error: error51 };
54844
55565
  }
54845
55566
  let data;
54846
55567
  try {
54847
55568
  data = JSON.parse(content);
54848
- } catch (error48) {
54849
- return { ok: false, reason: "malformed_json", path: path25, error: error48 };
55569
+ } catch (error51) {
55570
+ return { ok: false, reason: "malformed_json", path: path25, error: error51 };
54850
55571
  }
54851
55572
  const validation = validateTrajectory(data);
54852
55573
  if (validation.success) {
@@ -54885,11 +55606,11 @@ var FileStorage = class {
54885
55606
  let content;
54886
55607
  try {
54887
55608
  content = await (0, import_promises7.readFile)(this.indexPath, "utf-8");
54888
- } catch (error48) {
54889
- if (error48.code !== "ENOENT") {
55609
+ } catch (error51) {
55610
+ if (error51.code !== "ENOENT") {
54890
55611
  console.error(
54891
55612
  "Error loading trajectory index, using empty index:",
54892
- error48
55613
+ error51
54893
55614
  );
54894
55615
  }
54895
55616
  return this.emptyIndex();
@@ -54899,10 +55620,10 @@ var FileStorage = class {
54899
55620
  }
54900
55621
  try {
54901
55622
  return JSON.parse(content);
54902
- } catch (error48) {
55623
+ } catch (error51) {
54903
55624
  console.error(
54904
55625
  "Error loading trajectory index, using empty index:",
54905
- error48
55626
+ error51
54906
55627
  );
54907
55628
  return this.emptyIndex();
54908
55629
  }
@@ -54947,8 +55668,8 @@ var FileStorage = class {
54947
55668
  var require22 = (0, import_module.createRequire)(import_meta_url);
54948
55669
 
54949
55670
  // packages/sdk/dist/workflows/trajectory.js
54950
- function classifyFailure(error48) {
54951
- const e = error48.toLowerCase();
55671
+ function classifyFailure(error51) {
55672
+ const e = error51.toLowerCase();
54952
55673
  if (e.includes("timed out") || e.includes("timeout"))
54953
55674
  return "timeout";
54954
55675
  if (e.includes("output does not contain") || e.includes("verification failed"))
@@ -55165,22 +55886,22 @@ var WorkflowTrajectory = class {
55165
55886
  this.addEvent("finding", `"${step.name}" completed${attempt > 1 ? ` (after ${attempt} attempts)` : ""}${decision ? ` [${decision.mode}]` : ""} \u2192 ${completion}`, "medium");
55166
55887
  await this.flush();
55167
55888
  }
55168
- async stepFailed(step, error48, attempt, maxRetries, outcome) {
55889
+ async stepFailed(step, error51, attempt, maxRetries, outcome) {
55169
55890
  if (!this.enabled || !this.trajectory)
55170
55891
  return;
55171
- const cause = classifyFailure(error48);
55892
+ const cause = classifyFailure(error51);
55172
55893
  const diagnosis = diagnosisFor(cause, {
55173
55894
  name: step.name,
55174
55895
  agent: outcome?.agent ?? step.agent ?? "",
55175
55896
  status: "failed",
55176
55897
  attempts: attempt,
55177
- error: error48,
55898
+ error: error51,
55178
55899
  verificationValue: outcome?.verificationValue,
55179
55900
  nonInteractive: outcome?.nonInteractive
55180
55901
  });
55181
55902
  this.addEvent("error", `"${step.name}" failed [${cause}]: ${diagnosis}`, "high", {
55182
55903
  cause,
55183
- rawError: error48,
55904
+ rawError: error51,
55184
55905
  attempt,
55185
55906
  maxRetries
55186
55907
  });
@@ -56408,11 +57129,11 @@ ${next}` : next;
56408
57129
  const dynamicImport = new Function("specifier", "return import(specifier)");
56409
57130
  const module2 = await dynamicImport("@agent-relay/credential-proxy");
56410
57131
  return typeof module2.mintProxyToken === "function" ? module2 : null;
56411
- } catch (error48) {
56412
- if (error48?.code === "ERR_MODULE_NOT_FOUND") {
57132
+ } catch (error51) {
57133
+ if (error51?.code === "ERR_MODULE_NOT_FOUND") {
56413
57134
  return null;
56414
57135
  }
56415
- throw error48;
57136
+ throw error51;
56416
57137
  }
56417
57138
  }
56418
57139
  resolveCredentialProxyProvider(agentDef, config2) {
@@ -58037,9 +58758,9 @@ ${stderr}`);
58037
58758
  exitCode: lastExitCode,
58038
58759
  exitSignal: lastExitSignal
58039
58760
  }),
58040
- onAttemptFailed: async (error48) => {
58041
- lastError = error48 instanceof Error ? error48.message : String(error48);
58042
- lastCompletionReason = error48 instanceof WorkflowCompletionError ? error48.completionReason : void 0;
58761
+ onAttemptFailed: async (error51) => {
58762
+ lastError = error51 instanceof Error ? error51.message : String(error51);
58763
+ lastCompletionReason = error51 instanceof WorkflowCompletionError ? error51.completionReason : void 0;
58043
58764
  },
58044
58765
  getFailureResult: () => ({
58045
58766
  status: "failed",
@@ -58184,10 +58905,10 @@ ${stderr}`);
58184
58905
  exitCode: lastExitCode,
58185
58906
  exitSignal: lastExitSignal
58186
58907
  }),
58187
- getFailureResult: (error48) => ({
58908
+ getFailureResult: (error51) => ({
58188
58909
  status: "failed",
58189
58910
  output: "",
58190
- error: error48 instanceof Error ? error48.message : String(error48),
58911
+ error: error51 instanceof Error ? error51.message : String(error51),
58191
58912
  retries: state.row.retryCount,
58192
58913
  exitCode: lastExitCode,
58193
58914
  exitSignal: lastExitSignal
@@ -58233,10 +58954,10 @@ ${stderr}`);
58233
58954
  output,
58234
58955
  retries: attempt
58235
58956
  }),
58236
- getFailureResult: (error48) => ({
58957
+ getFailureResult: (error51) => ({
58237
58958
  status: "failed",
58238
58959
  output: "",
58239
- error: error48 instanceof Error ? error48.message : String(error48),
58960
+ error: error51 instanceof Error ? error51.message : String(error51),
58240
58961
  retries: state.row.retryCount
58241
58962
  })
58242
58963
  });
@@ -58496,10 +59217,10 @@ ${resolvedTask}`;
58496
59217
  try {
58497
59218
  const completionDecision = this.resolveOwnerCompletionDecision(step, output, output, promptTaskText ?? ownerTask, promptTaskText ?? ownerTask);
58498
59219
  completionReason = completionDecision.completionReason;
58499
- } catch (error48) {
58500
- const canUseVerificationFallback = !usesDedicatedOwner && step.verification && error48 instanceof WorkflowCompletionError && error48.completionReason === "failed_no_evidence";
59220
+ } catch (error51) {
59221
+ const canUseVerificationFallback = !usesDedicatedOwner && step.verification && error51 instanceof WorkflowCompletionError && error51.completionReason === "failed_no_evidence";
58501
59222
  if (!canUseVerificationFallback) {
58502
- throw error48;
59223
+ throw error51;
58503
59224
  }
58504
59225
  }
58505
59226
  }
@@ -58677,9 +59398,9 @@ Analyze what went wrong. Be specific. Do NOT fix the code.`;
58677
59398
  tokenCount
58678
59399
  }
58679
59400
  };
58680
- } catch (error48) {
59401
+ } catch (error51) {
58681
59402
  await this.captureAgentReport(runId, step.name, diagnosticAgentDef, diagnosticCwd, startedAt, Date.now());
58682
- const message = error48 instanceof Error ? error48.message : String(error48);
59403
+ const message = error51 instanceof Error ? error51.message : String(error51);
58683
59404
  if (/\btimed out\b/i.test(message)) {
58684
59405
  this.log(`[${step.name}] Diagnostic timed out \u2014 falling back to standard retry`);
58685
59406
  } else {
@@ -58822,9 +59543,9 @@ WORKER COMPLETION CONTRACT:
58822
59543
  ownerElapsed,
58823
59544
  completionReason: completionDecision.completionReason
58824
59545
  };
58825
- } catch (error48) {
59546
+ } catch (error51) {
58826
59547
  await specialistSettled;
58827
- throw error48;
59548
+ throw error51;
58828
59549
  }
58829
59550
  }
58830
59551
  let workerHandle;
@@ -58862,12 +59583,12 @@ WORKER COMPLETION CONTRACT:
58862
59583
  onChunk: ({ agentName, chunk }) => {
58863
59584
  this.forwardAgentChunkToChannel(step.name, "Worker", agentName, chunk, supervised.specialist.name);
58864
59585
  }
58865
- }).catch((error48) => {
59586
+ }).catch((error51) => {
58866
59587
  if (!workerSpawned) {
58867
59588
  workerSpawned = true;
58868
- rejectWorkerSpawn(error48);
59589
+ rejectWorkerSpawn(error51);
58869
59590
  }
58870
- throw error48;
59591
+ throw error51;
58871
59592
  });
58872
59593
  const workerSettled = workerPromise.catch(() => void 0);
58873
59594
  workerPromise.then((result) => {
@@ -58881,8 +59602,8 @@ WORKER COMPLETION CONTRACT:
58881
59602
  if (step.verification?.type === "output_contains" && this.outputContainsVerificationToken(result.output, step.verification.value, result.promptTaskText)) {
58882
59603
  this.log(`[${step.name}] Verification gate observed: output contains ${JSON.stringify(step.verification.value)}`);
58883
59604
  }
58884
- }).catch((error48) => {
58885
- const message = error48 instanceof Error ? error48.message : String(error48);
59605
+ }).catch((error51) => {
59606
+ const message = error51 instanceof Error ? error51.message : String(error51);
58886
59607
  this.postToChannel(`**[${step.name}]** Worker \`${workerRuntimeName}\` exited with error: ${message}`);
58887
59608
  this.recordStepToolSideEffect(step.name, {
58888
59609
  type: "worker_error",
@@ -58930,8 +59651,8 @@ WORKER COMPLETION CONTRACT:
58930
59651
  ownerElapsed,
58931
59652
  completionReason: completionDecision.completionReason
58932
59653
  };
58933
- } catch (error48) {
58934
- const message = error48 instanceof Error ? error48.message : String(error48);
59654
+ } catch (error51) {
59655
+ const message = error51 instanceof Error ? error51.message : String(error51);
58935
59656
  if (!workerReleased && workerHandle) {
58936
59657
  await workerHandle.release().catch(() => void 0);
58937
59658
  }
@@ -58939,7 +59660,7 @@ WORKER COMPLETION CONTRACT:
58939
59660
  if (/\btimed out\b/i.test(message)) {
58940
59661
  throw new Error(`Step "${step.name}" owner timed out after ${timeoutMs ?? "unknown"}ms`);
58941
59662
  }
58942
- throw error48;
59663
+ throw error51;
58943
59664
  }
58944
59665
  }
58945
59666
  forwardAgentChunkToChannel(stepName, roleLabel, agentName, chunk, sender) {
@@ -59357,13 +60078,13 @@ Then output /exit.`;
59357
60078
  }
59358
60079
  });
59359
60080
  await reviewCompletionPromise;
59360
- } catch (error48) {
59361
- const message = error48 instanceof Error ? error48.message : String(error48);
60081
+ } catch (error51) {
60082
+ const message = error51 instanceof Error ? error51.message : String(error51);
59362
60083
  if (/\btimed out\b/i.test(message)) {
59363
60084
  this.log(`[${step.name}] Review safety backstop timeout fired after ${safetyTimeoutMs}ms`);
59364
60085
  throw new Error(`Step "${step.name}" review safety backstop timed out after ${safetyTimeoutMs}ms`);
59365
60086
  }
59366
- throw error48;
60087
+ throw error51;
59367
60088
  }
59368
60089
  if (!completedReview) {
59369
60090
  const parsed = this.parseReviewDecision(reviewOutput);
@@ -60128,9 +60849,9 @@ DO NOT:
60128
60849
  });
60129
60850
  this.updateCustomVerificationFailure(stepName, check2, result.error);
60130
60851
  return result;
60131
- } catch (error48) {
60132
- this.updateCustomVerificationFailure(stepName, check2, error48 instanceof Error ? error48.message : String(error48));
60133
- throw error48;
60852
+ } catch (error51) {
60853
+ this.updateCustomVerificationFailure(stepName, check2, error51 instanceof Error ? error51.message : String(error51));
60854
+ throw error51;
60134
60855
  }
60135
60856
  }
60136
60857
  updateCustomVerificationFailure(stepName, check2, errorMessage) {
@@ -60148,7 +60869,7 @@ DO NOT:
60148
60869
  });
60149
60870
  }
60150
60871
  // ── State helpers ─────────────────────────────────────────────────────
60151
- async updateRunStatus(runId, status, error48) {
60872
+ async updateRunStatus(runId, status, error51) {
60152
60873
  const patch = {
60153
60874
  status,
60154
60875
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
@@ -60156,20 +60877,20 @@ DO NOT:
60156
60877
  if (status === "completed" || status === "failed" || status === "cancelled") {
60157
60878
  patch.completedAt = (/* @__PURE__ */ new Date()).toISOString();
60158
60879
  }
60159
- if (error48) {
60160
- patch.error = error48;
60880
+ if (error51) {
60881
+ patch.error = error51;
60161
60882
  }
60162
60883
  await this.db.updateRun(runId, patch);
60163
60884
  }
60164
- async markStepFailed(state, error48, runId, exitInfo, completionReason) {
60885
+ async markStepFailed(state, error51, runId, exitInfo, completionReason) {
60165
60886
  this.captureStepTerminalEvidence(state.row.stepName, {}, exitInfo);
60166
60887
  state.row.status = "failed";
60167
- state.row.error = error48;
60888
+ state.row.error = error51;
60168
60889
  state.row.completionReason = completionReason;
60169
60890
  state.row.completedAt = (/* @__PURE__ */ new Date()).toISOString();
60170
60891
  await this.db.updateStep(state.row.id, {
60171
60892
  status: "failed",
60172
- error: error48,
60893
+ error: error51,
60173
60894
  completionReason,
60174
60895
  completedAt: state.row.completedAt,
60175
60896
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
@@ -60178,7 +60899,7 @@ DO NOT:
60178
60899
  type: "step:failed",
60179
60900
  runId,
60180
60901
  stepName: state.row.stepName,
60181
- error: error48,
60902
+ error: error51,
60182
60903
  exitCode: exitInfo?.exitCode,
60183
60904
  exitSignal: exitInfo?.exitSignal
60184
60905
  });
@@ -60211,8 +60932,8 @@ DO NOT:
60211
60932
  this.agentReports.set(stepName, report);
60212
60933
  this.emit({ type: "step:agent-report", runId, stepName, report });
60213
60934
  await this.persistAgentReport(runId, stepName, report);
60214
- } catch (error48) {
60215
- this.log(`[${stepName}] CLI session collection failed: ${error48 instanceof Error ? error48.message : String(error48)}`);
60935
+ } catch (error51) {
60936
+ this.log(`[${stepName}] CLI session collection failed: ${error51 instanceof Error ? error51.message : String(error51)}`);
60216
60937
  }
60217
60938
  }
60218
60939
  async markDownstreamSkipped(failedStepName, allSteps, stepStates, runId) {
@@ -61897,8 +62618,8 @@ var SwarmCoordinator = class extends import_node_events3.EventEmitter {
61897
62618
  async completeRun(runId, stateSnapshot) {
61898
62619
  return this.transitionRun(runId, "completed", void 0, stateSnapshot);
61899
62620
  }
61900
- async failRun(runId, error48) {
61901
- return this.transitionRun(runId, "failed", error48);
62621
+ async failRun(runId, error51) {
62622
+ return this.transitionRun(runId, "failed", error51);
61902
62623
  }
61903
62624
  async cancelRun(runId) {
61904
62625
  return this.transitionRun(runId, "cancelled");
@@ -61951,11 +62672,11 @@ var SwarmCoordinator = class extends import_node_events3.EventEmitter {
61951
62672
  this.emit("step:completed", step);
61952
62673
  return step;
61953
62674
  }
61954
- async failStep(stepId, error48) {
62675
+ async failStep(stepId, error51) {
61955
62676
  const now = (/* @__PURE__ */ new Date()).toISOString();
61956
62677
  const { rows } = await this.db.query(`UPDATE workflow_steps SET status = 'failed', error = $2, completed_at = $3, updated_at = $3
61957
62678
  WHERE id = $1 AND status = 'running'
61958
- RETURNING *`, [stepId, error48, now]);
62679
+ RETURNING *`, [stepId, error51, now]);
61959
62680
  if (rows.length === 0) {
61960
62681
  throw new Error(`Step ${stepId} not found or not in running state`);
61961
62682
  }
@@ -62001,7 +62722,7 @@ var SwarmCoordinator = class extends import_node_events3.EventEmitter {
62001
62722
  return rows;
62002
62723
  }
62003
62724
  // ── Private helpers ─────────────────────────────────────────────────────
62004
- async transitionRun(runId, status, error48, stateSnapshot) {
62725
+ async transitionRun(runId, status, error51, stateSnapshot) {
62005
62726
  const now = (/* @__PURE__ */ new Date()).toISOString();
62006
62727
  const { rows } = await this.db.query(`UPDATE workflow_runs
62007
62728
  SET status = $2, completed_at = $3, error = $4, state_snapshot = $5, updated_at = $3
@@ -62010,7 +62731,7 @@ var SwarmCoordinator = class extends import_node_events3.EventEmitter {
62010
62731
  runId,
62011
62732
  status,
62012
62733
  now,
62013
- error48 ?? null,
62734
+ error51 ?? null,
62014
62735
  stateSnapshot ? JSON.stringify(stateSnapshot) : null
62015
62736
  ]);
62016
62737
  if (rows.length === 0) {
@@ -63845,17 +64566,17 @@ async function checkForUpdates(currentVersion) {
63845
64566
  latestVersion
63846
64567
  };
63847
64568
  } catch (err) {
63848
- const error48 = err.message;
64569
+ const error51 = err.message;
63849
64570
  writeCache({
63850
64571
  lastCheck: now,
63851
64572
  latestVersion: cache?.latestVersion || null,
63852
- error: error48
64573
+ error: error51
63853
64574
  });
63854
64575
  return {
63855
64576
  updateAvailable: false,
63856
64577
  currentVersion,
63857
64578
  latestVersion: cache?.latestVersion || null,
63858
- error: error48
64579
+ error: error51
63859
64580
  };
63860
64581
  }
63861
64582
  }
@@ -63918,17 +64639,17 @@ function createTraceableError(message, context = {}, originalError) {
63918
64639
  };
63919
64640
  }
63920
64641
  function logAndTraceError(message, context = {}, originalError) {
63921
- const error48 = createTraceableError(message, context, originalError);
63922
- console.error(error48.logMessage);
63923
- return error48;
64642
+ const error51 = createTraceableError(message, context, originalError);
64643
+ console.error(error51.logMessage);
64644
+ return error51;
63924
64645
  }
63925
64646
  function withErrorTracing(fn2, baseContext = {}) {
63926
64647
  return (async (...args) => {
63927
64648
  try {
63928
64649
  return await fn2(...args);
63929
64650
  } catch (err) {
63930
- const error48 = logAndTraceError(err instanceof Error ? err.message : "Unknown error", baseContext, err instanceof Error ? err : void 0);
63931
- throw new TracedError(error48);
64651
+ const error51 = logAndTraceError(err instanceof Error ? err.message : "Unknown error", baseContext, err instanceof Error ? err : void 0);
64652
+ throw new TracedError(error51);
63932
64653
  }
63933
64654
  });
63934
64655
  }
@@ -64498,8 +65219,8 @@ var HookRegistry = class {
64498
65219
  autoSaveOnEnd: config2.autoSaveOnEnd
64499
65220
  });
64500
65221
  this.registerLifecycleHooks(hooks);
64501
- } catch (error48) {
64502
- console.error("[hooks] Failed to register memory hooks:", error48);
65222
+ } catch (error51) {
65223
+ console.error("[hooks] Failed to register memory hooks:", error51);
64503
65224
  }
64504
65225
  }
64505
65226
  /**
@@ -64723,10 +65444,10 @@ var HookRegistry = class {
64723
65444
  /**
64724
65445
  * Dispatch error event
64725
65446
  */
64726
- async dispatchError(error48, phase) {
65447
+ async dispatchError(error51, phase) {
64727
65448
  const context = {
64728
65449
  ...this.getBaseContext(),
64729
- error: error48,
65450
+ error: error51,
64730
65451
  phase
64731
65452
  };
64732
65453
  return this.runHooks(this.errorHooks, context);
@@ -65483,11 +66204,11 @@ function createOutputHook2(state) {
65483
66204
  }
65484
66205
  if (options.detectErrors) {
65485
66206
  const errors = detectErrors(ctx.content);
65486
- for (const error48 of errors) {
65487
- if (!state.seenErrors.has(error48.message)) {
65488
- state.seenErrors.add(error48.message);
65489
- const prefix = error48.type === "warning" ? "Warning" : "Error";
65490
- await trajectory2.event(`${prefix}: ${error48.message}`, "error");
66207
+ for (const error51 of errors) {
66208
+ if (!state.seenErrors.has(error51.message)) {
66209
+ state.seenErrors.add(error51.message);
66210
+ const prefix = error51.type === "warning" ? "Warning" : "Error";
66211
+ await trajectory2.event(`${prefix}: ${error51.message}`, "error");
65491
66212
  }
65492
66213
  }
65493
66214
  }