@bettercms-ai/mcp 0.79.0 → 0.79.1
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 +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3017,6 +3017,7 @@ var PARAM_TEXT = {
|
|
|
3017
3017
|
runtimeBundle: "instead of pageId: the server-app bundle cleanup",
|
|
3018
3018
|
pageRef: "page id or path ('/de/about'); a bare slug only when one page has it",
|
|
3019
3019
|
editorSetupForce: "re-run a setup already ready for the live build",
|
|
3020
|
+
nextStepsFull: "true = every list uncut",
|
|
3020
3021
|
editorSetupCheck: "true = only report the state; starts nothing",
|
|
3021
3022
|
waitSeconds: "wait up to N seconds (max 50) for it to finish; call again while it runs",
|
|
3022
3023
|
editorSetupExempt: "instead of running: record setup-gate exceptions [{ route, check, reason, note }]; reason null removes one. Reasons: get_next_steps `receipt.gate`",
|
|
@@ -3067,6 +3068,10 @@ var AUTHORING_DESCRIPTION = "Record which authoring architecture this site uses:
|
|
|
3067
3068
|
var MEDIA_DEFAULT_NOTE = "Leave the default (the CDN) unless the owner asked otherwise; never ask.";
|
|
3068
3069
|
var REBUILD_DESCRIPTION = "Rebuild from the connected repository, as the dashboard's Rebuild does. Use it when a get_next_steps fix names it, or after a push that started no build; then get_deploy_status { waitSeconds: 50 } until live, and editor_setup. 409 NOT_QUEUED: no repository (deploy_project the working tree) or publishing held.";
|
|
3069
3070
|
var withWait = (path, waitSeconds) => typeof waitSeconds === "number" && waitSeconds > 0 ? `${path}?wait=${Math.min(Math.round(waitSeconds), 50)}` : path;
|
|
3071
|
+
var nextStepsPath = (path, a) => {
|
|
3072
|
+
const q = [a.importJunk === true ? "importJunk=true" : "", a.full === true ? "full=true" : ""].filter(Boolean).join("&");
|
|
3073
|
+
return q ? `${path}?${q}` : path;
|
|
3074
|
+
};
|
|
3070
3075
|
|
|
3071
3076
|
// src/entry-query.ts
|
|
3072
3077
|
var text = (v) => Array.isArray(v) ? v.map(String).join(",") : String(v);
|
|
@@ -5258,10 +5263,11 @@ ${d.outline}` : "Proposed Content structure.", d);
|
|
|
5258
5263
|
"Get what to do next",
|
|
5259
5264
|
NEXT_STEPS_DESCRIPTION,
|
|
5260
5265
|
z.object({
|
|
5261
|
-
importJunk: z.boolean().optional().describe("true = add rule import-junk: what an old import left, with removal calls")
|
|
5266
|
+
importJunk: z.boolean().optional().describe("true = add rule import-junk: what an old import left, with removal calls"),
|
|
5267
|
+
full: z.boolean().optional().describe(PARAM_TEXT.nextStepsFull)
|
|
5262
5268
|
}).shape,
|
|
5263
5269
|
// The whole body: `receipt` rides beside `data`, and `data()` would drop it.
|
|
5264
|
-
async (c, a) => ok("Next steps.", await c.fetchJSON(c.url(`/management/insights/next-steps
|
|
5270
|
+
async (c, a) => ok("Next steps.", await c.fetchJSON(c.url(nextStepsPath(`/management/insights/next-steps`, a)), { method: "GET" }))
|
|
5265
5271
|
),
|
|
5266
5272
|
def(
|
|
5267
5273
|
"get_binding_report",
|