rate-limits.ts
This file
Path
apps/platform/src/rate-limits.ts
16 lines · 443 bytes · TypeScript
Last changed by
Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8
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–5why, one step back1import type { Handle } from "@repo/protocol/ids";2import type { CapReached } from "@repo/protocol/refusal";3import { Context } from "effect";4import type { Effect } from "effect";5Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
line 6why, one step back6export type Limited = "claim" | "proposal" | "draft";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 7–16why, one step back78export class RateLimits extends Context.Service<9 RateLimits,10 {11 readonly check: (12 kind: Limited,13 handle: Handle14 ) => Effect.Effect<void, CapReached>;15 }16>()("platform/RateLimits") {}