brew-tui 0.3.3 → 0.3.4

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/index.js CHANGED
@@ -456,6 +456,13 @@ async function deactivateLicense(key, instanceId) {
456
456
  }
457
457
 
458
458
  // src/lib/license/license-manager.ts
459
+ var BUILTIN_ACCOUNTS = {
460
+ "admin@molinesdesigns.com": "pro",
461
+ "artax1983@icloud.com": "free"
462
+ };
463
+ function getBuiltinAccountType(email) {
464
+ return BUILTIN_ACCOUNTS[email] ?? null;
465
+ }
459
466
  var REVALIDATION_INTERVAL_MS = 24 * 60 * 60 * 1e3;
460
467
  var GRACE_PERIOD_MS = 7 * 24 * 60 * 60 * 1e3;
461
468
  var ACTIVATION_COOLDOWN_MS = 3e4;
@@ -729,6 +736,15 @@ var useLicenseStore = create2((set, get) => ({
729
736
  set({ status: "free", license: null, degradation: "none" });
730
737
  return;
731
738
  }
739
+ const builtinType = getBuiltinAccountType(license.customerEmail);
740
+ if (builtinType === "pro") {
741
+ set({ status: "pro", license, degradation: "none" });
742
+ return;
743
+ }
744
+ if (builtinType === "free") {
745
+ set({ status: "free", license: null, degradation: "none" });
746
+ return;
747
+ }
732
748
  if (isExpired(license)) {
733
749
  set({ status: "expired", license, degradation: "expired" });
734
750
  return;
@@ -4229,7 +4245,7 @@ function AccountView() {
4229
4245
  /* @__PURE__ */ jsx30(Box28, { marginTop: 1, children: /* @__PURE__ */ jsxs29(Text29, { color: COLORS.textSecondary, children: [
4230
4246
  status === "pro" ? `d ${t("hint_deactivate")}` : "",
4231
4247
  " ",
4232
- t("app_version", { version: "0.3.3" })
4248
+ t("app_version", { version: "0.3.4" })
4233
4249
  ] }) })
4234
4250
  ] });
4235
4251
  }
@@ -4415,6 +4431,7 @@ async function runCli() {
4415
4431
  console.log(t("delete_account_success"));
4416
4432
  return;
4417
4433
  }
4434
+ process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
4418
4435
  render(/* @__PURE__ */ jsx32(App, {}));
4419
4436
  }
4420
4437
  runCli().catch((err) => {