effect 4.0.0-beta.103 → 4.0.0-beta.105

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 (667) hide show
  1. package/AGENTS.md +381 -0
  2. package/CLAUDE.md +381 -0
  3. package/ai-docs/README.md +44 -0
  4. package/ai-docs/package.json +36 -0
  5. package/ai-docs/src/01_effect/01_basics/01_effect-gen.ts +30 -0
  6. package/ai-docs/src/01_effect/01_basics/02_effect-fn.ts +39 -0
  7. package/ai-docs/src/01_effect/01_basics/10_creating-effects.ts +74 -0
  8. package/ai-docs/src/01_effect/01_basics/index.md +5 -0
  9. package/ai-docs/src/01_effect/02_schema/10_schema-basics.ts +43 -0
  10. package/ai-docs/src/01_effect/02_schema/index.md +7 -0
  11. package/ai-docs/src/01_effect/03_services/01_service.ts +45 -0
  12. package/ai-docs/src/01_effect/03_services/10_reference.ts +10 -0
  13. package/ai-docs/src/01_effect/03_services/20_layer-composition.ts +70 -0
  14. package/ai-docs/src/01_effect/03_services/20_layer-unwrap.ts +66 -0
  15. package/ai-docs/src/01_effect/03_services/index.md +5 -0
  16. package/ai-docs/src/01_effect/04_errors/01_error-handling.ts +30 -0
  17. package/ai-docs/src/01_effect/04_errors/10_catch-tags.ts +24 -0
  18. package/ai-docs/src/01_effect/04_errors/20_reason-errors.ts +64 -0
  19. package/ai-docs/src/01_effect/04_errors/index.md +1 -0
  20. package/ai-docs/src/01_effect/05_resources/10_acquire-release.ts +105 -0
  21. package/ai-docs/src/01_effect/05_resources/20_layer-side-effects.ts +31 -0
  22. package/ai-docs/src/01_effect/05_resources/30_layer-map.ts +86 -0
  23. package/ai-docs/src/01_effect/05_resources/index.md +3 -0
  24. package/ai-docs/src/01_effect/06_running/10_run-main.ts +30 -0
  25. package/ai-docs/src/01_effect/06_running/20_layer-launch.ts +27 -0
  26. package/ai-docs/src/01_effect/06_running/index.md +1 -0
  27. package/ai-docs/src/01_effect/07_pubsub/10_pubsub.ts +56 -0
  28. package/ai-docs/src/01_effect/07_pubsub/index.md +3 -0
  29. package/ai-docs/src/03_stream/10_creating-streams.ts +103 -0
  30. package/ai-docs/src/03_stream/20_consuming-streams.ts +137 -0
  31. package/ai-docs/src/03_stream/30_encoding.ts +165 -0
  32. package/ai-docs/src/03_stream/index.md +4 -0
  33. package/ai-docs/src/04_integration/10_managed-runtime.ts +129 -0
  34. package/ai-docs/src/04_integration/index.md +5 -0
  35. package/ai-docs/src/05_batching/10_request-resolver.ts +89 -0
  36. package/ai-docs/src/05_batching/index.md +3 -0
  37. package/ai-docs/src/06_schedule/10_schedules.ts +110 -0
  38. package/ai-docs/src/06_schedule/index.md +3 -0
  39. package/ai-docs/src/07_datetime/10_creating-and-formatting.ts +30 -0
  40. package/ai-docs/src/07_datetime/20_time-zones.ts +44 -0
  41. package/ai-docs/src/07_datetime/index.md +5 -0
  42. package/ai-docs/src/08_observability/10_logging.ts +66 -0
  43. package/ai-docs/src/08_observability/20_otlp-tracing.ts +95 -0
  44. package/ai-docs/src/08_observability/index.md +7 -0
  45. package/ai-docs/src/09_testing/10_effect-tests.ts +55 -0
  46. package/ai-docs/src/09_testing/20_layer-tests.ts +138 -0
  47. package/ai-docs/src/09_testing/index.md +1 -0
  48. package/ai-docs/src/10_predicate/01_basics.ts +14 -0
  49. package/ai-docs/src/10_predicate/index.md +9 -0
  50. package/ai-docs/src/50_http-client/10_basics.ts +102 -0
  51. package/ai-docs/src/50_http-client/index.md +3 -0
  52. package/ai-docs/src/51_http-server/10_basics.ts +116 -0
  53. package/ai-docs/src/51_http-server/fixtures/api/Api.ts +14 -0
  54. package/ai-docs/src/51_http-server/fixtures/api/Authorization.ts +36 -0
  55. package/ai-docs/src/51_http-server/fixtures/api/System.ts +10 -0
  56. package/ai-docs/src/51_http-server/fixtures/api/Users.ts +91 -0
  57. package/ai-docs/src/51_http-server/fixtures/domain/User.ts +12 -0
  58. package/ai-docs/src/51_http-server/fixtures/domain/UserErrors.ts +22 -0
  59. package/ai-docs/src/51_http-server/fixtures/server/Authorization.ts +36 -0
  60. package/ai-docs/src/51_http-server/fixtures/server/Users/http.ts +71 -0
  61. package/ai-docs/src/51_http-server/fixtures/server/Users.ts +62 -0
  62. package/ai-docs/src/51_http-server/index.md +3 -0
  63. package/ai-docs/src/60_child-process/10_working-with-child-processes.ts +117 -0
  64. package/ai-docs/src/60_child-process/index.md +3 -0
  65. package/ai-docs/src/70_cli/10_basics.ts +136 -0
  66. package/ai-docs/src/70_cli/index.md +5 -0
  67. package/ai-docs/src/71_ai/10_language-model.ts +156 -0
  68. package/ai-docs/src/71_ai/20_tools.ts +226 -0
  69. package/ai-docs/src/71_ai/30_chat.ts +158 -0
  70. package/ai-docs/src/71_ai/fixtures/domain/LaunchPlan.ts +9 -0
  71. package/ai-docs/src/71_ai/index.md +5 -0
  72. package/ai-docs/src/80_cluster/10_entities.ts +97 -0
  73. package/ai-docs/src/80_cluster/index.md +4 -0
  74. package/ai-docs/src/index.md +10 -0
  75. package/ai-docs/tsconfig.json +24 -0
  76. package/dist/Brand.d.ts +3 -3
  77. package/dist/Brand.d.ts.map +1 -1
  78. package/dist/Brand.js +4 -3
  79. package/dist/Brand.js.map +1 -1
  80. package/dist/Cache.js +1 -1
  81. package/dist/Cache.js.map +1 -1
  82. package/dist/Channel.d.ts +1 -1
  83. package/dist/Channel.d.ts.map +1 -1
  84. package/dist/Channel.js.map +1 -1
  85. package/dist/Config.d.ts.map +1 -1
  86. package/dist/Config.js +30 -8
  87. package/dist/Config.js.map +1 -1
  88. package/dist/ConfigProvider.d.ts.map +1 -1
  89. package/dist/ConfigProvider.js +2 -1
  90. package/dist/ConfigProvider.js.map +1 -1
  91. package/dist/Context.d.ts +2 -3
  92. package/dist/Context.d.ts.map +1 -1
  93. package/dist/Context.js +1 -22
  94. package/dist/Context.js.map +1 -1
  95. package/dist/Cron.d.ts +31 -0
  96. package/dist/Cron.d.ts.map +1 -1
  97. package/dist/Cron.js +58 -2
  98. package/dist/Cron.js.map +1 -1
  99. package/dist/Crypto.d.ts.map +1 -1
  100. package/dist/Crypto.js +13 -5
  101. package/dist/Crypto.js.map +1 -1
  102. package/dist/Duration.d.ts.map +1 -1
  103. package/dist/Duration.js +12 -1
  104. package/dist/Duration.js.map +1 -1
  105. package/dist/Effect.d.ts +132 -14
  106. package/dist/Effect.d.ts.map +1 -1
  107. package/dist/Effect.js +38 -0
  108. package/dist/Effect.js.map +1 -1
  109. package/dist/Equal.d.ts.map +1 -1
  110. package/dist/Equal.js +10 -2
  111. package/dist/Equal.js.map +1 -1
  112. package/dist/ExecutionPlan.d.ts +73 -0
  113. package/dist/ExecutionPlan.d.ts.map +1 -1
  114. package/dist/ExecutionPlan.js +1 -1
  115. package/dist/ExecutionPlan.js.map +1 -1
  116. package/dist/FiberSet.js +1 -1
  117. package/dist/FileSystem.d.ts +2 -2
  118. package/dist/Function.d.ts +4 -3
  119. package/dist/Function.d.ts.map +1 -1
  120. package/dist/Function.js +5 -5
  121. package/dist/Function.js.map +1 -1
  122. package/dist/Iterable.d.ts.map +1 -1
  123. package/dist/Iterable.js +11 -10
  124. package/dist/Iterable.js.map +1 -1
  125. package/dist/Layer.d.ts.map +1 -1
  126. package/dist/Layer.js +7 -5
  127. package/dist/Layer.js.map +1 -1
  128. package/dist/Optic.d.ts +35 -21
  129. package/dist/Optic.d.ts.map +1 -1
  130. package/dist/Optic.js +33 -34
  131. package/dist/Optic.js.map +1 -1
  132. package/dist/Schedule.d.ts +8 -8
  133. package/dist/Schedule.d.ts.map +1 -1
  134. package/dist/Schedule.js +4 -4
  135. package/dist/Schedule.js.map +1 -1
  136. package/dist/Schema.d.ts +105 -57
  137. package/dist/Schema.d.ts.map +1 -1
  138. package/dist/Schema.js +105 -67
  139. package/dist/Schema.js.map +1 -1
  140. package/dist/SchemaAST.d.ts +33 -3
  141. package/dist/SchemaAST.d.ts.map +1 -1
  142. package/dist/SchemaAST.js +87 -63
  143. package/dist/SchemaAST.js.map +1 -1
  144. package/dist/SchemaError.d.ts +8 -8
  145. package/dist/SchemaError.d.ts.map +1 -1
  146. package/dist/SchemaError.js +7 -6
  147. package/dist/SchemaError.js.map +1 -1
  148. package/dist/SchemaGetter.d.ts +8 -5
  149. package/dist/SchemaGetter.d.ts.map +1 -1
  150. package/dist/SchemaGetter.js +41 -37
  151. package/dist/SchemaGetter.js.map +1 -1
  152. package/dist/SchemaIssue.d.ts +195 -38
  153. package/dist/SchemaIssue.d.ts.map +1 -1
  154. package/dist/SchemaIssue.js +243 -68
  155. package/dist/SchemaIssue.js.map +1 -1
  156. package/dist/SchemaParser.d.ts +30 -0
  157. package/dist/SchemaParser.d.ts.map +1 -1
  158. package/dist/SchemaParser.js +74 -62
  159. package/dist/SchemaParser.js.map +1 -1
  160. package/dist/SchemaTransformation.d.ts +2 -2
  161. package/dist/SchemaTransformation.d.ts.map +1 -1
  162. package/dist/SchemaTransformation.js +26 -26
  163. package/dist/SchemaTransformation.js.map +1 -1
  164. package/dist/ScopedCache.js +1 -1
  165. package/dist/ScopedCache.js.map +1 -1
  166. package/dist/Sink.d.ts +1 -1
  167. package/dist/Sink.d.ts.map +1 -1
  168. package/dist/Stdio.d.ts +17 -4
  169. package/dist/Stdio.d.ts.map +1 -1
  170. package/dist/Stdio.js +6 -3
  171. package/dist/Stdio.js.map +1 -1
  172. package/dist/Stream.d.ts +27 -4
  173. package/dist/Stream.d.ts.map +1 -1
  174. package/dist/Stream.js +27 -2
  175. package/dist/Stream.js.map +1 -1
  176. package/dist/SynchronizedRef.js +1 -1
  177. package/dist/SynchronizedRef.js.map +1 -1
  178. package/dist/Terminal.js +1 -1
  179. package/dist/Terminal.js.map +1 -1
  180. package/dist/Tuple.d.ts +6 -4
  181. package/dist/Tuple.d.ts.map +1 -1
  182. package/dist/Tuple.js.map +1 -1
  183. package/dist/TxReentrantLock.d.ts +0 -56
  184. package/dist/TxReentrantLock.d.ts.map +1 -1
  185. package/dist/TxReentrantLock.js +8 -8
  186. package/dist/TxReentrantLock.js.map +1 -1
  187. package/dist/internal/dateTime.js +1 -1
  188. package/dist/internal/dateTime.js.map +1 -1
  189. package/dist/internal/executionPlan.js +51 -3
  190. package/dist/internal/executionPlan.js.map +1 -1
  191. package/dist/internal/hashMap.js +12 -8
  192. package/dist/internal/hashMap.js.map +1 -1
  193. package/dist/internal/matcher.js +1 -1
  194. package/dist/internal/matcher.js.map +1 -1
  195. package/dist/internal/schedule.js.map +1 -1
  196. package/dist/internal/schema/annotations.js +2 -0
  197. package/dist/internal/schema/annotations.js.map +1 -1
  198. package/dist/internal/schema/schema.js +1 -9
  199. package/dist/internal/schema/schema.js.map +1 -1
  200. package/dist/internal/schema/toArbitrary.js +1 -1
  201. package/dist/internal/schema/toArbitrary.js.map +1 -1
  202. package/dist/internal/trie.js +13 -3
  203. package/dist/internal/trie.js.map +1 -1
  204. package/dist/testing/TestClock.d.ts.map +1 -1
  205. package/dist/testing/TestClock.js +11 -1
  206. package/dist/testing/TestClock.js.map +1 -1
  207. package/dist/testing/TestSchema.d.ts +2 -2
  208. package/dist/testing/TestSchema.d.ts.map +1 -1
  209. package/dist/testing/TestSchema.js +8 -7
  210. package/dist/testing/TestSchema.js.map +1 -1
  211. package/dist/unstable/ai/AiError.js +19 -19
  212. package/dist/unstable/ai/AiError.js.map +1 -1
  213. package/dist/unstable/ai/Chat.js +1 -1
  214. package/dist/unstable/ai/Chat.js.map +1 -1
  215. package/dist/unstable/ai/LanguageModel.js +4 -2
  216. package/dist/unstable/ai/LanguageModel.js.map +1 -1
  217. package/dist/unstable/ai/McpSchema.d.ts +132 -132
  218. package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
  219. package/dist/unstable/ai/McpSchema.js +8 -8
  220. package/dist/unstable/ai/McpSchema.js.map +1 -1
  221. package/dist/unstable/ai/McpServer.js +1 -1
  222. package/dist/unstable/ai/McpServer.js.map +1 -1
  223. package/dist/unstable/ai/Prompt.d.ts +15 -3
  224. package/dist/unstable/ai/Prompt.d.ts.map +1 -1
  225. package/dist/unstable/ai/Prompt.js +10 -7
  226. package/dist/unstable/ai/Prompt.js.map +1 -1
  227. package/dist/unstable/cli/CliError.d.ts +3 -3
  228. package/dist/unstable/cli/CliError.js +11 -11
  229. package/dist/unstable/cli/CliError.js.map +1 -1
  230. package/dist/unstable/cli/Command.d.ts +9 -9
  231. package/dist/unstable/cli/Command.d.ts.map +1 -1
  232. package/dist/unstable/cli/Command.js +8 -6
  233. package/dist/unstable/cli/Command.js.map +1 -1
  234. package/dist/unstable/cli/Param.d.ts +7 -5
  235. package/dist/unstable/cli/Param.d.ts.map +1 -1
  236. package/dist/unstable/cli/Param.js +15 -11
  237. package/dist/unstable/cli/Param.js.map +1 -1
  238. package/dist/unstable/cli/Primitive.d.ts.map +1 -1
  239. package/dist/unstable/cli/Primitive.js +31 -24
  240. package/dist/unstable/cli/Primitive.js.map +1 -1
  241. package/dist/unstable/cli/Prompt.d.ts.map +1 -1
  242. package/dist/unstable/cli/Prompt.js +31 -17
  243. package/dist/unstable/cli/Prompt.js.map +1 -1
  244. package/dist/unstable/cli/internal/ansi.js +2 -2
  245. package/dist/unstable/cli/internal/ansi.js.map +1 -1
  246. package/dist/unstable/cli/internal/command.d.ts +2 -2
  247. package/dist/unstable/cli/internal/command.d.ts.map +1 -1
  248. package/dist/unstable/cli/internal/command.js +10 -9
  249. package/dist/unstable/cli/internal/command.js.map +1 -1
  250. package/dist/unstable/cli/internal/completions/bash.js +69 -9
  251. package/dist/unstable/cli/internal/completions/bash.js.map +1 -1
  252. package/dist/unstable/cli/internal/completions/descriptor.js +24 -18
  253. package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
  254. package/dist/unstable/cli/internal/completions/fish.js +5 -5
  255. package/dist/unstable/cli/internal/completions/fish.js.map +1 -1
  256. package/dist/unstable/cli/internal/help.d.ts.map +1 -1
  257. package/dist/unstable/cli/internal/help.js +4 -2
  258. package/dist/unstable/cli/internal/help.js.map +1 -1
  259. package/dist/unstable/cli/internal/parser.js +3 -3
  260. package/dist/unstable/cli/internal/parser.js.map +1 -1
  261. package/dist/unstable/cli/internal/wizard.js +2 -2
  262. package/dist/unstable/cli/internal/wizard.js.map +1 -1
  263. package/dist/unstable/cluster/ClusterError.js +7 -7
  264. package/dist/unstable/cluster/ClusterError.js.map +1 -1
  265. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  266. package/dist/unstable/cluster/ClusterWorkflowEngine.js +1 -1
  267. package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
  268. package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
  269. package/dist/unstable/cluster/MessageStorage.js +8 -1
  270. package/dist/unstable/cluster/MessageStorage.js.map +1 -1
  271. package/dist/unstable/cluster/Reply.d.ts +8 -0
  272. package/dist/unstable/cluster/Reply.d.ts.map +1 -1
  273. package/dist/unstable/cluster/Reply.js +16 -4
  274. package/dist/unstable/cluster/Reply.js.map +1 -1
  275. package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
  276. package/dist/unstable/cluster/RunnerServer.js +4 -2
  277. package/dist/unstable/cluster/RunnerServer.js.map +1 -1
  278. package/dist/unstable/cluster/RunnerStorage.d.ts +1 -2
  279. package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
  280. package/dist/unstable/cluster/RunnerStorage.js +7 -6
  281. package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
  282. package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
  283. package/dist/unstable/cluster/Sharding.js +22 -4
  284. package/dist/unstable/cluster/Sharding.js.map +1 -1
  285. package/dist/unstable/cluster/internal/entityManager.js +1 -1
  286. package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
  287. package/dist/unstable/cluster/internal/resourceMap.js +2 -2
  288. package/dist/unstable/cluster/internal/resourceMap.js.map +1 -1
  289. package/dist/unstable/cluster/internal/resourceRef.js +17 -0
  290. package/dist/unstable/cluster/internal/resourceRef.js.map +1 -1
  291. package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
  292. package/dist/unstable/devtools/DevToolsClient.js +7 -2
  293. package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
  294. package/dist/unstable/encoding/Ini.d.ts +20 -0
  295. package/dist/unstable/encoding/Ini.d.ts.map +1 -0
  296. package/dist/unstable/encoding/Ini.js +153 -0
  297. package/dist/unstable/encoding/Ini.js.map +1 -0
  298. package/dist/unstable/encoding/Msgpack.d.ts +2 -1
  299. package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
  300. package/dist/unstable/encoding/Msgpack.js +27 -13
  301. package/dist/unstable/encoding/Msgpack.js.map +1 -1
  302. package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
  303. package/dist/unstable/encoding/Ndjson.js +7 -1
  304. package/dist/unstable/encoding/Ndjson.js.map +1 -1
  305. package/dist/unstable/encoding/Sse.d.ts.map +1 -1
  306. package/dist/unstable/encoding/Sse.js +14 -23
  307. package/dist/unstable/encoding/Sse.js.map +1 -1
  308. package/dist/unstable/encoding/Toml.d.ts +19 -0
  309. package/dist/unstable/encoding/Toml.d.ts.map +1 -0
  310. package/dist/unstable/encoding/Toml.js +434 -0
  311. package/dist/unstable/encoding/Toml.js.map +1 -0
  312. package/dist/unstable/encoding/Yaml.d.ts +19 -0
  313. package/dist/unstable/encoding/Yaml.d.ts.map +1 -0
  314. package/dist/unstable/encoding/Yaml.js +461 -0
  315. package/dist/unstable/encoding/Yaml.js.map +1 -0
  316. package/dist/unstable/encoding/index.d.ts +12 -0
  317. package/dist/unstable/encoding/index.d.ts.map +1 -1
  318. package/dist/unstable/encoding/index.js +12 -0
  319. package/dist/unstable/encoding/index.js.map +1 -1
  320. package/dist/unstable/eventlog/EventJournal.d.ts +1 -1
  321. package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
  322. package/dist/unstable/eventlog/EventJournal.js +13 -5
  323. package/dist/unstable/eventlog/EventJournal.js.map +1 -1
  324. package/dist/unstable/eventlog/EventLogMessage.js +1 -1
  325. package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
  326. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +1 -1
  327. package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
  328. package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
  329. package/dist/unstable/eventlog/SqlEventJournal.js +1 -4
  330. package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
  331. package/dist/unstable/http/FindMyWay/internal/queryString.d.ts +11 -0
  332. package/dist/unstable/http/FindMyWay/internal/queryString.d.ts.map +1 -0
  333. package/dist/unstable/http/FindMyWay/internal/queryString.js +259 -0
  334. package/dist/unstable/http/FindMyWay/internal/queryString.js.map +1 -0
  335. package/dist/unstable/http/FindMyWay/internal/router.d.ts +2 -0
  336. package/dist/unstable/http/FindMyWay/internal/router.d.ts.map +1 -0
  337. package/dist/unstable/http/FindMyWay/internal/router.js +665 -0
  338. package/dist/unstable/http/FindMyWay/internal/router.js.map +1 -0
  339. package/dist/unstable/http/FindMyWay.d.ts +33 -8
  340. package/dist/unstable/http/FindMyWay.d.ts.map +1 -1
  341. package/dist/unstable/http/FindMyWay.js +4 -7
  342. package/dist/unstable/http/FindMyWay.js.map +1 -1
  343. package/dist/unstable/http/HttpClient.d.ts +59 -3
  344. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  345. package/dist/unstable/http/HttpClient.js +33 -19
  346. package/dist/unstable/http/HttpClient.js.map +1 -1
  347. package/dist/unstable/http/HttpClientError.js +1 -1
  348. package/dist/unstable/http/HttpClientError.js.map +1 -1
  349. package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
  350. package/dist/unstable/http/HttpClientRequest.js +2 -14
  351. package/dist/unstable/http/HttpClientRequest.js.map +1 -1
  352. package/dist/unstable/http/HttpClientResponse.js +1 -16
  353. package/dist/unstable/http/HttpClientResponse.js.map +1 -1
  354. package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
  355. package/dist/unstable/http/HttpPlatform.js +21 -3
  356. package/dist/unstable/http/HttpPlatform.js.map +1 -1
  357. package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
  358. package/dist/unstable/http/HttpServerRequest.js +7 -6
  359. package/dist/unstable/http/HttpServerRequest.js.map +1 -1
  360. package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
  361. package/dist/unstable/http/HttpServerResponse.js +8 -6
  362. package/dist/unstable/http/HttpServerResponse.js.map +1 -1
  363. package/dist/unstable/http/Multipart.d.ts +1 -1
  364. package/dist/unstable/http/Multipart.d.ts.map +1 -1
  365. package/dist/unstable/http/Multipart.js +9 -2
  366. package/dist/unstable/http/Multipart.js.map +1 -1
  367. package/dist/unstable/http/MultipartParser/HeadersParser.d.ts +53 -0
  368. package/dist/unstable/http/MultipartParser/HeadersParser.d.ts.map +1 -0
  369. package/dist/unstable/http/MultipartParser/HeadersParser.js +14 -0
  370. package/dist/unstable/http/MultipartParser/HeadersParser.js.map +1 -0
  371. package/dist/unstable/http/MultipartParser/Search.d.ts +11 -0
  372. package/dist/unstable/http/MultipartParser/Search.d.ts.map +1 -0
  373. package/dist/unstable/http/MultipartParser/Search.js +14 -0
  374. package/dist/unstable/http/MultipartParser/Search.js.map +1 -0
  375. package/dist/unstable/http/MultipartParser/internal/contentType.d.ts +5 -0
  376. package/dist/unstable/http/MultipartParser/internal/contentType.d.ts.map +1 -0
  377. package/dist/unstable/http/MultipartParser/internal/contentType.js +82 -0
  378. package/dist/unstable/http/MultipartParser/internal/contentType.js.map +1 -0
  379. package/dist/unstable/http/MultipartParser/internal/headers.d.ts +3 -0
  380. package/dist/unstable/http/MultipartParser/internal/headers.d.ts.map +1 -0
  381. package/dist/unstable/http/MultipartParser/internal/headers.js +194 -0
  382. package/dist/unstable/http/MultipartParser/internal/headers.js.map +1 -0
  383. package/dist/unstable/http/MultipartParser/internal/multipart.d.ts +8 -0
  384. package/dist/unstable/http/MultipartParser/internal/multipart.d.ts.map +1 -0
  385. package/dist/unstable/http/MultipartParser/internal/multipart.js +226 -0
  386. package/dist/unstable/http/MultipartParser/internal/multipart.js.map +1 -0
  387. package/dist/unstable/http/MultipartParser/internal/search.d.ts +5 -0
  388. package/dist/unstable/http/MultipartParser/internal/search.d.ts.map +1 -0
  389. package/dist/unstable/http/MultipartParser/internal/search.js +120 -0
  390. package/dist/unstable/http/MultipartParser/internal/search.js.map +1 -0
  391. package/dist/unstable/http/MultipartParser.d.ts +98 -0
  392. package/dist/unstable/http/MultipartParser.d.ts.map +1 -0
  393. package/dist/unstable/http/MultipartParser.js +23 -0
  394. package/dist/unstable/http/MultipartParser.js.map +1 -0
  395. package/dist/unstable/http/Template.d.ts.map +1 -1
  396. package/dist/unstable/http/Template.js +2 -2
  397. package/dist/unstable/http/Template.js.map +1 -1
  398. package/dist/unstable/http/index.d.ts +1 -1
  399. package/dist/unstable/http/index.d.ts.map +1 -1
  400. package/dist/unstable/http/index.js +1 -1
  401. package/dist/unstable/http/index.js.map +1 -1
  402. package/dist/unstable/http/internal/httpBody.d.ts +2 -0
  403. package/dist/unstable/http/internal/httpBody.d.ts.map +1 -0
  404. package/dist/unstable/http/internal/httpBody.js +10 -0
  405. package/dist/unstable/http/internal/httpBody.js.map +1 -0
  406. package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
  407. package/dist/unstable/httpapi/HttpApi.js +5 -5
  408. package/dist/unstable/httpapi/HttpApi.js.map +1 -1
  409. package/dist/unstable/httpapi/HttpApiBuilder.js +73 -20
  410. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  411. package/dist/unstable/httpapi/HttpApiClient.d.ts +1 -1
  412. package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
  413. package/dist/unstable/httpapi/HttpApiClient.js +74 -34
  414. package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
  415. package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +6 -4
  416. package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
  417. package/dist/unstable/httpapi/HttpApiEndpoint.js +73 -16
  418. package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
  419. package/dist/unstable/httpapi/HttpApiError.d.ts +5 -5
  420. package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
  421. package/dist/unstable/httpapi/HttpApiError.js +17 -17
  422. package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
  423. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +1 -1
  424. package/dist/unstable/httpapi/HttpApiMiddleware.js +1 -1
  425. package/dist/unstable/httpapi/HttpApiSchema.d.ts +219 -0
  426. package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
  427. package/dist/unstable/httpapi/HttpApiSchema.js +170 -0
  428. package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
  429. package/dist/unstable/httpapi/OpenApi.d.ts +8 -0
  430. package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
  431. package/dist/unstable/httpapi/OpenApi.js +45 -18
  432. package/dist/unstable/httpapi/OpenApi.js.map +1 -1
  433. package/dist/unstable/observability/OtlpExporter.d.ts +1 -1
  434. package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
  435. package/dist/unstable/observability/OtlpExporter.js +2 -1
  436. package/dist/unstable/observability/OtlpExporter.js.map +1 -1
  437. package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
  438. package/dist/unstable/observability/OtlpLogger.js +2 -2
  439. package/dist/unstable/observability/OtlpLogger.js.map +1 -1
  440. package/dist/unstable/observability/OtlpMetrics.d.ts +2 -2
  441. package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
  442. package/dist/unstable/observability/OtlpMetrics.js +28 -15
  443. package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
  444. package/dist/unstable/observability/OtlpTracer.js +1 -1
  445. package/dist/unstable/observability/OtlpTracer.js.map +1 -1
  446. package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
  447. package/dist/unstable/persistence/PersistedQueue.js +9 -9
  448. package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
  449. package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
  450. package/dist/unstable/persistence/Persistence.js +17 -7
  451. package/dist/unstable/persistence/Persistence.js.map +1 -1
  452. package/dist/unstable/persistence/RateLimiter.d.ts +22 -12
  453. package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
  454. package/dist/unstable/persistence/RateLimiter.js +15 -42
  455. package/dist/unstable/persistence/RateLimiter.js.map +1 -1
  456. package/dist/unstable/persistence/Redis.js +1 -1
  457. package/dist/unstable/persistence/Redis.js.map +1 -1
  458. package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
  459. package/dist/unstable/reactivity/AsyncResult.js +4 -4
  460. package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
  461. package/dist/unstable/reactivity/Atom.d.ts +26 -11
  462. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  463. package/dist/unstable/reactivity/Atom.js +9 -22
  464. package/dist/unstable/reactivity/Atom.js.map +1 -1
  465. package/dist/unstable/rpc/RpcClient.d.ts +14 -0
  466. package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
  467. package/dist/unstable/rpc/RpcClient.js +21 -10
  468. package/dist/unstable/rpc/RpcClient.js.map +1 -1
  469. package/dist/unstable/rpc/RpcClientError.js +2 -2
  470. package/dist/unstable/rpc/RpcClientError.js.map +1 -1
  471. package/dist/unstable/rpc/RpcSerialization.js +3 -1
  472. package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
  473. package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
  474. package/dist/unstable/rpc/RpcServer.js +3 -2
  475. package/dist/unstable/rpc/RpcServer.js.map +1 -1
  476. package/dist/unstable/schema/Model.d.ts +1 -1
  477. package/dist/unstable/schema/Model.d.ts.map +1 -1
  478. package/dist/unstable/schema/VariantSchema.d.ts +5 -5
  479. package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
  480. package/dist/unstable/schema/VariantSchema.js +17 -9
  481. package/dist/unstable/schema/VariantSchema.js.map +1 -1
  482. package/dist/unstable/socket/Socket.d.ts.map +1 -1
  483. package/dist/unstable/socket/Socket.js +28 -12
  484. package/dist/unstable/socket/Socket.js.map +1 -1
  485. package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
  486. package/dist/unstable/sql/SqlClient.js +7 -3
  487. package/dist/unstable/sql/SqlClient.js.map +1 -1
  488. package/dist/unstable/sql/SqlError.js +13 -13
  489. package/dist/unstable/sql/SqlError.js.map +1 -1
  490. package/dist/unstable/sql/SqlResolver.js +8 -6
  491. package/dist/unstable/sql/SqlResolver.js.map +1 -1
  492. package/dist/unstable/sql/Statement.d.ts.map +1 -1
  493. package/dist/unstable/sql/Statement.js +8 -6
  494. package/dist/unstable/sql/Statement.js.map +1 -1
  495. package/dist/unstable/workers/WorkerError.js +5 -5
  496. package/dist/unstable/workers/WorkerError.js.map +1 -1
  497. package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
  498. package/dist/unstable/workflow/Workflow.js +2 -2
  499. package/dist/unstable/workflow/Workflow.js.map +1 -1
  500. package/dist/unstable/workflow/WorkflowEngine.d.ts +1 -1
  501. package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
  502. package/dist/unstable/workflow/WorkflowEngine.js +3 -3
  503. package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
  504. package/package.json +6 -9
  505. package/src/Brand.ts +4 -4
  506. package/src/Cache.ts +1 -1
  507. package/src/Channel.ts +1 -1
  508. package/src/Config.ts +31 -8
  509. package/src/ConfigProvider.ts +4 -1
  510. package/src/Context.ts +6 -28
  511. package/src/Cron.ts +65 -2
  512. package/src/Crypto.ts +17 -8
  513. package/src/Duration.ts +16 -2
  514. package/src/Effect.ts +141 -17
  515. package/src/Equal.ts +10 -2
  516. package/src/ExecutionPlan.ts +78 -1
  517. package/src/FiberSet.ts +1 -1
  518. package/src/FileSystem.ts +2 -2
  519. package/src/Function.ts +6 -6
  520. package/src/Iterable.ts +11 -10
  521. package/src/Layer.ts +7 -5
  522. package/src/Optic.ts +59 -58
  523. package/src/Schedule.ts +13 -13
  524. package/src/Schema.ts +195 -112
  525. package/src/SchemaAST.ts +154 -85
  526. package/src/SchemaError.ts +9 -9
  527. package/src/SchemaGetter.ts +89 -30
  528. package/src/SchemaIssue.ts +285 -80
  529. package/src/SchemaParser.ts +126 -86
  530. package/src/SchemaTransformation.ts +66 -18
  531. package/src/ScopedCache.ts +1 -1
  532. package/src/Sink.ts +1 -1
  533. package/src/Stdio.ts +23 -4
  534. package/src/Stream.ts +77 -10
  535. package/src/SynchronizedRef.ts +1 -1
  536. package/src/Terminal.ts +1 -1
  537. package/src/Tuple.ts +7 -4
  538. package/src/TxReentrantLock.ts +39 -35
  539. package/src/internal/dateTime.ts +1 -1
  540. package/src/internal/executionPlan.ts +105 -10
  541. package/src/internal/hashMap.ts +20 -14
  542. package/src/internal/matcher.ts +2 -2
  543. package/src/internal/schedule.ts +4 -4
  544. package/src/internal/schema/annotations.ts +3 -0
  545. package/src/internal/schema/schema.ts +1 -17
  546. package/src/internal/schema/toArbitrary.ts +3 -1
  547. package/src/internal/trie.ts +12 -2
  548. package/src/testing/TestClock.ts +13 -1
  549. package/src/testing/TestSchema.ts +9 -9
  550. package/src/unstable/ai/AiError.ts +19 -19
  551. package/src/unstable/ai/Chat.ts +1 -1
  552. package/src/unstable/ai/LanguageModel.ts +4 -2
  553. package/src/unstable/ai/McpSchema.ts +17 -16
  554. package/src/unstable/ai/McpServer.ts +1 -1
  555. package/src/unstable/ai/Prompt.ts +35 -10
  556. package/src/unstable/cli/CliError.ts +12 -12
  557. package/src/unstable/cli/Command.ts +12 -10
  558. package/src/unstable/cli/Param.ts +41 -19
  559. package/src/unstable/cli/Primitive.ts +11 -5
  560. package/src/unstable/cli/Prompt.ts +36 -20
  561. package/src/unstable/cli/internal/ansi.ts +2 -2
  562. package/src/unstable/cli/internal/command.ts +15 -10
  563. package/src/unstable/cli/internal/completions/bash.ts +59 -9
  564. package/src/unstable/cli/internal/completions/descriptor.ts +14 -20
  565. package/src/unstable/cli/internal/completions/fish.ts +5 -7
  566. package/src/unstable/cli/internal/help.ts +4 -2
  567. package/src/unstable/cli/internal/parser.ts +3 -3
  568. package/src/unstable/cli/internal/wizard.ts +2 -2
  569. package/src/unstable/cluster/ClusterError.ts +7 -7
  570. package/src/unstable/cluster/ClusterWorkflowEngine.ts +4 -1
  571. package/src/unstable/cluster/MessageStorage.ts +9 -5
  572. package/src/unstable/cluster/Reply.ts +25 -4
  573. package/src/unstable/cluster/RunnerServer.ts +4 -10
  574. package/src/unstable/cluster/RunnerStorage.ts +9 -7
  575. package/src/unstable/cluster/Sharding.ts +35 -7
  576. package/src/unstable/cluster/internal/entityManager.ts +1 -1
  577. package/src/unstable/cluster/internal/resourceMap.ts +5 -2
  578. package/src/unstable/cluster/internal/resourceRef.ts +27 -5
  579. package/src/unstable/devtools/DevToolsClient.ts +3 -2
  580. package/src/unstable/encoding/Ini.ts +174 -0
  581. package/src/unstable/encoding/Msgpack.ts +59 -36
  582. package/src/unstable/encoding/Ndjson.ts +9 -1
  583. package/src/unstable/encoding/Sse.ts +11 -21
  584. package/src/unstable/encoding/Toml.ts +504 -0
  585. package/src/unstable/encoding/Yaml.ts +541 -0
  586. package/src/unstable/encoding/index.ts +15 -0
  587. package/src/unstable/eventlog/EventJournal.ts +14 -6
  588. package/src/unstable/eventlog/EventLogMessage.ts +1 -1
  589. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +1 -1
  590. package/src/unstable/eventlog/SqlEventJournal.ts +6 -4
  591. package/src/unstable/http/FindMyWay/internal/queryString.ts +420 -0
  592. package/src/unstable/http/FindMyWay/internal/router.ts +950 -0
  593. package/src/unstable/http/FindMyWay.ts +65 -6
  594. package/src/unstable/http/HttpClient.ts +132 -23
  595. package/src/unstable/http/HttpClientError.ts +1 -1
  596. package/src/unstable/http/HttpClientRequest.ts +2 -14
  597. package/src/unstable/http/HttpClientResponse.ts +1 -17
  598. package/src/unstable/http/HttpPlatform.ts +34 -6
  599. package/src/unstable/http/HttpServerRequest.ts +14 -6
  600. package/src/unstable/http/HttpServerResponse.ts +9 -7
  601. package/src/unstable/http/Multipart.ts +9 -2
  602. package/src/unstable/http/MultipartParser/HeadersParser.ts +68 -0
  603. package/src/unstable/http/MultipartParser/Search.ts +17 -0
  604. package/src/unstable/http/MultipartParser/internal/contentType.ts +103 -0
  605. package/src/unstable/http/MultipartParser/internal/headers.ts +615 -0
  606. package/src/unstable/http/MultipartParser/internal/multipart.ts +262 -0
  607. package/src/unstable/http/MultipartParser/internal/search.ts +167 -0
  608. package/src/unstable/http/MultipartParser.ts +115 -0
  609. package/src/unstable/http/Template.ts +6 -5
  610. package/src/unstable/http/index.ts +1 -1
  611. package/src/unstable/http/internal/httpBody.ts +15 -0
  612. package/src/unstable/httpapi/HttpApi.ts +6 -7
  613. package/src/unstable/httpapi/HttpApiBuilder.ts +142 -25
  614. package/src/unstable/httpapi/HttpApiClient.ts +130 -49
  615. package/src/unstable/httpapi/HttpApiEndpoint.ts +117 -29
  616. package/src/unstable/httpapi/HttpApiError.ts +33 -39
  617. package/src/unstable/httpapi/HttpApiMiddleware.ts +1 -1
  618. package/src/unstable/httpapi/HttpApiSchema.ts +353 -0
  619. package/src/unstable/httpapi/OpenApi.ts +70 -20
  620. package/src/unstable/observability/OtlpExporter.ts +4 -2
  621. package/src/unstable/observability/OtlpLogger.ts +3 -1
  622. package/src/unstable/observability/OtlpMetrics.ts +32 -18
  623. package/src/unstable/observability/OtlpTracer.ts +1 -1
  624. package/src/unstable/persistence/PersistedQueue.ts +12 -9
  625. package/src/unstable/persistence/Persistence.ts +27 -7
  626. package/src/unstable/persistence/RateLimiter.ts +54 -31
  627. package/src/unstable/persistence/Redis.ts +1 -1
  628. package/src/unstable/reactivity/AsyncResult.ts +11 -6
  629. package/src/unstable/reactivity/Atom.ts +44 -25
  630. package/src/unstable/rpc/RpcClient.ts +42 -13
  631. package/src/unstable/rpc/RpcClientError.ts +2 -2
  632. package/src/unstable/rpc/RpcSerialization.ts +1 -1
  633. package/src/unstable/rpc/RpcServer.ts +4 -2
  634. package/src/unstable/schema/VariantSchema.ts +36 -18
  635. package/src/unstable/socket/Socket.ts +24 -14
  636. package/src/unstable/sql/SqlClient.ts +65 -56
  637. package/src/unstable/sql/SqlError.ts +13 -13
  638. package/src/unstable/sql/SqlResolver.ts +8 -6
  639. package/src/unstable/sql/Statement.ts +13 -8
  640. package/src/unstable/workers/WorkerError.ts +5 -5
  641. package/src/unstable/workflow/Workflow.ts +2 -5
  642. package/src/unstable/workflow/WorkflowEngine.ts +8 -3
  643. package/dist/unstable/http/Multipasta/HeadersParser.d.ts +0 -14
  644. package/dist/unstable/http/Multipasta/HeadersParser.d.ts.map +0 -1
  645. package/dist/unstable/http/Multipasta/HeadersParser.js +0 -14
  646. package/dist/unstable/http/Multipasta/HeadersParser.js.map +0 -1
  647. package/dist/unstable/http/Multipasta/Node.d.ts +0 -14
  648. package/dist/unstable/http/Multipasta/Node.d.ts.map +0 -1
  649. package/dist/unstable/http/Multipasta/Node.js +0 -14
  650. package/dist/unstable/http/Multipasta/Node.js.map +0 -1
  651. package/dist/unstable/http/Multipasta/Search.d.ts +0 -14
  652. package/dist/unstable/http/Multipasta/Search.d.ts.map +0 -1
  653. package/dist/unstable/http/Multipasta/Search.js +0 -14
  654. package/dist/unstable/http/Multipasta/Search.js.map +0 -1
  655. package/dist/unstable/http/Multipasta/Web.d.ts +0 -14
  656. package/dist/unstable/http/Multipasta/Web.d.ts.map +0 -1
  657. package/dist/unstable/http/Multipasta/Web.js +0 -14
  658. package/dist/unstable/http/Multipasta/Web.js.map +0 -1
  659. package/dist/unstable/http/Multipasta.d.ts +0 -15
  660. package/dist/unstable/http/Multipasta.d.ts.map +0 -1
  661. package/dist/unstable/http/Multipasta.js +0 -15
  662. package/dist/unstable/http/Multipasta.js.map +0 -1
  663. package/src/unstable/http/Multipasta/HeadersParser.ts +0 -14
  664. package/src/unstable/http/Multipasta/Node.ts +0 -14
  665. package/src/unstable/http/Multipasta/Search.ts +0 -14
  666. package/src/unstable/http/Multipasta/Web.ts +0 -14
  667. package/src/unstable/http/Multipasta.ts +0 -15
