@presentation-md/mcp-server 1.6.12 → 1.6.14
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.
|
@@ -24,31 +24,33 @@ export const generateDeckPromptTool = {
|
|
|
24
24
|
const intent = input["intent"] ?? "";
|
|
25
25
|
const coreRoot = getCoreRoot();
|
|
26
26
|
const { themesDir, fallbackThemesDirs } = resolveThemesDir();
|
|
27
|
-
const [theme, skill, deckSchemaReference, stunning25, themesMd] = await Promise.all([
|
|
27
|
+
const [theme, skill, deckSchemaReference, stunning25, themesMd, antiSlop] = await Promise.all([
|
|
28
28
|
loadTheme(themeName, { themesDir, fallbackThemesDirs }),
|
|
29
29
|
readFile(join(coreRoot, "SKILL.md"), "utf-8"),
|
|
30
30
|
readFile(join(coreRoot, "references", "deck-schema.md"), "utf-8"),
|
|
31
31
|
readFile(join(coreRoot, "references", "stunning-25.md"), "utf-8").catch(() => ""),
|
|
32
32
|
readFile(join(coreRoot, "references", "themes.md"), "utf-8").catch(() => ""),
|
|
33
|
+
readFile(join(coreRoot, "references", "anti-slop-bans.md"), "utf-8").catch(() => ""),
|
|
33
34
|
]);
|
|
34
35
|
const craftMandate = [
|
|
35
|
-
"CRAFT MANDATE (non-negotiable):",
|
|
36
|
-
"- Prefer stunning-25 themes when the brief matches (see stunning_25_reference).",
|
|
36
|
+
"CRAFT MANDATE (non-negotiable — beat Gamma / Beautiful.ai / md-slides / frontend-slides / Claude Design canvas on first glance):",
|
|
37
|
+
"- 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.",
|
|
38
|
+
"- Ban Inter-only / purple-on-white / cream-terracotta defaults unless the chosen theme owns them (see anti_slop_reference).",
|
|
37
39
|
"- Include ≥1 image-hero for visual/investor/launch/brand decks (kinetic-wrapped wraps may use ranked/streak/metric/hero-stat instead).",
|
|
38
|
-
"-
|
|
40
|
+
"- Force asymmetry early: every comparison MUST set emphasis left|right; prefer non-1-1 two-column ratios; 5-card grids use columns:\"bento\".",
|
|
39
41
|
"- Rankings / top-N → layout ranked-list (not custom-html bars). Mega wrap numbers → stat-row variant:\"hero\".",
|
|
40
42
|
"- Day streaks → streak-grid. Circular KPI / percentile → metric-ring (not a plain stat chip).",
|
|
41
43
|
"- Logo / customer walls → logo-wall. Year wraps (kinetic-wrapped) need tone on ≥3 slides.",
|
|
42
44
|
"- Wrap / store / launch / investor closes → closing actions[] with solid + outline pills (cta alone is weak on stunning-25).",
|
|
43
45
|
"- Every closing actions[] pill needs an icon (FA brands for social; rocket/download/calendar/book for CTAs) — PPTX maps icons to glyph prefixes.",
|
|
44
|
-
"- Match atmosphere to the brief: loud/thin surfaces (coral, raw-grid, sakura, retro-windows, …) for punchy brand energy; paper/editorial themes (claude, soft-editorial, ft-editorial, vellum, paper-ink,
|
|
46
|
+
"- Match atmosphere to the brief: loud/thin surfaces (coral, raw-grid, sakura, retro-windows, …) for punchy brand energy; paper/editorial themes (claude, soft-editorial, heritage-editorial, emerald-editorial, vintage-editorial, pink-script, ft-editorial, vellum, paper-ink, broadsheet, …) for magazine quiet — PPTX keeps washes, double mastheads, dual insets, and hero-gated candy as native shapes.",
|
|
45
47
|
"- 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.",
|
|
46
48
|
"- Pulse (kinetic-wrapped): set tone on ≥3 slides + a ranked/streak/metric/hero-stat beat — PPTX carries hard frames, soft blobs, and eyebrow chips (not mix-blend).",
|
|
47
49
|
"- risograph-zine: prefer comparison+emphasis and a punchy quote — PPTX overprint is layered ovals, not true multiply.",
|
|
48
50
|
"- 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.",
|
|
49
51
|
"- Add brief notes on 2–4 key slides.",
|
|
50
52
|
"- Call audit_deck before shipping; fix warnings that mention asymmetry, image-hero, tone, emphasis, dual CTA, or closing icons.",
|
|
51
|
-
"- Call judge_deck (t1→t2; t3 when stakes are high). Treat local_draft as a floor, not a ship grade.",
|
|
53
|
+
"- Call judge_deck (t1→t2; t3 when stakes are high). Treat local_draft as a floor, not a ship grade. Schema-valid ≠ shippable.",
|
|
52
54
|
"- Open the theme's structured gallery proof when listed in stunning-25 — match that ceiling, do not water down.",
|
|
53
55
|
].join("\n");
|
|
54
56
|
return {
|
|
@@ -59,6 +61,7 @@ export const generateDeckPromptTool = {
|
|
|
59
61
|
deck_schema_reference: deckSchemaReference,
|
|
60
62
|
themes_reference: themesMd || undefined,
|
|
61
63
|
stunning_25_reference: stunning25 || undefined,
|
|
64
|
+
anti_slop_reference: antiSlop || undefined,
|
|
62
65
|
palette: theme.palette,
|
|
63
66
|
typography: theme.typography
|
|
64
67
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-deck-prompt.js","sourceRoot":"","sources":["../../src/tools/generate-deck-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,SAAS,WAAW;IAClB,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/C,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC1D,0EAA0E;IAC1E,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAmB;IACpD,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,gIAAgI;IAClI,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AC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;YAC5E,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,YAAY,EAAE,mBAAmB,CAAC,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;SACrF,CAAC,CAAC;QAEH,MAAM,YAAY,GAAG;YACnB,kIAAkI;YAClI,sKAAsK;YACtK,6HAA6H;YAC7H,wIAAwI;YACxI,+IAA+I;YAC/I,gHAAgH;YAChH,+FAA+F;YAC/F,2FAA2F;YAC3F,8HAA8H;YAC9H,kJAAkJ;YAClJ,+YAA+Y;YAC/Y,+LAA+L;YAC/L,qKAAqK;YACrK,uHAAuH;YACvH,sJAAsJ;YACtJ,sCAAsC;YACtC,iIAAiI;YACjI,+HAA+H;YAC/H,iHAAiH;SAClH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEb,OAAO;YACL,KAAK,EAAE,SAAS;YAChB,MAAM;YACN,aAAa,EAAE,YAAY;YAC3B,KAAK;YACL,qBAAqB,EAAE,mBAAmB;YAC1C,gBAAgB,EAAE,QAAQ,IAAI,SAAS;YACvC,qBAAqB,EAAE,UAAU,IAAI,SAAS;YAC9C,mBAAmB,EAAE,QAAQ,IAAI,SAAS;YAC1C,OAAO,EAAE,KAAK,CAAC,OAA4C;YAC3D,UAAU,EAAE,KAAK,CAAC,UAAU;SAC7B,CAAC;IACJ,CAAC;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@presentation-md/mcp-server",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.14",
|
|
4
4
|
"description": "MCP server exposing presentation-md tools 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/core": "1.8.
|
|
18
|
-
"@presentation-md/create-theme": "1.0.
|
|
19
|
-
"@presentation-md/export": "^1.
|
|
20
|
-
"@presentation-md/render": "1.6.
|
|
17
|
+
"@presentation-md/core": "1.8.3",
|
|
18
|
+
"@presentation-md/create-theme": "1.0.21",
|
|
19
|
+
"@presentation-md/export": "^1.14.0",
|
|
20
|
+
"@presentation-md/render": "1.6.12"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^20.0.0",
|