raw.ts
This file
Path
apps/platform/src/raw.ts
14 lines · 676 bytes · TypeScript
Last changed by
Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8
History of this fileTake it
Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8
lines 1–3why, one step back1// The revision and path are read from the request's own URL, still encoded: the2// router's parameter has `%2F` decoded already, which would cut a tag's name in two.3// Served under a sandboxing CSP and `nosniff` so no file runs as script on this origin.Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
line 4why, one step back4import type { RepoHost } from "@repo/artifacts/repo-host";Merge branch 'build/903-code-reads'oscabrielbefore adoption7608aca
line 5why, one step back5import { rawFor } from "@repo/project/code/raw";Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
lines 6–7why, one step back6import type { Projects } from "@repo/project/projects";7import type { ProjectName } from "@repo/protocol/ids";Merge branch 'build/903-code-reads'oscabrielbefore adoption7608aca
line 8why, one step back8import type { Effect } from "effect";Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
lines 9–10why, one step back910export const rawResponse = (Merge branch 'build/903-code-reads'oscabrielbefore adoption7608aca
lines 11–12why, one step back11 request: Request,12 project: ProjectNameAdd the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d
line 13why, one step back13): Effect.Effect<Response, never, RepoHost | Projects> =>Merge branch 'build/903-code-reads'oscabrielbefore adoption7608aca
line 14why, one step back14 rawFor(project, request.url);