@sakupa/mcp 0.7.34 → 0.7.35
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/bin.js +20 -4
- package/dist/index.js +20 -4
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -370,7 +370,7 @@ var FORBIDDEN_PATH_SEGMENTS = [
|
|
|
370
370
|
var ALLOWED_HIDDEN_PATHS = [".well-known/"];
|
|
371
371
|
|
|
372
372
|
// ../core/dist/domain/version.js
|
|
373
|
-
var SAKUPA_MCP_VERSION = "0.7.
|
|
373
|
+
var SAKUPA_MCP_VERSION = "0.7.35";
|
|
374
374
|
|
|
375
375
|
// ../core/dist/domain/errors.js
|
|
376
376
|
var HTTP_STATUS = {
|
|
@@ -3732,15 +3732,31 @@ function registerLifecycleTools(server, baseCtx) {
|
|
|
3732
3732
|
]
|
|
3733
3733
|
});
|
|
3734
3734
|
}
|
|
3735
|
+
const confirmArguments = {
|
|
3736
|
+
action: "confirm",
|
|
3737
|
+
operationId,
|
|
3738
|
+
confirmation: preview.confirmation
|
|
3739
|
+
};
|
|
3740
|
+
const confirmationJson = JSON.stringify(preview.confirmation);
|
|
3735
3741
|
return structuredToolResult({
|
|
3736
3742
|
schemaVersion: 1,
|
|
3737
3743
|
outcome: "waiting_user",
|
|
3738
3744
|
resultCode: "delete_confirmation_required",
|
|
3739
3745
|
operationId,
|
|
3740
|
-
summary: `Deletion consequences returned, bound to the current site and billing state; after confirmation the content and the permanent URL are unrecoverable. To proceed, call delete
|
|
3741
|
-
data: { preview },
|
|
3746
|
+
summary: `Deletion consequences returned, bound to the current site and billing state; after confirmation the content and the permanent URL are unrecoverable. To proceed, call delete exactly once with these arguments (copy them verbatim; do not infer values): ${JSON.stringify(confirmArguments)}. Exact confirmation object: ${confirmationJson}`,
|
|
3747
|
+
data: { preview, confirmation: preview.confirmation, confirmArguments },
|
|
3748
|
+
userAction: {
|
|
3749
|
+
type: "confirm_in_mcp",
|
|
3750
|
+
expectedOutcome: "Permanently delete this site if its cloud state is unchanged.",
|
|
3751
|
+
resumeWith: { tool: "delete", arguments: confirmArguments }
|
|
3752
|
+
},
|
|
3742
3753
|
nextActions: [
|
|
3743
|
-
{
|
|
3754
|
+
{
|
|
3755
|
+
tool: "delete",
|
|
3756
|
+
arguments: confirmArguments,
|
|
3757
|
+
allowed: true,
|
|
3758
|
+
reasonCode: "exact_confirmation_required"
|
|
3759
|
+
}
|
|
3744
3760
|
]
|
|
3745
3761
|
});
|
|
3746
3762
|
}
|
package/dist/index.js
CHANGED
|
@@ -124,7 +124,7 @@ var FORBIDDEN_PATH_SEGMENTS = [
|
|
|
124
124
|
var ALLOWED_HIDDEN_PATHS = [".well-known/"];
|
|
125
125
|
|
|
126
126
|
// ../core/dist/domain/version.js
|
|
127
|
-
var SAKUPA_MCP_VERSION = "0.7.
|
|
127
|
+
var SAKUPA_MCP_VERSION = "0.7.35";
|
|
128
128
|
|
|
129
129
|
// ../core/dist/domain/errors.js
|
|
130
130
|
var HTTP_STATUS = {
|
|
@@ -3694,15 +3694,31 @@ function registerLifecycleTools(server, baseCtx) {
|
|
|
3694
3694
|
]
|
|
3695
3695
|
});
|
|
3696
3696
|
}
|
|
3697
|
+
const confirmArguments = {
|
|
3698
|
+
action: "confirm",
|
|
3699
|
+
operationId,
|
|
3700
|
+
confirmation: preview.confirmation
|
|
3701
|
+
};
|
|
3702
|
+
const confirmationJson = JSON.stringify(preview.confirmation);
|
|
3697
3703
|
return structuredToolResult({
|
|
3698
3704
|
schemaVersion: 1,
|
|
3699
3705
|
outcome: "waiting_user",
|
|
3700
3706
|
resultCode: "delete_confirmation_required",
|
|
3701
3707
|
operationId,
|
|
3702
|
-
summary: `Deletion consequences returned, bound to the current site and billing state; after confirmation the content and the permanent URL are unrecoverable. To proceed, call delete
|
|
3703
|
-
data: { preview },
|
|
3708
|
+
summary: `Deletion consequences returned, bound to the current site and billing state; after confirmation the content and the permanent URL are unrecoverable. To proceed, call delete exactly once with these arguments (copy them verbatim; do not infer values): ${JSON.stringify(confirmArguments)}. Exact confirmation object: ${confirmationJson}`,
|
|
3709
|
+
data: { preview, confirmation: preview.confirmation, confirmArguments },
|
|
3710
|
+
userAction: {
|
|
3711
|
+
type: "confirm_in_mcp",
|
|
3712
|
+
expectedOutcome: "Permanently delete this site if its cloud state is unchanged.",
|
|
3713
|
+
resumeWith: { tool: "delete", arguments: confirmArguments }
|
|
3714
|
+
},
|
|
3704
3715
|
nextActions: [
|
|
3705
|
-
{
|
|
3716
|
+
{
|
|
3717
|
+
tool: "delete",
|
|
3718
|
+
arguments: confirmArguments,
|
|
3719
|
+
allowed: true,
|
|
3720
|
+
reasonCode: "exact_confirmation_required"
|
|
3721
|
+
}
|
|
3706
3722
|
]
|
|
3707
3723
|
});
|
|
3708
3724
|
}
|