Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions packages/effect-acp/src/agent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ const ExtRequest = jsonRpcRequest("x/test", Schema.Struct({ hello: Schema.String
const ExtResponse = jsonRpcResponse(Schema.Struct({ ok: Schema.Boolean }));
const DieResponse = Schema.Struct({
id: Schema.Number,
error: Schema.Struct({
_tag: Schema.Literal("Cause"),
data: Schema.Tuple([Schema.Struct({ _tag: Schema.Literal("Die") })]),
}),
error: Schema.TaggedStruct("Cause", { data: Schema.Tuple([Schema.TaggedStruct("Die", {})]) }),
});
const decodeRequestPermissionRequest = Schema.decodeEffect(
Schema.fromJsonString(RequestPermissionRequest),
Expand Down
5 changes: 1 addition & 4 deletions packages/effect-acp/src/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ const PermissionResponse = jsonRpcResponse(AcpSchema.RequestPermissionResponse);
const ErrorResponse = Schema.Struct({ id: Schema.String, error: Schema.Unknown });
const DieResponse = Schema.Struct({
id: Schema.String,
error: Schema.Struct({
_tag: Schema.Literal("Cause"),
data: Schema.Tuple([Schema.Struct({ _tag: Schema.Literal("Die") })]),
}),
error: Schema.TaggedStruct("Cause", { data: Schema.Tuple([Schema.TaggedStruct("Die", {})]) }),
});
const decodePromptRequestLine = Schema.decodeEffect(Schema.fromJsonString(PromptRequest));
const XAiPromptCompleteNotification = jsonRpcNotification(
Expand Down
1 change: 1 addition & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"namespaceImportPackages": ["@effect/platform-node", "effect"],
"effectFn": ["span", "inferred-span", "suggested-span"],
"diagnosticSeverity": {
"schemaStructWithTag": "error",
"preferTypedSchemaDecoder": "error",
"catchUnfailableEffect": "error",
"raceFirstWithSleepToTimeout": "error",
Expand Down
Loading