recappi 0.1.7 → 0.1.8
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 +19 -0
- package/dist/index.js.map +1 -1
- package/package.json +17 -15
- package/helpers/README.md +0 -15
- package/helpers/darwin-arm64/.gitkeep +0 -1
- package/helpers/darwin-arm64/RecappiMiniSidecar +0 -0
- package/helpers/darwin-x64/.gitkeep +0 -1
- package/helpers/win32-arm64/.gitkeep +0 -1
- package/helpers/win32-x64/.gitkeep +0 -1
package/dist/index.js
CHANGED
|
@@ -19335,6 +19335,8 @@ var CLI_VERSION = readCliVersion();
|
|
|
19335
19335
|
|
|
19336
19336
|
// src/record.tsx
|
|
19337
19337
|
import { chmodSync, existsSync, statSync } from "fs";
|
|
19338
|
+
import { createRequire as createRequire2 } from "module";
|
|
19339
|
+
import { dirname, join } from "path";
|
|
19338
19340
|
import { fileURLToPath } from "url";
|
|
19339
19341
|
import { render, useInput as useInput2 } from "ink";
|
|
19340
19342
|
|
|
@@ -19525,6 +19527,7 @@ init_LiveCaptionsScreen();
|
|
|
19525
19527
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
19526
19528
|
var SIDECAR_COMMAND_ENV = "RECAPPI_MINI_SIDECAR";
|
|
19527
19529
|
var SIDECAR_HELPER_NAME = "RecappiMiniSidecar";
|
|
19530
|
+
var requireFromCli = createRequire2(import.meta.url);
|
|
19528
19531
|
async function recordViaSidecar(opts) {
|
|
19529
19532
|
let liveRenderer;
|
|
19530
19533
|
let session;
|
|
@@ -19710,6 +19713,11 @@ function ensureBundledHelperExecutable(path6) {
|
|
|
19710
19713
|
function bundledSidecarCommand(platform, arch) {
|
|
19711
19714
|
const executable = helperExecutableName(platform);
|
|
19712
19715
|
if (!executable) return null;
|
|
19716
|
+
const helperPackage = helperPackageName(platform, arch);
|
|
19717
|
+
if (helperPackage) {
|
|
19718
|
+
const packageJson = resolveOptionalHelperPackage(helperPackage);
|
|
19719
|
+
if (packageJson) return join(dirname(packageJson), executable);
|
|
19720
|
+
}
|
|
19713
19721
|
const packageRoot = new URL("..", import.meta.url);
|
|
19714
19722
|
return fileURLToPath(new URL(`helpers/${platform}-${arch}/${executable}`, packageRoot));
|
|
19715
19723
|
}
|
|
@@ -19718,6 +19726,17 @@ function helperExecutableName(platform) {
|
|
|
19718
19726
|
if (platform === "win32") return `${SIDECAR_HELPER_NAME}.exe`;
|
|
19719
19727
|
return null;
|
|
19720
19728
|
}
|
|
19729
|
+
function helperPackageName(platform, arch) {
|
|
19730
|
+
if (platform === "darwin" && arch === "arm64") return "recappi-helper-darwin-arm64";
|
|
19731
|
+
return null;
|
|
19732
|
+
}
|
|
19733
|
+
function resolveOptionalHelperPackage(packageName) {
|
|
19734
|
+
try {
|
|
19735
|
+
return requireFromCli.resolve(`${packageName}/package.json`);
|
|
19736
|
+
} catch {
|
|
19737
|
+
return null;
|
|
19738
|
+
}
|
|
19739
|
+
}
|
|
19721
19740
|
function persistArtifacts(artifacts, account, opts) {
|
|
19722
19741
|
if (artifacts.length === 0) return;
|
|
19723
19742
|
const store = openCliStore({ homeDir: opts.homeDir, env: opts.env });
|