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
fix(scripts): validate resolves the real directory name, --role documents its NAME:FAMILY:SIZE form
hugohe3f3305e71080e
diff --git a/skills/ppt-master/scripts/project_utils.py b/skills/ppt-master/scripts/project_utils.pyindex 664ccb89..a4a3b510 100644--- a/skills/ppt-master/scripts/project_utils.py+++ b/skills/ppt-master/scripts/project_utils.py@@ -177,13 +177,15 @@ def get_project_info(project_path: str) -> Dict:Project information dictionary"""project_path = Path(project_path)+ # ``.`` or ``..`` carry no name of their own; parse the real directory name.+ dir_name = project_path.resolve().name# Parse directory name- parsed = parse_project_name(project_path.name)+ parsed = parse_project_name(dir_name)info = {'path': str(project_path),- 'dir_name': project_path.name,+ 'dir_name': dir_name,'name': parsed['name'],'format': parsed['format'],'format_name': parsed['format_name'],@@ -465,13 +467,13 @@ def validate_project_structure({'file_name': svg_file.name})warnings.append(msg)- # Check directory naming format- dir_name = project_path.name+ # Check directory naming format (``.`` has no name of its own)+ dir_name = project_path.resolve().nameif not re.search(r'_\d{8}$', dir_name):msg = f"Directory name missing date suffix (_YYYYMMDD): {dir_name}"if use_helper and verbose:msg += "\n" + \- ErrorHelper.format_error_message('missing_date_suffix')+ ErrorHelper.format_error_message('missing_project_date')warnings.append(msg)is_valid = len(errors) == 0diff --git a/skills/ppt-master/scripts/text_measure.py b/skills/ppt-master/scripts/text_measure.pyindex 85b29177..6505b8cf 100644--- a/skills/ppt-master/scripts/text_measure.py+++ b/skills/ppt-master/scripts/text_measure.py@@ -643,7 +643,15 @@ def build_parser() -> argparse.ArgumentParser:calibrate = subparsers.add_parser('calibrate', help='Calibrate project typography roles.')calibrate.add_argument('project_path', type=Path)calibrate.add_argument('--outline', action='store_true')- calibrate.add_argument('--role', action='append', type=_role_argument, default=[])+ calibrate.add_argument(+ '--role',+ action='append',+ type=_role_argument,+ default=[],+ metavar='NAME:FAMILY:SIZE',+ help='Typography role to calibrate when spec_lock.md is absent, e.g. '+ 'body:"Microsoft YaHei":20; repeatable.',+ )calibrate.add_argument('--json', action='store_true')for command in (measure, wrap, box):command.add_argument('--json', action='store_true')