@@ -1,6 +1,7 @@
1
1
  import * as Arr from "./Array.js";
2
- import { formatPath } from "./Formatter.js";
2
+ import { format, formatPath } from "./Formatter.js";
3
3
  import * as InternalAnnotations from "./internal/schema/annotations.js";
4
+ import * as InternalParser from "./internal/schema/parser.js";
4
5
  import { hasProperty } from "./Predicate.js";
5
6
  const TypeId = "~effect/SchemaIssue/Issue";
6
7
  /**
@@ -34,10 +35,44 @@ const TypeId = "~effect/SchemaIssue/Issue";
34
35
  export function isIssue(u) {
35
36
  return hasProperty(u, TypeId) && u[TypeId] === TypeId;
36
37
  }
38
+ /**
39
+ * Returns `true` when an issue contains an input reported by the schema parser.
40
+ *
41
+ * **When to use**
42
+ *
43
+ * Use when reading `Issue.input`, especially when `undefined` is a valid input
44
+ * value.
45
+ *
46
+ * **Details**
47
+ *
48
+ * Reported input is stored as an own property. This guard checks for that
49
+ * property and narrows `input` from optional to required.
50
+ *
51
+ * **Example** (Reading a reported input)
52
+ *
53
+ * ```ts import.meta.vitest
54
+ * import { Result, Schema, SchemaIssue } from "effect"
55
+ *
56
+ * const result = Schema.decodeUnknownResult(Schema.String)(1, { reportInput: true })
57
+ * if (Result.isFailure(result) && SchemaIssue.hasInput(result.failure.issue)) {
58
+ * result.failure.issue.input // => 1
59
+ * }
60
+ * ```
61
+ *
62
+ * @see {@link Issue} for the complete issue model
63
+ *
64
+ * @category guards
65
+ * @since 4.0.0
66
+ */
67
+ export function hasInput(issue) {
68
+ return Object.hasOwn(issue, "input");
69
+ }
37
70
  class Base {
38
71
  [TypeId] = TypeId;
39
- toString() {
40
- return defaultFormatter(this);
72
+ constructor(input, options) {
73
+ if (options?.reportInput === true && input !== InternalParser.missing) {
74
+ this.input = input;
75
+ }
41
76
  }
42
77
  }
43
78
  /**
@@ -58,11 +93,13 @@ class Base {
58
93
  * ```ts import.meta.vitest
59
94
  * import { SchemaAST, SchemaIssue } from "effect"
60
95
  *
96
+ * const formatIssue = SchemaIssue.makeFormatterDefault()
97
+ *
61
98
  * function describe(issue: SchemaIssue.Issue): string {
62
99
  * if (issue._tag === "Filter") {
63
- * return `Filter failed: ${String(issue.issue)}`
100
+ * return `Filter failed: ${formatIssue(issue.issue)}`
64
101
  * }
65
- * return String(issue)
102
+ * return formatIssue(issue)
66
103
  * }
67
104
  *
68
105
  * const issue = new SchemaIssue.Filter(
@@ -96,8 +133,17 @@ export class Filter extends Base {
96
133
  /**
97
134
  * The issue that occurred.
98
135
  */
99
- issue) {
100
- super();
136
+ issue,
137
+ /**
138
+ * The present input associated with the issue. It is retained only when
139
+ * `options.reportInput` is `true`.
140
+ */
141
+ input,
142
+ /**
143
+ * The effective parse options controlling input retention.
144
+ */
145
+ options) {
146
+ super(input, options);
101
147
  this.filter = filter;
102
148
  this.issue = issue;
103
149
  }
