answer.ts
This file
Path
apps/web/src/client/answer.ts
27 lines · 613 bytes · TypeScript
Last changed by
Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248
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 type {2 AskId,3 CommitSha,4 LandedSha,5 ProjectName,6} from "@repo/protocol/ids";78import { ContractsClient } from "../surfaces.ts";9import { keys } from "./keys.ts";1011export const verdictAtom = (12 project: ProjectName,13 ask: AskId,14 head?: CommitSha15) =>16 ContractsClient.query(17 "verdict",18 head === undefined ? { ask, project } : { ask, head, project },19 { reactivityKeys: keys.ask(project, ask) }20 );2122export const landingAtom = (project: ProjectName, sha: LandedSha) =>23 ContractsClient.query(24 "landing",25 { project, sha },26 { reactivityKeys: keys.project(project) }27 );