@envpilot/cli 1.6.0 → 1.7.2

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
@@ -4,18 +4,18 @@ import {
4
4
  getTopLevelCommandCatalog,
5
5
  initSentry,
6
6
  openTUI
7
- } from "./chunk-RUYGAIH5.js";
7
+ } from "./chunk-UVAK2D4O.js";
8
8
 
9
9
  // src/lib/program.ts
10
10
  import { Command } from "commander";
11
11
 
12
12
  // src/lib/cli-version.ts
13
- var CLI_VERSION = true ? "1.6.0" : "0.0.0";
13
+ var CLI_VERSION = true ? "1.11.0" : "0.0.0";
14
14
 
15
15
  // src/lib/version-check.ts
16
16
  import chalk from "chalk";
17
17
  import Conf from "conf";
18
- var CLI_VERSION2 = true ? "1.6.0" : "0.0.0";
18
+ var CLI_VERSION2 = true ? "1.11.0" : "0.0.0";
19
19
  var CHECK_INTERVAL = 60 * 60 * 1e3;
20
20
  var _cache = null;
21
21
  function getCache() {
@@ -74,11 +74,17 @@ function createProgram() {
74
74
 
75
75
  // src/index.tsx
76
76
  initSentry();
77
- var args = process.argv.slice(2);
78
- var shouldOpenTUI = process.env.ENVPILOT_TUI_CHILD !== "1" && args.length === 0;
79
- if (shouldOpenTUI) {
80
- await openTUI();
81
- } else {
82
- const program = createProgram();
83
- await program.parseAsync();
77
+ async function main() {
78
+ const args = process.argv.slice(2);
79
+ const shouldOpenTUI = process.env.ENVPILOT_TUI_CHILD !== "1" && args.length === 0;
80
+ if (shouldOpenTUI) {
81
+ await openTUI();
82
+ } else {
83
+ const program = createProgram();
84
+ await program.parseAsync();
85
+ }
84
86
  }
87
+ main().catch((err) => {
88
+ console.error(err);
89
+ process.exit(1);
90
+ });
@@ -0,0 +1,15 @@
1
+ // src/ui/press-any-key.tsx
2
+ import { Box, Text, useApp, useInput } from "ink";
3
+ import { jsx } from "react/jsx-runtime";
4
+ function PressAnyKey({ onResolve }) {
5
+ const { exit } = useApp();
6
+ useInput((input, key) => {
7
+ const quit = input === "q" || input === "Q" || key.ctrl && input === "c";
8
+ onResolve(quit);
9
+ exit();
10
+ });
11
+ return /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Text, { dimColor: true, children: " Press any key to return to the TUI\u2026 (q to quit)" }) });
12
+ }
13
+ export {
14
+ PressAnyKey
15
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envpilot/cli",
3
- "version": "1.6.0",
3
+ "version": "1.7.2",
4
4
  "description": "Envpilot CLI — sync and manage environment variables from the terminal",
5
5
  "type": "module",
6
6
  "bin": {
@@ -35,8 +35,8 @@
35
35
  "zod": "^4.3.6"
36
36
  },
37
37
  "devDependencies": {
38
- "@envpilot/eslint-config": "workspace:*",
39
- "@envpilot/tsconfig": "workspace:*",
38
+ "@envpilot/eslint-config": "1.1.0",
39
+ "@envpilot/tsconfig": "1.1.0",
40
40
  "@types/node": "^22.10.10",
41
41
  "@types/react": "^18.3.12",
42
42
  "eslint": "^9",