| ... | @@ -4,10 +4,10 @@ import { Option, Schema } from "effect"; | ... | @@ -4,10 +4,10 @@ import { Option, Schema } from "effect"; |
| 4 | const APP_SETTINGS_STORAGE_KEY = "t3code:app-settings:v1"; | 4 | const APP_SETTINGS_STORAGE_KEY = "t3code:app-settings:v1"; |
| 5 | | 5 | |
| 6 | const AppSettingsSchema = Schema.Struct({ | 6 | const AppSettingsSchema = Schema.Struct({ |
| 7 | codexBinaryPath: Schema.NonEmptyString.check(Schema.isMaxLength(4096)).pipe( | 7 | codexBinaryPath: Schema.String.check(Schema.isMaxLength(4096)).pipe( |
| 8 | Schema.withConstructorDefault(() => Option.some("")), | 8 | Schema.withConstructorDefault(() => Option.some("")), |
| 9 | ), | 9 | ), |
| 10 | codexHomePath: Schema.NonEmptyString.check(Schema.isMaxLength(4096)).pipe( | 10 | codexHomePath: Schema.String.check(Schema.isMaxLength(4096)).pipe( |
| 11 | Schema.withConstructorDefault(() => Option.some("")), | 11 | Schema.withConstructorDefault(() => Option.some("")), |
| 12 | ), | 12 | ), |
| 13 | confirmThreadDelete: Schema.Boolean.pipe(Schema.withConstructorDefault(() => Option.some(true))), | 13 | confirmThreadDelete: Schema.Boolean.pipe(Schema.withConstructorDefault(() => Option.some(true))), |