Skip to content
Myr

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 file

Take it

Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8

lines 1–3why, one step back
1// The revision and path are read from the request's own URL, still encoded: the
2// 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 back
4import type { RepoHost } from "@repo/artifacts/repo-host";

Merge branch 'build/903-code-reads'oscabrielbefore adoption7608aca

line 5why, one step back
5import { 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 back
6import 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 back
8import 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 back
9
10export const rawResponse = (

Merge branch 'build/903-code-reads'oscabrielbefore adoption7608aca

lines 11–12why, one step back
11 request: Request,
12 project: ProjectName

Add the code-browser, policy and drafting contracts, peeled tags and commit times on the port, and the AI bindingoscabrielbefore adoptionfc4691d

line 13why, one step back
13): Effect.Effect<Response, never, RepoHost | Projects> =>

Merge branch 'build/903-code-reads'oscabrielbefore adoption7608aca

line 14why, one step back
14 rawFor(project, request.url);