🔧 chore(thirdparty): generalize skills sync pipeline

replace the superpowers-only workflow with a manifest-driven pipeline
sync ui-ux-pro-max into codex/skills and document source lists
fix the prettier path test so the Python suite passes on Windows
This commit is contained in:
csh
2026-04-01 13:11:10 +08:00
parent 5b9c1e36be
commit 2e26f98687
48 changed files with 10086 additions and 389 deletions
+17 -9
View File
@@ -26,14 +26,22 @@ class FormatMdActionTests(unittest.TestCase):
bin_dir = root / "bin"
bin_dir.mkdir()
prettier = bin_dir / "prettier"
prettier.write_text(
"#!/usr/bin/env python3\n"
"from pathlib import Path\n"
"Path(\".prettier_called\").write_text(\"ok\")\n",
encoding="utf-8",
)
prettier.chmod(0o755)
if os.name == "nt":
prettier = bin_dir / "prettier.cmd"
prettier.write_text(
"@echo off\r\n"
"echo ok> .prettier_called\r\n",
encoding="utf-8",
)
else:
prettier = bin_dir / "prettier"
prettier.write_text(
"#!/usr/bin/env python3\n"
"from pathlib import Path\n"
"Path(\".prettier_called\").write_text(\"ok\")\n",
encoding="utf-8",
)
prettier.chmod(0o755)
config_body = f"""
[playbook]
@@ -47,7 +55,7 @@ project_root = \"{tmp_dir}\"
config_path.write_text(config_body, encoding="utf-8")
env = os.environ.copy()
env["PATH"] = f"{bin_dir}:{env.get('PATH', '')}"
env["PATH"] = f"{bin_dir}{os.pathsep}{env.get('PATH', '')}"
result = run_cli("-config", str(config_path), env=env)
self.assertEqual(result.returncode, 0, msg=result.stderr)