@danhachuel/thunderbolt 0.4.25 → 0.4.26

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.
@@ -17,7 +17,7 @@ The output must be a practical, locked visual system, not a script blueprint. In
17
17
 
18
18
 
19
19
  def _slug(value: Any) -> str:
20
- text = re.sub(r"[^A-Za-z0-9]+", "_", str(value or "").strip()).strip("_")
20
+ text = re.sub(r"[^A-Za-z0-9À-ÿ]+", "_", str(value or "").strip(), flags=re.UNICODE).strip("_")
21
21
  return text or "General"
22
22
 
23
23
 
@@ -120,7 +120,9 @@ def generate_thumbnail_blueprint(
120
120
 
121
121
 
122
122
  def save_thumbnail_blueprint(document: Mapping[str, Any]) -> Path:
123
- name = _record_name(str(document.get("niche") or document.get("name") or "General").replace("_Thumbnail_Blueprint", ""))
123
+ raw_name = str(document.get("niche") or document.get("name") or "General").strip()
124
+ raw_name = re.sub(r"_Thumbnail_Blueprint$", "", raw_name, flags=re.IGNORECASE)
125
+ name = _record_name(raw_name)
124
126
  folder = BLUEPRINTS / "thumbnails"
125
127
  folder.mkdir(parents=True, exist_ok=True)
126
128
  target = folder / f"{name}.md"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.4.25",
3
+ "version": "0.4.26",
4
4
  "description": "Thunderbolt — interface local para operação de canais faceless e motor MoneyPrinterTurbo",
5
5
  "license": "MIT",
6
6
  "main": "scripts/cli.mjs",