@envpilot/cli 1.15.0 → 1.15.1
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.
|
@@ -7,7 +7,7 @@ function initSentry() {
|
|
|
7
7
|
Sentry.init({
|
|
8
8
|
dsn,
|
|
9
9
|
environment: "cli",
|
|
10
|
-
release: true ? "1.15.
|
|
10
|
+
release: true ? "1.15.1" : "0.0.0",
|
|
11
11
|
// All EnvPilot surfaces report to one Sentry project; the surface tag
|
|
12
12
|
// is how dashboards tell web / cli / extension events apart.
|
|
13
13
|
initialScope: { tags: { surface: "cli" } },
|
|
@@ -460,10 +460,13 @@ async function executeCommand(argv) {
|
|
|
460
460
|
|
|
461
461
|
// src/ui/render-tui.tsx
|
|
462
462
|
import { jsx } from "react/jsx-runtime";
|
|
463
|
+
function isInteractiveTerminal() {
|
|
464
|
+
return Boolean(process.stdin.isTTY) && Boolean(process.stdout.isTTY);
|
|
465
|
+
}
|
|
463
466
|
async function openTUI() {
|
|
464
467
|
const [{ render }, { CLIApp }, { PressAnyKey }] = await Promise.all([
|
|
465
468
|
import("ink"),
|
|
466
|
-
import("./app-
|
|
469
|
+
import("./app-ZLHDUCHB.js"),
|
|
467
470
|
import("./press-any-key-64XFP4O2.js")
|
|
468
471
|
]);
|
|
469
472
|
while (true) {
|
|
@@ -5038,6 +5041,12 @@ function createUICommand() {
|
|
|
5038
5041
|
if (process.env.ENVPILOT_TUI_CHILD === "1") {
|
|
5039
5042
|
return;
|
|
5040
5043
|
}
|
|
5044
|
+
if (!isInteractiveTerminal()) {
|
|
5045
|
+
console.error(
|
|
5046
|
+
"The interactive dashboard requires an interactive terminal (TTY). Run `envpilot --help` for command usage."
|
|
5047
|
+
);
|
|
5048
|
+
process.exit(1);
|
|
5049
|
+
}
|
|
5041
5050
|
await openTUI();
|
|
5042
5051
|
});
|
|
5043
5052
|
}
|
|
@@ -5930,6 +5939,7 @@ export {
|
|
|
5930
5939
|
getApiUrl,
|
|
5931
5940
|
getUser,
|
|
5932
5941
|
isAuthenticated,
|
|
5942
|
+
isInteractiveTerminal,
|
|
5933
5943
|
openTUI,
|
|
5934
5944
|
formatArgv,
|
|
5935
5945
|
getTopLevelCommandCatalog
|
package/dist/index.js
CHANGED
|
@@ -5,14 +5,15 @@ import {
|
|
|
5
5
|
getApiUrl,
|
|
6
6
|
getTopLevelCommandCatalog,
|
|
7
7
|
initSentry,
|
|
8
|
+
isInteractiveTerminal,
|
|
8
9
|
openTUI
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TXRUJJFG.js";
|
|
10
11
|
|
|
11
12
|
// src/lib/program.ts
|
|
12
13
|
import { Command } from "commander";
|
|
13
14
|
|
|
14
15
|
// src/lib/cli-version.ts
|
|
15
|
-
var CLI_VERSION = true ? "1.15.
|
|
16
|
+
var CLI_VERSION = true ? "1.15.1" : "0.0.0";
|
|
16
17
|
|
|
17
18
|
// src/lib/version-check.ts
|
|
18
19
|
import chalk from "chalk";
|
|
@@ -152,7 +153,7 @@ function createProgram() {
|
|
|
152
153
|
initSentry();
|
|
153
154
|
async function main() {
|
|
154
155
|
const args = process.argv.slice(2);
|
|
155
|
-
const shouldOpenTUI = process.env.ENVPILOT_TUI_CHILD !== "1" && args.length === 0;
|
|
156
|
+
const shouldOpenTUI = process.env.ENVPILOT_TUI_CHILD !== "1" && args.length === 0 && isInteractiveTerminal();
|
|
156
157
|
if (shouldOpenTUI) {
|
|
157
158
|
await openTUI();
|
|
158
159
|
} else {
|