📦 deps(thirdparty): update snapshots

This commit is contained in:
ci[bot]
2026-07-03 16:04:10 +00:00
parent 2bf579321a
commit b40381458b
482 changed files with 8324 additions and 2007 deletions
@@ -6,6 +6,20 @@ SEO Content Optimizer - Analyzes and optimizes content for SEO
import re
from typing import Dict, List, Set
import json
from pathlib import Path
def safe_user_path(path_value, base_dir="."):
"""Resolve a CLI path under the current workspace."""
if base_dir != ".":
raise ValueError("Custom base directories are not supported for CLI paths")
base_path = Path.cwd().resolve()
resolved_path = Path(path_value).expanduser().resolve()
try:
resolved_path.relative_to(base_path)
except ValueError as exc:
raise ValueError(f"Path escapes allowed directory: {path_value}") from exc
return resolved_path
class SEOOptimizer:
def __init__(self):
@@ -408,7 +422,7 @@ if __name__ == "__main__":
import sys
if len(sys.argv) > 1:
with open(sys.argv[1], 'r') as f:
with safe_user_path(sys.argv[1]).open('r') as f:
content = f.read()
keyword = sys.argv[2] if len(sys.argv) > 2 else None