import AppShell from "@/components/shell/AppShell"; import DigestContextReview, { type DigestNote } from "@/components/tools/DigestContextReview"; import { inline } from "@/components/tools/inlineMarks"; import { PROMPT_CHARS, listDigestContextNotes, readReviewPlan } from "@/lib/digestContextReview.mjs"; import { CHANNELS_DIR } from "@/lib/paths"; import { REPO_ROOT } from "@/lib/paths.mjs"; export const dynamic = "force-dynamic"; // THE CHANNEL CONTEXT NOTES (plans/digest-context-review.md): every channel's // candidate digest-context.suggested.md, what it asserts and what it rests on, // and Yes (it becomes the channel's digest-context.md) or No (refused, the file // kept). The press is the operator's: lib/digestContextReview.mjs. export default async function DigestContextPage() { const list = await listDigestContextNotes({ channelsDir: CHANNELS_DIR, planText: await readReviewPlan(REPO_ROOT) }); const pending = list.notes.filter((n) => n.state === "pending").length; return (
check before promoting
{list.checks.length ? (
    {list.checks.map((c, i) => (
  1. {inline(c)}
  2. ))}
) : (

{list.planFound ? "The plan lists no checks." : "plans/digest-context-review.md is not in this checkout: no evidence to show."}

)}
{list.cost && (
what promoting one costs

{inline(list.cost)}

)}
); }