@danhachuel/thunderbolt 0.7.40 → 0.7.43

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.
@@ -856,7 +856,7 @@ def load_blueprint_file(path: Path) -> dict[str, Any]:
856
856
  def list_prompt_master_files() -> list[Path]:
857
857
  """List only Markdown Prompt Master files stored in the TikTok area."""
858
858
  ensure_storage()
859
- return sorted(TIKTOK_PROMPT_MASTERS.glob("*.md"), key=lambda p: p.stat().st_mtime, reverse=True)
859
+ return sorted(TIKTOK_PROMPT_MASTERS.glob("*.md"), key=lambda p: (p.name.casefold(), p.name))
860
860
 
861
861
 
862
862
  def load_prompt_master_file(path: Path) -> str:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.7.40",
3
+ "version": "0.7.43",
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",
package/scripts/cli.mjs CHANGED
@@ -228,7 +228,6 @@ const dynamicChunkRecoveryScript = `<script data-thunderbolt-recovery="${package
228
228
  const message = String(event.message || "");
229
229
  if (/dynamically imported module|module script failed/i.test(message)) recover();
230
230
  });
231
- window.setTimeout(() => { try { sessionStorage.removeItem(key); } catch (_) {} }, 3500);
232
231
  })();
233
232
  </script>`;
234
233
 
@@ -260,7 +259,7 @@ const proxy = http.createServer((request, response) => {
260
259
  port: backendPort,
261
260
  method: request.method,
262
261
  path: `${requestUrl.pathname}${requestUrl.search}`,
263
- headers: { ...request.headers, host: `127.0.0.1:${backendPort}` },
262
+ headers: { ...request.headers, host: `127.0.0.1:${backendPort}`, "accept-encoding": "identity" },
264
263
  }, (upstreamResponse) => {
265
264
  const responseHeaders = { ...upstreamResponse.headers };
266
265
  // Streamlit entrega HTML/JS de uma instância local que pode mudar após