@danhachuel/thunderbolt 0.4.80 → 0.4.82

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.4.80",
3
+ "version": "0.4.82",
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/requirements.txt CHANGED
@@ -23,4 +23,4 @@ supabase>=2.4,<3
23
23
  bilibili-api-python>=17.4,<18
24
24
  playwright>=1.45,<2
25
25
  composio>=0.21,<1
26
- justokenmax @ git+https://github.com/Kalmantic/jusTokenMax.git@main#subdirectory=python
26
+ justokenmax @ https://github.com/Kalmantic/jusTokenMax/archive/refs/heads/main.zip#subdirectory=python
package/scripts/cli.mjs CHANGED
@@ -227,7 +227,11 @@ proxy.on("upgrade", (request, clientSocket, head) => {
227
227
 
228
228
  // O backend Streamlit fica em 127.0.0.1; apenas o proxy escuta em todas as
229
229
  // interfaces para que o encaminhamento seguro do ambiente consiga alcançá-lo.
230
- proxy.listen(publicPort, () => {
230
+ proxy.on("error", (error) => {
231
+ console.error(`Thunderbolt: não foi possível abrir a interface em ${publicPort}: ${error.message}`);
232
+ process.exitCode = 1;
233
+ });
234
+ proxy.listen(publicPort, "127.0.0.1", () => {
231
235
  console.log(`Thunderbolt: interface disponível em http://localhost:${publicPort}/`);
232
236
  });
233
237
  const worker = spawn(python, ["-m", "hermes_ui.automation_worker"], {
@@ -249,10 +253,13 @@ let child;
249
253
  function startStreamlit() {
250
254
  child = spawn(python, ["-m", "streamlit", "run", main, "--server.port", String(backendPort), "--server.address", "127.0.0.1"], {
251
255
  cwd: root,
252
- stdio: "ignore",
256
+ stdio: "inherit",
253
257
  env: { ...runtimeEnv, THUNDERBOLT_LAUNCHER_RESTART: "1" },
254
258
  windowsHide: false,
255
259
  });
260
+ child.on("error", (error) => {
261
+ console.error(`Thunderbolt: não foi possível iniciar o Streamlit: ${error.message}`);
262
+ });
256
263
  child.on("exit", (code, signal) => {
257
264
  if (shuttingDown) {
258
265
  stopWorker();