@erdoai/cli 0.104.1 → 0.105.0
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 +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5203,8 +5203,8 @@ pagesCmd.command("restore <id>").description("Restore a previously deleted page
|
|
|
5203
5203
|
}
|
|
5204
5204
|
});
|
|
5205
5205
|
pagesCmd.command("monitor <id>").description(
|
|
5206
|
-
"Control health monitoring for a published page: --exclude stops all probing (dashboards, trackers, demos); --ack <sig> acknowledges a known failure class (mobile:overflow, desktop:resource, visual:defect, visual:score) so it stops alerting and never auto-repairs while a NEW failure class still alerts"
|
|
5207
|
-
).option("--exclude [reason]", "exclude this page from monitoring entirely (optional reason)").option("--include", "re-include the page in monitoring").option("--ack <sigs>", "comma-separated failure signatures to acknowledge (e.g. mobile:overflow,desktop:resource,visual:defect,visual:score)").option("--unack <sigs>", "comma-separated failure signatures to un-acknowledge").option("--reset", "clear all acknowledged failure signatures").action(async (id, opts) => {
|
|
5206
|
+
"Control health monitoring for a published page: --exclude stops all probing (dashboards, trackers, demos); --canary opts a PRIVATE page into the browser canary (renders it as its owner sees it and reports a broken render to the owner); --ack <sig> acknowledges a known failure class (mobile:overflow, desktop:resource, visual:defect, visual:score) so it stops alerting and never auto-repairs while a NEW failure class still alerts"
|
|
5207
|
+
).option("--exclude [reason]", "exclude this page from monitoring entirely (optional reason)").option("--include", "re-include the page in monitoring").option("--canary", "opt this private page into the browser canary").option("--no-canary", "opt this private page out of the browser canary").option("--ack <sigs>", "comma-separated failure signatures to acknowledge (e.g. mobile:overflow,desktop:resource,visual:defect,visual:score)").option("--unack <sigs>", "comma-separated failure signatures to un-acknowledge").option("--reset", "clear all acknowledged failure signatures").action(async (id, opts) => {
|
|
5208
5208
|
try {
|
|
5209
5209
|
const api = new ErdoClient();
|
|
5210
5210
|
const body = {};
|
|
@@ -5213,6 +5213,7 @@ pagesCmd.command("monitor <id>").description(
|
|
|
5213
5213
|
body.excluded = true;
|
|
5214
5214
|
body.excluded_reason = opts.exclude;
|
|
5215
5215
|
} else if (opts.exclude === true) body.excluded = true;
|
|
5216
|
+
if (opts.canary !== void 0) body.canary = opts.canary;
|
|
5216
5217
|
if (opts.ack) body.ack_add = opts.ack.split(",").map((s) => s.trim()).filter(Boolean);
|
|
5217
5218
|
if (opts.unack) body.ack_remove = opts.unack.split(",").map((s) => s.trim()).filter(Boolean);
|
|
5218
5219
|
if (opts.reset) body.ack_reset = true;
|