brew-tui 3.1.0 → 3.3.0
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/build/{brew-tui-bar-installer-66P3MJVS.js → brew-tui-bar-installer-IYAZTPAY.js} +2 -2
- package/build/{chunk-5FAI7JKA.js → chunk-4OTBV53D.js} +2 -2
- package/build/{chunk-4CSFRRSB.js → chunk-C6SH533P.js} +2 -2
- package/build/{doctor-GR3IXTWM.js → doctor-MMM7R6RE.js} +4 -4
- package/build/index.js +9 -9
- package/build/postinstall.js +1 -1
- package/build/{version-check-PKTSIF43.js → version-check-5C6KBFU4.js} +2 -2
- package/package.json +5 -3
- /package/build/{brew-tui-bar-installer-66P3MJVS.js.map → brew-tui-bar-installer-IYAZTPAY.js.map} +0 -0
- /package/build/{chunk-5FAI7JKA.js.map → chunk-4OTBV53D.js.map} +0 -0
- /package/build/{chunk-4CSFRRSB.js.map → chunk-C6SH533P.js.map} +0 -0
- /package/build/{doctor-GR3IXTWM.js.map → doctor-MMM7R6RE.js.map} +0 -0
- /package/build/{version-check-PKTSIF43.js.map → version-check-5C6KBFU4.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
launchBrewTUIBar,
|
|
7
7
|
syncAndLaunchBrewTUIBar,
|
|
8
8
|
uninstallBrewTUIBar
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4OTBV53D.js";
|
|
10
10
|
import "./chunk-NRRQECXA.js";
|
|
11
11
|
import "./chunk-A7U3NZYM.js";
|
|
12
12
|
import "./chunk-KDHEUNRI.js";
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
syncAndLaunchBrewTUIBar,
|
|
20
20
|
uninstallBrewTUIBar
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=brew-tui-bar-installer-
|
|
22
|
+
//# sourceMappingURL=brew-tui-bar-installer-IYAZTPAY.js.map
|
|
@@ -186,7 +186,7 @@ async function launchBrewTUIBar() {
|
|
|
186
186
|
}
|
|
187
187
|
async function syncAndLaunchBrewTUIBar() {
|
|
188
188
|
if (process.platform !== "darwin") return;
|
|
189
|
-
const { checkBrewTUIBarVersion } = await import("./version-check-
|
|
189
|
+
const { checkBrewTUIBarVersion } = await import("./version-check-5C6KBFU4.js");
|
|
190
190
|
try {
|
|
191
191
|
if (!await isBrewTUIBarInstalled()) {
|
|
192
192
|
console.log(t("cli_brewtuibarInstalling"));
|
|
@@ -225,4 +225,4 @@ export {
|
|
|
225
225
|
syncAndLaunchBrewTUIBar,
|
|
226
226
|
uninstallBrewTUIBar
|
|
227
227
|
};
|
|
228
|
-
//# sourceMappingURL=chunk-
|
|
228
|
+
//# sourceMappingURL=chunk-4OTBV53D.js.map
|
|
@@ -6,7 +6,7 @@ var execFileAsync = promisify(execFile);
|
|
|
6
6
|
var BREWTUIBAR_INFO_PLIST = "/Applications/Brew-TUI-Bar.app/Contents/Info.plist";
|
|
7
7
|
var CONTRACT_VERSION = 1;
|
|
8
8
|
function expectedVersion() {
|
|
9
|
-
return "3.
|
|
9
|
+
return "3.3.0";
|
|
10
10
|
}
|
|
11
11
|
async function readBrewTUIBarVersion() {
|
|
12
12
|
try {
|
|
@@ -62,4 +62,4 @@ export {
|
|
|
62
62
|
compareSemver,
|
|
63
63
|
checkBrewTUIBarVersion
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-C6SH533P.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkBrewTUIBarVersion,
|
|
3
3
|
readBrewTUIBarVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C6SH533P.js";
|
|
5
5
|
import {
|
|
6
6
|
useLicenseStore
|
|
7
7
|
} from "./chunk-FQV2F47X.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
bundleIdAt,
|
|
10
10
|
isBrewTUIBarInstalled,
|
|
11
11
|
isBrewTUIBarRunning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4OTBV53D.js";
|
|
13
13
|
import "./chunk-4RPJM7O7.js";
|
|
14
14
|
import "./chunk-NRRQECXA.js";
|
|
15
15
|
import "./chunk-A7U3NZYM.js";
|
|
@@ -53,7 +53,7 @@ async function findBrewBinary() {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
async function runDoctor() {
|
|
56
|
-
const cliVersion = "3.
|
|
56
|
+
const cliVersion = "3.3.0";
|
|
57
57
|
console.log(format("Brew-TUI", [
|
|
58
58
|
{ label: "CLI version", value: cliVersion },
|
|
59
59
|
{ label: "Platform", value: `${process.platform} (${arch()})` },
|
|
@@ -130,4 +130,4 @@ async function runDoctor() {
|
|
|
130
130
|
export {
|
|
131
131
|
runDoctor
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=doctor-
|
|
133
|
+
//# sourceMappingURL=doctor-MMM7R6RE.js.map
|
package/build/index.js
CHANGED
|
@@ -4550,7 +4550,7 @@ function AccountView() {
|
|
|
4550
4550
|
status === "pro" || status === "team" || status === "expired" ? `v ${t("hint_revalidate")} ` : "",
|
|
4551
4551
|
revalidating ? t("account_revalidating") : "",
|
|
4552
4552
|
" ",
|
|
4553
|
-
t("app_version", { version: "3.
|
|
4553
|
+
t("app_version", { version: "3.3.0" })
|
|
4554
4554
|
] }) })
|
|
4555
4555
|
] });
|
|
4556
4556
|
}
|
|
@@ -6058,7 +6058,7 @@ async function reportError(err, context = {}) {
|
|
|
6058
6058
|
const config = await resolveConfig();
|
|
6059
6059
|
if (!config.enabled || !config.endpoint) return;
|
|
6060
6060
|
const machineId = await getMachineId();
|
|
6061
|
-
const version = true ? "3.
|
|
6061
|
+
const version = true ? "3.3.0" : "unknown";
|
|
6062
6062
|
await postReport(buildReport("error", err, context, machineId, version), config);
|
|
6063
6063
|
}
|
|
6064
6064
|
async function installCrashReporter() {
|
|
@@ -6067,7 +6067,7 @@ async function installCrashReporter() {
|
|
|
6067
6067
|
if (!config.enabled || !config.endpoint) return;
|
|
6068
6068
|
_installed = true;
|
|
6069
6069
|
const machineId = await getMachineId();
|
|
6070
|
-
const version = true ? "3.
|
|
6070
|
+
const version = true ? "3.3.0" : "unknown";
|
|
6071
6071
|
process.on("uncaughtException", (err) => {
|
|
6072
6072
|
void postReport(buildReport("fatal", err, { kind: "uncaughtException" }, machineId, version), config);
|
|
6073
6073
|
});
|
|
@@ -6082,11 +6082,11 @@ import { jsx as jsx39 } from "react/jsx-runtime";
|
|
|
6082
6082
|
var [, , command, arg] = process.argv;
|
|
6083
6083
|
async function runCli() {
|
|
6084
6084
|
if (command === "--version" || command === "-v" || command === "version") {
|
|
6085
|
-
const cliVersion = "3.
|
|
6085
|
+
const cliVersion = "3.3.0";
|
|
6086
6086
|
process.stdout.write(cliVersion + "\n");
|
|
6087
6087
|
if (process.platform === "darwin") {
|
|
6088
6088
|
try {
|
|
6089
|
-
const { readBrewTUIBarVersion } = await import("./version-check-
|
|
6089
|
+
const { readBrewTUIBarVersion } = await import("./version-check-5C6KBFU4.js");
|
|
6090
6090
|
const appVersion = await readBrewTUIBarVersion();
|
|
6091
6091
|
if (appVersion && appVersion !== cliVersion) {
|
|
6092
6092
|
process.stderr.write(t("cli_versionMismatchWarning", { installed: appVersion, expected: cliVersion }) + "\n");
|
|
@@ -6231,7 +6231,7 @@ Snapshots: ${snapshots.length} (latest: ${latest ? formatDate(latest.capturedAt)
|
|
|
6231
6231
|
return;
|
|
6232
6232
|
}
|
|
6233
6233
|
if (command === "install-brew-tui-bar") {
|
|
6234
|
-
const { installBrewTUIBar } = await import("./brew-tui-bar-installer-
|
|
6234
|
+
const { installBrewTUIBar } = await import("./brew-tui-bar-installer-IYAZTPAY.js");
|
|
6235
6235
|
try {
|
|
6236
6236
|
console.log(t("cli_brewtuibarInstalling"));
|
|
6237
6237
|
await installBrewTUIBar(false, arg === "--force");
|
|
@@ -6243,7 +6243,7 @@ Snapshots: ${snapshots.length} (latest: ${latest ? formatDate(latest.capturedAt)
|
|
|
6243
6243
|
return;
|
|
6244
6244
|
}
|
|
6245
6245
|
if (command === "uninstall-brew-tui-bar") {
|
|
6246
|
-
const { uninstallBrewTUIBar } = await import("./brew-tui-bar-installer-
|
|
6246
|
+
const { uninstallBrewTUIBar } = await import("./brew-tui-bar-installer-IYAZTPAY.js");
|
|
6247
6247
|
try {
|
|
6248
6248
|
await uninstallBrewTUIBar();
|
|
6249
6249
|
console.log(t("cli_brewtuibarUninstalled"));
|
|
@@ -6254,7 +6254,7 @@ Snapshots: ${snapshots.length} (latest: ${latest ? formatDate(latest.capturedAt)
|
|
|
6254
6254
|
return;
|
|
6255
6255
|
}
|
|
6256
6256
|
if (command === "doctor") {
|
|
6257
|
-
const { runDoctor } = await import("./doctor-
|
|
6257
|
+
const { runDoctor } = await import("./doctor-MMM7R6RE.js");
|
|
6258
6258
|
await runDoctor();
|
|
6259
6259
|
return;
|
|
6260
6260
|
}
|
|
@@ -6278,7 +6278,7 @@ Snapshots: ${snapshots.length} (latest: ${latest ? formatDate(latest.capturedAt)
|
|
|
6278
6278
|
async function ensureBrewTUIBarRunning() {
|
|
6279
6279
|
if (process.platform !== "darwin") return;
|
|
6280
6280
|
await useLicenseStore.getState().initialize();
|
|
6281
|
-
const { syncAndLaunchBrewTUIBar } = await import("./brew-tui-bar-installer-
|
|
6281
|
+
const { syncAndLaunchBrewTUIBar } = await import("./brew-tui-bar-installer-IYAZTPAY.js");
|
|
6282
6282
|
await syncAndLaunchBrewTUIBar();
|
|
6283
6283
|
}
|
|
6284
6284
|
runCli().catch((err) => {
|
package/build/postinstall.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
compareSemver,
|
|
5
5
|
expectedVersion,
|
|
6
6
|
readBrewTUIBarVersion
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C6SH533P.js";
|
|
8
8
|
export {
|
|
9
9
|
CONTRACT_VERSION,
|
|
10
10
|
checkBrewTUIBarVersion,
|
|
@@ -12,4 +12,4 @@ export {
|
|
|
12
12
|
expectedVersion,
|
|
13
13
|
readBrewTUIBarVersion
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=version-check-
|
|
15
|
+
//# sourceMappingURL=version-check-5C6KBFU4.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brew-tui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Brew-TUI — Visual TUI for Homebrew package management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -26,11 +26,12 @@
|
|
|
26
26
|
"dev": "tsx src/index.tsx",
|
|
27
27
|
"build": "tsup",
|
|
28
28
|
"test": "vitest run",
|
|
29
|
+
"test:coverage": "vitest run --coverage --no-file-parallelism",
|
|
29
30
|
"test:watch": "vitest",
|
|
30
31
|
"test:serial": "vitest run --no-file-parallelism",
|
|
31
32
|
"lint": "eslint src/",
|
|
32
33
|
"typecheck": "tsc --noEmit",
|
|
33
|
-
"validate": "npm run typecheck && npm run test:
|
|
34
|
+
"validate": "npm run typecheck && npm run test:coverage && npm run build && npm run lint",
|
|
34
35
|
"check:brewtuibar-release": "node scripts/check-brewtuibar-release.mjs",
|
|
35
36
|
"prepublishOnly": "npm run validate && npm run check:brewtuibar-release",
|
|
36
37
|
"postinstall": "node build/postinstall.js",
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
"@types/react": "^19.2.14",
|
|
62
63
|
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
63
64
|
"@typescript-eslint/parser": "^8.58.0",
|
|
65
|
+
"@vitest/coverage-v8": "4.1.5",
|
|
64
66
|
"eslint": "^10.2.1",
|
|
65
67
|
"husky": "9.1.7",
|
|
66
68
|
"ink-testing-library": "^4.0.0",
|
|
@@ -68,6 +70,6 @@
|
|
|
68
70
|
"tsup": "^8.4.0",
|
|
69
71
|
"tsx": "^4.19.0",
|
|
70
72
|
"typescript": "~6.0.3",
|
|
71
|
-
"vitest": "
|
|
73
|
+
"vitest": "4.1.5"
|
|
72
74
|
}
|
|
73
75
|
}
|
/package/build/{brew-tui-bar-installer-66P3MJVS.js.map → brew-tui-bar-installer-IYAZTPAY.js.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|