camstack 1.2.174 → 1.2.175
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/cli.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
+
FFMPEG_PATH_ENV,
|
|
3
4
|
runDiscover
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5KEJFFHY.js";
|
|
5
6
|
import "./chunk-LMMQX4CK.js";
|
|
6
7
|
|
|
7
8
|
// src/cli.ts
|
|
@@ -38,7 +39,7 @@ async function runServe(args) {
|
|
|
38
39
|
...typeof values.data === "string" ? { data: values.data } : {}
|
|
39
40
|
};
|
|
40
41
|
Object.assign(process.env, buildServeEnv(opts));
|
|
41
|
-
await import("./launcher-
|
|
42
|
+
await import("./launcher-76GT7676.js");
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
// src/commands/agent.ts
|
|
@@ -83,7 +84,7 @@ async function runAgent(args) {
|
|
|
83
84
|
...typeof values.port === "string" ? { port: values.port } : {}
|
|
84
85
|
};
|
|
85
86
|
Object.assign(process.env, buildAgentEnv(opts));
|
|
86
|
-
await import("./launcher-
|
|
87
|
+
await import("./launcher-76GT7676.js");
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
// src/commands/setup.ts
|
|
@@ -91,13 +92,12 @@ import { execFileSync } from "child_process";
|
|
|
91
92
|
import * as path from "path";
|
|
92
93
|
import * as fs from "fs";
|
|
93
94
|
import { parseArgs as parseArgs3 } from "util";
|
|
94
|
-
function
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
return
|
|
98
|
-
} catch {
|
|
99
|
-
return false;
|
|
95
|
+
function describeFfmpegProvisioning(env) {
|
|
96
|
+
const override = env[FFMPEG_PATH_ENV]?.trim() ?? "";
|
|
97
|
+
if (override.length > 0) {
|
|
98
|
+
return `ffmpeg: ${FFMPEG_PATH_ENV}=${override} (operator override \u2014 used instead of the pinned build)`;
|
|
100
99
|
}
|
|
100
|
+
return "ffmpeg: the pinned build is downloaded by each node on first start \u2014 nothing to install";
|
|
101
101
|
}
|
|
102
102
|
function getDefaultDataPath() {
|
|
103
103
|
const root = process.env.CAMSTACK_ROOT;
|
|
@@ -118,13 +118,7 @@ function runSetup(args) {
|
|
|
118
118
|
console.log(`[camstack] Data directory: ${dataPath}`);
|
|
119
119
|
fs.mkdirSync(dataPath, { recursive: true });
|
|
120
120
|
console.log("[camstack] Data directory: OK");
|
|
121
|
-
|
|
122
|
-
console.log("[camstack] ffmpeg: found in PATH");
|
|
123
|
-
} else {
|
|
124
|
-
console.warn("[camstack] ffmpeg: NOT FOUND \u2014 install ffmpeg for decode/transcode support");
|
|
125
|
-
console.warn("[camstack] macOS: brew install ffmpeg");
|
|
126
|
-
console.warn("[camstack] Linux: apt install ffmpeg / dnf install ffmpeg");
|
|
127
|
-
}
|
|
121
|
+
console.log(`[camstack] ${describeFfmpegProvisioning(process.env)}`);
|
|
128
122
|
let pythonFound = false;
|
|
129
123
|
for (const bin of ["python3", "python"]) {
|
|
130
124
|
try {
|
|
@@ -1140,7 +1134,7 @@ function isUnknown(_value) {
|
|
|
1140
1134
|
return true;
|
|
1141
1135
|
}
|
|
1142
1136
|
async function resolveServerInteractive(presetNamespace) {
|
|
1143
|
-
const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-
|
|
1137
|
+
const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-RNO4NZIX.js");
|
|
1144
1138
|
if (presetNamespace) {
|
|
1145
1139
|
const spinner4 = clack.spinner();
|
|
1146
1140
|
spinner4.start(`Discovering hub on LAN (namespace "${presetNamespace}")`);
|