@wraps.dev/cli 2.17.1 → 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
|
@@ -23652,6 +23652,11 @@ ${pc30.bold("Current Configuration:")}
|
|
|
23652
23652
|
value: "smtp-credentials",
|
|
23653
23653
|
label: metadata.services.email?.smtpCredentials?.enabled ? "Manage SMTP credentials" : "Enable SMTP credentials",
|
|
23654
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.`
|
|
23655
23660
|
}
|
|
23656
23661
|
);
|
|
23657
23662
|
upgradeAction = await clack29.select({
|
|
@@ -24731,6 +24736,48 @@ ${pc30.bold("SMTP Credentials for Legacy Systems")}
|
|
|
24731
24736
|
newPreset = void 0;
|
|
24732
24737
|
break;
|
|
24733
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
|
+
}
|
|
24734
24781
|
}
|
|
24735
24782
|
const newCostData = calculateCosts(updatedConfig, 5e4);
|
|
24736
24783
|
const costDiff = newCostData.total.monthly - currentCostData.total.monthly;
|