event.ts
This file
Path
packages/protocol/src/domain/event.ts
35 lines · 1.2 KiB · 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 {4 AskId,5 CommitSha,6 DecisionId,7 Handle,8 LandedSha,9 ProposalId,10} from "../ids.ts";11import { AskListing } from "./ask.ts";12import { Choice } from "./decision.ts";13import { LandingView } from "./landing.ts";14import { Outcome } from "./outcome.ts";15import { LedgerEntry } from "./visibility.ts";1617const stamp = { at: Schema.DateTimeUtcFromString, seq: Schema.Int };1819export const ProjectEvent = Schema.TaggedUnion({20 AskClosed: { ...stamp, ask: AskId, landing: LandedSha },21 AskOpened: { ...stamp, ask: AskListing },22 Claimed: { ...stamp, ask: AskId, claimant: Handle },23 Decided: { ...stamp, choice: Choice, decision: DecisionId },24 Judged: { ...stamp, ask: AskId, head: CommitSha, outcome: Outcome },25 Landed: { ...stamp, landing: LandingView },26 Lapsed: { ...stamp, ask: AskId },27 LedgerAppended: { ...stamp, entry: LedgerEntry },Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
line 28why, one step back28 ProposalDrafted: { ...stamp, proposal: ProposalId, ready: Schema.Boolean },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 29–35why, one step back29 ProposalOpened: { ...stamp, proposal: ProposalId },30 Pushed: { ...stamp, ask: AskId, head: CommitSha },31 Released: { ...stamp, ask: AskId },32 Warned: { ...stamp, ask: AskId },33});3435export type ProjectEvent = typeof ProjectEvent.Type;