fix effect lsp issues

This commit is contained in:
Julius Marminge committed 2026-04-17 16:43:47 -07:00
1 parent 27174db68b
commit b6d2ad82a8
2 files changed
+4 -7

No files matched your search

+1 -1
View File
@@ -1712,7 +1712,7 @@ export const makeGitManager = Effect.fn("makeGitManager")(function* () {
phase: Option.getOrNull(phase),
message: error.message,
});
return yield* Effect.fail(error);
return yield* error;
}),
),
);
+3 -6
View File
@@ -19,22 +19,19 @@ export const JsonRpcInboundWire = Schema.Struct({
error: Schema.optional(JsonRpcErrorPayload),
});
export const AcpInboundResponse = Schema.Struct({
_tag: Schema.Literal("response"),
export const AcpInboundResponse = Schema.TaggedStruct("response", {
id: Schema.Union([Schema.String, Schema.Number]),
result: Schema.optional(Schema.Unknown),
error: Schema.optional(JsonRpcErrorPayload),
});
export const AcpInboundRequest = Schema.Struct({
_tag: Schema.Literal("request"),
export const AcpInboundRequest = Schema.TaggedStruct("request", {
id: Schema.Union([Schema.String, Schema.Number]),
method: Schema.String,
params: Schema.optional(Schema.Unknown),
});
export const AcpInboundNotification = Schema.Struct({
_tag: Schema.Literal("notification"),
export const AcpInboundNotification = Schema.TaggedStruct("notification", {
method: Schema.String,
params: Schema.optional(Schema.Unknown),
});