@danhachuel/thunderbolt 0.4.25 → 0.4.27

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.
package/app/main.py CHANGED
@@ -1575,7 +1575,8 @@ def render_thumbnail_blueprints():
1575
1575
  st.success("Associação guardada; canais com esse Blueprint usarão esta thumbnail blueprint automaticamente.")
1576
1576
  except ValueError as exc:
1577
1577
  st.error(str(exc))
1578
- st.code(path.read_text(encoding="utf-8"), language="markdown")
1578
+ with st.expander("Abrir documento completo", expanded=False):
1579
+ st.code(path.read_text(encoding="utf-8"), language="markdown")
1579
1580
  st.divider()
1580
1581
  st.subheader("Associar ao canal e ao Blueprint de roteiro")
1581
1582
  channels = read_json("channels.json", [])
@@ -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.27",
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",