chore(deps): upgrade Effect to rc.112 and Alchemy to beta.76 #10652
Merged
juliusmarmingemerged 3 commits into
main fromrefs/pull/10652/head·merged by juliusmarminge View on GitHubShowing 250 changed files with 4 additions and 4 deletions (loading 246).
x
1 addition and 1 deletion+1-1.macroscope/check-run-agents/effect-service-conventions.mdModifiedView file
@@ -52,7 +52,7 @@
-- Define service failures with `Schema.TaggedErrorClass` and structured attributes: operation or stage, resource path or entity identifier, normalized category or status. Derive `message` from those attributes only. Never derive it from `cause`, `cause.message`, or a stringified defect, and do not add a `detail` field that copies `cause.message`.
+- Define service failures with `Schema.TaggedError` and structured attributes: operation or stage, resource path or entity identifier, normalized category or status. Derive `message` from those attributes only. Never derive it from `cause`, `cause.message`, or a stringified defect, and do not add a `detail` field that copies `cause.message`.
- Keep attributes and log annotations safe and bounded: no raw wire payloads, command arguments or output, signed URLs, credentials, query strings, or arbitrary defect text. Preserve the exact value only as `cause`; expose normalized categories, lengths, counts, and safe URL protocol or hostname where useful.
@@ -41,7 +41,7 @@
-export class DesktopBackendPortUnavailableError extends Schema.TaggedErrorClass<DesktopBackendPortUnavailableError>()(
+export class DesktopBackendPortUnavailableError extends Schema.TaggedError<DesktopBackendPortUnavailableError>()(
This migration replaces the required Schema.TaggedErrorClass convention across service failures. Please retain Schema.TaggedErrorClass for these structured error classes (or update the convention separately before adopting the renamed API); the same issue applies to the other changed error declarations in this PR.
Effect rc.112 removes Schema.TaggedErrorClass; its replacement is Schema.TaggedError. Retaining the old name fails typechecking. Updated the review convention in c3b6f4f to use the new API while preserving all structured-attribute and cause requirements. Scoped typechecks and the server/RPC tests pass with the renamed classes.
@@ -54,7 +54,7 @@
-export class DesktopDevelopmentBackendPortRequiredError extends Schema.TaggedErrorClass<DesktopDevelopmentBackendPortRequiredError>()(
+export class DesktopDevelopmentBackendPortRequiredError extends Schema.TaggedError<DesktopDevelopmentBackendPortRequiredError>()(