@openclaw/firecrawl-plugin 2026.8.1-beta.2 → 2026.9.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (853) hide show
  1. package/dist/api.js +1 -1
  2. package/dist/{firecrawl-client-Aw46OXVC.js → firecrawl-client-DQx3FAys.js} +72 -81
  3. package/dist/{firecrawl-fetch-provider-shared-BhzfHFkE.js → firecrawl-fetch-provider-C8gB71c0.js} +38 -2
  4. package/dist/{firecrawl-free-search-provider-nqgr2mhw.js → firecrawl-free-search-provider-5eCE16v7.js} +3 -7
  5. package/dist/index.js +4 -4
  6. package/dist/web-fetch-contract-api.js +2 -11
  7. package/dist/web-fetch-provider.js +1 -1
  8. package/dist/web-search-contract-api.js +2 -15
  9. package/dist/web-search-provider.js +1 -1
  10. package/node_modules/typebox/build/format/date.d.mts +1 -1
  11. package/node_modules/typebox/build/format/date.mjs +1 -1
  12. package/node_modules/typebox/build/format/date_time.d.mts +2 -2
  13. package/node_modules/typebox/build/format/date_time.mjs +3 -3
  14. package/node_modules/typebox/build/format/email.d.mts +1 -1
  15. package/node_modules/typebox/build/format/email.mjs +2 -2
  16. package/node_modules/typebox/build/format/hostname.mjs +2 -10
  17. package/node_modules/typebox/build/format/idn_email.d.mts +1 -1
  18. package/node_modules/typebox/build/format/idn_email.mjs +3 -3
  19. package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -0
  20. package/node_modules/typebox/build/format/idn_hostname.mjs +3 -11
  21. package/node_modules/typebox/build/format/idna/format/bidi.d.mts +3 -0
  22. package/node_modules/typebox/build/format/idna/format/bidi.mjs +98 -0
  23. package/node_modules/typebox/build/format/idna/format/puny.d.mts +3 -0
  24. package/node_modules/typebox/build/format/idna/format/puny.mjs +144 -0
  25. package/node_modules/typebox/build/format/idna/hostname.d.mts +1 -0
  26. package/node_modules/typebox/build/format/idna/hostname.mjs +16 -0
  27. package/node_modules/typebox/build/format/idna/idn-hostname.d.mts +1 -0
  28. package/node_modules/typebox/build/format/idna/idn-hostname.mjs +23 -0
  29. package/node_modules/typebox/build/format/idna/index.d.mts +2 -0
  30. package/node_modules/typebox/build/format/idna/index.mjs +2 -0
  31. package/node_modules/typebox/build/format/idna/label/ascii.d.mts +1 -0
  32. package/node_modules/typebox/build/format/idna/label/ascii.mjs +9 -0
  33. package/node_modules/typebox/build/format/idna/label/puny.d.mts +1 -0
  34. package/node_modules/typebox/build/format/idna/label/puny.mjs +28 -0
  35. package/node_modules/typebox/build/format/idna/label/unicode.d.mts +1 -0
  36. package/node_modules/typebox/build/format/idna/label/unicode.mjs +106 -0
  37. package/node_modules/typebox/build/format/idna/pattern/pattern.d.mts +30 -0
  38. package/node_modules/typebox/build/format/idna/pattern/pattern.mjs +70 -0
  39. package/node_modules/typebox/build/format/ipv4.d.mts +0 -1
  40. package/node_modules/typebox/build/format/ipv4.mjs +2 -32
  41. package/node_modules/typebox/build/format/ipv6.mjs +2 -61
  42. package/node_modules/typebox/build/format/iri.d.mts +2 -2
  43. package/node_modules/typebox/build/format/iri.mjs +26 -8
  44. package/node_modules/typebox/build/format/iri_reference.d.mts +2 -2
  45. package/node_modules/typebox/build/format/iri_reference.mjs +9 -55
  46. package/node_modules/typebox/build/format/regex.d.mts +1 -2
  47. package/node_modules/typebox/build/format/regex.mjs +2 -6
  48. package/node_modules/typebox/build/format/time.d.mts +2 -2
  49. package/node_modules/typebox/build/format/time.mjs +19 -14
  50. package/node_modules/typebox/build/format/uri.d.mts +1 -1
  51. package/node_modules/typebox/build/format/uri.mjs +3 -130
  52. package/node_modules/typebox/build/format/uri_reference.d.mts +1 -1
  53. package/node_modules/typebox/build/format/uri_reference.mjs +2 -3
  54. package/node_modules/typebox/build/format/uri_template.d.mts +2 -3
  55. package/node_modules/typebox/build/format/uri_template.mjs +4 -5
  56. package/node_modules/typebox/build/format/url.d.mts +3 -3
  57. package/node_modules/typebox/build/format/url.mjs +4 -5
  58. package/node_modules/typebox/build/guard/emit.d.mts +3 -1
  59. package/node_modules/typebox/build/guard/emit.mjs +12 -5
  60. package/node_modules/typebox/build/guard/guard.d.mts +8 -2
  61. package/node_modules/typebox/build/guard/guard.mjs +25 -4
  62. package/node_modules/typebox/build/guard/string.d.mts +2 -2
  63. package/node_modules/typebox/build/guard/string.mjs +7 -7
  64. package/node_modules/typebox/build/schema/engine/_context.mjs +3 -3
  65. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -2
  66. package/node_modules/typebox/build/schema/engine/_regexp.d.mts +2 -0
  67. package/node_modules/typebox/build/schema/engine/_regexp.mjs +4 -0
  68. package/node_modules/typebox/build/schema/engine/_stack.mjs +12 -13
  69. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +17 -7
  70. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +4 -3
  71. package/node_modules/typebox/build/schema/engine/contains.mjs +18 -6
  72. package/node_modules/typebox/build/schema/engine/enum.mjs +1 -1
  73. package/node_modules/typebox/build/schema/engine/items.mjs +26 -6
  74. package/node_modules/typebox/build/schema/engine/maxContains.mjs +3 -3
  75. package/node_modules/typebox/build/schema/engine/minContains.mjs +14 -4
  76. package/node_modules/typebox/build/schema/engine/not.mjs +4 -2
  77. package/node_modules/typebox/build/schema/engine/oneOf.mjs +7 -6
  78. package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -2
  79. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +4 -3
  80. package/node_modules/typebox/build/schema/engine/ref.mjs +1 -7
  81. package/node_modules/typebox/build/schema/engine/schema.mjs +13 -4
  82. package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
  83. package/node_modules/typebox/build/schema/resolve/resolve.d.mts +4 -1
  84. package/node_modules/typebox/build/schema/resolve/resolve.mjs +202 -1
  85. package/node_modules/typebox/build/schema/static/propertyNames.d.mts +5 -0
  86. package/node_modules/typebox/build/schema/static/propertyNames.mjs +3 -0
  87. package/node_modules/typebox/build/schema/static/schema.d.mts +3 -0
  88. package/node_modules/typebox/build/schema/types/index.d.mts +0 -2
  89. package/node_modules/typebox/build/schema/types/index.mjs +0 -2
  90. package/node_modules/typebox/build/system/memory/clone.mjs +14 -11
  91. package/node_modules/typebox/build/system/memory/discard.mjs +6 -5
  92. package/node_modules/typebox/build/system/settings/settings.d.mts +9 -0
  93. package/node_modules/typebox/build/system/settings/settings.mjs +2 -0
  94. package/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +6 -1
  95. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +16 -3
  96. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +34 -4
  97. package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +5 -5
  98. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +20 -26
  99. package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +6 -10
  100. package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +9 -13
  101. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +7 -4
  102. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +12 -19
  103. package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +4 -20
  104. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +8 -20
  105. package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +4 -4
  106. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +11 -8
  107. package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +1 -1
  108. package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +3 -4
  109. package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +17 -2
  110. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +26 -6
  111. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +3 -4
  112. package/node_modules/typebox/build/type/engine/extract/operation.d.mts +1 -1
  113. package/node_modules/typebox/build/type/engine/extract/operation.mjs +3 -4
  114. package/node_modules/typebox/build/type/engine/priority/priority.d.mts +2 -2
  115. package/node_modules/typebox/build/type/engine/priority/priority.mjs +3 -4
  116. package/node_modules/typebox/build/type/script/mapping.d.mts +32 -29
  117. package/node_modules/typebox/build/type/script/mapping.mjs +18 -25
  118. package/node_modules/typebox/build/type/script/parser.d.mts +19 -25
  119. package/node_modules/typebox/build/type/script/parser.mjs +27 -23
  120. package/node_modules/typebox/build/value/errors/errors.d.mts +2 -2
  121. package/node_modules/typebox/build/value/errors/errors.mjs +1 -1
  122. package/node_modules/typebox/package.json +27 -27
  123. package/node_modules/typebox/readme.md +79 -82
  124. package/node_modules/zod/LICENSE +21 -0
  125. package/node_modules/zod/README.md +191 -0
  126. package/node_modules/zod/index.cjs +33 -0
  127. package/node_modules/zod/index.d.cts +4 -0
  128. package/node_modules/zod/index.d.ts +4 -0
  129. package/node_modules/zod/index.js +4 -0
  130. package/node_modules/zod/locales/index.cjs +17 -0
  131. package/node_modules/zod/locales/index.d.cts +1 -0
  132. package/node_modules/zod/locales/index.d.ts +1 -0
  133. package/node_modules/zod/locales/index.js +1 -0
  134. package/node_modules/zod/locales/package.json +7 -0
  135. package/node_modules/zod/mini/index.cjs +32 -0
  136. package/node_modules/zod/mini/index.d.cts +3 -0
  137. package/node_modules/zod/mini/index.d.ts +3 -0
  138. package/node_modules/zod/mini/index.js +3 -0
  139. package/node_modules/zod/mini/package.json +7 -0
  140. package/node_modules/zod/package.json +135 -0
  141. package/node_modules/zod/src/index.ts +4 -0
  142. package/node_modules/zod/src/locales/index.ts +1 -0
  143. package/node_modules/zod/src/mini/index.ts +3 -0
  144. package/node_modules/zod/src/v3/ZodError.ts +330 -0
  145. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  146. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  147. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  148. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  149. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  150. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  151. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  152. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  153. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  154. package/node_modules/zod/src/v3/errors.ts +13 -0
  155. package/node_modules/zod/src/v3/external.ts +6 -0
  156. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  157. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  158. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  159. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  160. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  161. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  162. package/node_modules/zod/src/v3/index.ts +4 -0
  163. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  164. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  165. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  166. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  167. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  168. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  169. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  170. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  171. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  172. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  173. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  174. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  175. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  176. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  177. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  178. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  179. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  180. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  181. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  182. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  183. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  184. package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  185. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  186. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  187. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  188. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  189. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  190. package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  191. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  192. package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  193. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  194. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  195. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  196. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  197. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  198. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  199. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  200. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  201. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  202. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  203. package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  204. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  205. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  206. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  207. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  208. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  209. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  210. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  211. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  212. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  213. package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  214. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  215. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  216. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  217. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  218. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  219. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  220. package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  221. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  222. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  223. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  224. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  225. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  226. package/node_modules/zod/src/v3/types.ts +5138 -0
  227. package/node_modules/zod/src/v4/classic/checks.ts +32 -0
  228. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  229. package/node_modules/zod/src/v4/classic/compat.ts +70 -0
  230. package/node_modules/zod/src/v4/classic/errors.ts +82 -0
  231. package/node_modules/zod/src/v4/classic/external.ts +52 -0
  232. package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
  233. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  234. package/node_modules/zod/src/v4/classic/iso.ts +90 -0
  235. package/node_modules/zod/src/v4/classic/parse.ts +82 -0
  236. package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
  237. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  238. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
  239. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  240. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
  241. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  242. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  243. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  244. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  245. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  246. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
  247. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  248. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
  249. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
  250. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  251. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  252. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  253. package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
  254. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
  255. package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
  256. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  257. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  258. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
  259. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
  260. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  261. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
  262. package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  263. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  264. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  265. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  266. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
  267. package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
  268. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  269. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
  270. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
  271. package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
  272. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
  273. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
  274. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
  275. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  276. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  277. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
  278. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  279. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  280. package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
  281. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  282. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  283. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  284. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  285. package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
  286. package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
  287. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
  288. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
  289. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  290. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  291. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
  292. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
  293. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  294. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  295. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  296. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  297. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  298. package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
  299. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
  300. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
  301. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  302. package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
  303. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
  304. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  305. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
  306. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
  307. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
  308. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  309. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
  310. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  311. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
  312. package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
  313. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  314. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  315. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  316. package/node_modules/zod/src/v4/core/api.ts +1823 -0
  317. package/node_modules/zod/src/v4/core/checks.ts +1293 -0
  318. package/node_modules/zod/src/v4/core/config.ts +15 -0
  319. package/node_modules/zod/src/v4/core/core.ts +153 -0
  320. package/node_modules/zod/src/v4/core/doc.ts +44 -0
  321. package/node_modules/zod/src/v4/core/errors.ts +455 -0
  322. package/node_modules/zod/src/v4/core/index.ts +16 -0
  323. package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
  324. package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
  325. package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
  326. package/node_modules/zod/src/v4/core/parse.ts +195 -0
  327. package/node_modules/zod/src/v4/core/regexes.ts +190 -0
  328. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  329. package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
  330. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  331. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  332. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  333. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  334. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
  335. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  336. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
  337. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  338. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  339. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  340. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  341. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  342. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  343. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  344. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  345. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  346. package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
  347. package/node_modules/zod/src/v4/core/util.ts +983 -0
  348. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  349. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  350. package/node_modules/zod/src/v4/index.ts +4 -0
  351. package/node_modules/zod/src/v4/locales/ar.ts +115 -0
  352. package/node_modules/zod/src/v4/locales/az.ts +111 -0
  353. package/node_modules/zod/src/v4/locales/be.ts +176 -0
  354. package/node_modules/zod/src/v4/locales/bg.ts +128 -0
  355. package/node_modules/zod/src/v4/locales/ca.ts +116 -0
  356. package/node_modules/zod/src/v4/locales/cs.ts +118 -0
  357. package/node_modules/zod/src/v4/locales/da.ts +123 -0
  358. package/node_modules/zod/src/v4/locales/de.ts +116 -0
  359. package/node_modules/zod/src/v4/locales/el.ts +121 -0
  360. package/node_modules/zod/src/v4/locales/en.ts +123 -0
  361. package/node_modules/zod/src/v4/locales/eo.ts +118 -0
  362. package/node_modules/zod/src/v4/locales/es.ts +141 -0
  363. package/node_modules/zod/src/v4/locales/fa.ts +126 -0
  364. package/node_modules/zod/src/v4/locales/fi.ts +121 -0
  365. package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
  366. package/node_modules/zod/src/v4/locales/fr.ts +132 -0
  367. package/node_modules/zod/src/v4/locales/he.ts +246 -0
  368. package/node_modules/zod/src/v4/locales/hr.ts +131 -0
  369. package/node_modules/zod/src/v4/locales/hu.ts +117 -0
  370. package/node_modules/zod/src/v4/locales/hy.ts +164 -0
  371. package/node_modules/zod/src/v4/locales/id.ts +115 -0
  372. package/node_modules/zod/src/v4/locales/index.ts +52 -0
  373. package/node_modules/zod/src/v4/locales/is.ts +119 -0
  374. package/node_modules/zod/src/v4/locales/it.ts +116 -0
  375. package/node_modules/zod/src/v4/locales/ja.ts +114 -0
  376. package/node_modules/zod/src/v4/locales/ka.ts +123 -0
  377. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  378. package/node_modules/zod/src/v4/locales/km.ts +119 -0
  379. package/node_modules/zod/src/v4/locales/ko.ts +121 -0
  380. package/node_modules/zod/src/v4/locales/lt.ts +239 -0
  381. package/node_modules/zod/src/v4/locales/mk.ts +118 -0
  382. package/node_modules/zod/src/v4/locales/ms.ts +115 -0
  383. package/node_modules/zod/src/v4/locales/nl.ts +121 -0
  384. package/node_modules/zod/src/v4/locales/no.ts +116 -0
  385. package/node_modules/zod/src/v4/locales/ota.ts +117 -0
  386. package/node_modules/zod/src/v4/locales/pl.ts +118 -0
  387. package/node_modules/zod/src/v4/locales/ps.ts +126 -0
  388. package/node_modules/zod/src/v4/locales/pt.ts +116 -0
  389. package/node_modules/zod/src/v4/locales/ro.ts +129 -0
  390. package/node_modules/zod/src/v4/locales/ru.ts +176 -0
  391. package/node_modules/zod/src/v4/locales/sl.ts +118 -0
  392. package/node_modules/zod/src/v4/locales/sv.ts +119 -0
  393. package/node_modules/zod/src/v4/locales/ta.ts +118 -0
  394. package/node_modules/zod/src/v4/locales/th.ts +119 -0
  395. package/node_modules/zod/src/v4/locales/tr.ts +111 -0
  396. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  397. package/node_modules/zod/src/v4/locales/uk.ts +117 -0
  398. package/node_modules/zod/src/v4/locales/ur.ts +119 -0
  399. package/node_modules/zod/src/v4/locales/uz.ts +117 -0
  400. package/node_modules/zod/src/v4/locales/vi.ts +117 -0
  401. package/node_modules/zod/src/v4/locales/yo.ts +124 -0
  402. package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
  403. package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
  404. package/node_modules/zod/src/v4/mini/checks.ts +32 -0
  405. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  406. package/node_modules/zod/src/v4/mini/external.ts +41 -0
  407. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  408. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  409. package/node_modules/zod/src/v4/mini/parse.ts +14 -0
  410. package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
  411. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
  412. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  413. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  414. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  415. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
  416. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  417. package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  418. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
  419. package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
  420. package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  421. package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
  422. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  423. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
  424. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  425. package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
  426. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  427. package/node_modules/zod/v3/ZodError.cjs +138 -0
  428. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  429. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  430. package/node_modules/zod/v3/ZodError.js +133 -0
  431. package/node_modules/zod/v3/errors.cjs +17 -0
  432. package/node_modules/zod/v3/errors.d.cts +5 -0
  433. package/node_modules/zod/v3/errors.d.ts +5 -0
  434. package/node_modules/zod/v3/errors.js +9 -0
  435. package/node_modules/zod/v3/external.cjs +22 -0
  436. package/node_modules/zod/v3/external.d.cts +6 -0
  437. package/node_modules/zod/v3/external.d.ts +6 -0
  438. package/node_modules/zod/v3/external.js +6 -0
  439. package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  440. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  441. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  442. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  443. package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  444. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  445. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  446. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  447. package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  448. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  449. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  450. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  451. package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  452. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  453. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  454. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  455. package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  456. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  457. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  458. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  459. package/node_modules/zod/v3/helpers/util.cjs +137 -0
  460. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  461. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  462. package/node_modules/zod/v3/helpers/util.js +133 -0
  463. package/node_modules/zod/v3/index.cjs +33 -0
  464. package/node_modules/zod/v3/index.d.cts +4 -0
  465. package/node_modules/zod/v3/index.d.ts +4 -0
  466. package/node_modules/zod/v3/index.js +4 -0
  467. package/node_modules/zod/v3/locales/en.cjs +112 -0
  468. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  469. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  470. package/node_modules/zod/v3/locales/en.js +109 -0
  471. package/node_modules/zod/v3/package.json +7 -0
  472. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  473. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  474. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  475. package/node_modules/zod/v3/standard-schema.js +1 -0
  476. package/node_modules/zod/v3/types.cjs +3777 -0
  477. package/node_modules/zod/v3/types.d.cts +1034 -0
  478. package/node_modules/zod/v3/types.d.ts +1034 -0
  479. package/node_modules/zod/v3/types.js +3695 -0
  480. package/node_modules/zod/v4/classic/checks.cjs +33 -0
  481. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  482. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  483. package/node_modules/zod/v4/classic/checks.js +1 -0
  484. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  485. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  486. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  487. package/node_modules/zod/v4/classic/coerce.js +17 -0
  488. package/node_modules/zod/v4/classic/compat.cjs +61 -0
  489. package/node_modules/zod/v4/classic/compat.d.cts +50 -0
  490. package/node_modules/zod/v4/classic/compat.d.ts +50 -0
  491. package/node_modules/zod/v4/classic/compat.js +31 -0
  492. package/node_modules/zod/v4/classic/errors.cjs +74 -0
  493. package/node_modules/zod/v4/classic/errors.d.cts +30 -0
  494. package/node_modules/zod/v4/classic/errors.d.ts +30 -0
  495. package/node_modules/zod/v4/classic/errors.js +48 -0
  496. package/node_modules/zod/v4/classic/external.cjs +73 -0
  497. package/node_modules/zod/v4/classic/external.d.cts +16 -0
  498. package/node_modules/zod/v4/classic/external.d.ts +16 -0
  499. package/node_modules/zod/v4/classic/external.js +20 -0
  500. package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
  501. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  502. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  503. package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
  504. package/node_modules/zod/v4/classic/index.cjs +33 -0
  505. package/node_modules/zod/v4/classic/index.d.cts +4 -0
  506. package/node_modules/zod/v4/classic/index.d.ts +4 -0
  507. package/node_modules/zod/v4/classic/index.js +4 -0
  508. package/node_modules/zod/v4/classic/iso.cjs +60 -0
  509. package/node_modules/zod/v4/classic/iso.d.cts +22 -0
  510. package/node_modules/zod/v4/classic/iso.d.ts +22 -0
  511. package/node_modules/zod/v4/classic/iso.js +30 -0
  512. package/node_modules/zod/v4/classic/package.json +7 -0
  513. package/node_modules/zod/v4/classic/parse.cjs +41 -0
  514. package/node_modules/zod/v4/classic/parse.d.cts +31 -0
  515. package/node_modules/zod/v4/classic/parse.d.ts +31 -0
  516. package/node_modules/zod/v4/classic/parse.js +15 -0
  517. package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
  518. package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
  519. package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
  520. package/node_modules/zod/v4/classic/schemas.js +1395 -0
  521. package/node_modules/zod/v4/core/api.cjs +1227 -0
  522. package/node_modules/zod/v4/core/api.d.cts +325 -0
  523. package/node_modules/zod/v4/core/api.d.ts +325 -0
  524. package/node_modules/zod/v4/core/api.js +1087 -0
  525. package/node_modules/zod/v4/core/checks.cjs +601 -0
  526. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  527. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  528. package/node_modules/zod/v4/core/checks.js +575 -0
  529. package/node_modules/zod/v4/core/core.cjs +85 -0
  530. package/node_modules/zod/v4/core/core.d.cts +70 -0
  531. package/node_modules/zod/v4/core/core.d.ts +70 -0
  532. package/node_modules/zod/v4/core/core.js +78 -0
  533. package/node_modules/zod/v4/core/doc.cjs +39 -0
  534. package/node_modules/zod/v4/core/doc.d.cts +14 -0
  535. package/node_modules/zod/v4/core/doc.d.ts +14 -0
  536. package/node_modules/zod/v4/core/doc.js +35 -0
  537. package/node_modules/zod/v4/core/errors.cjs +216 -0
  538. package/node_modules/zod/v4/core/errors.d.cts +221 -0
  539. package/node_modules/zod/v4/core/errors.d.ts +221 -0
  540. package/node_modules/zod/v4/core/errors.js +185 -0
  541. package/node_modules/zod/v4/core/index.cjs +47 -0
  542. package/node_modules/zod/v4/core/index.d.cts +16 -0
  543. package/node_modules/zod/v4/core/index.d.ts +16 -0
  544. package/node_modules/zod/v4/core/index.js +16 -0
  545. package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
  546. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  547. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  548. package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  549. package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
  550. package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
  551. package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
  552. package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
  553. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  554. package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
  555. package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
  556. package/node_modules/zod/v4/core/json-schema.js +1 -0
  557. package/node_modules/zod/v4/core/package.json +7 -0
  558. package/node_modules/zod/v4/core/parse.cjs +131 -0
  559. package/node_modules/zod/v4/core/parse.d.cts +49 -0
  560. package/node_modules/zod/v4/core/parse.d.ts +49 -0
  561. package/node_modules/zod/v4/core/parse.js +93 -0
  562. package/node_modules/zod/v4/core/regexes.cjs +172 -0
  563. package/node_modules/zod/v4/core/regexes.d.cts +85 -0
  564. package/node_modules/zod/v4/core/regexes.d.ts +85 -0
  565. package/node_modules/zod/v4/core/regexes.js +139 -0
  566. package/node_modules/zod/v4/core/registries.cjs +56 -0
  567. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  568. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  569. package/node_modules/zod/v4/core/registries.js +51 -0
  570. package/node_modules/zod/v4/core/schemas.cjs +2270 -0
  571. package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
  572. package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
  573. package/node_modules/zod/v4/core/schemas.js +2239 -0
  574. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  575. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  576. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  577. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  578. package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
  579. package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
  580. package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
  581. package/node_modules/zod/v4/core/to-json-schema.js +448 -0
  582. package/node_modules/zod/v4/core/util.cjs +734 -0
  583. package/node_modules/zod/v4/core/util.d.cts +200 -0
  584. package/node_modules/zod/v4/core/util.d.ts +200 -0
  585. package/node_modules/zod/v4/core/util.js +674 -0
  586. package/node_modules/zod/v4/core/versions.cjs +8 -0
  587. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  588. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  589. package/node_modules/zod/v4/core/versions.js +5 -0
  590. package/node_modules/zod/v4/index.cjs +22 -0
  591. package/node_modules/zod/v4/index.d.cts +3 -0
  592. package/node_modules/zod/v4/index.d.ts +3 -0
  593. package/node_modules/zod/v4/index.js +3 -0
  594. package/node_modules/zod/v4/locales/ar.cjs +133 -0
  595. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  596. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  597. package/node_modules/zod/v4/locales/ar.js +106 -0
  598. package/node_modules/zod/v4/locales/az.cjs +132 -0
  599. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  600. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  601. package/node_modules/zod/v4/locales/az.js +105 -0
  602. package/node_modules/zod/v4/locales/be.cjs +183 -0
  603. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  604. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  605. package/node_modules/zod/v4/locales/be.js +156 -0
  606. package/node_modules/zod/v4/locales/bg.cjs +147 -0
  607. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  608. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  609. package/node_modules/zod/v4/locales/bg.js +120 -0
  610. package/node_modules/zod/v4/locales/ca.cjs +134 -0
  611. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  612. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  613. package/node_modules/zod/v4/locales/ca.js +107 -0
  614. package/node_modules/zod/v4/locales/cs.cjs +138 -0
  615. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  616. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  617. package/node_modules/zod/v4/locales/cs.js +111 -0
  618. package/node_modules/zod/v4/locales/da.cjs +142 -0
  619. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  620. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  621. package/node_modules/zod/v4/locales/da.js +115 -0
  622. package/node_modules/zod/v4/locales/de.cjs +135 -0
  623. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  624. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  625. package/node_modules/zod/v4/locales/de.js +108 -0
  626. package/node_modules/zod/v4/locales/el.cjs +136 -0
  627. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  628. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  629. package/node_modules/zod/v4/locales/el.js +109 -0
  630. package/node_modules/zod/v4/locales/en.cjs +140 -0
  631. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  632. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  633. package/node_modules/zod/v4/locales/en.js +113 -0
  634. package/node_modules/zod/v4/locales/eo.cjs +136 -0
  635. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  636. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  637. package/node_modules/zod/v4/locales/eo.js +109 -0
  638. package/node_modules/zod/v4/locales/es.cjs +159 -0
  639. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  640. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  641. package/node_modules/zod/v4/locales/es.js +132 -0
  642. package/node_modules/zod/v4/locales/fa.cjs +141 -0
  643. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  644. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  645. package/node_modules/zod/v4/locales/fa.js +114 -0
  646. package/node_modules/zod/v4/locales/fi.cjs +139 -0
  647. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  648. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  649. package/node_modules/zod/v4/locales/fi.js +112 -0
  650. package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
  651. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  652. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  653. package/node_modules/zod/v4/locales/fr-CA.js +107 -0
  654. package/node_modules/zod/v4/locales/fr.cjs +152 -0
  655. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  656. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  657. package/node_modules/zod/v4/locales/fr.js +125 -0
  658. package/node_modules/zod/v4/locales/he.cjs +241 -0
  659. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  660. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  661. package/node_modules/zod/v4/locales/he.js +214 -0
  662. package/node_modules/zod/v4/locales/hr.cjs +149 -0
  663. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  664. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  665. package/node_modules/zod/v4/locales/hr.js +122 -0
  666. package/node_modules/zod/v4/locales/hu.cjs +135 -0
  667. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  668. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  669. package/node_modules/zod/v4/locales/hu.js +108 -0
  670. package/node_modules/zod/v4/locales/hy.cjs +174 -0
  671. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  672. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  673. package/node_modules/zod/v4/locales/hy.js +147 -0
  674. package/node_modules/zod/v4/locales/id.cjs +133 -0
  675. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  676. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  677. package/node_modules/zod/v4/locales/id.js +106 -0
  678. package/node_modules/zod/v4/locales/index.cjs +111 -0
  679. package/node_modules/zod/v4/locales/index.d.cts +52 -0
  680. package/node_modules/zod/v4/locales/index.d.ts +52 -0
  681. package/node_modules/zod/v4/locales/index.js +52 -0
  682. package/node_modules/zod/v4/locales/is.cjs +136 -0
  683. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  684. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  685. package/node_modules/zod/v4/locales/is.js +109 -0
  686. package/node_modules/zod/v4/locales/it.cjs +135 -0
  687. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  688. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  689. package/node_modules/zod/v4/locales/it.js +108 -0
  690. package/node_modules/zod/v4/locales/ja.cjs +134 -0
  691. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  692. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  693. package/node_modules/zod/v4/locales/ja.js +107 -0
  694. package/node_modules/zod/v4/locales/ka.cjs +139 -0
  695. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  696. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  697. package/node_modules/zod/v4/locales/ka.js +112 -0
  698. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  699. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  700. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  701. package/node_modules/zod/v4/locales/kh.js +5 -0
  702. package/node_modules/zod/v4/locales/km.cjs +137 -0
  703. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  704. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  705. package/node_modules/zod/v4/locales/km.js +110 -0
  706. package/node_modules/zod/v4/locales/ko.cjs +138 -0
  707. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  708. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  709. package/node_modules/zod/v4/locales/ko.js +111 -0
  710. package/node_modules/zod/v4/locales/lt.cjs +230 -0
  711. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  712. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  713. package/node_modules/zod/v4/locales/lt.js +203 -0
  714. package/node_modules/zod/v4/locales/mk.cjs +136 -0
  715. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  716. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  717. package/node_modules/zod/v4/locales/mk.js +109 -0
  718. package/node_modules/zod/v4/locales/ms.cjs +134 -0
  719. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  720. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  721. package/node_modules/zod/v4/locales/ms.js +107 -0
  722. package/node_modules/zod/v4/locales/nl.cjs +137 -0
  723. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  724. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  725. package/node_modules/zod/v4/locales/nl.js +110 -0
  726. package/node_modules/zod/v4/locales/no.cjs +135 -0
  727. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  728. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  729. package/node_modules/zod/v4/locales/no.js +108 -0
  730. package/node_modules/zod/v4/locales/ota.cjs +136 -0
  731. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  732. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  733. package/node_modules/zod/v4/locales/ota.js +109 -0
  734. package/node_modules/zod/v4/locales/package.json +7 -0
  735. package/node_modules/zod/v4/locales/pl.cjs +136 -0
  736. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  737. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  738. package/node_modules/zod/v4/locales/pl.js +109 -0
  739. package/node_modules/zod/v4/locales/ps.cjs +141 -0
  740. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  741. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  742. package/node_modules/zod/v4/locales/ps.js +114 -0
  743. package/node_modules/zod/v4/locales/pt.cjs +135 -0
  744. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  745. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  746. package/node_modules/zod/v4/locales/pt.js +108 -0
  747. package/node_modules/zod/v4/locales/ro.cjs +146 -0
  748. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  749. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  750. package/node_modules/zod/v4/locales/ro.js +119 -0
  751. package/node_modules/zod/v4/locales/ru.cjs +183 -0
  752. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  753. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  754. package/node_modules/zod/v4/locales/ru.js +156 -0
  755. package/node_modules/zod/v4/locales/sl.cjs +136 -0
  756. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  757. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  758. package/node_modules/zod/v4/locales/sl.js +109 -0
  759. package/node_modules/zod/v4/locales/sv.cjs +137 -0
  760. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  761. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  762. package/node_modules/zod/v4/locales/sv.js +110 -0
  763. package/node_modules/zod/v4/locales/ta.cjs +137 -0
  764. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  765. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  766. package/node_modules/zod/v4/locales/ta.js +110 -0
  767. package/node_modules/zod/v4/locales/th.cjs +137 -0
  768. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  769. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  770. package/node_modules/zod/v4/locales/th.js +110 -0
  771. package/node_modules/zod/v4/locales/tr.cjs +132 -0
  772. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  773. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  774. package/node_modules/zod/v4/locales/tr.js +105 -0
  775. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  776. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  777. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  778. package/node_modules/zod/v4/locales/ua.js +5 -0
  779. package/node_modules/zod/v4/locales/uk.cjs +135 -0
  780. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  781. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  782. package/node_modules/zod/v4/locales/uk.js +108 -0
  783. package/node_modules/zod/v4/locales/ur.cjs +137 -0
  784. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  785. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  786. package/node_modules/zod/v4/locales/ur.js +110 -0
  787. package/node_modules/zod/v4/locales/uz.cjs +137 -0
  788. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  789. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  790. package/node_modules/zod/v4/locales/uz.js +110 -0
  791. package/node_modules/zod/v4/locales/vi.cjs +135 -0
  792. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  793. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  794. package/node_modules/zod/v4/locales/vi.js +108 -0
  795. package/node_modules/zod/v4/locales/yo.cjs +134 -0
  796. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  797. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  798. package/node_modules/zod/v4/locales/yo.js +107 -0
  799. package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
  800. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  801. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  802. package/node_modules/zod/v4/locales/zh-CN.js +109 -0
  803. package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
  804. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  805. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  806. package/node_modules/zod/v4/locales/zh-TW.js +107 -0
  807. package/node_modules/zod/v4/mini/checks.cjs +34 -0
  808. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  809. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  810. package/node_modules/zod/v4/mini/checks.js +1 -0
  811. package/node_modules/zod/v4/mini/coerce.cjs +52 -0
  812. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  813. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  814. package/node_modules/zod/v4/mini/coerce.js +22 -0
  815. package/node_modules/zod/v4/mini/external.cjs +63 -0
  816. package/node_modules/zod/v4/mini/external.d.cts +13 -0
  817. package/node_modules/zod/v4/mini/external.d.ts +13 -0
  818. package/node_modules/zod/v4/mini/external.js +14 -0
  819. package/node_modules/zod/v4/mini/index.cjs +32 -0
  820. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  821. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  822. package/node_modules/zod/v4/mini/index.js +3 -0
  823. package/node_modules/zod/v4/mini/iso.cjs +64 -0
  824. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  825. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  826. package/node_modules/zod/v4/mini/iso.js +34 -0
  827. package/node_modules/zod/v4/mini/package.json +7 -0
  828. package/node_modules/zod/v4/mini/parse.cjs +16 -0
  829. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  830. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  831. package/node_modules/zod/v4/mini/parse.js +1 -0
  832. package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
  833. package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
  834. package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
  835. package/node_modules/zod/v4/mini/schemas.js +961 -0
  836. package/node_modules/zod/v4/package.json +7 -0
  837. package/node_modules/zod/v4-mini/index.cjs +32 -0
  838. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  839. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  840. package/node_modules/zod/v4-mini/index.js +3 -0
  841. package/node_modules/zod/v4-mini/package.json +7 -0
  842. package/package.json +8 -6
  843. package/dist/firecrawl-fetch-provider-CYViV-li.js +0 -38
  844. package/node_modules/typebox/build/format/_idna.d.mts +0 -2
  845. package/node_modules/typebox/build/format/_idna.mjs +0 -246
  846. package/node_modules/typebox/build/format/_puny.d.mts +0 -1
  847. package/node_modules/typebox/build/format/_puny.mjs +0 -77
  848. package/node_modules/typebox/build/schema/resolve/ref.d.mts +0 -3
  849. package/node_modules/typebox/build/schema/resolve/ref.mjs +0 -146
  850. package/node_modules/typebox/build/schema/types/contentEncoding.d.mts +0 -9
  851. package/node_modules/typebox/build/schema/types/contentEncoding.mjs +0 -13
  852. package/node_modules/typebox/build/schema/types/contentMediaType.d.mts +0 -9
  853. package/node_modules/typebox/build/schema/types/contentMediaType.mjs +0 -13
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as runFirecrawlScrape } from "./firecrawl-client-Aw46OXVC.js";
1
+ import { n as runFirecrawlScrape } from "./firecrawl-client-DQx3FAys.js";
2
2
  import { readStringValue } from "openclaw/plugin-sdk/string-coerce-runtime";