@@ -139,8 +185,17 @@ export class Encoding extends Base {
139
185
  /**
140
186
  * The issue that occurred.
141
187
  */
142
- issue) {
143
- super();
188
+ issue,
189
+ /**
190
+ * The present input associated with the issue. It is retained only when
191
+ * `options.reportInput` is `true`.
192
+ */
193
+ input,
194
+ /**
195
+ * The effective parse options controlling input retention.
196
+ */
197
+ options) {
198
+ super(input, options);
144
199
  this.ast = ast;
145
200
  this.issue = issue;
146
201
  }
@@ -234,7 +289,8 @@ export class MissingKey extends Base {
234
289
  *
235
290
  * - `ast` is the schema that was being validated against.
236
291
  * - `annotations` on `ast` may contain a custom `messageUnexpectedKey`.
237
- * - The default formatter renders this as `"Expected no excess property"`.
292
+ * - The default formatter renders this as `"Expected no excess property"`, or
293
+ * `"Unexpected key with value <input>"` when the issue reports an input.
238
294
  *
239
295
  * @see {@link MissingKey} — the opposite case (required key absent)
240
296
  * @see {@link Pointer} — wraps this issue with the unexpected key's path
@@ -252,8 +308,17 @@ export class UnexpectedKey extends Base {
252
308
  /**
253
309
  * The schema that caused the issue.
254
310
  */
255
- ast) {
256
- super();
311
+ ast,
312
+ /**
313
+ * The present input associated with the issue. It is retained only when
314
+ * `options.reportInput` is `true`.
315
+ */
316
+ input,
317
+ /**
318
+ * The effective parse options controlling input retention.
319
+ */
320
+ options) {
321
+ super(input, options);
257
322
  this.ast = ast;
258
323
  }
259
324
  }
