outcome.ts
This file
Path
packages/protocol/src/domain/outcome.ts
27 lines · 671 bytes · TypeScript
Last changed by
Merge build/comments-cli-protocol-checks into mainoscabrielbefore adoptionc86204f
History of this fileTake it
The walk stopped after 200 commits: lines older than 678c8b8 point at it.
Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
lines 1–27why, one step back1import { Schema } from "effect";23import { AskId, DecisionId, Handle, LandedSha } from "../ids.ts";4import { Refusal } from "../refusal.ts";56export const StageName = Schema.Literals([7 "parse",8 "shape",9 "merge",10 "cheap",11 "checks",12 "heldBack",13 "human",14]);1516export type StageName = typeof StageName.Type;1718export const Outcome = Schema.TaggedUnion({19 AwaitingDecision: { decision: DecisionId },20 AwaitingFinish: { decider: Schema.optionalKey(Handle) },21 Checking: { stage: StageName },22 Landed: { sha: LandedSha },23 Refused: { refusals: Schema.NonEmptyArray(Refusal) },24 WaitingOnParent: { ask: AskId },25});2627export type Outcome = typeof Outcome.Type;