@danhachuel/thunderbolt 0.5.75 → 0.5.76

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/cli.mjs +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.5.75",
3
+ "version": "0.5.76",
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
@@ -79,7 +79,9 @@ function hasScheduledAutomation() {
79
79
 
80
80
  function hasPendingPipelineWork() {
81
81
  const tasks = readStateJson("tasks.json", []);
82
- return Array.isArray(tasks) && tasks.some((task) => ["queued", "pending", "processing", "running", "in_progress"].includes(String(task?.state || task?.status || "").toLowerCase()));
82
+ // A UI Start coloca a tarefa em `doing`; `to_do` também é consumido pelo
83
+ // pipeline worker. Estes estados não dependem de automação de canal activa.
84
+ return Array.isArray(tasks) && tasks.some((task) => ["to_do", "doing"].includes(String(task?.state || task?.status || "").toLowerCase()));
83
85
  }
84
86
 
85
87
  function ensureRuntimeStorage() {