@@ -294,8 +359,17 @@ export class Composite extends Base {
294
359
  /**
295
360
  * The issues that occurred.
296
361
  */
297
- issues) {
298
- super();
362
+ issues,
363
+ /**
364
+ * The present input associated with the issue. It is retained only when
365
+ * `options.reportInput` is `true`.
366
+ */
367
+ input,
368
+ /**
369
+ * The effective parse options controlling input retention.
370
+ */
371
+ options) {
372
+ super(input, options);
299
373
  this.ast = ast;
300
374
  this.issues = issues;
301
375
  }
@@ -312,15 +386,17 @@ export class Composite extends Base {
312
386
  * **Details**
313
387
  *
314
388
  * - `ast` is the schema node that expected a different type.
315
- * - The default formatter renders this as `"Expected <type>"`.
389
+ * - The default formatter renders this as `"Expected <type>"`, adding
390
+ * `", got <input>"` when the issue reports an input.
316
391
  *
317
392
  * **Example** (Formatting a type mismatch)
318
393
  *
319
394
  * ```ts import.meta.vitest
320
395
  * import { Schema, SchemaIssue } from "effect"
321
396
  *
397
+ * const formatIssue = SchemaIssue.makeFormatterDefault()
322
398
  * const issue = new SchemaIssue.InvalidType(Schema.String.ast)
323
- * String(issue) // => "Expected string"
399
+ * formatIssue(issue) // => "Expected string"
324
400
  * ```
325
401
  *
326
402
  * @see {@link InvalidValue} — the input has the right type but fails a value constraint
@@ -338,8 +414,17 @@ export class InvalidType extends Base {
338
414
  /**
339
415
  * The schema that caused the issue.
340
416
  */
341
- ast) {
342
- super();
417
+ ast,
418
+ /**
419
+ * The present input associated with the issue. It is retained only when
420
+ * `options.reportInput` is `true`.
421
+ */
422
+ input,
423
+ /**
424
+ * The effective parse options controlling input retention.
425
+ */
426
+ options) {
427
+ super(input, options);
343
428
  this.ast = ast;
344
429
  }
345
430
  }
