recappi 0.1.71 → 0.1.73

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
@@ -1252,7 +1252,7 @@ function RecordingDetailView({
1252
1252
  scrollable ? " \xB7 \u2191\u2193 scroll" : "",
1253
1253
  ready ? " \xB7 " : "",
1254
1254
  `o open \xB7 d download \xB7 f finder`,
1255
- " \xB7 T re-transcribe",
1255
+ " \xB7 T re-transcribe \xB7 s re-summarize",
1256
1256
  item.activeTranscriptId ? " \xB7 t full" : "",
1257
1257
  links.webUrl ? " \xB7 w web" : "",
1258
1258
  " \xB7 esc back"
@@ -2004,6 +2004,7 @@ function AppShell({
2004
2004
  startRecordSetupPreview,
2005
2005
  transcribeRecordingArtifact,
2006
2006
  onRetranscribe,
2007
+ onResummarize,
2007
2008
  initialView = "overview",
2008
2009
  openUrl: openUrl2,
2009
2010
  copyText: copyText2,
@@ -2422,6 +2423,23 @@ function AppShell({
2422
2423
  },
2423
2424
  [onRetranscribe, refresh]
2424
2425
  );
2426
+ const resummarizeExistingRecording = useCallback(
2427
+ async (recordingId) => {
2428
+ if (!onResummarize) {
2429
+ setNotice("Re-summarize is not available in this CLI session.");
2430
+ return;
2431
+ }
2432
+ setNotice("Re-summarize started\u2026");
2433
+ try {
2434
+ await onResummarize(recordingId);
2435
+ setNotice("Re-summarize started \u2014 the summary will refresh shortly.");
2436
+ await refresh({ resetRecordings: true });
2437
+ } catch (error51) {
2438
+ setNotice(transcribeHandoffErrorCopy(error51));
2439
+ }
2440
+ },
2441
+ [onResummarize, refresh]
2442
+ );
2425
2443
  useEffect4(() => {
2426
2444
  if (liveRecord?.kind !== "stopped") return;
2427
2445
  const artifact = liveRecord.artifact;
@@ -2685,6 +2703,7 @@ function AppShell({
2685
2703
  const rec = recordings.find((r) => r.recordingId === screen.recordingId);
2686
2704
  const links = rec ? resolveRecordingLinks(rec.recordingId, rec.origin) : {};
2687
2705
  if (input === "T" && rec) void retranscribeExistingRecording(rec.recordingId);
2706
+ else if ((input === "s" || input === "S") && rec) void resummarizeExistingRecording(rec.recordingId);
2688
2707
  else if (input === "t" && rec?.activeTranscriptId) void openTranscript(rec.activeTranscriptId);
2689
2708
  else if (input === "o" && rec) void runAudio(rec.recordingId, "open");
2690
2709
  else if (input === "d" && rec) void runAudio(rec.recordingId, "download");