The best way to control Claude Code, Codex and more from any computer or phone

main
ts 28 lines 1009 Bytes
Raw
1 import * as Schema from "effect/Schema"
2
3 export class NpmPromoteError extends Schema.TaggedError<NpmPromoteError>()("NpmPromoteError", {
4 message: Schema.String,
5 cause: Schema.optional(Schema.Defect())
6 }) {}
7
8 /**
9 * Reading `pkg` from the registry failed while promoting. Packages after it
10 * were not promoted.
11 */
12 export class RegistryError extends Schema.TaggedError<RegistryError>()("RegistryError", {
13 message: Schema.String,
14 pkg: Schema.Struct({ name: Schema.String, version: Schema.String }),
15 /** An earlier package needed its latest tag moved during this run. */
16 promotionPending: Schema.Boolean,
17 cause: Schema.optional(Schema.Defect())
18 }) {}
19
20 /**
21 * Moving `latest` failed for `pkg`. Packages after it were not promoted.
22 */
23 export class PromotionError extends Schema.TaggedError<PromotionError>()("PromotionError", {
24 message: Schema.String,
25 pkg: Schema.Struct({ name: Schema.String, version: Schema.String }),
26 reason: Schema.String,
27 cause: Schema.optional(Schema.Defect())
28 }) {}