Releases: barmoshe/mdp
Releases · barmoshe/mdp
v0.6.0
Fixed
- Plan preview renders before approval. The auto-render hook is now
PreToolUseonExitPlanMode, notPostToolUse.PostToolUseresolves only after you approve a plan, so the preview appeared only post-approval and, via--latest, could render the previous plan mid-iteration. The preview now pops up as the plan is presented and refreshes on every revision.
Added
preview-plan.mjs --hook. A first-class hook mode: it reads theExitPlanModetool-call JSON on stdin and renders that exact plan (tool_input.plan), so no shell wrapper is needed to wire thePreToolUsehook. It falls back to the newest saved plan when the payload carries none, and always exits 0 so it can never blockExitPlanMode. The repo's own.claude/settings.jsonand the README now usePreToolUse+--hook.
Changed
- Plan preview works as an installed plugin.
/mdp-preview-plannow invokes the converter via${CLAUDE_PLUGIN_ROOT}(with a repo-root fallback) instead of a CWD-relative path, so it works for/mdpplugin users in any project, not just inside this repo.
Published: mdp-compiler@0.6.0, mdp-mcp@0.6.0. Claude Code + Codex plugins bumped to 0.6.0.
v0.5.0
Added
- Plan form: a fifth interactive form that renders an implementation plan as collapsible phases with status-aware checklists and a live progress meter.
mdp:tasksblock: a status-aware checklist (done / in progress / to do) that renders in every artifact and feeds the plan form's progress meter.- Plan-mode preview: a
/mdp-preview-plancommand and anExitPlanModehook that render a Claude Code plan as the plan form, deterministically and read-only. - Extension examples and a live showcase: three curated, zero-dependency reference packages under
extensions/(mdp-block-status,mdp-block-spec-sheet,mdp-artifact-resume), gated in CI, plus a site Extensions showcase and a "Build an extension" docs page.
Fixed
- The extension scaffolder now documents
content-blocks.mjswiring, so a scaffolded block renders inside the interactive forms.
Published to npm: mdp-compiler@0.5.0, mdp-mcp@0.5.0. The Claude and Codex plugins move to 0.5.0 as well.
v0.4.0
Added
- Send to Slack: a new
mdp_send_slackMCP tool compiles a source and uploads the self-contained HTML artifact to a Slack channel as a file, via Slack's external-upload flow. Auth is a bot token inSLACK_BOT_TOKEN(scopefiles:write); the channel is thechannelargument orMDP_SLACK_CHANNEL. Zero new dependencies.
This Release was backfilled: the v0.4.0 tag existed but no Release object had been cut.
v0.3.0
MDP 0.3.0 — interactive forms, custom brand color, an MCP server, a live site, and the first npm publish.
Highlights
- Interactive forms. Four new artifacts that compile the same source into client-side experiences:
scroll(scroll-driven narrative with reveal-on-enter, a progress bar, and a dot rail),accordion(collapsible<details>sections with Expand/Collapse all),tabs(arrow-key navigation and a deep-linkable hash), andstepper(a guided walkthrough with Back/Next). Each is opt-in viaforms:, degrades to readable HTML with no JavaScript, respectsprefers-reduced-motion, and keeps WCAG-AA contrast and keyboard navigation. - Timeline, FAQ, and pricing blocks (
mdp:timeline,mdp:faq,mdp:pricing), rendered across every form. - Custom brand color. A
brand-accentfrontmatter field (one hex) that the engine derives a full WCAG-AA accent set from (five roles, light and dark), falling back to the namedthemewhen a color cannot be made accessible. An optionalbrand-accent-2adds a secondary color used sparingly, andbrand-fontselects the body/UI family from a closed set of system stacks. - Five more themes (
ocean,forest,terracotta,coral,plum) for eleven total, each AA-verified in light and dark, plus a visual swatch theme picker in the playground and an AA-conformance test so a future theme cannot regress accessibility. - An MCP server (
mdp-mcp): any MCP host (Claude Desktop, Cursor, ...) can compile MDP viamdp_compile,mdp_present, andmdp_validate, plusmdp://specandmdp://example/*resources. Install withclaude mcp add mdp -- npx -y mdp-mcp. - A Codex plugin in
codex/exposing the samemdpskill (codex marketplace add barmoshe/mdp). - A hub, live playground, and full docs at https://barmoshe.github.io/mdp/, deployed to GitHub Pages. The playground bundles the real engine, so it compiles with the same code the CLI and plugins run.
Published to npm
mdp-compiler— the dependency-free engine (npm i mdp-compiler)mdp-mcp— the MCP server (npx -y mdp-mcp)create-mdp-extension— the scaffolder (npm create mdp-extension)
The engine package was renamed from
@mdp/coretomdp-compilerfor its npm publish (the@mdpscope is owned by an unrelated party).
Full notes: CHANGELOG.md
v0.2.0
MDP 0.2.0 brings the format to npm.
Install
- Engine: npm i mdp-compiler
- MCP server: npx -y mdp-mcp (or claude mcp add mdp -- npx -y mdp-mcp)
- Extension scaffolder: npm create mdp-extension
Highlights
- Published to npm: mdp-compiler 0.2.0, mdp-mcp 0.2.0, create-mdp-extension 0.2.1 (all unscoped and public).
- Eleven curated WCAG-AA themes in light and dark, enforced by a contrast test.
- An MCP server so any MCP host can compile MDP: mdp_compile, mdp_present, mdp_validate.
- A create-mdp-extension scaffolder for new blocks and artifacts.
- A live hub, playground, and full docs at https://barmoshe.github.io/mdp.
- A logo-only brand layer (brand-logo frontmatter), sanitized and engine-placed.
Zero-dependency Node ESM engine with deterministic, byte-identical output. Apache-2.0.
Full changelog: https://github.com/barmoshe/mdp/blob/main/CHANGELOG.md