@wraps.dev/cli 2.20.1 → 2.20.3

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/cli.js CHANGED
@@ -22592,14 +22592,6 @@ async function init2(options) {
22592
22592
  if (options.quick) {
22593
22593
  progress.info(`Using region: ${pc28.cyan(region)}`);
22594
22594
  }
22595
- let domain = options.domain;
22596
- if (!domain) {
22597
- domain = await promptDomain();
22598
- }
22599
- let vercelConfig;
22600
- if (provider === "vercel") {
22601
- vercelConfig = await promptVercelConfig();
22602
- }
22603
22595
  const existingConnection = await loadConnectionMetadata(
22604
22596
  identity.accountId,
22605
22597
  region
@@ -22609,10 +22601,22 @@ async function init2(options) {
22609
22601
  `Connection already exists for account ${pc28.cyan(identity.accountId)} in region ${pc28.cyan(region)}`
22610
22602
  );
22611
22603
  clack26.log.info(`Created: ${existingConnection.timestamp}`);
22604
+ const domainHint = options.domain ? ` ${options.domain}` : " <domain>";
22605
+ clack26.log.info(
22606
+ `To add another sending domain: ${pc28.cyan(`wraps email domain add${domainHint}`)}`
22607
+ );
22612
22608
  clack26.log.info(`Use ${pc28.cyan("wraps status")} to view current setup`);
22613
22609
  clack26.log.info(`Use ${pc28.cyan("wraps upgrade")} to add more features`);
22614
22610
  process.exit(0);
22615
22611
  }
22612
+ let domain = options.domain;
22613
+ if (!domain) {
22614
+ domain = await promptDomain();
22615
+ }
22616
+ let vercelConfig;
22617
+ if (provider === "vercel") {
22618
+ vercelConfig = await promptVercelConfig();
22619
+ }
22616
22620
  let preset = options.preset;
22617
22621
  if (!preset) {
22618
22622
  preset = options.quick ? "starter" : await promptConfigPreset();
@@ -26588,13 +26592,16 @@ ${pc35.bold("Current Configuration:")}
26588
26592
  value: "hosting-provider",
26589
26593
  label: "Change hosting provider",
26590
26594
  hint: metadata.provider === "vercel" ? `Currently: Vercel (${metadata.vercel?.teamSlug || "configured"})` : `Currently: ${metadata.provider} \u2192 Switch to Vercel OIDC, etc.`
26591
- },
26592
- {
26593
- value: "per-domain-config-sets",
26594
- label: "Per-domain configuration sets",
26595
- hint: "Create dedicated SES config sets for each additional domain"
26596
26595
  }
26597
26596
  );
26597
+ const unmigratedCount = (metadata.services.email?.config.additionalDomains ?? []).filter((d) => !d.configSetName).length;
26598
+ if (unmigratedCount > 0) {
26599
+ upgradeOptions.push({
26600
+ value: "per-domain-config-sets",
26601
+ label: "Per-domain configuration sets",
26602
+ hint: `Migrate ${unmigratedCount} additional domain(s) to dedicated SES config sets`
26603
+ });
26604
+ }
26598
26605
  if (options.action) {
26599
26606
  upgradeAction = options.action;
26600
26607
  } else {