brew-tui 2.1.1 → 2.2.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.
Files changed (30) hide show
  1. package/build/brew-tui-bar-installer-ACAVC66L.js +20 -0
  2. package/build/{brewfile-manager-QFZJBIAF.js → brewfile-manager-HWTPBXPO.js} +5 -5
  3. package/build/{chunk-7SXTRYN3.js → chunk-F2S7TGCS.js} +5 -1
  4. package/build/chunk-F2S7TGCS.js.map +1 -0
  5. package/build/{brew-tui-bar-installer-IPIYV2NB.js → chunk-HKKLLJPO.js} +26 -4
  6. package/build/{brew-tui-bar-installer-IPIYV2NB.js.map → chunk-HKKLLJPO.js.map} +1 -1
  7. package/build/{chunk-DKOAK4RV.js → chunk-OXDZ4DCK.js} +4 -4
  8. package/build/{chunk-MPQVKFZX.js → chunk-S3NRCC23.js} +2 -2
  9. package/build/{chunk-FYGQWTJE.js → chunk-Y45AXONF.js} +8 -8
  10. package/build/{chunk-5QK32LXB.js → chunk-ZC23DNMK.js} +11 -11
  11. package/build/{compliance-checker-KFXSTQBA.js → compliance-checker-KQFIYS5Q.js} +4 -4
  12. package/build/index.js +29 -46
  13. package/build/index.js.map +1 -1
  14. package/build/postinstall.js +29 -0
  15. package/build/postinstall.js.map +1 -0
  16. package/build/{snapshot-OLD75OWU.js → snapshot-26BNOI3O.js} +3 -3
  17. package/build/{sync-engine-D5O2JTMM.js → sync-engine-G5ML7TJ5.js} +6 -6
  18. package/build/sync-engine-G5ML7TJ5.js.map +1 -0
  19. package/build/{version-check-SJ7OHYOX.js → version-check-HXQJF64V.js} +2 -2
  20. package/package.json +2 -1
  21. package/build/chunk-7SXTRYN3.js.map +0 -1
  22. /package/build/{brewfile-manager-QFZJBIAF.js.map → brew-tui-bar-installer-ACAVC66L.js.map} +0 -0
  23. /package/build/{compliance-checker-KFXSTQBA.js.map → brewfile-manager-HWTPBXPO.js.map} +0 -0
  24. /package/build/{chunk-DKOAK4RV.js.map → chunk-OXDZ4DCK.js.map} +0 -0
  25. /package/build/{chunk-MPQVKFZX.js.map → chunk-S3NRCC23.js.map} +0 -0
  26. /package/build/{chunk-FYGQWTJE.js.map → chunk-Y45AXONF.js.map} +0 -0
  27. /package/build/{chunk-5QK32LXB.js.map → chunk-ZC23DNMK.js.map} +0 -0
  28. /package/build/{snapshot-OLD75OWU.js.map → compliance-checker-KQFIYS5Q.js.map} +0 -0
  29. /package/build/{sync-engine-D5O2JTMM.js.map → snapshot-26BNOI3O.js.map} +0 -0
  30. /package/build/{version-check-SJ7OHYOX.js.map → version-check-HXQJF64V.js.map} +0 -0
package/build/index.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  uninstallPackage,
25
25
  unpinPackage,
26
26
  validatePackageName