@@ -354,17 +439,22 @@ export class InvalidType extends Base {
354
439
  *
355
440
  * **Details**
356
441
  *
357
- * - `annotations` optionally carries a `message` string for formatting.
358
- * - The default formatter renders this as `"Expected a valid value"` unless a
359
- * custom `message` annotation is provided.
442
+ * - A `message` annotation is returned unchanged and takes precedence over all
443
+ * other default formatting.
444
+ * - Without `message`, an `expected` annotation is formatted as
445
+ * `"Expected <expected>"`, adding `", got <input>"` when input is reported.
446
+ * - Without either annotation, the default formatter renders
447
+ * `"Expected a valid value"`, or `"Invalid data <input>"` when input is
448
+ * reported.
360
449
  *
361
450
  * **Example** (Returning InvalidValue from a custom filter)
362
451
  *
363
452
  * ```ts import.meta.vitest
364
453
  * import { SchemaIssue } from "effect"
365
454
  *
455
+ * const formatIssue = SchemaIssue.makeFormatterDefault()
366
456
  * const issue = new SchemaIssue.InvalidValue({ message: "must not be empty" })
367
- * String(issue) // => "must not be empty"
457
+ * formatIssue(issue) // => "must not be empty"
368
458
  * ```
369
459
  *
370
460
  * @see {@link InvalidType} — the input has the wrong type entirely
@@ -379,11 +469,28 @@ export class InvalidValue extends Base {
379
469
  * The metadata for the issue.
380
470
  */
381
471
  annotations;
382
- constructor(annotations) {
383
- super();
472
+ constructor(
473
+ /**
474
+ * The metadata for the issue.
475
+ */
476
+ annotations,
477
+ /**
478
+ * The present input associated with the issue. It is retained only when
479
+ * `options.reportInput` is `true`.
480
+ */
481
+ input,
482
+ /**
483
+ * The effective parse options controlling input retention.
484
+ */
485
+ options) {
486
+ super(input, options);
384
487
  this.annotations = annotations;
385
488
  }
386
489
  }
490
+ /** @internal */
491
+ export function makeCompositeAtKey(compositeAst, pointerKey, pointerIssue, compositeInput, parseOptions) {
492
+ return new Composite(compositeAst, [new Pointer([pointerKey], pointerIssue)], compositeInput, parseOptions);
493
+ }
387
494
  /**
388
495
  * Represents a schema issue produced when a forbidden operation is encountered during parsing,
389
496
  * such as an asynchronous Effect running inside `Schema.decodeUnknownSync`.
@@ -403,10 +510,11 @@ export class InvalidValue extends Base {
403
510
  * ```ts import.meta.vitest
404
511
  * import { SchemaIssue } from "effect"
405
512
  *
513
+ * const formatIssue = SchemaIssue.makeFormatterDefault()
406
514
  * const issue = new SchemaIssue.Forbidden(
407
515
  * { message: "async operation not allowed in sync context" }
408
516
  * )
409
- * String(issue) // => "async operation not allowed in sync context"
517
+ * formatIssue(issue) // => "async operation not allowed in sync context"
410
518
  * ```
411
519
  *
412
520
  * @see {@link InvalidValue} — for value-constraint failures (not operation failures)
@@ -424,8 +532,17 @@ export class Forbidden extends Base {
424
532
  /**
425
533
  * The metadata for the issue.
426
534
  */
427
- annotations) {
428
- super();
535
+ annotations,
536
+ /**
537
+ * The present input associated with the issue. It is retained only when
538
+ * `options.reportInput` is `true`.
539
+ */
540
+ input,
541
+ /**
542
+ * The effective parse options controlling input retention.
543
+ */
544
+ options) {
545
+ super(input, options);
429
546
  this.annotations = annotations;
430
547
  }
431
548
  }
