@mp-lb/forum-cli 0.1.48 → 0.1.49
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/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18766,7 +18766,8 @@ var renameStoreInputSchema = external_exports.object({
|
|
|
18766
18766
|
slug: storeSlugSchema
|
|
18767
18767
|
});
|
|
18768
18768
|
var deleteStoreInputSchema = external_exports.object({
|
|
18769
|
-
storeId: storeUuidSchema
|
|
18769
|
+
storeId: storeUuidSchema,
|
|
18770
|
+
confirmSlug: storeSlugSchema
|
|
18770
18771
|
});
|
|
18771
18772
|
var moveOwnStoreToWorkspaceInputSchema = external_exports.object({
|
|
18772
18773
|
storeId: storeUuidSchema,
|
|
@@ -33457,7 +33458,7 @@ var storeInfo = async (storeInput, listStoresMetadata, json2) => {
|
|
|
33457
33458
|
const segments2 = storeInput.split("/").map((segment) => segment.trim()).filter(Boolean);
|
|
33458
33459
|
const storeSlug = segments2[segments2.length - 1] ?? storeInput;
|
|
33459
33460
|
const store = (await listStoresMetadata()).find(
|
|
33460
|
-
(candidate) =>
|
|
33461
|
+
(candidate) => candidate.slug === storeSlug || candidate.id === storeInput
|
|
33461
33462
|
);
|
|
33462
33463
|
if (!store) {
|
|
33463
33464
|
throw new Error(`Store not found: ${displayStoreName(storeInput)}`);
|
|
@@ -35556,12 +35557,12 @@ var deleteStore = async (storeInput, listStoresMetadata, deleteStoreById) => {
|
|
|
35556
35557
|
const segments2 = storeInput.split("/").map((segment) => segment.trim()).filter(Boolean);
|
|
35557
35558
|
const storeSlug = segments2[segments2.length - 1] ?? storeInput;
|
|
35558
35559
|
const store = (await listStoresMetadata()).find(
|
|
35559
|
-
(candidate) =>
|
|
35560
|
+
(candidate) => candidate.slug === storeSlug || candidate.id === storeInput
|
|
35560
35561
|
);
|
|
35561
35562
|
if (!store) {
|
|
35562
35563
|
throw new Error(`Store not found: ${displayStoreName(storeInput)}`);
|
|
35563
35564
|
}
|
|
35564
|
-
await deleteStoreById({ storeId: store.id });
|
|
35565
|
+
await deleteStoreById({ storeId: store.id, confirmSlug: store.slug });
|
|
35565
35566
|
return store.slug;
|
|
35566
35567
|
};
|
|
35567
35568
|
var formatCheckoutSummary = (verb, result, options2) => {
|
|
@@ -37741,7 +37742,7 @@ var main = async (argv = process.argv.slice(2)) => {
|
|
|
37741
37742
|
const confirmed = await confirmYesNo({
|
|
37742
37743
|
assumeYes: parsed.yes,
|
|
37743
37744
|
nonInteractiveMessage: "Refusing to delete a store without interactive confirmation. Rerun with --yes to confirm in a non-interactive shell.",
|
|
37744
|
-
prompt: `Delete store ${displayStoreName(storeInput)}? This cannot be undone. [y/N] `
|
|
37745
|
+
prompt: `Delete store ${displayStoreName(storeInput)}? All files, history and trash will be permanently deleted. Archive instead to keep them. This cannot be undone. [y/N] `
|
|
37745
37746
|
});
|
|
37746
37747
|
if (!confirmed) {
|
|
37747
37748
|
renderOutput("Aborted.");
|