3
3
  //#region extensions/firecrawl/api.ts
4
4
  async function fetchFirecrawlContent(params) {
@@ -1,10 +1,13 @@
1
+ import { resolveSiteName } from "openclaw/plugin-sdk/provider-web-search";
2
+ import { parseFiniteNumber } from "openclaw/plugin-sdk/number-runtime";
1
3
  import { readProviderJsonObjectResponse } from "openclaw/plugin-sdk/provider-http";
2
4
  import { DEFAULT_CACHE_TTL_MINUTES, markdownToText, normalizeCacheKey, readCache, readResponseText, resolveCacheTtlMs, resolvePositiveTimeoutSeconds, withSelfHostedWebToolsEndpoint, withStrictWebToolsEndpoint, writeCache } from "openclaw/plugin-sdk/provider-web-fetch";
3
- import { normalizeSecretInput, resolveSecretInputString } from "openclaw/plugin-sdk/secret-input";
5
+ import { normalizeSecretInput } from "openclaw/plugin-sdk/secret-input";
4
6
  import { truncateSanitizedExternalContent, wrapExternalContent, wrapWebContent } from "openclaw/plugin-sdk/security-runtime";
5
7
  import { SsrFBlockedError, isBlockedHostnameOrIp, isPrivateIpAddress, resolvePinnedHostnameWithPolicy } from "openclaw/plugin-sdk/ssrf-runtime";
6
8
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
7
- import { canResolveEnvSecretRefInReadOnlyPath } from "openclaw/plugin-sdk/extension-shared";
9
+ import { z } from "zod";
10
+ import { resolveReadOnlyEnvSecretRef } from "openclaw/plugin-sdk/secret-ref-readonly";
8
11
  //#region \0rolldown/runtime.js
9
12
  var __defProp = Object.defineProperty;
10
13
  var __exportAll = (all, no_symbols) => {
@@ -29,33 +32,13 @@ function resolveFirecrawlFetchConfig(cfg) {
29
32
  if (pluginWebFetch && typeof pluginWebFetch === "object" && !Array.isArray(pluginWebFetch)) return pluginWebFetch;
30
33
  }
31
34
  function resolveConfiguredSecret(value, path, cfg) {
32
- const resolved = resolveSecretInputString({
35
+ return resolveReadOnlyEnvSecretRef({
33
36
  value,
34
37
  path,
35
- defaults: cfg?.secrets?.defaults,
36
- mode: "inspect"
37
- });
38
- if (resolved.status === "available") {
39
- const normalized = normalizeSecretInput(resolved.value);
40
- return normalized ? {
41
- status: "available",
42
- value: normalized
43
- } : { status: "missing" };
44
- }
45
- if (resolved.status === "missing") return { status: "missing" };
46
- if (resolved.ref.source !== "env") return { status: "blocked" };
47
- const envVarName = resolved.ref.id.trim();
48
- if (envVarName !== FIRECRAWL_API_KEY_ENV_VAR) return { status: "blocked" };
49
- if (!canResolveEnvSecretRefInReadOnlyPath({
50
38
  cfg,
51
- provider: resolved.ref.provider,
52
- id: envVarName
53
- })) return { status: "blocked" };
54
- const envValue = normalizeSecretInput(process.env[envVarName]);
55
- return envValue ? {
56
- status: "available",
57
- value: envValue
58
- } : { status: "missing" };
39
+ expectedEnvId: FIRECRAWL_API_KEY_ENV_VAR,
40
+ normalizeValue: normalizeSecretInput
41
+ });
59
42
  }
60
43
  function resolveFirecrawlApiKey(cfg) {
61
44
  const pluginConfig = cfg?.plugins?.entries?.firecrawl?.config;
@@ -109,7 +92,6 @@ var firecrawl_client_exports = /* @__PURE__ */ __exportAll({
109
92
  testing: () => testing
110
93
  });
111
94
  const SEARCH_CACHE = /* @__PURE__ */ new Map();
112
- const SCRAPE_CACHE = /* @__PURE__ */ new Map();
113
95
  const DEFAULT_SEARCH_COUNT = 5;
114
96
  const FIRECRAWL_SEARCH_MAX_RESULTS = 100;
115
97
  const FIRECRAWL_SEARCH_MAX_CONTENT_CHARS = 2e4;
@@ -121,9 +103,6 @@ const ALLOWED_FIRECRAWL_HOSTS = /* @__PURE__ */ new Set(["api.firecrawl.dev"]);
121
103
  const FIRECRAWL_PUBLISHED_DATE_RE = /^\d{4}-\d{2}-\d{2}(?:[T ][\d:.+Z-]{0,20})?$/u;
122
104
  const FIRECRAWL_SELF_HOSTED_PRIVATE_ERROR = "Firecrawl custom baseUrl must target a private or internal self-hosted endpoint.";
123
105
  const FIRECRAWL_HTTP_PRIVATE_ERROR = "Firecrawl HTTP baseUrl must target a private or internal self-hosted endpoint. Use https:// for public hosts.";
124
- async function readFirecrawlJsonResponse(response, label, opts) {
125
- return await readProviderJsonObjectResponse(response, label, opts);
126
- }
127
106
  function assertFirecrawlScrapeTargetAllowed(url) {
128
107
  let parsed;
129
108
  try {
@@ -176,7 +155,7 @@ async function resolveEndpoint(baseUrl, pathname, lookupFn) {
176
155
  }
177
156
  async function postFirecrawlJson(params, parse) {
178
157
  const apiKey = normalizeSecretInput(params.apiKey);
179
- return await ((params.mode ?? await validateFirecrawlBaseUrl(params.url)) === "selfHosted" ? withSelfHostedWebToolsEndpoint : withStrictWebToolsEndpoint)({
158
+ const result = await ((params.mode ?? await validateFirecrawlBaseUrl(params.url)) === "selfHosted" ? withSelfHostedWebToolsEndpoint : withStrictWebToolsEndpoint)({
180
159
  url: params.url,
181
160
  timeoutSeconds: params.timeoutSeconds,
182
161
  ...params.signal ? { signal: params.signal } : {},
@@ -213,13 +192,8 @@ async function postFirecrawlJson(params, parse) {
213
192
  }
214
193
  return await parse(response);
215
194
  });
216
- }
217
- function resolveSiteName(urlRaw) {
218
- try {
219
- return new URL(urlRaw).hostname.replace(/^www\./, "") || void 0;
220
- } catch {
221
- return;
222
- }
195
+ params.signal?.throwIfAborted();
196
+ return result;
223
197
  }
224
198
  function normalizeFirecrawlResultUrl(value) {
225
199
  if (typeof value !== "string" || value.length > FIRECRAWL_RESULT_URL_MAX_CHARS) return;
@@ -231,27 +205,61 @@ function normalizeFirecrawlResultUrl(value) {
231
205
  return;
232
206
  }
233
207
  }
208
+ const optionalFirecrawlStringSchema = z.string().optional().catch(void 0);
209
+ const invalidFirecrawlSearchItemSchema = z.unknown().transform(() => null);
210
+ const firecrawlSearchMetadataSchema = z.object({
211
+ sourceURL: optionalFirecrawlStringSchema,
212
+ title: optionalFirecrawlStringSchema,
213
+ publishedTime: optionalFirecrawlStringSchema,
214
+ publishedDate: optionalFirecrawlStringSchema
215
+ }).optional().catch(void 0);
216
+ const firecrawlSearchItemSchema = z.object({
217
+ url: optionalFirecrawlStringSchema,
218
+ sourceURL: optionalFirecrawlStringSchema,
219
+ sourceUrl: optionalFirecrawlStringSchema,
220
+ title: optionalFirecrawlStringSchema,
221
+ description: optionalFirecrawlStringSchema,
222
+ snippet: optionalFirecrawlStringSchema,
223
+ summary: optionalFirecrawlStringSchema,
224
+ markdown: optionalFirecrawlStringSchema,
225
+ content: optionalFirecrawlStringSchema,
226
+ text: optionalFirecrawlStringSchema,
227
+ publishedDate: optionalFirecrawlStringSchema,
228
+ published: optionalFirecrawlStringSchema,
229
+ metadata: firecrawlSearchMetadataSchema
230
+ });
231
+ const firecrawlSearchItemsSchema = z.array(z.union([firecrawlSearchItemSchema, invalidFirecrawlSearchItemSchema])).transform((items) => items.filter((item) => item !== null));
232
+ const firecrawlNestedSearchDataSchema = z.looseObject({
233
+ results: firecrawlSearchItemsSchema.optional().catch(void 0),
234
+ data: firecrawlSearchItemsSchema.optional().catch(void 0),
235
+ web: firecrawlSearchItemsSchema.optional().catch(void 0)
236
+ });
237
+ const firecrawlSearchPayloadSchema = z.looseObject({
238
+ data: z.union([firecrawlSearchItemsSchema, firecrawlNestedSearchDataSchema]).optional().catch(void 0),
239
+ results: firecrawlSearchItemsSchema.optional().catch(void 0),
240
+ web: z.looseObject({ results: firecrawlSearchItemsSchema.optional().catch(void 0) }).optional().catch(void 0)
241
+ });
234
242
  function resolveSearchItems(payload) {
243
+ const parsed = firecrawlSearchPayloadSchema.parse(payload);
244
+ const nestedData = Array.isArray(parsed.data) ? void 0 : parsed.data;
235
245
  const rawItems = [
236
- payload.data,
237
- payload.results,
238
- payload.data?.results,
239
- payload.data?.data,
240
- payload.data?.web,
241
- payload.web?.results
242
- ].find((candidate) => Array.isArray(candidate));
243
- if (!Array.isArray(rawItems)) return [];
246
+ Array.isArray(parsed.data) ? parsed.data : void 0,
247
+ parsed.results,
248
+ nestedData?.results,
249
+ nestedData?.data,
250
+ nestedData?.web,
251
+ parsed.web?.results
252
+ ].find((candidate) => candidate !== void 0);
253
+ if (!rawItems) return [];
244
254
  const items = [];
245
255
  for (const entry of rawItems.slice(0, FIRECRAWL_SEARCH_MAX_RESULTS)) {
246
- if (!entry || typeof entry !== "object") continue;
247
- const record = entry;
248
- const metadata = record.metadata && typeof record.metadata === "object" ? record.metadata : void 0;
249
- const url = normalizeFirecrawlResultUrl(typeof record.url === "string" && record.url || typeof record.sourceURL === "string" && record.sourceURL || typeof record.sourceUrl === "string" && record.sourceUrl || typeof metadata?.sourceURL === "string" && metadata.sourceURL || "");
256
+ const metadata = entry.metadata;
257
+ const url = normalizeFirecrawlResultUrl(entry.url || entry.sourceURL || entry.sourceUrl || metadata?.sourceURL || "");
250
258
  if (!url) continue;
251
- const title = typeof record.title === "string" && record.title || typeof metadata?.title === "string" && metadata.title || "";
252
- const description = typeof record.description === "string" && record.description || typeof record.snippet === "string" && record.snippet || typeof record.summary === "string" && record.summary || void 0;
253
- const content = typeof record.markdown === "string" && record.markdown || typeof record.content === "string" && record.content || typeof record.text === "string" && record.text || void 0;
254
- const rawPublished = typeof record.publishedDate === "string" && record.publishedDate || typeof record.published === "string" && record.published || typeof metadata?.publishedTime === "string" && metadata.publishedTime || typeof metadata?.publishedDate === "string" && metadata.publishedDate || void 0;
259
+ const title = entry.title || metadata?.title || "";
260
+ const description = entry.description || entry.snippet || entry.summary || void 0;
261
+ const content = entry.markdown || entry.content || entry.text || void 0;
262
+ const rawPublished = entry.publishedDate || entry.published || metadata?.publishedTime || metadata?.publishedDate || void 0;
255
263
  const published = rawPublished && FIRECRAWL_PUBLISHED_DATE_RE.test(rawPublished) ? rawPublished : void 0;
256
264
  items.push({
257
265
  title,
@@ -259,7 +267,7 @@ function resolveSearchItems(payload) {
259
267
  description,
260
268
  content,
261
269
  published,
262
- siteName: resolveSiteName(url)
270
+ siteName: resolveSiteName(url)?.replace(/^www\./, "")
263
271
  });
264
272
  }
265
273
  return items;
@@ -357,7 +365,7 @@ async function runFirecrawlSearch(params) {
357
365
  errorLabel: "Firecrawl Search",
358
366
  ...params.signal ? { signal: params.signal } : {}
359
367
  }, async (response) => {
360
- const payloadValue = await readFirecrawlJsonResponse(response, "Firecrawl Search API error");
368
+ const payloadValue = await readProviderJsonObjectResponse(response, "Firecrawl Search API error");
361
369
  if (payloadValue.success === false) {
362
370
  const safeError = wrapWebContent(truncateSanitizedExternalContent(typeof payloadValue.error === "string" ? payloadValue.error : typeof payloadValue.message === "string" ? payloadValue.message : "unknown error", 1e3).text, "web_search");
363
371
  throw new Error(`Firecrawl Search API error: ${safeError}`);
@@ -382,6 +390,9 @@ function resolveScrapeData(payload) {
382
390
  function parseFirecrawlScrapePayload(params) {
383
391
  const data = resolveScrapeData(params.payload);
384
392
  const metadata = data.metadata && typeof data.metadata === "object" ? data.metadata : void 0;
393
+ const rawStatus = parseFiniteNumber(metadata?.statusCode) ?? parseFiniteNumber(data.statusCode);
394
+ const status = rawStatus === void 0 ? void 0 : Math.floor(rawStatus);
395
+ if (status !== void 0 && (status < 200 || status >= 300)) throw new Error(`Firecrawl fetch failed (${status}): target returned an unsuccessful HTTP status.`);
385
396
  const markdown = typeof data.markdown === "string" && data.markdown || typeof data.content === "string" && data.content || "";
386
397
  if (!markdown) throw new Error("Firecrawl scrape returned no content.");
387
398
  const rawText = params.extractMode === "text" ? markdownToText(markdown) : markdown;
@@ -401,7 +412,6 @@ function parseFirecrawlScrapePayload(params) {
401
412
  source: "web_fetch",
402
413
  includeWarning: false
403
414
  });
404
- const status = typeof metadata?.statusCode === "number" && metadata.statusCode || typeof data.statusCode === "number" && data.statusCode || void 0;
405
415
  const title = typeof metadata?.title === "string" && metadata.title ? wrapBoundedMetadata(metadata.title) : void 0;
406
416
  const warning = typeof params.payload.warning === "string" && params.payload.warning ? wrapBoundedMetadata(params.payload.warning) : void 0;
407
417
  return {
@@ -438,24 +448,8 @@ async function runFirecrawlScrape(params) {
438
448
  const maxCharsCap = typeof configuredMaxCharsCap === "number" && Number.isFinite(configuredMaxCharsCap) && configuredMaxCharsCap > 0 ? Math.floor(configuredMaxCharsCap) : DEFAULT_SCRAPE_MAX_CHARS;
439
449
  const requestedMaxChars = typeof params.maxChars === "number" && Number.isFinite(params.maxChars) && params.maxChars > 0 ? Math.floor(params.maxChars) : DEFAULT_SCRAPE_MAX_CHARS;
440
450
  const maxChars = Math.min(requestedMaxChars, maxCharsCap);
441
- const cacheKey = normalizeCacheKey(JSON.stringify({
442
- type: "firecrawl-scrape",
443
- url: params.url,
444
- extractMode: params.extractMode,
445
- baseUrl,
446
- onlyMainContent,
447
- maxAgeMs,
448
- proxy,
449
- storeInCache,
450
- maxChars
451
- }));
452
- const cached = readCache(SCRAPE_CACHE, cacheKey);
453
- if (cached) return {
454
- ...cached.value,
455
- cached: true
456
- };
457
451
  const endpoint = await resolveEndpoint(baseUrl, "/v2/scrape");
458
- const result = parseFirecrawlScrapePayload({
452
+ return parseFirecrawlScrapePayload({
459
453
  payload: await postFirecrawlJson({
460
454
  url: endpoint.url,
461
455
  mode: endpoint.mode,
@@ -473,25 +467,22 @@ async function runFirecrawlScrape(params) {
473
467
  storeInCache
474
468
  }
475
469
  }, async (response) => {
476
- const payloadLocal = await readFirecrawlJsonResponse(response, "Firecrawl fetch failed", { maxBytes: FIRECRAWL_SCRAPE_RESPONSE_MAX_BYTES });
477
- if (payloadLocal.success === false) {
478
- const detail = typeof payloadLocal.error === "string" ? payloadLocal.error : typeof payloadLocal.message === "string" ? payloadLocal.message : response.statusText;
470
+ const data = await readProviderJsonObjectResponse(response, "Firecrawl fetch failed", { maxBytes: FIRECRAWL_SCRAPE_RESPONSE_MAX_BYTES });
471
+ if (data.success === false) {
472
+ const detail = typeof data.error === "string" ? data.error : typeof data.message === "string" ? data.message : response.statusText;
479
473
  throw new Error(`Firecrawl fetch failed (${response.status}): ${wrapWebContent(truncateSanitizedExternalContent(detail, FIRECRAWL_SCRAPE_METADATA_MAX_CHARS).text, "web_fetch")}`.trim());
480
474
  }
481
- return payloadLocal;
475
+ return data;
482
476
  }),
483
477
  url: params.url,
484
478
  extractMode: params.extractMode,
485
479
  maxChars
486
480
  });
487
- writeCache(SCRAPE_CACHE, cacheKey, result, resolveCacheTtlMs(void 0, DEFAULT_CACHE_TTL_MINUTES));
488
- return result;
489
481
  }
490
482
  const testing = {
491
483
  assertFirecrawlScrapeTargetAllowed,
492
484
  parseFirecrawlScrapePayload,
493
485
  postFirecrawlJson,
494
- readFirecrawlJsonResponse,
495
486
  resolveEndpoint,
496
487
  resolveSearchItems
497
488
  };
@@ -1,3 +1,6 @@
1
+ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
2
+ import { readPositiveIntegerParam } from "openclaw/plugin-sdk/param-readers";
3
+ import { enablePluginInConfig } from "openclaw/plugin-sdk/provider-web-fetch-contract";
1
4
  //#region extensions/firecrawl/src/firecrawl-fetch-provider-shared.ts
2
5
  function ensureRecord(target, key) {
3
6
  const current = target[key];
@@ -39,9 +42,42 @@ const FIRECRAWL_WEB_FETCH_PROVIDER_SHARED = {
39
42
  };
40
43
  },
41
44
  setConfiguredCredentialValue: (configTarget, value) => {
42
- const webFetch = ensureRecord(ensureRecord(ensureRecord(ensureRecord(ensureRecord(configTarget, "plugins"), "entries"), "firecrawl"), "config"), "webFetch");
45
+ const plugins = configTarget.plugins ??= {};
46
+ const entries = plugins.entries ??= {};
47
+ const firecrawlEntry = entries.firecrawl ??= {};
48
+ const webFetch = ensureRecord(firecrawlEntry.config ??= {}, "webFetch");
43
49
  webFetch.apiKey = value;
44
50
  }
45
51
  };
46
52
  //#endregion
47
- export { FIRECRAWL_WEB_FETCH_PROVIDER_SHARED as t };
53
+ //#region extensions/firecrawl/src/firecrawl-fetch-provider.ts
54
+ const loadFirecrawlClientModule = createLazyRuntimeModule(() => import("./firecrawl-client-DQx3FAys.js").then((n) => n.t));
55
+ function createFirecrawlWebFetchProvider() {
56
+ return {
57
+ ...FIRECRAWL_WEB_FETCH_PROVIDER_SHARED,
58
+ applySelectionConfig: (config) => enablePluginInConfig(config, "firecrawl").config,
59
+ createTool: ({ config }) => ({
60
+ description: "Fetch a page using Firecrawl.",
61
+ parameters: {},
62
+ execute: async (args) => {
63
+ const url = typeof args.url === "string" ? args.url : "";
64
+ const extractMode = args.extractMode === "text" ? "text" : "markdown";
65
+ const maxChars = readPositiveIntegerParam(args, "maxChars");
66
+ const proxy = args.proxy === "basic" || args.proxy === "stealth" || args.proxy === "auto" ? args.proxy : void 0;
67
+ const storeInCache = typeof args.storeInCache === "boolean" ? args.storeInCache : void 0;
68
+ const { runFirecrawlScrape } = await loadFirecrawlClientModule();
69
+ return await runFirecrawlScrape({
70
+ cfg: config,
71
+ url,
72
+ extractMode,
73
+ access: "keyless",
74
+ maxChars,
75
+ ...proxy ? { proxy } : {},
76
+ ...storeInCache !== void 0 ? { storeInCache } : {}
77
+ });
78
+ }
79
+ })
80
+ };
81
+ }
82
+ //#endregion
83
+ export { createFirecrawlWebFetchProvider as t };
@@ -1,8 +1,8 @@
1
1
  import { buildFirecrawlFreeWebSearchProviderBase, buildFirecrawlWebSearchProviderBase } from "./web-search-shared.js";
2
- import { readPositiveIntegerParam } from "openclaw/plugin-sdk/param-readers";
3
2
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
3
+ import { readPositiveIntegerParam } from "openclaw/plugin-sdk/param-readers";
4
4
  //#region extensions/firecrawl/src/firecrawl-search-provider.ts
5
- const loadFirecrawlClientModule$1 = createLazyRuntimeModule(() => import("./firecrawl-client-Aw46OXVC.js").then((n) => n.t));
5
+ const loadFirecrawlClientModule$1 = createLazyRuntimeModule(() => import("./firecrawl-client-DQx3FAys.js").then((n) => n.t));
6
6
  const GenericFirecrawlSearchSchema = {
7
7
  type: "object",
8
8
  properties: {
@@ -43,11 +43,7 @@ function createFirecrawlWebSearchProvider() {
43
43
  }
44
44
  //#endregion
45
45
  //#region extensions/firecrawl/src/firecrawl-free-search-provider.ts
46
- let firecrawlClientModulePromise;
47
- function loadFirecrawlClientModule() {
48
- firecrawlClientModulePromise ??= import("./firecrawl-client-Aw46OXVC.js").then((n) => n.t);
49
- return firecrawlClientModulePromise;
50
- }
46
+ const loadFirecrawlClientModule = createLazyRuntimeModule(() => import("./firecrawl-client-DQx3FAys.js").then((n) => n.t));
51
47
  function createFirecrawlFreeWebSearchProvider() {
52
48
  return {
53
49
  ...buildFirecrawlFreeWebSearchProviderBase(),
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { n as runFirecrawlScrape, r as runFirecrawlSearch } from "./firecrawl-client-Aw46OXVC.js";
2
- import { t as createFirecrawlWebFetchProvider } from "./firecrawl-fetch-provider-CYViV-li.js";
3
- import { n as createFirecrawlWebSearchProvider, t as createFirecrawlFreeWebSearchProvider } from "./firecrawl-free-search-provider-nqgr2mhw.js";
1
+ import { n as runFirecrawlScrape, r as runFirecrawlSearch } from "./firecrawl-client-DQx3FAys.js";
2
+ import { t as createFirecrawlWebFetchProvider } from "./firecrawl-fetch-provider-C8gB71c0.js";
3
+ import { n as createFirecrawlWebSearchProvider, t as createFirecrawlFreeWebSearchProvider } from "./firecrawl-free-search-provider-5eCE16v7.js";
4
4
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
5
5
  import { optionalStringEnum } from "openclaw/plugin-sdk/channel-actions";
6
6
  import { jsonResult, readNonNegativeIntegerParam, readPositiveIntegerParam, readStringArrayParam, readStringParam } from "openclaw/plugin-sdk/provider-web-search";
@@ -34,7 +34,7 @@ function createFirecrawlScrapeTool(api) {
34
34
  name: "firecrawl_scrape",
35
35
  label: "Firecrawl Scrape",
36
36
  resultContentSource: "network",
37
- description: "Scrape a page using Firecrawl v2/scrape. Useful for JS-heavy or bot-protected pages where plain web_fetch is weak.",
37
+ description: "Scrape a page using Firecrawl v2/scrape. Useful for JS-heavy or bot-protected pages where a plain URL fetch is weak.",
38
38
  parameters: FirecrawlScrapeToolSchema,
39
39
  execute: async (_toolCallId, rawParams, signal) => {
40
40
  signal?.throwIfAborted();
@@ -1,12 +1,3 @@
1
- import { t as FIRECRAWL_WEB_FETCH_PROVIDER_SHARED } from "./firecrawl-fetch-provider-shared-BhzfHFkE.js";
2
- import { enablePluginInConfig } from "openclaw/plugin-sdk/provider-web-fetch-contract";
3
- //#region extensions/firecrawl/web-fetch-contract-api.ts
4
- function createFirecrawlWebFetchProvider() {
5
- return {
6
- ...FIRECRAWL_WEB_FETCH_PROVIDER_SHARED,
7
- applySelectionConfig: (config) => enablePluginInConfig(config, "firecrawl").config,
8
- createTool: () => null
9
- };
10
- }
11
- //#endregion
1
+ import { t as createFirecrawlWebFetchProvider } from "./firecrawl-fetch-provider-C8gB71c0.js";
2
+ import "./web-fetch-provider.js";
12
3
  export { createFirecrawlWebFetchProvider };
@@ -1,2 +1,2 @@
1
- import { t as createFirecrawlWebFetchProvider } from "./firecrawl-fetch-provider-CYViV-li.js";
1
+ import { t as createFirecrawlWebFetchProvider } from "./firecrawl-fetch-provider-C8gB71c0.js";
2
2
  export { createFirecrawlWebFetchProvider };
@@ -1,16 +1,3 @@
1
- import { buildFirecrawlFreeWebSearchProviderBase, buildFirecrawlWebSearchProviderBase } from "./web-search-shared.js";
2
- //#region extensions/firecrawl/web-search-contract-api.ts
3
- function createFirecrawlWebSearchProvider() {
4
- return {
5
- ...buildFirecrawlWebSearchProviderBase(),
6
- createTool: () => null
7
- };
8
- }
9
- function createFirecrawlFreeWebSearchProvider() {
10
- return {
11
- ...buildFirecrawlFreeWebSearchProviderBase(),
12
- createTool: () => null
13
- };
14
- }
15
- //#endregion
1
+ import { n as createFirecrawlWebSearchProvider, t as createFirecrawlFreeWebSearchProvider } from "./firecrawl-free-search-provider-5eCE16v7.js";
2
+ import "./web-search-provider.js";
16
3
  export { createFirecrawlFreeWebSearchProvider, createFirecrawlWebSearchProvider };
@@ -1,2 +1,2 @@
1
- import { n as createFirecrawlWebSearchProvider, t as createFirecrawlFreeWebSearchProvider } from "./firecrawl-free-search-provider-nqgr2mhw.js";
1
+ import { n as createFirecrawlWebSearchProvider, t as createFirecrawlFreeWebSearchProvider } from "./firecrawl-free-search-provider-5eCE16v7.js";
2
2
  export { createFirecrawlFreeWebSearchProvider, createFirecrawlWebSearchProvider };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Returns true if the value is a ISO8601 Date component string
3
- * @source ajv-formats
3
+ * @description https://datatracker.ietf.org/doc/html/rfc3339
4
4
  * @example `2020-12-12`
5
5
  */
6
6
  export declare function IsDate(value: string): boolean;
@@ -5,7 +5,7 @@ function IsLeapYear(year) {
5
5
  }
6
6
  /**
7
7
  * Returns true if the value is a ISO8601 Date component string
8
- * @source ajv-formats
8
+ * @description https://datatracker.ietf.org/doc/html/rfc3339
9
9
  * @example `2020-12-12`
10
10
  */
11
11
  export function IsDate(value) {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Returns true if the value is a ISO8601 DateTime string
3
- * @source ajv-formats
3
+ * @specification https://datatracker.ietf.org/doc/html/rfc3339
4
4
  * @example `2020-12-12T20:20:40+00:00`
5
5
  */
6
- export declare function IsDateTime(value: string, strictTimeZone?: boolean): boolean;
6
+ export declare function IsDateTime(value: string): boolean;
@@ -2,10 +2,10 @@ import { IsDate } from './date.mjs';
2
2
  import { IsTime } from './time.mjs';
3
3
  /**
4
4
  * Returns true if the value is a ISO8601 DateTime string
5
- * @source ajv-formats
5
+ * @specification https://datatracker.ietf.org/doc/html/rfc3339
6
6
  * @example `2020-12-12T20:20:40+00:00`
7
7
  */
8
- export function IsDateTime(value, strictTimeZone = true) {
8
+ export function IsDateTime(value) {
9
9
  const dateTime = value.split(/T/i);
10
- return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1], strictTimeZone);
10
+ return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1]);
11
11
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Returns true if the value is an Email
3
- * @specification ajv-formats
3
+ * @specification https://datatracker.ietf.org/doc/html/rfc5322
4
4
  */
5
5
  export declare function IsEmail(value: string): boolean;
@@ -1,7 +1,7 @@
1
- const Email = /^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;
1
+ const Email = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[^"\\]|\\.)*")@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*|\[(?:IPv6:[a-f0-9:]+|(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\])$/i;
2
2
  /**
3
3
  * Returns true if the value is an Email
4
- * @specification ajv-formats
4
+ * @specification https://datatracker.ietf.org/doc/html/rfc5322
5
5
  */
6
6
  export function IsEmail(value) {
7
7
  return Email.test(value);
@@ -1,4 +1,4 @@
1
- import * as Idna from './_idna.mjs';
1
+ import * as Idna from './idna/index.mjs';
2
2
  /**
3
3
  * Returns true if the value is a valid hostname.
4
4
  * @specification https://tools.ietf.org/html/rfc1123
@@ -6,13 +6,5 @@ import * as Idna from './_idna.mjs';
6
6
  * @specification https://tools.ietf.org/html/rfc5892
7
7
  */
8
8
  export function IsHostname(value) {
9
- if (value.length === 0 || value.length > 253)
10
- return false;
11
- if (value.charCodeAt(value.length - 1) === 46)
12
- return false;
13
- for (const label of value.split('.')) {
14
- if (!Idna.IsLabel(label))
15
- return false;
16
- }
17
- return true;
9
+ return Idna.IsHostname(value);
18
10
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Returns true if the value is an IdnEmail
3
- * @specification ajv-formats (unicode-extension)
3
+ * @specification https://datatracker.ietf.org/doc/html/rfc4952
4
4
  */
5
5
  export declare function IsIdnEmail(value: string): boolean;
@@ -1,8 +1,8 @@
1
- const IdnEmail = /^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;
1
+ const IdnEmail = /^(?:[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+(?:\.[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+)*|"(?:[^"\\]|\\.)*")@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-)(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-))*$/iu;
2
2
  /**
3
3
  * Returns true if the value is an IdnEmail
4
- * @specification ajv-formats (unicode-extension)
4
+ * @specification https://datatracker.ietf.org/doc/html/rfc4952
5
5
  */
6
6
  export function IsIdnEmail(value) {
7
- return IdnEmail.test(value);
7
+ return IdnEmail.test(value.normalize('NFC'));
8
8
  }
@@ -3,5 +3,6 @@
3
3
  * @specification https://tools.ietf.org/html/rfc3490
4
4
  * @specification https://tools.ietf.org/html/rfc5891
5
5
  * @specification https://tools.ietf.org/html/rfc5892
6
+ * @specification https://tools.ietf.org/html/rfc5893
6
7
  */
7
8
  export declare function IsIdnHostname(value: string): boolean;
@@ -1,19 +1,11 @@
1
- import { IsIdnLabel } from './_idna.mjs';
1
+ import * as Idna from './idna/index.mjs';
2
2
  /**
3
3
  * Returns true if the value is a valid internationalized (IDN) hostname.
4
4
  * @specification https://tools.ietf.org/html/rfc3490
5
5
  * @specification https://tools.ietf.org/html/rfc5891
6
6
  * @specification https://tools.ietf.org/html/rfc5892
7
+ * @specification https://tools.ietf.org/html/rfc5893
7
8
  */
8
9
  export function IsIdnHostname(value) {
9
- if (value.length === 0 || value.includes(' '))
10
- return false;
11
- const canonical = value.normalize('NFC').replace(/[\u002E\u3002\uFF0E\uFF61]/g, '.');
12
- if (canonical.length > 253)
13
- return false;
14
- for (const label of canonical.split('.')) {
15
- if (!IsIdnLabel(label))
16
- return false;
17
- }
18
- return true;
10
+ return Idna.IsIdnHostname(value);
19
11
  }
@@ -0,0 +1,3 @@
1
+ export declare function HasBidiChars(value: string): boolean;
2
+ export declare function HasRightToLeftCharacters(value: string): boolean;
3
+ export declare function SatisfiesBidiRule(value: string): boolean;