exe-watcher 0.2.5 → 0.2.7

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/dist/cli.js CHANGED
@@ -7112,11 +7112,6 @@ program.command("status").description("Compact status output (today + week + mon
7112
7112
  for (const [name, cost] of Object.entries(providerTotals)) {
7113
7113
  providers.push({ name: displayNameByName.get(name) ?? name, cost });
7114
7114
  }
7115
- for (const p of allProviders) {
7116
- if (providers.some((pc) => pc.name === p.displayName)) continue;
7117
- const sources = await p.discoverSessions();
7118
- if (sources.length > 0) providers.push({ name: p.displayName, cost: 0 });
7119
- }
7120
7115
  } else {
7121
7116
  const display = displayNameByName.get(pf) ?? pf;
7122
7117
  providers.push({ name: display, cost: currentData.cost });
@@ -7205,11 +7200,11 @@ program.command("status").description("Compact status output (today + week + mon
7205
7200
  const [proj7d, proj30d] = await Promise.all([
7206
7201
  Promise.race([
7207
7202
  parseAllSessions(getDateRange2("week").range, "all"),
7208
- new Promise((r) => setTimeout(() => r([]), 3e3))
7203
+ new Promise((r) => setTimeout(() => r([]), 500))
7209
7204
  ]),
7210
7205
  Promise.race([
7211
7206
  parseAllSessions(getDateRange2("30days").range, "all"),
7212
- new Promise((r) => setTimeout(() => r([]), 3e3))
7207
+ new Promise((r) => setTimeout(() => r([]), 500))
7213
7208
  ])
7214
7209
  ]);
7215
7210
  projectSpend = buildProjectSpend(allTodayProjects, proj7d, proj30d);
@@ -7217,7 +7212,9 @@ program.command("status").description("Compact status output (today + week + mon
7217
7212
  projectSpend = buildProjectSpend(allTodayProjects, [], []);
7218
7213
  }
7219
7214
  const diagnostics = { daysCount, parseTimeMs, warnings };
7220
- console.log(JSON.stringify(buildMenubarPayload(currentData, providers, optimize, dailyHistory, agentStats, projectSpend, exeOsDetected, statsFileAge, diagnostics)));
7215
+ const payload = buildMenubarPayload(currentData, providers, optimize, dailyHistory, agentStats, projectSpend, exeOsDetected, statsFileAge, diagnostics);
7216
+ const json = JSON.stringify(payload);
7217
+ console.log(json);
7221
7218
  return;
7222
7219
  }
7223
7220
  if (opts.format === "json") {