/**
* MCP App Review Views — generated at runtime from shared boilerplate
* + per-view configuration via `buildMcpView()`.
*
* Each function returns a self-contained HTML page that uses the
* `App` class from `@modelcontextprotocol/ext-apps` (loaded via
* the `app-with-deps` bundle that includes its own dependencies).
*
* These Views are served as `ui://` resources and rendered inline
* in MCP hosts that support MCP Apps (Claude, ChatGPT, VS Code, etc.).
*/
import { buildMcpView } from './mcp-view-builder';
/* ── Review Post ────────────────────────────────────────────────────── */
export function reviewPostHtml(): string {
return buildMcpView({
title: 'Review Post',
waitingMessage: 'Waiting for post data...',
acceptLabel: 'Publish',
discardLabel: 'Discard Draft',
renderBody: `\
const post = data.post || {};
const wc = (post.content || "").split(/\\s+/).filter(Boolean).length;
document.getElementById("review").innerHTML = \`