recappi 0.1.23 → 0.1.25

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/index.js CHANGED
@@ -1567,7 +1567,8 @@ function RecordingHeroScreen({
1567
1567
  const [tick, setTick] = useState6(() => now());
1568
1568
  const [wave, setWave] = useState6([]);
1569
1569
  useEffect2(() => {
1570
- const lvl = Math.max(telemetry.level?.system ?? 0, telemetry.level?.mic ?? 0);
1570
+ if (telemetry.level == null) return;
1571
+ const lvl = Math.max(telemetry.level.system ?? 0, telemetry.level.mic ?? 0);
1571
1572
  setWave((w) => [...w.slice(-512), lvl]);
1572
1573
  }, [telemetry.level]);
1573
1574
  useEffect2(() => {
@@ -1613,7 +1614,11 @@ function RecordingHeroScreen({
1613
1614
  /* @__PURE__ */ jsxs14(Box15, { flexGrow: 1, flexDirection: "column", justifyContent: "center", alignItems: "center", children: [
1614
1615
  /* @__PURE__ */ jsx17(Text15, { bold: true, color: paused ? "yellow" : "red", children: badge }),
1615
1616
  /* @__PURE__ */ jsx17(Text15, { bold: true, children: elapsed }),
1616
- /* @__PURE__ */ jsx17(Box15, { marginTop: 1, children: /* @__PURE__ */ jsx17(Text15, { color: paused ? "gray" : "red", children: waveform(wave, innerWidth) }) }),
1617
+ /* @__PURE__ */ jsx17(Box15, { marginTop: 1, children: telemetry.level == null ? (
1618
+ // No level telemetry yet — show honest activity, not a flat meter that
1619
+ // looks like silence (the elapsed timer above proves it's live).
1620
+ /* @__PURE__ */ jsx17(Text15, { dimColor: true, children: paused ? "Paused" : `Capturing audio${".".repeat(Math.floor(tick / 1e3) % 3 + 1)}` })
1621
+ ) : /* @__PURE__ */ jsx17(Text15, { color: paused ? "gray" : "red", children: waveform(wave, innerWidth) }) }),
1617
1622
  /* @__PURE__ */ jsx17(Box15, { marginTop: 1, children: /* @__PURE__ */ jsxs14(Text15, { dimColor: true, children: [
1618
1623
  telemetry.sourceLabel,
1619
1624
  telemetry.micEnabled ? " + Microphone" : ""
@@ -21093,7 +21098,7 @@ Agent mode:
21093
21098
  kind: "auth-login",
21094
21099
  options: collectGlobalOptions(command),
21095
21100
  commandName: "auth login",
21096
- ...opts.noOpen === true ? { noOpen: true } : {}
21101
+ ...opts.open === false ? { noOpen: true } : {}
21097
21102
  });
21098
21103
  });
21099
21104
  const authLogout = auth.command("logout").description("Remove the Recappi CLI sign-in token");