recappi 0.1.9 → 0.1.10
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 +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -16361,6 +16361,9 @@ var cliErrorCodeSchema = external_exports.enum([
|
|
|
16361
16361
|
"input.unsupported_audio",
|
|
16362
16362
|
"input.duration_unavailable",
|
|
16363
16363
|
"input.partial_failure",
|
|
16364
|
+
"record.helper_unavailable",
|
|
16365
|
+
"record.unsupported_platform",
|
|
16366
|
+
"record.capture_unavailable",
|
|
16364
16367
|
"cloud.conflict.upload_in_progress",
|
|
16365
16368
|
"cloud.recording_not_ready",
|
|
16366
16369
|
"cloud.job_failed",
|
|
@@ -16852,6 +16855,9 @@ var DEFAULT_EXIT_CODES = {
|
|
|
16852
16855
|
"input.duration_unavailable": 4,
|
|
16853
16856
|
"input.partial_failure": 1,
|
|
16854
16857
|
// always overridden with the worst per-file exit code
|
|
16858
|
+
"record.helper_unavailable": 2,
|
|
16859
|
+
"record.unsupported_platform": 2,
|
|
16860
|
+
"record.capture_unavailable": 2,
|
|
16855
16861
|
"cloud.conflict.upload_in_progress": 5,
|
|
16856
16862
|
"cloud.recording_not_ready": 5,
|
|
16857
16863
|
"cloud.job_failed": 5,
|
|
@@ -19675,7 +19681,7 @@ function assertSidecarCapabilities(handshake, opts) {
|
|
|
19675
19681
|
missing.push("live_captions.stream");
|
|
19676
19682
|
}
|
|
19677
19683
|
if (missing.length === 0) return;
|
|
19678
|
-
throw cliError("
|
|
19684
|
+
throw cliError("record.capture_unavailable", "Recappi recording helper cannot capture yet.", {
|
|
19679
19685
|
hint: `Found ${handshake.sidecar.name} ${handshake.sidecar.version}, but it did not advertise ${missing.join(
|
|
19680
19686
|
", "
|
|
19681
19687
|
)}. Upgrade recappi when a helper build with native recording support ships, or set ${SIDECAR_COMMAND_ENV} to a compatible helper.`
|
|
@@ -19688,11 +19694,11 @@ function resolveSidecarCommand(opts) {
|
|
|
19688
19694
|
if (bundled && existsSync(bundled)) return ensureBundledHelperExecutable(bundled);
|
|
19689
19695
|
const platform = `${process.platform}-${process.arch}`;
|
|
19690
19696
|
if (bundled) {
|
|
19691
|
-
throw cliError("
|
|
19697
|
+
throw cliError("record.helper_unavailable", "Recappi recording helper is not available.", {
|
|
19692
19698
|
hint: `Expected bundled helper for ${platform} at ${bundled}. Reinstall recappi, or set ${SIDECAR_COMMAND_ENV} to a compatible helper.`
|
|
19693
19699
|
});
|
|
19694
19700
|
}
|
|
19695
|
-
throw cliError("
|
|
19701
|
+
throw cliError("record.unsupported_platform", "Recappi recording is not supported on this platform yet.", {
|
|
19696
19702
|
hint: `No bundled helper is registered for ${platform}. Set ${SIDECAR_COMMAND_ENV} to a compatible helper when one is available.`
|
|
19697
19703
|
});
|
|
19698
19704
|
}
|
|
@@ -19704,7 +19710,7 @@ function ensureBundledHelperExecutable(path6) {
|
|
|
19704
19710
|
chmodSync(path6, mode | 493);
|
|
19705
19711
|
} catch (error51) {
|
|
19706
19712
|
const message = error51 instanceof Error ? error51.message : String(error51);
|
|
19707
|
-
throw cliError("
|
|
19713
|
+
throw cliError("record.helper_unavailable", "Recappi recording helper is not executable.", {
|
|
19708
19714
|
hint: `Could not make bundled helper executable at ${path6}: ${message}. Reinstall recappi, or set ${SIDECAR_COMMAND_ENV} to a compatible helper.`
|
|
19709
19715
|
});
|
|
19710
19716
|
}
|