27
- } from "./chunk-FYGQWTJE.js";
27
+ } from "./chunk-Y45AXONF.js";
28
28
  import {
29
29
  activate,
30
30
  applyConflictResolutions,
@@ -38,17 +38,29 @@ import {
38
38
  readSyncEnvelope,
39
39
  revalidate,
40
40
  sync
41
- } from "./chunk-5QK32LXB.js";
41
+ } from "./chunk-ZC23DNMK.js";
42
+ import {
43
+ fetchWithRetry
44
+ } from "./chunk-NRRQECXA.js";
45
+ import {
46
+ getLocale,
47
+ t,
48
+ tp,
49
+ useLocaleStore
50
+ } from "./chunk-F2S7TGCS.js";
42
51
  import {
43
52
  checkCompliance
44
- } from "./chunk-MPQVKFZX.js";
53
+ } from "./chunk-S3NRCC23.js";
45
54
  import {
46
55
  captureSnapshot,
47
56
  execBrew,
48
57
  loadSnapshots,
49
58
  saveSnapshot,
50
59
  streamBrew
51
- } from "./chunk-DKOAK4RV.js";
60
+ } from "./chunk-OXDZ4DCK.js";
61
+ import {
62
+ logger
63
+ } from "./chunk-KDHEUNRI.js";
52
64
  import {
53
65
  exportReport,
54
66
  loadPolicy
@@ -67,18 +79,6 @@ import {
67
79
  getMachineId,
68
80
  writeLastAction
69
81
  } from "./chunk-LFGDNAXH.js";
70
- import {
71
- fetchWithRetry
72
- } from "./chunk-NRRQECXA.js";
73
- import {
74
- getLocale,
75
- t,
76
- tp,
77
- useLocaleStore
78
- } from "./chunk-7SXTRYN3.js";
79
- import {
80
- logger
81
- } from "./chunk-KDHEUNRI.js";
82
82
 
83
83
  // src/index.tsx
84
84
  import { createInterface } from "readline/promises";
@@ -2007,7 +2007,7 @@ function useBrewStream() {
2007
2007
  }
2008
2008
  const MUTATING_COMMANDS = /* @__PURE__ */ new Set(["install", "uninstall", "upgrade", "pin", "unpin", "tap", "untap"]);
2009
2009
  if (!cancelRef.current && MUTATING_COMMANDS.has(args[0] ?? "")) {
2010
- void import("./snapshot-OLD75OWU.js").then(({ captureSnapshot: captureSnapshot2, saveSnapshot: saveSnapshot2 }) => {
2010
+ void import("./snapshot-26BNOI3O.js").then(({ captureSnapshot: captureSnapshot2, saveSnapshot: saveSnapshot2 }) => {
2011
2011
  captureSnapshot2().then((s) => saveSnapshot2(s)).catch((err) => logger.warn("snapshot: capture/save failed", { error: String(err) }));
2012
2012
  });
2013
2013
  }
@@ -4668,7 +4668,7 @@ function AccountView() {
4668
4668
  status === "pro" || status === "team" || status === "expired" ? `v ${t("hint_revalidate")} ` : "",
4669
4669
  revalidating ? t("account_revalidating") : "",
4670
4670
  " ",
4671
- t("app_version", { version: "2.1.1" })
4671
+ t("app_version", { version: "2.2.1" })
4672
4672
  ] }) })
4673
4673
  ] });
4674
4674
  }
@@ -6176,7 +6176,7 @@ async function reportError(err, context = {}) {
6176
6176
  const config = await resolveConfig();
6177
6177
  if (!config.enabled || !config.endpoint) return;
6178
6178
  const machineId = await getMachineId();
6179
- const version = true ? "2.1.1" : "unknown";
6179
+ const version = true ? "2.2.1" : "unknown";
6180
6180
  await postReport(buildReport("error", err, context, machineId, version), config);
6181
6181
  }