@@ -445,7 +562,8 @@ export class Forbidden extends Base {
445
562
  * **Gotchas**
446
563
  *
447
564
  * `issues` is empty when no union member was applicable. In that case, the
448
- * default formatter reports the expected type for the union.
565
+ * default formatter reports the expected type for the union and appends
566
+ * `", got <input>"` when input is reported.
449
567
  *
450
568
  * @see {@link OneOf} — the opposite: *too many* members matched
451
569
  * @see {@link Composite} — groups multiple issues under a non-union schema
@@ -471,8 +589,17 @@ export class AnyOf extends Base {
471
589
  /**
472
590
  * The issues that occurred.
473
591
  */
474
- issues) {
475
- super();
592
+ issues,
593
+ /**
594
+ * The present input associated with the issue. It is retained only when
595
+ * `options.reportInput` is `true`.
596
+ */
597
+ input,
598
+ /**
599
+ * The effective parse options controlling input retention.
600
+ */
601
+ options) {
602
+ super(input, options);
476
603
  this.ast = ast;
477
604
  this.issues = issues;
478
605
  }
@@ -491,7 +618,9 @@ export class AnyOf extends Base {
491
618
  * - `ast` is the `Union` AST node.
492
619
  * - `successes` lists the AST nodes of each member that accepted the input.
493
620
  * - The default formatter renders this as
494
- * `"Expected exactly one member to match"`.
621
+ * `"Expected exactly one member to match"`, or
622
+ * `"Expected exactly one member to match the input <input>"` when input is
623
+ * reported.
495
624
  *
496
625
  * @see {@link AnyOf} — the opposite: *no* members matched
497
626
  *
@@ -516,45 +645,54 @@ export class OneOf extends Base {
516
645
  /**
517
646
  * The schemas that were successful.
518
647
  */
519
- successes) {
520
- super();
648
+ successes,
649
+ /**
650
+ * The present input associated with the issue. It is retained only when
651
+ * `options.reportInput` is `true`.
652
+ */
653
+ input,
654
+ /**
655
+ * The effective parse options controlling input retention.
656
+ */
657
+ options) {
658
+ super(input, options);
521
659
  this.ast = ast;
522
660
  this.successes = successes;
523
661
  }
524
662
  }
525
- function makeFilterIssue(entry) {
663
+ function makeFilterIssue(entry, input, options) {
526
664
  if (isIssue(entry)) {
527
665
  return entry;
528
666
  }
529
667
  if (typeof entry === "string") {
530
668
  return new InvalidValue({
531
669
  message: entry
532
- });
670
+ }, input, options);
533
671
  }
534
672
  const inner = typeof entry.issue === "string" ? new InvalidValue({
535
673
  message: entry.issue
536
- }) : entry.issue;
674
+ }, input, options) : entry.issue;
537
675
  return new Pointer(entry.path, inner);
