Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

feat(page-context): mark verified local Design Spec repairs

hugohe323e8948b0a2d
diff --git a/skills/ppt-master/scripts/page_context.py b/skills/ppt-master/scripts/page_context.py
index 111eb915..0435f5a8 100644
--- a/skills/ppt-master/scripts/page_context.py
+++ b/skills/ppt-master/scripts/page_context.py
@@ -398,15 +398,19 @@ def _reference_payload(
*,
scope: str,
display_path: str,
+ same_context_edit_policy: str | None = None,
) -> dict[str, str]:
"""Describe one large reference without injecting its contents per page."""
- return {
+ payload = {
"kind": kind,
"scope": scope,
"path": display_path,
"sha256": _file_sha256(path),
"load_policy": "once-per-execution-context",
}
+ if same_context_edit_policy is not None:
+ payload["same_context_edit_policy"] = same_context_edit_policy
+ return payload
def _chart_reference(chart_key: str) -> tuple[dict[str, str], Path]:
@@ -517,6 +521,7 @@ def build_page_context(project: str | Path, raw_page: str) -> PageContextResult:
design_path,
scope="project",
display_path="design_spec.md",
+ same_context_edit_policy="targeted-readback-and-rebind",
),
]
template_design_path = project_path / "templates" / "design_spec.md"