Skip to content

Commit 4f1ae16

Browse files
authored
chore: upgrade Effect to beta 83 (anomalyco#32340)
1 parent d99f86b commit 4f1ae16

26 files changed

Lines changed: 60 additions & 52 deletions

File tree

bun.lock

Lines changed: 20 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
"packages/slack"
3131
],
3232
"catalog": {
33-
"@effect/opentelemetry": "4.0.0-beta.74",
34-
"@effect/platform-node": "4.0.0-beta.74",
35-
"@effect/sql-sqlite-bun": "4.0.0-beta.74",
33+
"@effect/opentelemetry": "4.0.0-beta.83",
34+
"@effect/platform-node": "4.0.0-beta.83",
35+
"@effect/sql-sqlite-bun": "4.0.0-beta.83",
3636
"@npmcli/arborist": "9.4.0",
3737
"@types/bun": "1.3.13",
3838
"@types/cross-spawn": "6.0.6",
@@ -61,7 +61,7 @@
6161
"dompurify": "3.3.1",
6262
"drizzle-kit": "1.0.0-rc.2",
6363
"drizzle-orm": "1.0.0-rc.2",
64-
"effect": "4.0.0-beta.74",
64+
"effect": "4.0.0-beta.83",
6565
"ai": "6.0.168",
6666
"cross-spawn": "7.0.6",
6767
"hono": "4.10.7",

packages/core/src/account.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ export class Org extends Schema.Class<Org>("Org")({
3535

3636
export class AccountRepoError extends Schema.TaggedErrorClass<AccountRepoError>()("AccountRepoError", {
3737
message: Schema.String,
38-
cause: Schema.optional(Schema.Defect),
38+
cause: Schema.optional(Schema.Defect()),
3939
}) {}
4040

4141
export class AccountServiceError extends Schema.TaggedErrorClass<AccountServiceError>()("AccountServiceError", {
4242
message: Schema.String,
43-
cause: Schema.optional(Schema.Defect),
43+
cause: Schema.optional(Schema.Defect()),
4444
}) {}
4545

4646
export class AccountTransportError extends Schema.TaggedErrorClass<AccountTransportError>()("AccountTransportError", {
4747
method: Schema.String,
4848
url: Schema.String,
4949
description: Schema.optional(Schema.String),
50-
cause: Schema.optional(Schema.Defect),
50+
cause: Schema.optional(Schema.Defect()),
5151
}) {
5252
static fromHttpClientError(error: HttpClientError.TransportError): AccountTransportError {
5353
return new AccountTransportError({
@@ -94,7 +94,7 @@ export class PollExpired extends Schema.TaggedClass<PollExpired>()("PollExpired"
9494
export class PollDenied extends Schema.TaggedClass<PollDenied>()("PollDenied", {}) {}
9595

9696
export class PollError extends Schema.TaggedClass<PollError>()("PollError", {
97-
cause: Schema.Defect,
97+
cause: Schema.Defect(),
9898
}) {}
9999

100100
export const PollResult = Schema.Union([PollSuccess, PollPending, PollSlow, PollExpired, PollDenied, PollError])

packages/core/src/aisdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function prepareOptions(model: ModelV2.Info, pkg: string) {
109109

110110
export class InitError extends Schema.TaggedErrorClass<InitError>()("AISDK.InitError", {
111111
providerID: ProviderV2.ID,
112-
cause: Schema.Defect,
112+
cause: Schema.Defect(),
113113
}) {}
114114

115115
function initError(providerID: ProviderV2.ID) {

packages/core/src/control-plane/move-session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class ResetSourceChangesError extends Schema.TaggedErrorClass<ResetSource
4848
{
4949
directory: AbsolutePath,
5050
message: Schema.String,
51-
cause: Schema.optional(Schema.Defect),
51+
cause: Schema.optional(Schema.Defect()),
5252
},
5353
) {}
5454

packages/core/src/fs-util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { filesystem } from "./effect/layer-node-platform"
1313
export namespace FSUtil {
1414
export class FileSystemError extends Schema.TaggedErrorClass<FileSystemError>()("FileSystemError", {
1515
method: Schema.String,
16-
cause: Schema.optional(Schema.Defect),
16+
cause: Schema.optional(Schema.Defect()),
1717
}) {}
1818

1919
export type Error = PlatformError | FileSystemError

packages/core/src/git.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ export class WorktreeError extends Schema.TaggedErrorClass<WorktreeError>()("Git
3232
message: Schema.String,
3333
directory: Schema.optional(AbsolutePath),
3434
forceRequired: Schema.optional(Schema.Boolean),
35-
cause: Schema.optional(Schema.Defect),
35+
cause: Schema.optional(Schema.Defect()),
3636
}) {}
3737

3838
export class PatchError extends Schema.TaggedErrorClass<PatchError>()("Git.PatchError", {
3939
operation: Schema.Literals(["capture", "apply", "reset"]),
4040
directory: AbsolutePath,
4141
message: Schema.String,
42-
cause: Schema.optional(Schema.Defect),
42+
cause: Schema.optional(Schema.Defect()),
4343
}) {}
4444

4545
export interface Interface {

packages/core/src/integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class CodeRequiredError extends Schema.TaggedErrorClass<CodeRequiredError
154154
}) {}
155155

156156
export class AuthorizationError extends Schema.TaggedErrorClass<AuthorizationError>()("Integration.Authorization", {
157-
cause: Schema.Defect,
157+
cause: Schema.Defect(),
158158
}) {}
159159

160160
export type Error = CodeRequiredError | AuthorizationError

packages/core/src/npm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { NpmConfig } from "./npm-config"
1515
export class InstallFailedError extends Schema.TaggedErrorClass<InstallFailedError>()("NpmInstallFailedError", {
1616
add: Schema.Array(Schema.String).pipe(Schema.optional),
1717
dir: Schema.String,
18-
cause: Schema.optional(Schema.Defect),
18+
cause: Schema.optional(Schema.Defect()),
1919
}) {}
2020

2121
export interface EntryPoint {

packages/core/src/process.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class AppProcessError extends Schema.TaggedErrorClass<AppProcessError>()(
99
command: Schema.String,
1010
exitCode: Schema.optional(Schema.Number),
1111
stderr: Schema.optional(Schema.String),
12-
cause: Schema.optional(Schema.Defect),
12+
cause: Schema.optional(Schema.Defect()),
1313
}) {}
1414

1515
export interface RunOptions {

0 commit comments

Comments
 (0)