@presentation-md/mcp-server 1.31.1 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ replace it with the block above (or re-run `npx @presentation-md/install cursor`
|
|
|
39
39
|
| `export_deck` | Export deck JSON to native, editable PowerPoint (`.pptx`), vector PDF, HTML, Marp Markdown, or speaker-notes handouts (`notes_txt` / `notes_vtt`). |
|
|
40
40
|
| `list_themes` | List installed themes (name, version, vibe, description). Optional `shortlist` / `browse` (site/Studio mood chips) / `mood` / `query` filters + `include_shortlists` / `include_browse_filters`. Every theme includes `preview_url` + `studio_url` (`?example=` for stunning-25, `?theme=` otherwise). Returns `suggested_preview` (safe/bold/wildcard trio) for one-shot Theme Discovery. |
|
|
41
41
|
| `apply_theme` | Swap `meta.theme` (default: also `repairCraft` for theme-honesty / craft floors; Studio My deck Use parity). |
|
|
42
|
-
| `audit_deck` | Schema validate **plus** craft gates (asymmetry, loud/atmosphere/paper honesty, dual CTA, data beats). Optional `apply_safe_fixes` auto-repairs structural craft **and inserts missing beats** (image-hero / comparison / data / logo-wall / wrap tones) — returns `json` + `fixes_applied[]`. Schema-valid ≠ shippable — call before the user sees a first draft. |
|
|
42
|
+
| `audit_deck` | Schema validate **plus** craft gates (asymmetry, loud/atmosphere/paper honesty, dual CTA, data beats). Optional `apply_safe_fixes` auto-repairs structural craft **and inserts missing beats** (image-hero / comparison / data / logo-wall / wrap tones) — returns `json` + `fixes_applied[]`. Optional `remorph_density` (`speaker`/`reading`) runs a non-LLM structural density remorph (split crowded lists / promote notes) before audit. Schema-valid ≠ shippable — call before the user sees a first draft. |
|
|
43
43
|
| `judge_deck` | Craft QA tiers: `t1` schema gates, `t2` HTML metrics + screenshots (**inline PNGs** by default), `t3` agent rubric / panel when keys exist. |
|
|
44
44
|
| `generate_deck_prompt` | Build a one-shot craft system prompt (theme palette, anti-slop, layout recipes, custom-html recipes, shortlists) + optional `density` (`speaker` / `reading`) lock. |
|
|
45
45
|
| `scaffold_deck` | Scaffold a schema-native Deck JSON skeleton from a layout recipe (`purpose`: pitch / launch / wrap / paper / …). Pre-wires layouts, asymmetry, dual CTA, notes — agents fill copy, then `audit_deck`. Pass `list_purposes: true` for the catalog. |
|
package/dist/tools/audit-deck.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validateDeckJson, auditCraft, repairCraft } from "@presentation-md/core";
|
|
1
|
+
import { validateDeckJson, auditCraft, repairCraft, remorphDensity, } from "@presentation-md/core";
|
|
2
2
|
function manualValidate(deck) {
|
|
3
3
|
const issues = [];
|
|
4
4
|
if (deck["type"] !== "deck") {
|
|
@@ -16,7 +16,7 @@ function manualValidate(deck) {
|
|
|
16
16
|
}
|
|
17
17
|
export const auditDeckTool = {
|
|
18
18
|
name: "audit_deck",
|
|
19
|
-
description: "Validate Deck JSON against the schema AND run craft gates (asymmetry, loud/atmosphere/paper honesty, dual CTA, data beats, custom-html vs ranked-list misuse). Returns structured issues — call before the user sees a first draft; schema-valid ≠ shippable. Pass apply_safe_fixes:true to auto-apply safe structural repairs (emphasis, ratio, bento, CTA/icons, speaker notes, candy-pop brand) PLUS beat inserts (image-hero, comparison, stat-row, logo-wall, wrap tones/ranked/streak, cadence swaps) and get back repaired json + fixes_applied — agents clear craft warnings in one hop vs frontend-slides vibe drafts.",
|
|
19
|
+
description: "Validate Deck JSON against the schema AND run craft gates (asymmetry, loud/atmosphere/paper honesty, dual CTA, data beats, custom-html vs ranked-list misuse). Returns structured issues — call before the user sees a first draft; schema-valid ≠ shippable. Pass apply_safe_fixes:true to auto-apply safe structural repairs (emphasis, ratio, bento, CTA/icons, speaker notes, candy-pop brand) PLUS beat inserts (image-hero, comparison, stat-row, logo-wall, wrap tones/ranked/streak, cadence swaps) and get back repaired json + fixes_applied — agents clear craft warnings in one hop vs frontend-slides vibe drafts. Pass remorph_density speaker|reading for a non-LLM structural density remorph (split crowded lists / promote notes) before audit.",
|
|
20
20
|
inputSchema: {
|
|
21
21
|
type: "object",
|
|
22
22
|
properties: {
|
|
@@ -25,12 +25,19 @@ export const auditDeckTool = {
|
|
|
25
25
|
type: "boolean",
|
|
26
26
|
description: "When true, apply safe structural craft repairs + beat inserts before re-auditing. Returns repaired `json` string plus `fixes_applied[]`. Does not invent themes or long body copy; placeholder stats are flagged in fixes_applied.",
|
|
27
27
|
},
|
|
28
|
+
remorph_density: {
|
|
29
|
+
type: "string",
|
|
30
|
+
enum: ["speaker", "reading"],
|
|
31
|
+
description: 'Non-LLM structural density remorph before audit. "speaker" splits crowded feature-grid/ranked/timeline/logo/table slides and moves overflow body into notes. "reading" merges thin continuation list slides and promotes notes onto thin bodies. Sets meta.density. Returns remorph_changes[] + json when any remorph/repair ran.',
|
|
32
|
+
},
|
|
28
33
|
},
|
|
29
34
|
required: ["json"],
|
|
30
35
|
},
|
|
31
36
|
handler: async (input) => {
|
|
32
37
|
const json = input["json"];
|
|
33
38
|
const applyFixes = input["apply_safe_fixes"] === true;
|
|
39
|
+
const remorphRaw = input["remorph_density"];
|
|
40
|
+
const remorphMode = remorphRaw === "speaker" || remorphRaw === "reading" ? remorphRaw : null;
|
|
34
41
|
let parsed;
|
|
35
42
|
try {
|
|
36
43
|
parsed = JSON.parse(json);
|
|
@@ -43,6 +50,12 @@ export const auditDeckTool = {
|
|
|
43
50
|
};
|
|
44
51
|
}
|
|
45
52
|
let fixesApplied = [];
|
|
53
|
+
let remorphChanges = [];
|
|
54
|
+
if (remorphMode) {
|
|
55
|
+
const remorphed = remorphDensity(parsed, remorphMode);
|
|
56
|
+
parsed = remorphed.deck;
|
|
57
|
+
remorphChanges = remorphed.changes;
|
|
58
|
+
}
|
|
46
59
|
if (applyFixes) {
|
|
47
60
|
const repaired = repairCraft(parsed);
|
|
48
61
|
parsed = repaired.deck;
|
|
@@ -72,11 +85,18 @@ export const auditDeckTool = {
|
|
|
72
85
|
issues,
|
|
73
86
|
slide_count: slideCount,
|
|
74
87
|
};
|
|
88
|
+
const wroteJson = applyFixes || remorphMode != null;
|
|
89
|
+
if (remorphMode) {
|
|
90
|
+
result.remorph_density = remorphMode;
|
|
91
|
+
result.remorph_changes = remorphChanges;
|
|
92
|
+
}
|
|
75
93
|
if (applyFixes) {
|
|
76
94
|
result.fixes_applied = fixesApplied;
|
|
77
|
-
result.json = JSON.stringify(parsed, null, 2);
|
|
78
95
|
result.fixed = fixesApplied.length > 0;
|
|
79
96
|
}
|
|
97
|
+
if (wroteJson) {
|
|
98
|
+
result.json = JSON.stringify(parsed, null, 2);
|
|
99
|
+
}
|
|
80
100
|
return result;
|
|
81
101
|
},
|
|
82
102
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-deck.js","sourceRoot":"","sources":["../../src/tools/audit-deck.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"audit-deck.js","sourceRoot":"","sources":["../../src/tools/audit-deck.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,cAAc,GAEf,MAAM,uBAAuB,CAAC;AAS/B,SAAS,cAAc,CAAC,IAA6B;IACnD,MAAM,MAAM,GAAY,EAAE,CAAC;IAE3B,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,MAAM,EAAE,CAAC;QAC5B,MAAM,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3B,MAAM,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC,CAAC;QAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CA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E,CAAC,CAAC,CAAC;QACtF,CAAC;QAAC,MAAM,CAAC;YACP,+EAA+E;YAC/E,MAAM,QAAQ,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;YACxC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;YACvB,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC3B,CAAC;QAED,yEAAyE;QACzE,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;QAEnC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QAChC,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAE7D,MAAM,MAAM,GAA4B;YACtC,KAAK;YACL,MAAM;YACN,WAAW,EAAE,UAAU;SACxB,CAAC;QACF,MAAM,SAAS,GAAG,UAAU,IAAI,WAAW,IAAI,IAAI,CAAC;QACpD,IAAI,WAAW,EAAE,CAAC;YAChB,MAAM,CAAC,eAAe,GAAG,WAAW,CAAC;YACrC,MAAM,CAAC,eAAe,GAAG,cAAc,CAAC;QAC1C,CAAC;QACD,IAAI,UAAU,EAAE,CAAC;YACf,MAAM,CAAC,aAAa,GAAG,YAAY,CAAC;YACpC,MAAM,CAAC,KAAK,GAAG,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;QACzC,CAAC;QACD,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAChD,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { join } from "node:path";
|
|
3
|
-
import { getCorePackageRoot, loadLayoutRecipesMarkdown, loadTheme, loadThemeShortlists, } from "@presentation-md/core";
|
|
1
|
+
import { buildGenerateDeckPrompt } from "@presentation-md/core";
|
|
4
2
|
import { resolveThemesDir } from "../lib/resolve-themes.js";
|
|
5
3
|
export const generateDeckPromptTool = {
|
|
6
4
|
name: "generate_deck_prompt",
|
|
7
|
-
description: "Build a one-shot craft system prompt (theme palette + anti-slop + layout recipes + custom-html recipes + shortlists) so the first Deck JSON already clears audit/judge gates — beat frontend-slides vibe drafts. Optional density locks speaker-led vs reading-first (matches Studio Generate).",
|
|
5
|
+
description: "Build a one-shot craft system prompt (theme palette + anti-slop + layout recipes + custom-html recipes + shortlists) so the first Deck JSON already clears audit/judge gates — beat frontend-slides vibe drafts. Optional density locks speaker-led vs reading-first (matches Studio Generate). Mentions remorph_density for post-draft structural density fixes.",
|
|
8
6
|
inputSchema: {
|
|
9
7
|
type: "object",
|
|
10
8
|
properties: {
|
|
@@ -18,82 +16,14 @@ export const generateDeckPromptTool = {
|
|
|
18
16
|
},
|
|
19
17
|
},
|
|
20
18
|
handler: async (input) => {
|
|
21
|
-
const themeName = input["theme"] ?? "default-tech";
|
|
22
|
-
const intent = input["intent"] ?? "";
|
|
23
|
-
const density = input["density"] === "reading" ? "reading" : "speaker";
|
|
24
|
-
const coreRoot = getCorePackageRoot();
|
|
25
19
|
const { themesDir, fallbackThemesDirs } = resolveThemesDir();
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
loadLayoutRecipesMarkdown().catch(() => ""),
|
|
34
|
-
readFile(join(coreRoot, "references", "custom-html-recipes.md"), "utf-8").catch(() => ""),
|
|
35
|
-
loadThemeShortlists().catch(() => null),
|
|
36
|
-
]);
|
|
37
|
-
const shortlists = shortlistsDoc ? JSON.stringify(shortlistsDoc, null, 2) : "";
|
|
38
|
-
const densityLine = density === "reading"
|
|
39
|
-
? "DENSITY LOCK: reading-first — self-contained slides, structured grids/tables, still no overflow. Never mix cramped reading copy into a speaker talk."
|
|
40
|
-
: "DENSITY LOCK: speaker-led — one idea per slide, large type, generous space, 1–3 bullets max. Split into more slides instead of shrinking.";
|
|
41
|
-
const craftMandate = [
|
|
42
|
-
"CRAFT MANDATE (non-negotiable — beat Gamma / Beautiful.ai / md-slides / frontend-slides / Claude Design canvas on first glance):",
|
|
43
|
-
"- ONE-SHOT BAR: the first deck JSON must already clear anti-slop + craft gates. No 'vibe draft' hoping a second pass fixes it — beat frontend-slides first drafts. Prefer scaffold_deck(purpose) when starting from a brief so layouts/CTA/notes arrive pre-wired.",
|
|
44
|
-
`- ${densityLine}`,
|
|
45
|
-
"- Prefer stunning-25 themes when the brief matches (see stunning_25_reference). Open that structured proof and match density — do not invent a watered-down palette.",
|
|
46
|
-
"- Density lock: choose speaker-led vs reading-first once with purpose; keep that density for the whole deck.",
|
|
47
|
-
"- Ban Inter-only / purple-on-white / cream-terracotta defaults unless the chosen theme owns them (see anti_slop_reference).",
|
|
48
|
-
"- When theme is unsure: use theme_shortlists_reference (or list_themes browse/include_browse_filters/include_shortlists/mood/query) — offer the same mood chips as the site/Studio gallery, prefer suggested_preview (safe + bold + wildcard), or pick a 3-theme shortlist, call preview_themes (≥2 themes auto-defaults to mode=\"layouts\"; inline PNGs on by default — title + bento + comparison; pass mode=\"title\" only for a cover skim), then lock meta.theme. Studio parity: pick-3 / Generate / Example featured all show densified Title/Bento/Compare shot strips (shared iframe · scroll-crop). Default shortlist for vague briefs: core-defaults (prefer popular:true / browse:\"popular\").",
|
|
49
|
-
"- Match a layout_recipes_reference slide map (pitch / launch / wrap / neon / poster / paper / hud / modernist / hard-bento / glass / electric / briefing / quiet-luxe / soft-product / playful / neon-tech / data-editorial / scatterbrain) before freehanding layouts.",
|
|
50
|
-
"- Include ≥1 image-hero for visual/investor/launch/brand decks (kinetic-wrapped wraps may use ranked/streak/metric/hero-stat instead).",
|
|
51
|
-
"- Force asymmetry early: every comparison MUST set emphasis left|right; prefer non-1-1 two-column ratios; 5-card grids use columns:\"bento\".",
|
|
52
|
-
"- Rankings / top-N → layout ranked-list (not custom-html bars). Mega wrap numbers → stat-row variant:\"hero\".",
|
|
53
|
-
"- Day streaks → streak-grid. Circular KPI / percentile → metric-ring (not a plain stat chip).",
|
|
54
|
-
"- Logo / customer walls → logo-wall. Year wraps (kinetic-wrapped) need tone on ≥3 slides.",
|
|
55
|
-
"- When art is the point and no layout covers it: at most ONE intentional custom-html beat from custom_html_recipes_reference (split panels / big-number+rule / poster stamps / typographic explosion). Never invent custom-html stickers for theme atmosphere.",
|
|
56
|
-
"- Wrap / store / launch / investor closes → closing actions[] with solid + outline pills (cta alone is weak on stunning-25 and any launch/investor brief).",
|
|
57
|
-
"- Every closing actions[] pill needs an icon (FA brands for social; rocket/download/calendar/book for CTAs) — PPTX maps icons to glyph prefixes.",
|
|
58
|
-
"- Long decks (≥6 slides) need a data beat (chart / stat-row / data-table / ranked-list / metric-ring / timeline) — not only soft feature grids.",
|
|
59
|
-
"- Match atmosphere to the brief: loud/thin surfaces (coral, raw-grid, sakura, retro-windows, stencil-tablet, retro-zine, daisy-days, block-frame, creative-mode, capsule, scatterbrain, 8-bit-orbit, cobalt-grid, peoples-platform, bold-signal, broadside, genz-bento, bauhaus, neo-grid-bold, bold-poster, creative-voltage, electric-studio, studio, brutalist-mono, …) for punchy brand energy; neon/vapor/y2k/retro-arcade for cinematic night; aerospace-hud / crt-terminal / blueprint for instrument/tech; aurora-glass / glassmorphism for frosted product; paper/editorial themes (claude, soft-editorial, heritage-editorial, emerald-editorial, vintage-editorial, pink-script, ft-editorial, vellum, paper-ink, long-table, broadsheet, biennale-yellow, pastel-dreamy, editorial-serif, …) for magazine quiet — PPTX keeps washes, double mastheads, dual insets, hero-gated candy/pills/corner blots, always-on loud frames/offset-shadow strips/multi-layer arcade shadows/Win95 bevels/cobalt grid+hatch/plates/tablets, hard-border cards (genz/acid/bauhaus/neo-grid/bold-poster/raw-grid/voltage/Pulse/electric/studio/grove/cartesian/botanical/glass/crt/mono/signal), neon rim/scanlines/horizon glow/soft aero shadows, mat woodglow+cream rim, HUD reticles/telemetry, and broadside fire rail as native shapes. Literary left-rule cards: paper-ink / editorial-serif / vintage-editorial. Top-rule cards: luxury-minimalist / biennale-yellow / ft-editorial.",
|
|
60
|
-
"- Paper honesty: prefer quote + comparison+emphasis + short literary leads; avoid soft corporate card stacks. Fiber grain is HTML-only — ship HTML (or say so) when paper tooth is the brand. paper-ink / editorial-serif / vintage-editorial keep literary left accent rules in PPTX (no full box stroke); ft-editorial / biennale-yellow / luxury-minimalist keep top-rule cards; heritage / pin-and-paper / emerald-editorial keep full box hairlines (HTML does not use literary left rails).",
|
|
61
|
-
"- Loud honesty: stencil-tablet / retro-zine / daisy-days / block-frame / creative-mode / sakura-chroma / capsule / scatterbrain / 8-bit-orbit / retro-windows / cobalt-grid / genz-bento / bauhaus / neo-grid-bold / bold-poster / raw-grid / creative-voltage / electric-studio / studio / brutalist-mono / editorial-tri-tone expect hard frames + offset-shadow strips (or multi-layer arcade / Win95 bevel / cobalt grid+hatch chrome) and hard-border cards on every slide (pills/tape/blocks/chroma may stay hero-gated) — don't invent custom-html stickers for atmosphere. audit_deck gates a punchy beat on these packs.",
|
|
62
|
-
"- Atmosphere honesty: neon-noir / vaporwave / y2k-aero / retro-arcade expect cyan/pink rims, rain/arcade scanlines or horizon glow, soft aero shadow stubs, plus a cinematic image-hero or punchy quote — don't flatten into SaaS grids.",
|
|
63
|
-
"- Poster honesty: coral / peoples-platform / bold-signal / broadside expect hard poster frames + hard-border cards (bold-signal accent rims) and a bold beat (image-hero, comparison, quote, or punchy stats). mat wants a mid-century beat (quote / image-hero / comparison / punchy stats) with woodglow + cream rim chrome.",
|
|
64
|
-
"- HUD honesty: aerospace-hud / crt-terminal / blueprint expect instrument chrome plus a data beat (chart / data-table / stat-row / ranked-list / timeline / metric-ring) — don't flatten into soft marketing grids.",
|
|
65
|
-
"- Glass honesty: aurora-glass / glassmorphism expect a frosted product beat (image-hero / quote / stats) — PPTX keeps glass rims (not true blur).",
|
|
66
|
-
"- Modernist honesty: bauhaus / swiss-typographic / art-deco expect geometry + hard type plus a modernist beat (quote / image-hero / comparison / icon feature-grid).",
|
|
67
|
-
"- Briefing honesty: signal expects quiet dual-surface chrome + an editorial beat (quote / image-hero / comparison / stats); PPTX keeps briefing frames and border-hairline cards.",
|
|
68
|
-
"- Quiet-luxe honesty: luxury-minimalist expects top-rule cards + a restrained luxury beat (quote / image-hero / comparison) — not soft SaaS stacks; ft-editorial / biennale-yellow share top-rule card geometry under paper honesty; long-table keeps dashed rust supper cards under paper honesty.",
|
|
69
|
-
"- Soft-product honesty: corporate / fintech-clean expect a clean product beat (stat-row / comparison / feature-grid / chart); PPTX keeps accent-hairline cards.",
|
|
70
|
-
"- Playful honesty: playful / split-pastel expect a soft-bento beat (feature-grid / image-hero / stats / quote); PPTX keeps plump coral/ink card rims.",
|
|
71
|
-
"- Neon-tech honesty: default-tech / developer-dark expect a tech product beat (code / feature-grid / chart / comparison / stats); PPTX keeps neon/terminal card rims.",
|
|
72
|
-
"- Data-editorial honesty: data-editorial expects a reported data beat (chart / data-table / stat-row / ranked-list / timeline); PPTX keeps ink card hairlines.",
|
|
73
|
-
"- Pulse (kinetic-wrapped): set tone on ≥3 slides + a ranked/streak/metric/hero-stat beat — PPTX carries hard frames, soft blobs, eyebrow chips, and 3pt accent card borders (not mix-blend).",
|
|
74
|
-
"- risograph-zine: prefer comparison+emphasis and a punchy quote — PPTX overprint is layered ovals, not true multiply; cards get hard ink strokes.",
|
|
75
|
-
"- candy-pop: set meta.company (or meta.marquee) so the yellow ticker brands the deck — never hardcode Jellybean; cards get hard ink borders in PPTX.",
|
|
76
|
-
"- Add brief notes on 2–4 key slides.",
|
|
77
|
-
"- Call audit_deck before shipping; fix warnings that mention asymmetry, image-hero, tone, emphasis, dual CTA, closing icons, atmosphere, poster, mat, cobalt-grid, HUD/tech, bauhaus, genz-bento, glass, electric-studio, brutalist-mono, cartesian, signal, quiet-luxe, soft-product, playful, neon-tech, data-editorial, scatterbrain, loud/hard-card, botanical, or magazine beats.",
|
|
78
|
-
"- Call judge_deck (t1→t2; t3 when stakes are high). Treat local_draft as a floor, not a ship grade. Schema-valid ≠ shippable.",
|
|
79
|
-
"- Open the theme's structured gallery proof when listed in stunning-25 — match that ceiling, do not water down.",
|
|
80
|
-
].join("\n");
|
|
81
|
-
return {
|
|
82
|
-
theme: themeName,
|
|
83
|
-
intent,
|
|
84
|
-
density,
|
|
85
|
-
craft_mandate: craftMandate,
|
|
86
|
-
skill,
|
|
87
|
-
deck_schema_reference: deckSchemaReference,
|
|
88
|
-
themes_reference: themesMd || undefined,
|
|
89
|
-
stunning_25_reference: stunning25 || undefined,
|
|
90
|
-
anti_slop_reference: antiSlop || undefined,
|
|
91
|
-
layout_recipes_reference: layoutRecipes || undefined,
|
|
92
|
-
custom_html_recipes_reference: customHtmlRecipes || undefined,
|
|
93
|
-
theme_shortlists_reference: shortlists || undefined,
|
|
94
|
-
palette: theme.palette,
|
|
95
|
-
typography: theme.typography,
|
|
96
|
-
};
|
|
20
|
+
return buildGenerateDeckPrompt({
|
|
21
|
+
theme: typeof input["theme"] === "string" ? input["theme"] : undefined,
|
|
22
|
+
intent: typeof input["intent"] === "string" ? input["intent"] : undefined,
|
|
23
|
+
density: input["density"] === "reading" ? "reading" : "speaker",
|
|
24
|
+
themesDir,
|
|
25
|
+
fallbackThemesDirs,
|
|
26
|
+
});
|
|
97
27
|
},
|
|
98
28
|
};
|
|
99
29
|
//# sourceMappingURL=generate-deck-prompt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-deck-prompt.js","sourceRoot":"","sources":["../../src/tools/generate-deck-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"generate-deck-prompt.js","sourceRoot":"","sources":["../../src/tools/generate-deck-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEh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ation-md tools (render/export/audit/judge/scaffold/share/import/preview) to any MCP-compatible AI agent.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
16
16
|
"zod": "^3.23.0",
|
|
17
|
-
"@presentation-md/
|
|
18
|
-
"@presentation-md/
|
|
19
|
-
"@presentation-md/
|
|
20
|
-
"@presentation-md/
|
|
17
|
+
"@presentation-md/core": "1.27.0",
|
|
18
|
+
"@presentation-md/create-theme": "1.1.27",
|
|
19
|
+
"@presentation-md/export": "^1.23.27",
|
|
20
|
+
"@presentation-md/render": "1.14.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^20.0.0",
|