betterstart-cli 0.0.84 → 0.0.85

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.
@@ -30,7 +30,7 @@ function DialogOverlay({
30
30
  <DialogPrimitive.Overlay
31
31
  data-slot="dialog-overlay"
32
32
  className={cn(
33
- 'fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0',
33
+ 'fixed inset-0 isolate z-200 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0',
34
34
  className
35
35
  )}
36
36
  {...props}
@@ -52,7 +52,7 @@ function DialogContent({
52
52
  <DialogPrimitive.Content
53
53
  data-slot="dialog-content"
54
54
  className={cn(
55
- 'fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-0 rounded-sm text-sm text-popover-foreground ring-1 ring-foreground/5 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 overflow-hidden bg-card',
55
+ 'fixed top-1/2 left-1/2 z-200 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-0 rounded-sm text-sm text-popover-foreground ring-1 ring-foreground/5 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 overflow-hidden bg-card',
56
56
  className
57
57
  )}
58
58
  {...props}
@@ -106,7 +106,7 @@ function DialogFooter({
106
106
  <div
107
107
  data-slot="dialog-footer"
108
108
  className={cn(
109
- 'flex flex-col-reverse gap-1 px-6 pt-4 items-center pb-5 bg-muted sm:flex-row sm:justify-between',
109
+ 'flex flex-col-reverse gap-1 px-6 pt-2 items-center pb-3 bg-muted sm:flex-row sm:justify-between',
110
110
  className
111
111
  )}
112
112
  {...props}
package/dist/cli.js CHANGED
@@ -26300,6 +26300,8 @@ function ensureVercelJsonFramework(cwd) {
26300
26300
  }
26301
26301
  function parseDeployedUrl(stdout, stderr) {
26302
26302
  const plainErr = stripVTControlCharacters4(stderr);
26303
+ const aliased = plainErr.match(/Aliased:\s+(https:\/\/\S+)/i)?.[1];
26304
+ if (aliased) return aliased;
26303
26305
  const production = plainErr.match(/Production:\s+(https:\/\/\S+)/i)?.[1];
26304
26306
  if (production) return production;
26305
26307
  const fromStdout = stripVTControlCharacters4(stdout).match(/https:\/\/\S+/)?.[0];
@@ -26368,30 +26370,44 @@ function findAcceptTermsUrl(line) {
26368
26370
  async function provisionNeonInteractive(runner, cwd, options) {
26369
26371
  const quietSpinner = spinner2();
26370
26372
  quietSpinner.start("Creating your Neon database");
26371
- let waitingOnTerms = false;
26373
+ let termsNotice;
26374
+ let termsResolved = false;
26375
+ const settleTermsNotice = () => {
26376
+ if (!termsNotice || termsResolved) return;
26377
+ termsResolved = true;
26378
+ quietSpinner.clear();
26379
+ eraseRows(termsNotice.rows);
26380
+ p20.log.step(termsNotice.text);
26381
+ };
26372
26382
  const quiet = await runVercel(runner, neonAddArgs(options), {
26373
26383
  cwd,
26374
26384
  mode: "capture",
26375
26385
  timeoutMs: PROVISION_TIMEOUT_MS2,
26376
26386
  env: options.env,
26377
26387
  onOutputLine: (line, run) => {
26378
- if (!waitingOnTerms) {
26388
+ if (!termsNotice) {
26379
26389
  const termsUrl = findAcceptTermsUrl(line);
26380
26390
  if (!termsUrl) return;
26381
- waitingOnTerms = true;
26382
26391
  run.extendTimeout(INTERACTIVE_PROVISION_TIMEOUT_MS2);
26392
+ const message = "Please accept the Neon terms in your browser";
26393
+ termsNotice = {
26394
+ text: `${message}
26395
+ ${pc7.dim(termsUrl)}`,
26396
+ rows: clackLogRows(message) + clackLogRows(termsUrl) - 1
26397
+ };
26383
26398
  quietSpinner.clear();
26384
- p20.log.info(`Please accept the Neon terms in your browser
26385
- ${pc7.dim(termsUrl)}`);
26399
+ p20.log.info(termsNotice.text);
26386
26400
  quietSpinner.start("Waiting for the terms to be accepted");
26387
26401
  return;
26388
26402
  }
26389
26403
  if (TERMS_ACCEPTED_PATTERN.test(line)) {
26390
- quietSpinner.message("Creating your Neon database");
26404
+ settleTermsNotice();
26405
+ quietSpinner.start("Creating your Neon database");
26391
26406
  }
26392
26407
  }
26393
26408
  });
26394
26409
  if (quiet.success) {
26410
+ settleTermsNotice();
26395
26411
  quietSpinner.clear();
26396
26412
  return readNeonProvisionInfo(quiet.stdout);
26397
26413
  }