@danhachuel/thunderbolt 0.6.72 → 0.6.73

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.
@@ -34,7 +34,7 @@ DEFAULTS: dict[str, Any] = {
34
34
  "uploads.json": [],
35
35
  "notifications.json": [],
36
36
  "media_downloads.json": [],
37
- "display_names.json": {"blueprints": {}, "prompt_masters": {}},
37
+ "display_names.json": {"blueprints": {}, "prompt_masters": {}, "music": {}, "music_lyrics": {}},
38
38
  "niche_apify_runs.json": [],
39
39
  "metadata_edits.json": [],
40
40
  "python_editor_edits.json": [],
@@ -615,6 +615,13 @@ def _display_name_key(kind: str, path: Path) -> str:
615
615
  return resolved.relative_to(root).as_posix()
616
616
  except ValueError as exc:
617
617
  raise ValueError("O ficheiro não pertence ao storage de Prompt Masters.") from exc
618
+ if kind in {"music", "music_lyrics"}:
619
+ root = (STORAGE / ("music" if kind == "music" else "scripts")).resolve()
620
+ try:
621
+ return resolved.relative_to(root).as_posix()
622
+ except ValueError as exc:
623
+ label = "música" if kind == "music" else "lyrics"
624
+ raise ValueError(f"O ficheiro não pertence ao storage de {label}.") from exc
618
625
  raise ValueError(f"Tipo de biblioteca inválido: {kind}")
619
626
 
620
627
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.6.72",
3
+ "version": "0.6.73",
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",