lalph 0.3.128 → 0.3.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Schema } from "effect"
1
+ import { Effect, Schema } from "effect"
2
2
 
3
3
  export const ProjectId = Schema.String.pipe(Schema.brand("lalph/ProjectId"))
4
4
  export type ProjectId = typeof ProjectId.Type
@@ -10,7 +10,9 @@ export class Project extends Schema.Class<Project>("lalph/Project")({
10
10
  concurrency: Schema.Int.check(Schema.isGreaterThanOrEqualTo(1)),
11
11
  gitFlow: Schema.Literals(["pr", "commit", "ralph"]),
12
12
  ralphSpec: Schema.optional(Schema.String),
13
- researchAgent: Schema.Boolean.pipe(Schema.withDecodingDefault(() => false)),
13
+ researchAgent: Schema.Boolean.pipe(
14
+ Schema.withDecodingDefault(Effect.succeed(false)),
15
+ ),
14
16
  reviewAgent: Schema.Boolean,
15
17
  }) {
16
18
  update(updates: Partial<Project>): Project {
@@ -1,7 +1,7 @@
1
- import { Schema, SchemaGetter } from "effect"
1
+ import { Effect, Schema, SchemaGetter } from "effect"
2
2
 
3
3
  export const withEncodeDefault =
4
- <S extends Schema.Top>(defaultValue: () => S["Type"]) =>
4
+ <S extends Schema.Top>(defaultValue: Effect.Effect<S["Type"]>) =>
5
5
  (schema: S) =>
6
6
  Schema.optionalKey(schema).pipe(
7
7
  Schema.decodeTo(Schema.toType(schema), {
@@ -1,6 +0,0 @@
1
- import { Schema } from "effect"
2
-
3
- export class LinearError extends Schema.ErrorClass("lalph/LinearError")({
4
- _tag: Schema.tag("LinearError"),
5
- cause: Schema.Defect,
6
- }) {}