recappi 0.1.5 → 0.1.6
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
|
@@ -16330,7 +16330,7 @@ function date4(params) {
|
|
|
16330
16330
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
16331
16331
|
config(en_default());
|
|
16332
16332
|
|
|
16333
|
-
//
|
|
16333
|
+
// ../packages/contracts/src/index.ts
|
|
16334
16334
|
var CLI_SCHEMA_VERSION = "2026-06-25";
|
|
16335
16335
|
function toJsonSchema(schema) {
|
|
16336
16336
|
return external_exports.toJSONSchema(schema, { target: "draft-2020-12" });
|
|
@@ -17764,6 +17764,7 @@ var RecappiApiClient = class {
|
|
|
17764
17764
|
this.env = opts.env ?? process.env;
|
|
17765
17765
|
this.homeDir = opts.homeDir;
|
|
17766
17766
|
}
|
|
17767
|
+
auth;
|
|
17767
17768
|
fetchImpl;
|
|
17768
17769
|
sleep;
|
|
17769
17770
|
env;
|
|
@@ -19333,6 +19334,8 @@ function readCliVersion() {
|
|
|
19333
19334
|
var CLI_VERSION = readCliVersion();
|
|
19334
19335
|
|
|
19335
19336
|
// src/record.tsx
|
|
19337
|
+
import { existsSync } from "fs";
|
|
19338
|
+
import { fileURLToPath } from "url";
|
|
19336
19339
|
import { render, useInput as useInput2 } from "ink";
|
|
19337
19340
|
|
|
19338
19341
|
// src/sidecar.ts
|
|
@@ -19521,6 +19524,7 @@ function defaultSidecarHandshakeParams(params) {
|
|
|
19521
19524
|
init_LiveCaptionsScreen();
|
|
19522
19525
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
19523
19526
|
var SIDECAR_COMMAND_ENV = "RECAPPI_MINI_SIDECAR";
|
|
19527
|
+
var SIDECAR_HELPER_NAME = "RecappiMiniSidecar";
|
|
19524
19528
|
async function recordViaSidecar(opts) {
|
|
19525
19529
|
let liveRenderer;
|
|
19526
19530
|
let session;
|
|
@@ -19661,12 +19665,29 @@ async function startRecordSession(opts) {
|
|
|
19661
19665
|
}
|
|
19662
19666
|
function resolveSidecarCommand(opts) {
|
|
19663
19667
|
const command = opts.sidecarCommand?.trim() || opts.env?.[SIDECAR_COMMAND_ENV]?.trim();
|
|
19664
|
-
if (
|
|
19665
|
-
|
|
19666
|
-
|
|
19668
|
+
if (command) return command;
|
|
19669
|
+
const bundled = bundledSidecarCommand(process.platform, process.arch);
|
|
19670
|
+
if (bundled && existsSync(bundled)) return bundled;
|
|
19671
|
+
const platform = `${process.platform}-${process.arch}`;
|
|
19672
|
+
if (bundled) {
|
|
19673
|
+
throw cliError("usage.invalid_argument", "Recappi recording helper is not available.", {
|
|
19674
|
+
hint: `Expected bundled helper for ${platform} at ${bundled}. Reinstall recappi, or set ${SIDECAR_COMMAND_ENV} to a compatible helper.`
|
|
19667
19675
|
});
|
|
19668
19676
|
}
|
|
19669
|
-
|
|
19677
|
+
throw cliError("usage.invalid_argument", "Recappi recording is not supported on this platform yet.", {
|
|
19678
|
+
hint: `No bundled helper is registered for ${platform}. Set ${SIDECAR_COMMAND_ENV} to a compatible helper when one is available.`
|
|
19679
|
+
});
|
|
19680
|
+
}
|
|
19681
|
+
function bundledSidecarCommand(platform, arch) {
|
|
19682
|
+
const executable = helperExecutableName(platform);
|
|
19683
|
+
if (!executable) return null;
|
|
19684
|
+
const packageRoot = new URL("..", import.meta.url);
|
|
19685
|
+
return fileURLToPath(new URL(`helpers/${platform}-${arch}/${executable}`, packageRoot));
|
|
19686
|
+
}
|
|
19687
|
+
function helperExecutableName(platform) {
|
|
19688
|
+
if (platform === "darwin") return SIDECAR_HELPER_NAME;
|
|
19689
|
+
if (platform === "win32") return `${SIDECAR_HELPER_NAME}.exe`;
|
|
19690
|
+
return null;
|
|
19670
19691
|
}
|
|
19671
19692
|
function persistArtifacts(artifacts, account, opts) {
|
|
19672
19693
|
if (artifacts.length === 0) return;
|