chore(effect): update to beta.107 (#43109)
This commit is contained in:
@@ -32,7 +32,7 @@ export type ProviderResponseEvent =
|
||||
| SimulationProtocol.Backend.Item
|
||||
| { readonly type: "finish"; readonly reason: SimulationProtocol.Backend.FinishReason }
|
||||
|
||||
export class ProviderDisconnectedError extends Schema.TaggedErrorClass<ProviderDisconnectedError>()(
|
||||
export class ProviderDisconnectedError extends Schema.TaggedError<ProviderDisconnectedError>()(
|
||||
"SimulatedProvider.ProviderDisconnectedError",
|
||||
{ message: Schema.String },
|
||||
) {}
|
||||
@@ -132,22 +132,22 @@ interface ToolDriver {
|
||||
readonly shutdown: Effect.Effect<void>
|
||||
}
|
||||
|
||||
class InvocationNotFoundError extends Schema.TaggedErrorClass<InvocationNotFoundError>()(
|
||||
class InvocationNotFoundError extends Schema.TaggedError<InvocationNotFoundError>()(
|
||||
"SimulatedProvider.InvocationNotFoundError",
|
||||
{ id: Schema.String, message: Schema.String },
|
||||
) {}
|
||||
|
||||
class ControllerDisconnectedError extends Schema.TaggedErrorClass<ControllerDisconnectedError>()(
|
||||
class ControllerDisconnectedError extends Schema.TaggedError<ControllerDisconnectedError>()(
|
||||
"SimulatedProvider.ControllerDisconnectedError",
|
||||
{ message: Schema.String },
|
||||
) {}
|
||||
|
||||
class ToolInvocationNotFoundError extends Schema.TaggedErrorClass<ToolInvocationNotFoundError>()(
|
||||
class ToolInvocationNotFoundError extends Schema.TaggedError<ToolInvocationNotFoundError>()(
|
||||
"SimulatedProvider.ToolInvocationNotFoundError",
|
||||
{ id: Schema.String, message: Schema.String },
|
||||
) {}
|
||||
|
||||
class ToolControllerError extends Schema.TaggedErrorClass<ToolControllerError>()(
|
||||
class ToolControllerError extends Schema.TaggedError<ToolControllerError>()(
|
||||
"SimulatedProvider.ToolControllerError",
|
||||
{ message: Schema.String },
|
||||
) {}
|
||||
|
||||
@@ -43,7 +43,7 @@ export const Manifest = Schema.Struct({
|
||||
})
|
||||
export interface Manifest extends Schema.Schema.Type<typeof Manifest> {}
|
||||
|
||||
export class ResolveError extends Schema.TaggedErrorClass<ResolveError>()("DriveManifest.ResolveError", {
|
||||
export class ResolveError extends Schema.TaggedError<ResolveError>()("DriveManifest.ResolveError", {
|
||||
reason: Schema.Literals(["config", "not-found", "read", "decode"]),
|
||||
path: Schema.optionalKey(Schema.String),
|
||||
message: Schema.String,
|
||||
|
||||
Reference in New Issue
Block a user