| 1 | "@effect/ai/AiError#AiError": |
| 2 | replacement: "AiError.AiError" |
| 3 | note: "Moved to effect/ai/AiError and redesigned from a union of separately tagged errors into one AiError wrapper with a semantic reason. Construct it with AiError.make({ module, method, reason }) and match error.reason rather than the old top-level tags." |
| 4 | "@effect/ai/AiError#HttpRequestError": |
| 5 | replacement: "AiError.make + AiError.NetworkError" |
| 6 | note: "Replace the old top-level request error with an AiError whose reason is NetworkError. NetworkError.fromRequestError converts a v4 HttpClientError.RequestError." |
| 7 | "@effect/ai/AiError#HttpResponseError": |
| 8 | replacement: "AiError.make + AiError.reasonFromHttpStatus / AiError.InvalidOutputError" |
| 9 | note: "There is no single v4 response-error class. Wrap a semantic reason with AiError.make: use reasonFromHttpStatus for status failures and InvalidOutputError for decode or empty-body failures." |
| 10 | "@effect/ai/AiError#MalformedInput": |
| 11 | replacement: "AiError.make + AiError.InvalidUserInputError" |
| 12 | note: "Replace the old top-level input error with an AiError whose reason is InvalidUserInputError. Use InvalidRequestError when the provider request parameters themselves are malformed." |
| 13 | "@effect/ai/AiError#MalformedOutput": |
| 14 | replacement: "AiError.make + AiError.InvalidOutputError" |
| 15 | note: "Replace the old top-level output error with an AiError whose reason is InvalidOutputError. The old fromParseError helper becomes InvalidOutputError.fromSchemaError." |
| 16 | "@effect/ai/AiError#TypeId": |
| 17 | replacement: "AiError.isAiError" |
| 18 | note: "The AiError brand is private in v4. Use isAiError for runtime narrowing, or isAiErrorReason for a reason, instead of inspecting or constructing the type id." |
| 19 | "@effect/ai/AiError#UnknownError": |
| 20 | replacement: "AiError.make + AiError.UnknownError" |
| 21 | note: "UnknownError is now a semantic reason rather than a top-level error. Put module and method on AiError.make and inspect reason._tag when handling the outer AiError." |
| 22 | "@effect/ai/AiError#HttpRequestDetails": |
| 23 | replacement: "AiError.HttpRequestDetails" |
| 24 | note: "Retained in effect/ai/AiError and also re-exported as Response.HttpRequestDetails. Hash is an optional string instead of Option, headers may contain Redacted strings, and method includes TRACE." |