recappi 0.1.55 → 0.1.56

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
@@ -1802,7 +1802,7 @@ function RecordFrame({
1802
1802
  ] })
1803
1803
  ] }),
1804
1804
  /* @__PURE__ */ jsx18(Text16, { dimColor: true, children: "\u2500".repeat(innerWidth) }),
1805
- /* @__PURE__ */ jsx18(Text16, { dimColor: true, children: `q stop & save \xB7 c captions (${captionMode}) \xB7 \u2191\u2193 scroll \xB7 G live \xB7 T re-transcribe \xB7 1 overview 2 jobs 3 account` })
1805
+ /* @__PURE__ */ jsx18(Text16, { dimColor: true, children: recording ? `q stop & save \xB7 c captions (${captionMode}) \xB7 \u2191\u2193 scroll \xB7 G live` : `\u23CE open \xB7 T re-transcribe \xB7 c captions (${captionMode}) \xB7 \u2191\u2193 scroll \xB7 1 overview 2 jobs 3 account` })
1806
1806
  ] });
1807
1807
  }
1808
1808
  var trimLead2, wrappedRows2;
@@ -2540,6 +2540,11 @@ function AppShell({
2540
2540
  setNotice(void 0);
2541
2541
  };
2542
2542
  const back = () => setStack((st) => st.length > 1 ? st.slice(0, -1) : st);
2543
+ const hasCurrentRecord = liveRecord?.kind === "starting" || liveRecord?.kind === "live" || liveRecord?.kind === "stopping" || liveRecord?.kind === "stopped";
2544
+ const openCurrentRecord = () => {
2545
+ setStack((st) => st[st.length - 1]?.kind === "record" ? st : [...st, { kind: "record" }]);
2546
+ setNotice(void 0);
2547
+ };
2543
2548
  useInput8((input, key) => {
2544
2549
  setNotice(void 0);
2545
2550
  if (screen.kind === "recordSetup") {
@@ -2567,7 +2572,16 @@ function AppShell({
2567
2572
  void stopLiveRecord();
2568
2573
  return;
2569
2574
  }
2570
- if (input === "q" || key.escape || key.leftArrow) void stopLiveRecord();
2575
+ if (liveRecord?.kind === "stopped" && input === "1") return goTab("overview");
2576
+ if (liveRecord?.kind === "stopped" && input === "2") return goTab("jobs");
2577
+ if (liveRecord?.kind === "stopped" && input === "3") return goTab("account");
2578
+ if (input === "q") {
2579
+ void stopLiveRecord();
2580
+ return;
2581
+ }
2582
+ if ((liveRecord?.kind === "stopped" || liveRecord?.kind === "error") && (key.escape || key.leftArrow)) {
2583
+ void stopLiveRecord();
2584
+ }
2571
2585
  return;
2572
2586
  }
2573
2587
  if (input === "q") return exit();
@@ -2576,6 +2590,10 @@ function AppShell({
2576
2590
  if (input === "2") return goTab("jobs");
2577
2591
  if (input === "3") return goTab("account");
2578
2592
  if (input === "n") {
2593
+ if (hasCurrentRecord) {
2594
+ openCurrentRecord();
2595
+ return;
2596
+ }
2579
2597
  setStack((st) => [...st, { kind: "recordSetup" }]);
2580
2598
  if (fetchRecordSetup) {
2581
2599
  fetchRecordSetup().then((model) => {