import { A } from "@solidjs/router"; import { For, Show, type JSX } from "solid-js"; import type { Fact } from "../../../build/site-data.ts"; import { revealOnScroll } from "../../lib/dom.ts"; import { ArrowRightIcon } from "../ui/Icons.tsx"; import { SectionHead } from "../ui/Section.tsx"; /** * Evidence panel: what a spec declares vs. what Distilled ships. The code is * hand-marked rather than run through `Code` because the highlights are * line-level (missing / added), not token-level. */ const Evidence = (props: { tone: "rose" | "teal"; tag: string; src: string; code: JSX.Element; note: JSX.Element; index: number; }) => (
{props.tag} {props.src}
      {props.code}
    

{props.note}

); const Added = (props: { children: JSX.Element }) => ( {props.children} ); export const Problem = (props: { facts: ReadonlyArray }) => (
The spec should be the only source. It never is. } > Every generated SDK: ours, the vendor's, the one you'd write; is only ever as good as the api spec its built from. Most of these specs aren't generated from the source and regularly drift from the actual implementation (or in cloudflare's case are just blatantly wrong). The spec says a response value is required, your types compile, your runtime fails because the server doesn't return it. We patch the api spec to ensure all inputs, outputs, and errors are correct with live behavior of the providers.
responses: {"\n "} "200": OK{"\n"} {" "} — that's it — } note={ <> One response. No 400 for a bad config, no 403 for a scoped token, no 409 when the name is taken. } /> export type CreateMachineError ={"\n"} {" "}| BadRequest {" "} // 400 · seen live {"\n"} {" "}| Forbidden {" "} // 403 · seen live {"\n"} {" "}| NotFound {" "} // 404 {"\n"} {" "}| Conflict {" "} // 409 · name-taken race {"\n"} {" "}| FlyIoOpError } note={ <> Four typed failures in the operation's error union, each added as a patch to the spec the moment a real deploy surfaced it. } />
);