recappi 0.1.22 → 0.1.23
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 +5 -15
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -15,16 +15,6 @@ function recordingCaptureMappingFromSelection(selection = DEFAULT_RECORDING_SELE
|
|
|
15
15
|
if (!source) {
|
|
16
16
|
throw new Error("No recording sources are available.");
|
|
17
17
|
}
|
|
18
|
-
if (source.kind === "microphone") {
|
|
19
|
-
return {
|
|
20
|
-
source,
|
|
21
|
-
includeSystemAudio: false,
|
|
22
|
-
includeMicrophone: true,
|
|
23
|
-
...selection.microphoneDeviceId ? { microphoneDeviceId: selection.microphoneDeviceId } : {},
|
|
24
|
-
sourceLabel: source.label,
|
|
25
|
-
micEnabled: true
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
18
|
const microphoneDeviceId = selection.includeMicrophone && selection.microphoneDeviceId ? selection.microphoneDeviceId : void 0;
|
|
29
19
|
return {
|
|
30
20
|
source,
|
|
@@ -1503,7 +1493,7 @@ function RecordSetupView({
|
|
|
1503
1493
|
s.label
|
|
1504
1494
|
] }, s.id);
|
|
1505
1495
|
}),
|
|
1506
|
-
!hasAppSource ? /* @__PURE__ */ jsx16(Text14, { dimColor: true, children: "
|
|
1496
|
+
!hasAppSource ? /* @__PURE__ */ jsx16(Text14, { dimColor: true, children: "No app-specific sources available right now" }) : null
|
|
1507
1497
|
] });
|
|
1508
1498
|
const capturePlan = /* @__PURE__ */ jsxs13(Box14, { flexDirection: "column", children: [
|
|
1509
1499
|
/* @__PURE__ */ jsx16(Text14, { dimColor: true, children: "CAPTURE PLAN" }),
|
|
@@ -1686,8 +1676,8 @@ function recordErrorCopy(code, message) {
|
|
|
1686
1676
|
};
|
|
1687
1677
|
case "record.capture_unavailable":
|
|
1688
1678
|
return {
|
|
1689
|
-
title: "
|
|
1690
|
-
detail: "
|
|
1679
|
+
title: "This local recorder can't capture audio.",
|
|
1680
|
+
detail: "Update recappi so the local recorder matches this CLI.",
|
|
1691
1681
|
tone: "yellow"
|
|
1692
1682
|
};
|
|
1693
1683
|
case "record.permission_required":
|
|
@@ -20515,10 +20505,10 @@ function assertSidecarCapabilities(handshake, opts) {
|
|
|
20515
20505
|
missing.push("live_captions.stream");
|
|
20516
20506
|
}
|
|
20517
20507
|
if (missing.length === 0) return;
|
|
20518
|
-
throw cliError("record.capture_unavailable", "Recappi recording helper
|
|
20508
|
+
throw cliError("record.capture_unavailable", "Recappi recording helper does not support capture.", {
|
|
20519
20509
|
hint: `Found ${handshake.sidecar.name} ${handshake.sidecar.version}, but it did not advertise ${missing.join(
|
|
20520
20510
|
", "
|
|
20521
|
-
)}. Upgrade recappi
|
|
20511
|
+
)}. Upgrade recappi, or set ${SIDECAR_COMMAND_ENV} to a compatible helper.`
|
|
20522
20512
|
});
|
|
20523
20513
|
}
|
|
20524
20514
|
function resolveSidecarCommand(opts) {
|