Coframe Annotations@coframe-gtm/annotations v1.2.0 AFS 1.1

Forensic output #

Annotations format to AFS-compatible Markdown at four detail tiers (mirrors agentation.com/output). forensic is the recommended default for piping into an agent.

TierIncludes
compactElement, path, comment. Bare minimum for chat.
standard+ bounding box, React tree, severity, intent.
detailed+ nearby text, CSS classes, a11y, selected text, thread digest.
forensic+ computed styles, fullPath, nearby elements, fixed/multi flags, layout blobs, full thread.
import { formatAnnotation } from "@coframe-gtm/annotations/v1/server";

formatAnnotation(annotation, { detail: "forensic", index: 1 });
// ## Annotation #1
// - **Element:** button
// - **Path:** #hero-cta
// - **Severity:** 🔴 blocking   **Intent:** Change
// - **Comment:** Primary CTA competes with the secondary link…
// - **Computed styles:** display: inline-flex; … (forensic tier)