538
676
  }
539
677
  /** @internal */
540
- export function makeSingle(out) {
678
+ export function makeSingle(out, input, options) {
541
679
  if (out === undefined) {
542
680
  return undefined;
543
681
  }
544
682
  if (typeof out === "boolean") {
545
- return out ? undefined : new InvalidValue();
683
+ return out ? undefined : new InvalidValue(undefined, input, options);
546
684
  }
547
- return makeFilterIssue(out);
685
+ return makeFilterIssue(out, input, options);
548
686
  }
549
687
  /** @internal */
550
- export function normalizeFilterOutput(ast, out) {
688
+ export function normalizeFilterOutput(ast, out, input, options) {
551
689
  if (Array.isArray(out)) {
552
690
  if (!Arr.isReadonlyArrayNonEmpty(out)) {
553
691
  return undefined;
554
692
  }
555
- return out.length === 1 ? makeFilterIssue(out[0]) : new Composite(ast, Arr.map(out, makeFilterIssue));
693
+ return out.length === 1 ? makeFilterIssue(out[0], input, options) : new Composite(ast, Arr.map(out, entry => makeFilterIssue(entry, input, options)), input, options);
556
694
  }
557
- return makeSingle(out);
695
+ return makeSingle(out, input, options);
558
696
  }
559
697
  /**
560
698
  * Returns the built-in {@link LeafHook} used by default formatters.
@@ -566,13 +704,18 @@ export function normalizeFilterOutput(ast, out) {
566
704
  * **Details**
567
705
  *
568
706
  * - Checks for a `message` annotation first; returns it if present.
569
- * - Otherwise generates a default message per `_tag`:
570
- * - `InvalidType` → `"Expected <type>"`
571
- * - `InvalidValue` → `"Expected a valid value"`
707
+ * - For `InvalidValue`, an `expected` annotation uses the standard expected
708
+ * value message and includes reported input when available.
709
+ * - Otherwise generates a default message per `_tag`. When the issue reports
710
+ * input, the message includes its formatted value where applicable:
711
+ * - `InvalidType` → `"Expected <type>"` or `"Expected <type>, got <input>"`
712
+ * - `InvalidValue` → `"Expected a valid value"` or `"Invalid data <input>"`
572
713
  * - `MissingKey` → `"Missing key"`
573
- * - `UnexpectedKey` → `"Expected no excess property"`
714
+ * - `UnexpectedKey` → `"Expected no excess property"` or
715
+ * `"Unexpected key with value <input>"`
574
716
  * - `Forbidden` → `"Forbidden operation"`
575
- * - `OneOf` → `"Expected exactly one member to match"`
717
+ * - `OneOf` → `"Expected exactly one member to match"` or
718
+ * `"Expected exactly one member to match the input <input>"`
576
719
  *
577
720
  * **Example** (Formatting Standard Schema issues with defaultLeafHook)
578
721
  *
@@ -596,17 +739,28 @@ export const defaultLeafHook = issue => {
596
739
  if (message !== undefined) return message;
597
740
  switch (issue._tag) {
598
741
  case "InvalidType":
599
- return getExpectedMessage(InternalAnnotations.getExpected(issue.ast));
742
+ return getExpectedMessage(InternalAnnotations.getExpected(issue.ast), issue);
600
743
  case "InvalidValue":
601
- return "Expected a valid value";
744
+ {
745
+ const expected = findExpected(issue);
746
+ if (expected !== undefined) return getExpectedMessage(expected, issue);
747
+ const input = formatInput(issue);
748
+ return input === undefined ? "Expected a valid value" : `Invalid data ${input}`;
749
+ }
602
750
  case "MissingKey":
603
751
  return "Missing key";
604
752
  case "UnexpectedKey":
605
- return "Expected no excess property";
753
+ {
754
+ const input = formatInput(issue);
755
+ return input === undefined ? "Expected no excess property" : `Unexpected key with value ${input}`;
756
+ }
606
757
  case "Forbidden":
607
758
  return "Forbidden operation";
608
759
  case "OneOf":
609
- return "Expected exactly one member to match";
760
+ {
761
+ const input = formatInput(issue);
762
+ return input === undefined ? "Expected exactly one member to match" : `Expected exactly one member to match the input ${input}`;
763
+ }
610
764
  }
611
765
  };
612
766
  /**
@@ -621,7 +775,8 @@ export const defaultLeafHook = issue => {
621
775
  * - Looks for a `message` annotation on the inner issue first, then on the
622
776
  * filter itself.
623
777
  * - Returns `undefined` when no annotation is found, causing the formatter to
624
- * fall back to `"Expected <filter>"`.
778
+ * fall back to `"Expected <filter>"` or, when the filter reports input,
779
+ * `"Expected <filter>, got <input>"`.
625
780
  *
626
781
  * @see {@link CheckHook}
627
782
  * @see {@link makeFormatterStandardSchemaV1}
@@ -629,9 +784,7 @@ export const defaultLeafHook = issue => {
629
784
  * @category formatting
630
785
  * @since 4.0.0
631
786
  */
632
- export const defaultCheckHook = issue => {
633
- return findMessage(issue.issue) ?? findMessage(issue);
634
- };
787
+ export const defaultCheckHook = issue => findMessage(issue.issue) ?? findMessage(issue);
635
788
  /**
636
789
  * Creates a {@link Formatter} that produces a `StandardSchemaV1.FailureResult`.
637
790
  *
@@ -648,6 +801,15 @@ export const defaultCheckHook = issue => {
648
801
  * - `Pointer` paths are accumulated to produce full property paths.
649
802
  * - Falls back to {@link defaultLeafHook} / {@link defaultCheckHook} when no
650
803
  * hooks are provided.
804
+ * - Default messages include reported input when the issue that produces the
805
+ * message has an `input` field. The returned Standard Schema issues do not
806
+ * receive an `input` field.
807
+ *
808
+ * **Gotchas**
809
+ *
810
+ * Reported input can appear inside the Standard Schema `message` string even
811
+ * though it is not exposed as a separate property. Custom hooks control their
812
+ * complete message and are not modified.
651
813
  *
652
814
  * **Example** (Creating a Standard Schema V1 formatter)
653
815
  *
@@ -670,8 +832,16 @@ export function makeFormatterStandardSchemaV1(options) {
670
832
  issues: toDefaultIssues(issue, [], options?.leafHook ?? defaultLeafHook, options?.checkHook ?? defaultCheckHook)
671
833
  });
672
834
  }
673
- function getExpectedMessage(expected) {
674
- return `Expected ${expected}`;
835
+ function formatInput(issue) {
836
+ return hasInput(issue) ? format(issue.input) : undefined;
837
+ }
838
+ function findExpected(issue) {
839
+ const expected = issue.annotations?.expected;
840
+ return typeof expected === "string" ? expected : undefined;
841
+ }
842
+ function getExpectedMessage(expected, issue) {
843
+ const input = formatInput(issue);
844
+ return input === undefined ? `Expected ${expected}` : `Expected ${expected}, got ${input}`;
675
845
  }
676
846
  function toDefaultIssues(issue, path, leafHook, checkHook) {
677
847
  switch (issue._tag) {
@@ -684,15 +854,14 @@ function toDefaultIssues(issue, path, leafHook, checkHook) {
684
854
  message
685
855
  }];
686
856
  }
687
- switch (issue.issue._tag) {
688
- case "InvalidValue":
689
- return [{
690
- path,
691
- message: getExpectedMessage(formatCheck(issue.filter))
692
- }];
693
- default:
694
- return toDefaultIssues(issue.issue, path, leafHook, checkHook);
857
+ if (issue.issue._tag !== "InvalidValue") {
858
+ return toDefaultIssues(issue.issue, path, leafHook, checkHook);
695
859
  }
860
+ const expected = findExpected(issue.issue);
861
+ return [{
862
+ path,
863
+ message: expected === undefined ? getExpectedMessage(formatCheck(issue.filter), issue) : getExpectedMessage(expected, issue.issue)
864
+ }];
696
865
  }
697
866
  case "Encoding":
698
867
  return toDefaultIssues(issue.issue, path, leafHook, checkHook);
@@ -705,7 +874,7 @@ function toDefaultIssues(issue, path, leafHook, checkHook) {
705
874
  if (issue.issues.length === 0) {
706
875
  return [{
707
876
  path,
708
- message: findMessage(issue) ?? getExpectedMessage(InternalAnnotations.getExpected(issue.ast))
877
+ message: findMessage(issue) ?? getExpectedMessage(InternalAnnotations.getExpected(issue.ast), issue)
709
878
  }];
710
879
  }
711
880
  return issue.issues.flatMap(issue => toDefaultIssues(issue, path, leafHook, checkHook));
@@ -738,13 +907,19 @@ function formatCheck(check) {
738
907
  *
739
908
  * **Details**
740
909
  *
741
- * This is the default formatter used by `SchemaIssue.toString()`.
742
- *
743
910
  * - Flattens the issue tree into `{ message, path }` entries using
744
911
  * {@link defaultLeafHook} and {@link defaultCheckHook}.
912
+ * - Includes reported input in default messages when the node producing the
913
+ * message has an `input` field.
745
914
  * - Each entry is rendered as `"<message>"` or `"<message>\n at <path>"`.
746
915
  * - Multiple entries are joined with newlines.
747
916
  *
917
+ * **Gotchas**
918
+ *
919
+ * Formatting an issue can disclose input retained with `reportInput: true`.
920
+ * Wrapper inputs are not inherited by child messages, and custom messages are
921
+ * returned unchanged.
922
+ *
748
923
  * **Example** (Formatting an issue as a string)
749
924
  *
750
925
  * ```ts import.meta.vitest
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaIssue.js","names":[],"sources":["../src/SchemaIssue.ts"],"sourcesContent":[null],"mappings":"AAYA,OAAO,KAAK,GAAG,MAAM,YAAY;AACjC,SAAS,UAAU,QAAsC,gBAAgB;AACzE,OAAO,KAAK,mBAAmB,MAAM,kCAAkC;AACvE,SAAS,WAAW,QAAQ,gBAAgB;AAI5C,MAAM,MAAM,GAAG,2BAA2B;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAM,SAAU,OAAO,CAAC,CAAU;EAChC,OAAO,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,MAAM;AACvD;AA+DA,MAAM,IAAI;EACC,CAAC,MAAM,IAAI,MAAM;EAC1B,QAAQ;IACN,OAAO,gBAAgB,CAAC,IAAI,CAAC;EAC/B;;AAGF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,OAAM,MAAO,MAAO,SAAQ,IAAI;EACrB,IAAI,GAAG,QAAQ;EACxB;;;EAGS,MAAM;EACf;;;EAGS,KAAK;EAEd;EACE;;;EAGA,MAA6B;EAC7B;;;EAGA,KAAY;IAEZ,KAAK,EAAE;IACP,IAAI,CAAC,MA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