recappi 0.1.7 → 0.1.9

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
@@ -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 });
@@ -20423,7 +20442,7 @@ Agent mode:
20423
20442
  return program;
20424
20443
  }
20425
20444
  function addCommonOptions(command) {
20426
- command.option("--json", "write one JSON envelope to stdout").option("--jsonl", "write JSONL operation events to stdout").option("--human", "write human-readable output").option("--fields <list>", "comma-separated data fields to keep", parseFieldsOption).option("--compact", "omit empty optional data and print compact JSON").option("--origin <url>", "Recappi Cloud origin", parseStringOption("--origin"));
20445
+ command.option("--json", "write one JSON envelope to stdout").option("--jsonl", "write JSONL operation events to stdout").option("--human", "write human-readable output").option("--fields <list>", "comma-separated data fields to keep", parseFieldsOption).option("--compact", "omit empty optional data and print compact JSON").option("--verbose", "accept verbose wrappers without changing output").option("--origin <url>", "Recappi Cloud origin", parseStringOption("--origin"));
20427
20446
  }
20428
20447
  function audioAction(opts) {
20429
20448
  const selected = [