@wraps.dev/cli 2.17.0 → 2.17.2

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
@@ -10231,6 +10231,7 @@ async function withLockRetry(fn, options) {
10231
10231
 
10232
10232
  // src/commands/cdn/destroy.ts
10233
10233
  async function cdnDestroy(options) {
10234
+ await ensurePulumiInstalled();
10234
10235
  const startTime = Date.now();
10235
10236
  if (isJsonMode() && !options.force) {
10236
10237
  throw new WrapsError(
@@ -12146,6 +12147,7 @@ import * as clack11 from "@clack/prompts";
12146
12147
  import * as pulumi6 from "@pulumi/pulumi";
12147
12148
  import pc12 from "picocolors";
12148
12149
  async function cdnStatus(options) {
12150
+ await ensurePulumiInstalled();
12149
12151
  const startTime = Date.now();
12150
12152
  const progress = new DeploymentProgress();
12151
12153
  if (!isJsonMode()) {
@@ -12319,6 +12321,7 @@ init_json_output();
12319
12321
  init_metadata();
12320
12322
  init_output();
12321
12323
  async function cdnSync(options) {
12324
+ await ensurePulumiInstalled();
12322
12325
  const startTime = Date.now();
12323
12326
  const progress = new DeploymentProgress();
12324
12327
  if (!isJsonMode()) {
@@ -12498,6 +12501,7 @@ init_json_output();
12498
12501
  init_metadata();
12499
12502
  init_output();
12500
12503
  async function cdnUpgrade(options) {
12504
+ await ensurePulumiInstalled();
12501
12505
  const startTime = Date.now();
12502
12506
  const progress = new DeploymentProgress();
12503
12507
  if (!isJsonMode()) {
@@ -12850,6 +12854,7 @@ async function checkDistributionStatus(distributionId, region) {
12850
12854
  }
12851
12855
  }
12852
12856
  async function cdnVerify(options) {
12857
+ await ensurePulumiInstalled();
12853
12858
  const startTime = Date.now();
12854
12859
  const progress = new DeploymentProgress();
12855
12860
  if (!isJsonMode()) {
@@ -19818,6 +19823,7 @@ async function inboundDestroy(options) {
19818
19823
  clack20.intro(pc21.bold("Inbound Email Infrastructure Teardown"));
19819
19824
  }
19820
19825
  const progress = new DeploymentProgress();
19826
+ await ensurePulumiInstalled();
19821
19827
  const identity = await progress.execute(
19822
19828
  "Validating AWS credentials",
19823
19829
  async () => validateAWSCredentials()
@@ -21326,6 +21332,7 @@ async function restore(options) {
21326
21332
  );
21327
21333
  }
21328
21334
  const progress = new DeploymentProgress();
21335
+ await ensurePulumiInstalled();
21329
21336
  const identity = await progress.execute(
21330
21337
  "Validating AWS credentials",
21331
21338
  async () => validateAWSCredentials()
@@ -21507,6 +21514,7 @@ import * as clack25 from "@clack/prompts";
21507
21514
  import * as pulumi19 from "@pulumi/pulumi";
21508
21515
  import pc26 from "picocolors";
21509
21516
  async function emailStatus(options) {
21517
+ await ensurePulumiInstalled();
21510
21518
  const startTime = Date.now();
21511
21519
  const progress = new DeploymentProgress();
21512
21520
  if (!isJsonMode()) {
@@ -23644,6 +23652,11 @@ ${pc30.bold("Current Configuration:")}
23644
23652
  value: "smtp-credentials",
23645
23653
  label: metadata.services.email?.smtpCredentials?.enabled ? "Manage SMTP credentials" : "Enable SMTP credentials",
23646
23654
  hint: metadata.services.email?.smtpCredentials?.enabled ? "Rotate or disable credentials" : "Generate credentials for PHP, WordPress, etc."
23655
+ },
23656
+ {
23657
+ value: "hosting-provider",
23658
+ label: "Change hosting provider",
23659
+ hint: metadata.provider === "vercel" ? `Currently: Vercel (${metadata.vercel?.teamSlug || "configured"})` : `Currently: ${metadata.provider} \u2192 Switch to Vercel OIDC, etc.`
23647
23660
  }
23648
23661
  );
23649
23662
  upgradeAction = await clack29.select({
@@ -24723,6 +24736,48 @@ ${pc30.bold("SMTP Credentials for Legacy Systems")}
24723
24736
  newPreset = void 0;
24724
24737
  break;
24725
24738
  }
24739
+ case "hosting-provider": {
24740
+ const newProvider = await clack29.select({
24741
+ message: "Where is your app hosted?",
24742
+ options: [
24743
+ {
24744
+ value: "aws",
24745
+ label: "AWS (Lambda/ECS/EC2)",
24746
+ hint: "Uses IAM roles automatically"
24747
+ },
24748
+ {
24749
+ value: "vercel",
24750
+ label: "Vercel",
24751
+ hint: "Uses OIDC (no AWS credentials needed)"
24752
+ },
24753
+ {
24754
+ value: "railway",
24755
+ label: "Railway",
24756
+ hint: "Requires AWS credentials"
24757
+ },
24758
+ {
24759
+ value: "other",
24760
+ label: "Other",
24761
+ hint: "Will use AWS access keys"
24762
+ }
24763
+ ]
24764
+ });
24765
+ if (clack29.isCancel(newProvider)) {
24766
+ clack29.cancel("Upgrade cancelled.");
24767
+ process.exit(0);
24768
+ }
24769
+ if (newProvider === metadata.provider) {
24770
+ clack29.log.info("Provider unchanged \u2014 no changes needed.");
24771
+ process.exit(0);
24772
+ }
24773
+ metadata.provider = newProvider;
24774
+ if (newProvider === "vercel") {
24775
+ metadata.vercel = await promptVercelConfig();
24776
+ } else {
24777
+ metadata.vercel = void 0;
24778
+ }
24779
+ break;
24780
+ }
24726
24781
  }
24727
24782
  const newCostData = calculateCosts(updatedConfig, 5e4);
24728
24783
  const costDiff = newCostData.total.monthly - currentCostData.total.monthly;
@@ -31690,6 +31745,7 @@ init_fs();
31690
31745
  init_metadata();
31691
31746
  init_output();
31692
31747
  async function dashboard(options) {
31748
+ await ensurePulumiInstalled();
31693
31749
  clack36.intro(pc39.bold("Wraps Dashboard"));
31694
31750
  const progress = new DeploymentProgress();
31695
31751
  const identity = await progress.execute(
@@ -31926,6 +31982,7 @@ import * as clack38 from "@clack/prompts";
31926
31982
  import * as pulumi23 from "@pulumi/pulumi";
31927
31983
  import pc41 from "picocolors";
31928
31984
  async function status(_options) {
31985
+ await ensurePulumiInstalled();
31929
31986
  const startTime = Date.now();
31930
31987
  const progress = new DeploymentProgress();
31931
31988
  if (!isJsonMode()) {
@@ -32871,6 +32928,7 @@ init_json_output();
32871
32928
  init_metadata();
32872
32929
  init_output();
32873
32930
  async function smsDestroy(options) {
32931
+ await ensurePulumiInstalled();
32874
32932
  const startTime = Date.now();
32875
32933
  if (isJsonMode() && !options.force) {
32876
32934
  throw new WrapsError(
@@ -34204,6 +34262,7 @@ function displaySMSStatus(options) {
34204
34262
  clack42.note(lines.join("\n"), "SMS Status");
34205
34263
  }
34206
34264
  async function smsStatus(_options) {
34265
+ await ensurePulumiInstalled();
34207
34266
  const startTime = Date.now();
34208
34267
  const progress = new DeploymentProgress();
34209
34268
  if (!isJsonMode()) {
@@ -34283,6 +34342,7 @@ init_json_output();
34283
34342
  init_metadata();
34284
34343
  init_output();
34285
34344
  async function smsSync(options) {
34345
+ await ensurePulumiInstalled();
34286
34346
  const startTime = Date.now();
34287
34347
  if (!isJsonMode()) {
34288
34348
  clack43.intro(pc46.bold("Wraps SMS Infrastructure Sync"));