6182
6182
  async function installCrashReporter() {
@@ -6185,7 +6185,7 @@ async function installCrashReporter() {
6185
6185
  if (!config.enabled || !config.endpoint) return;
6186
6186
  _installed = true;
6187
6187
  const machineId = await getMachineId();
6188
- const version = true ? "2.1.1" : "unknown";
6188
+ const version = true ? "2.2.1" : "unknown";
6189
6189
  process.on("uncaughtException", (err) => {
6190
6190
  void postReport(buildReport("fatal", err, { kind: "uncaughtException" }, machineId, version), config);
6191
6191
  });
@@ -6200,7 +6200,7 @@ import { jsx as jsx39 } from "react/jsx-runtime";
6200
6200
  var [, , command, arg] = process.argv;
6201
6201
  async function runCli() {
6202
6202
  if (command === "--version" || command === "-v" || command === "version") {
6203
- process.stdout.write("2.1.1\n");
6203
+ process.stdout.write("2.2.1\n");
6204
6204
  return;
6205
6205
  }
6206
6206
  await ensureDataDirs();
@@ -6296,7 +6296,7 @@ async function runCli() {
6296
6296
  }
6297
6297
  if (isPro) {
6298
6298
  try {
6299
- const { loadSnapshots: loadSnapshots2 } = await import("./snapshot-OLD75OWU.js");
6299
+ const { loadSnapshots: loadSnapshots2 } = await import("./snapshot-26BNOI3O.js");
6300
6300
  const snapshots = await loadSnapshots2();
6301
6301
  if (snapshots.length > 0) {
6302
6302
  const latest = snapshots[0];
@@ -6308,7 +6308,7 @@ Snapshots: ${snapshots.length} (latest: ${latest ? formatDate(latest.capturedAt)
6308
6308
  } catch {
6309
6309
  }
6310
6310
  try {
6311
- const { loadBrewfile: loadBrewfile2, computeDrift: computeDrift2 } = await import("./brewfile-manager-QFZJBIAF.js");
6311
+ const { loadBrewfile: loadBrewfile2, computeDrift: computeDrift2 } = await import("./brewfile-manager-HWTPBXPO.js");
6312
6312
  const schema = await loadBrewfile2();
6313
6313
  if (schema) {
6314
6314
  const drift = await computeDrift2(schema);
@@ -6317,7 +6317,7 @@ Snapshots: ${snapshots.length} (latest: ${latest ? formatDate(latest.capturedAt)
6317
6317
  } catch {
6318
6318
  }
6319
6319
  try {
6320
- const { loadSyncConfig: loadSyncConfig2 } = await import("./sync-engine-D5O2JTMM.js");
6320
+ const { loadSyncConfig: loadSyncConfig2 } = await import("./sync-engine-G5ML7TJ5.js");
6321
6321
  const syncConfig = await loadSyncConfig2();
6322
6322
  if (syncConfig?.lastSync) {
6323
6323
  console.log(`Sync: last sync ${formatDate(syncConfig.lastSync)}`);
@@ -6326,7 +6326,7 @@ Snapshots: ${snapshots.length} (latest: ${latest ? formatDate(latest.capturedAt)
6326
6326
  }
6327
6327
  try {
6328
6328
  const { loadPolicy: loadPolicy2 } = await import("./policy-io-P5YIH6C7.js");
6329
- const { checkCompliance: checkCompliance2 } = await import("./compliance-checker-KFXSTQBA.js");
6329
+ const { checkCompliance: checkCompliance2 } = await import("./compliance-checker-KQFIYS5Q.js");
6330
6330
  const policy = await loadPolicy2(`${process.env["HOME"] ?? "~"}/.brew-tui/policy.yaml`).catch(() => null);
6331
6331
  if (policy) {
6332
6332
  const report = await checkCompliance2(policy, true);
@@ -6341,7 +6341,7 @@ Snapshots: ${snapshots.length} (latest: ${latest ? formatDate(latest.capturedAt)
6341
6341
  if (command === "install-brewbar") {
6342
6342
  console.warn(t("cli_brewtuibarLegacyAlias", { legacy: command, current: "install-brew-tui-bar" }));
6343
6343
  }
6344
- const { installBrewTUIBar } = await import("./brew-tui-bar-installer-IPIYV2NB.js");
6344
+ const { installBrewTUIBar } = await import("./brew-tui-bar-installer-ACAVC66L.js");
6345
6345
  try {
6346
6346
  console.log(t("cli_brewtuibarInstalling"));
6347
6347
  await installBrewTUIBar(false, arg === "--force");
@@ -6356,7 +6356,7 @@ Snapshots: ${snapshots.length} (latest: ${latest ? formatDate(latest.capturedAt)
6356
6356
  if (command === "uninstall-brewbar") {
6357
6357
  console.warn(t("cli_brewtuibarLegacyAlias", { legacy: command, current: "uninstall-brew-tui-bar" }));
6358
6358
  }
6359
- const { uninstallBrewTUIBar } = await import("./brew-tui-bar-installer-IPIYV2NB.js");
6359
+ const { uninstallBrewTUIBar } = await import("./brew-tui-bar-installer-ACAVC66L.js");
6360
6360
  try {
6361
6361
  await uninstallBrewTUIBar();
6362
6362
  console.log(t("cli_brewtuibarUninstalled"));
@@ -6386,25 +6386,8 @@ Snapshots: ${snapshots.length} (latest: ${latest ? formatDate(latest.capturedAt)
6386
6386
  async function ensureBrewTUIBarRunning() {
6387
6387
  if (process.platform !== "darwin") return;
6388
6388
  await useLicenseStore.getState().initialize();
6389
- const { isBrewTUIBarInstalled, installBrewTUIBar, launchBrewTUIBar } = await import("./brew-tui-bar-installer-IPIYV2NB.js");
6390
- const { checkBrewTUIBarVersion } = await import("./version-check-SJ7OHYOX.js");
6391
- try {
6392
- if (!await isBrewTUIBarInstalled()) {
6393
- console.log(t("cli_brewtuibarInstalling"));
6394
- await installBrewTUIBar(false, false);
6395
- console.log(t("cli_brewtuibarInstalled"));
6396
- } else {
6397
- const status = await checkBrewTUIBarVersion();
6398
- if (status.kind === "outdated") {
6399
- console.log(t("cli_brewtuibarUpdating", { installed: status.installed, expected: status.expected }));
6400
- await installBrewTUIBar(false, true);
6401
- console.log(t("cli_brewtuibarInstalled"));
6402
- }
6403
- }
6404
- await launchBrewTUIBar();
6405
- } catch (err) {
6406
- console.warn(t("cli_brewtuibarAutoFailed", { error: err instanceof Error ? err.message : String(err) }));
6407
- }
6389
+ const { syncAndLaunchBrewTUIBar } = await import("./brew-tui-bar-installer-ACAVC66L.js");
6390
+ await syncAndLaunchBrewTUIBar();
6408
6391
  }
6409
6392
  runCli().catch((err) => {
6410
6393
  console.error(err instanceof Error ? err.message : String(err));