@danhachuel/thunderbolt 0.4.73 → 0.4.75

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
@@ -6976,6 +6976,7 @@ def render_media_provider_cards(settings: dict[str, Any], *, embedded: bool = Fa
6976
6976
  def render_settings():
6977
6977
  st.title("Configuração API")
6978
6978
  st.caption("Configuração das APIs, providers, serviços e ferramentas técnicas usados pelo Thunderbolt. As credenciais ficam no storage local e não são enviadas para o GitHub.")
6979
+ st.caption(f"Ficheiro local de todas as API keys: `{STORAGE / 'state' / 'settings.json'}`")
6979
6980
  settings = read_json("settings.json", {})
6980
6981
 
6981
6982
  def text_setting(label: str, key: str, *, secret: bool = False, help_text: str | None = None) -> str:
@@ -44,10 +44,11 @@ class UpdateResult:
44
44
  restart_required: bool = False
45
45
 
46
46
 
47
- def restart_current_process(*, exec_fn: Callable[..., Any] = os.execv) -> None:
47
+ def restart_current_process(*, exec_fn: Callable[..., Any] = os.execv, exit_fn: Callable[[int], Any] = os._exit) -> None:
48
48
  """Ask the launcher to restart Streamlit, or re-exec standalone callers."""
49
49
  if os.environ.get("THUNDERBOLT_LAUNCHER_RESTART") == "1":
50
- raise SystemExit(LAUNCHER_RESTART_EXIT_CODE)
50
+ exit_fn(LAUNCHER_RESTART_EXIT_CODE)
51
+ return
51
52
  executable = sys.executable
52
53
  exec_fn(executable, [executable, *sys.argv])
53
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.4.73",
3
+ "version": "0.4.75",
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",