@waitcher/cli 0.2.17 → 0.2.18

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +192 -62
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -4976,8 +4976,8 @@ var require_util2 = __commonJS({
4976
4976
  }
4977
4977
  return values;
4978
4978
  }
4979
- function getDecodeSplit(name5, list) {
4980
- const value2 = list.get(name5, true);
4979
+ function getDecodeSplit(name5, list2) {
4980
+ const value2 = list2.get(name5, true);
4981
4981
  if (value2 === null) {
4982
4982
  return null;
4983
4983
  }
@@ -25013,9 +25013,9 @@ var require_headers = __commonJS({
25013
25013
  // https://fetch.spec.whatwg.org/#dom-headers-getsetcookie
25014
25014
  getSetCookie() {
25015
25015
  webidl.brandCheck(this, webidl.is.Headers);
25016
- const list = this.#headersList.cookies;
25017
- if (list) {
25018
- return [...list];
25016
+ const list2 = this.#headersList.cookies;
25017
+ if (list2) {
25018
+ return [...list2];
25019
25019
  }
25020
25020
  return [];
25021
25021
  }
@@ -25029,8 +25029,8 @@ var require_headers = __commonJS({
25029
25029
  headers.#guard = guard;
25030
25030
  };
25031
25031
  getHeadersList = (headers) => headers.#headersList;
25032
- setHeadersList = (target, list) => {
25033
- target.#headersList = list;
25032
+ setHeadersList = (target, list2) => {
25033
+ target.#headersList = list2;
25034
25034
  };
25035
25035
  webidl.is.Headers = (arg) => {
25036
25036
  return arg != null && typeof arg === "object" && #guard in arg;
@@ -25985,13 +25985,13 @@ var require_request2 = __commonJS({
25985
25985
  if (this.signal.aborted) {
25986
25986
  ac.abort(this.signal.reason);
25987
25987
  } else {
25988
- let list = dependentControllerMap.get(this.signal);
25989
- if (list === void 0) {
25990
- list = /* @__PURE__ */ new Set();
25991
- dependentControllerMap.set(this.signal, list);
25988
+ let list2 = dependentControllerMap.get(this.signal);
25989
+ if (list2 === void 0) {
25990
+ list2 = /* @__PURE__ */ new Set();
25991
+ dependentControllerMap.set(this.signal, list2);
25992
25992
  }
25993
25993
  const acRef = new WeakRef(ac);
25994
- list.add(acRef);
25994
+ list2.add(acRef);
25995
25995
  util.addAbortListener(
25996
25996
  ac.signal,
25997
25997
  buildAbort(acRef)
@@ -33262,8 +33262,8 @@ function explicitlyAborted(x, startIndex = 0) {
33262
33262
  }
33263
33263
  return false;
33264
33264
  }
33265
- function prefixIssues(path2, issues) {
33266
- return issues.map((iss) => {
33265
+ function prefixIssues(path2, issues2) {
33266
+ return issues2.map((iss) => {
33267
33267
  var _a3;
33268
33268
  (_a3 = iss).path ?? (_a3.path = []);
33269
33269
  iss.path.unshift(path2);
@@ -33285,10 +33285,10 @@ function sizeCaps(defChecks) {
33285
33285
  }
33286
33286
  return caps;
33287
33287
  }
33288
- function attachSchema(issues, start, inst) {
33288
+ function attachSchema(issues2, start, inst) {
33289
33289
  var _a3;
33290
- for (let i = start; i < issues.length; i++) {
33291
- (_a3 = issues[i]).schema ?? (_a3.schema = inst);
33290
+ for (let i = start; i < issues2.length; i++) {
33291
+ (_a3 = issues2[i]).schema ?? (_a3.schema = inst);
33292
33292
  }
33293
33293
  }
33294
33294
  function finalizeIssue(iss, ctx, config2) {
@@ -33731,7 +33731,7 @@ function formatError(error62, mapper = (issue3) => issue3.message) {
33731
33731
  const processError = (error63, path2 = []) => {
33732
33732
  for (const issue3 of error63.issues) {
33733
33733
  if (issue3.code === "invalid_union" && issue3.errors.length) {
33734
- issue3.errors.map((issues) => processError({ issues }, [...path2, ...issue3.path]));
33734
+ issue3.errors.map((issues2) => processError({ issues: issues2 }, [...path2, ...issue3.path]));
33735
33735
  } else if (issue3.code === "invalid_key") {
33736
33736
  processError({ issues: issue3.issues }, [...path2, ...issue3.path]);
33737
33737
  } else if (issue3.code === "invalid_element") {
@@ -33780,7 +33780,7 @@ function treeifyError(error62, mapper = (issue3) => issue3.message) {
33780
33780
  var _a3;
33781
33781
  for (const issue3 of error63.issues) {
33782
33782
  if (issue3.code === "invalid_union" && issue3.errors.length) {
33783
- issue3.errors.map((issues) => processError({ issues }, [...path2, ...issue3.path]));
33783
+ issue3.errors.map((issues2) => processError({ issues: issues2 }, [...path2, ...issue3.path]));
33784
33784
  } else if (issue3.code === "invalid_key") {
33785
33785
  processError({ issues: issue3.issues }, [...path2, ...issue3.path]);
33786
33786
  } else if (issue3.code === "invalid_element") {
@@ -33843,8 +33843,8 @@ function toDotPath(_path) {
33843
33843
  }
33844
33844
  function prettifyError(error62) {
33845
33845
  const lines = [];
33846
- const issues = [...error62.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
33847
- for (const issue3 of issues) {
33846
+ const issues2 = [...error62.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
33847
+ for (const issue3 of issues2) {
33848
33848
  lines.push(`\u2716 ${issue3.message}`);
33849
33849
  if (issue3.path?.length)
33850
33850
  lines.push(` \u2192 at ${toDotPath(issue3.path)}`);
@@ -33898,21 +33898,21 @@ var _safeParse = (_Err) => (schema, value2, _ctx) => {
33898
33898
  return result2.issues.length ? failure(_Err, result2.issues, ctx) : { success: true, data: result2.value };
33899
33899
  };
33900
33900
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
33901
- function failure(Err, issues, ctx) {
33901
+ function failure(Err, issues2, ctx) {
33902
33902
  let error62;
33903
33903
  return {
33904
33904
  success: false,
33905
33905
  get error() {
33906
33906
  if (!error62) {
33907
- error62 = new Err(issues.map((iss) => finalizeIssue(iss, ctx, config())));
33908
- issues = void 0;
33907
+ error62 = new Err(issues2.map((iss) => finalizeIssue(iss, ctx, config())));
33908
+ issues2 = void 0;
33909
33909
  ctx = void 0;
33910
33910
  }
33911
33911
  return error62;
33912
33912
  },
33913
33913
  set error(e) {
33914
33914
  error62 = e;
33915
- issues = void 0;
33915
+ issues2 = void 0;
33916
33916
  ctx = void 0;
33917
33917
  }
33918
33918
  };
@@ -37162,8 +37162,8 @@ var NO_ISSUES = [];
37162
37162
  function isRef(value2) {
37163
37163
  return value2 !== null && typeof value2 === "object";
37164
37164
  }
37165
- function cloneIssues(issues) {
37166
- return issues.map((iss) => iss.path ? { ...iss, path: iss.path.slice() } : { ...iss });
37165
+ function cloneIssues(issues2) {
37166
+ return issues2.map((iss) => iss.path ? { ...iss, path: iss.path.slice() } : { ...iss });
37167
37167
  }
37168
37168
  var recursive = /* @__PURE__ */ new WeakMap();
37169
37169
  var NONE = 0;
@@ -48307,8 +48307,8 @@ var contributors = {
48307
48307
  function aggregateChecks(schema) {
48308
48308
  const agg = {};
48309
48309
  const def = schema._zod.def;
48310
- const list = schema._zod.traits.has("$ZodCheck") ? [schema, ...def.checks ?? []] : def.checks ?? [];
48311
- for (const ch of list)
48310
+ const list2 = schema._zod.traits.has("$ZodCheck") ? [schema, ...def.checks ?? []] : def.checks ?? [];
48311
+ for (const ch of list2)
48312
48312
  contributors[ch._zod.def.check]?.(agg, ch._zod.def);
48313
48313
  const bag = schema._zod.bag;
48314
48314
  if (bag.minimum !== void 0)
@@ -49304,8 +49304,8 @@ function _lazyMethod(proto, key, make) {
49304
49304
  }
49305
49305
  });
49306
49306
  }
49307
- var initializer2 = (inst, issues) => {
49308
- $ZodError.init(inst, issues);
49307
+ var initializer2 = (inst, issues2) => {
49308
+ $ZodError.init(inst, issues2);
49309
49309
  inst.name = "ZodError";
49310
49310
  const proto = Object.getPrototypeOf(inst);
49311
49311
  if (_installedErrorProtos.has(proto))
@@ -49317,8 +49317,8 @@ var initializer2 = (inst, issues) => {
49317
49317
  self.issues.push(issue3);
49318
49318
  self.message = JSON.stringify(self.issues, jsonStringifyReplacer, 2);
49319
49319
  });
49320
- _lazyMethod(proto, "addIssues", (self) => (issues2) => {
49321
- self.issues.push(...issues2);
49320
+ _lazyMethod(proto, "addIssues", (self) => (issues3) => {
49321
+ self.issues.push(...issues3);
49322
49322
  self.message = JSON.stringify(self.issues, jsonStringifyReplacer, 2);
49323
49323
  });
49324
49324
  Object.defineProperty(proto, "isEmpty", {
@@ -61193,8 +61193,8 @@ async function buildEntries(path2, config2) {
61193
61193
  const entries2 = scriptEntries(config2);
61194
61194
  const scripts = {};
61195
61195
  const builds = [];
61196
- const issues = [];
61197
- if (!entries2.length) return { scripts, builds, issues };
61196
+ const issues2 = [];
61197
+ if (!entries2.length) return { scripts, builds, issues: issues2 };
61198
61198
  const project = await realpath3(dirname12(path2));
61199
61199
  const browser = entries2.some((e) => e.type === "browser");
61200
61200
  for (const name5 of runtimePackages(browser)) {
@@ -61202,7 +61202,7 @@ async function buildEntries(path2, config2) {
61202
61202
  const found = await installedVersion(project, name5);
61203
61203
  const status2 = runtimePinStatus(name5, found);
61204
61204
  if (status2 === "previous")
61205
- issues.push({
61205
+ issues2.push({
61206
61206
  ...problem({
61207
61207
  code: "RUNTIME_VERSION_OUTDATED",
61208
61208
  path: "(project)",
@@ -61211,7 +61211,7 @@ async function buildEntries(path2, config2) {
61211
61211
  severity: "warning"
61212
61212
  });
61213
61213
  else if (status2 === "mismatch")
61214
- issues.push(
61214
+ issues2.push(
61215
61215
  problem({
61216
61216
  code: "RUNTIME_VERSION_MISMATCH",
61217
61217
  path: "(project)",
@@ -61229,7 +61229,7 @@ async function buildEntries(path2, config2) {
61229
61229
  project
61230
61230
  });
61231
61231
  if (built.script.length > CONFIG_LIMITS.scriptChars) {
61232
- issues.push(
61232
+ issues2.push(
61233
61233
  problem({
61234
61234
  code: "SCRIPT_TOO_LARGE",
61235
61235
  monitor: key,
@@ -61248,7 +61248,7 @@ async function buildEntries(path2, config2) {
61248
61248
  inputs: built.inputs.length
61249
61249
  });
61250
61250
  } catch (cause) {
61251
- issues.push(
61251
+ issues2.push(
61252
61252
  problem({
61253
61253
  code: "BUILD_FAILED",
61254
61254
  monitor: key,
@@ -61258,7 +61258,7 @@ async function buildEntries(path2, config2) {
61258
61258
  );
61259
61259
  }
61260
61260
  }
61261
- return { scripts, builds, issues };
61261
+ return { scripts, builds, issues: issues2 };
61262
61262
  }
61263
61263
  async function verifyLocally(options) {
61264
61264
  const project = await realpath3(dirname12(options.path));
@@ -61311,14 +61311,14 @@ async function verifyLocally(options) {
61311
61311
  } finally {
61312
61312
  await rm5(scratch, { recursive: true, force: true });
61313
61313
  }
61314
- const issues = runs.filter((r) => r.status !== "passed").map(
61314
+ const issues2 = runs.filter((r) => r.status !== "passed").map(
61315
61315
  (r) => problem({
61316
61316
  code: "VERIFY_FAILED",
61317
61317
  monitor: r.key,
61318
61318
  message: `Local ${r.status}: ${r.message ?? "no message"}${r.directory ? ` (read ${join12(r.directory, ".e2e", "summary.md")} and .e2e/results/*/trace.md there)` : ""}`
61319
61319
  })
61320
61320
  );
61321
- return { runs, issues };
61321
+ return { runs, issues: issues2 };
61322
61322
  }
61323
61323
  var configPath = (file2) => resolve13(file2 ?? CONFIG_FILE);
61324
61324
  async function readProjectConfig(file2) {
@@ -61430,7 +61430,7 @@ var deploy_default = '# Repository deploys\n\nRead when the user keeps monitors
61430
61430
  var diagnosis_default = "# Diagnosing failures\n\nRead when a local, smoke or scheduled run failed or errored.\n\n## Diagnose and reproduce a retained run\n\nConfirm `features.runDiagnosis` for hosted support. Use `run diagnose --id RUN_ID` for a readable hosted packet, or add `--json` for the shared structured report. Use `run diagnose --directory PRIVATE_RUN_DIRECTORY` without an account to inspect indexed local evidence. Hosted request states come from the controller ledger; local helper observations are explicitly local and do not attest hosted accounting. A known response does not prove task success, and an unknown action may have taken effect. Do not automatically repeat a mutation because its result is unknown.\n\nA historical pass is useful only when the frozen verification policy matches. Changed scripts, targets, deadlines or protected-operation policies cannot supply a matching reference. History searches are bounded; unavailable or truncated history is not proof that the product never passed. Stored artifact checksums are metadata; inspect the actual artifact when needed. Scenario evidence is checked against its recorded checksum before display.\n\nFor a completed supported hosted script, `run reproduce --id RUN_ID --output NEW_DIRECTORY` prepares its frozen configuration in a new private folder. It never executes the test or retrieves the current edited monitor. Inspect `monitor.json` and `provenance.json`, then deliberately run `run local --file NEW_DIRECTORY/monitor.json --output FRESH_RUN_DIRECTORY` with the matching installed runtime, optionally `--runtime PROJECT`. Reproduction is a fresh run with separate provenance and does not replace the original evidence.\n\nManaged product credentials, AI keys and browser sessions are not exported. Supply existing private local mappings with `--http-credentials-file`, `--connections-file` and `--browser-identities-file` where required. Authored scripts and literal configuration can themselves be sensitive, so keep the reproduction private. Operator-injected headers, bodies or environment state make this initial portable preparation unavailable rather than silently changing the test. Older local runs without an indexed frozen manifest remain inspectable but cannot establish a captured reproduction policy.\n";
61431
61431
 
61432
61432
  // ../../skills/waitcher/references/optional-capabilities.md
61433
- var optional_capabilities_default = '# Optional capabilities\n\nRead only when capabilities report the feature and the user needs it: visual baselines, signed-in browser identities, verified HTTP credentials and invocation budgets. AI endpoints, agent outcome checks, model steps and protected requests are in [ai-and-agents](ai-and-agents.md).\n\n## Optional visual checks\n\nDiscover `features.visual` for authoring and `features.visualReview` for baseline inspection; `features.isolatedVisual` says personal captures run in the hosted runner. A visual monitor counts as one of the plan\'s script monitors and each capture as a script run; `limits.visual.minInterval` is the shortest interval (2 hours on the free plan, 30 minutes otherwise). In a repository, add a `waitcher.json` entry such as `{ "key": "home-look", "type": "visual", "path": "/" }` with an optional `visual` block (page/element checkpoint, viewport, readiness, masks, thresholds) and deploy it like any other monitor; with `--smoke` the first capture is reported as `baseline_review` with the commands that show and approve it. For one monitor outside a repository, start with `monitor init --type visual --target https://product.example --file visual.json`, then `monitor validate --file visual.json` and `monitor apply --file visual.json --dry-run`. Apply paused; an authorized `run start --id ID --wait` is a separate action. User guide: https://waitcher.dev/docs/visual.md.\n\nFor a screen behind a sign-in or a few clicks, assert it inside a `browser` test instead: `await expect(screen).toHaveScreenshot(\'dashboard.png\')` (options `threshold`, `maxDiffPixels`, `maxDiffPixelRatio`, `mask`). Do not commit snapshot PNGs or pass `--update-snapshots`: Waitcher keeps the baselines. The first hosted run of each screenshot ends as `error` "First capture of NAME: approve it as the baseline"; inspect it with `visual list --monitor-id ID` and `visual image`, then `visual approve --id COMPARISON_ID --expected-revision 0`, one screenshot per run. Later runs fail with a comparison when a screenshot differs. Local runs (`run local`, `--verify`) compare against a capture from the same run, so a local pass says nothing about the look. Visual monitors accept no script, model binding, session identity or custom request credential. Fixed visual baseline execution is not supported by `run local`; local API/browser script evidence does not establish a visual baseline.\n\nA scheduled run never creates a baseline. Set the first one, or accept an intended change, with one run: `run start --id MONITOR_ID --update-baselines --wait` captures and approves it (write access); then inspect it with `visual list` and `visual image`. The alternative is to run normally and approve the capture. Until a baseline exists a run ends as `error` "First capture of NAME"; that is missing coverage, not a product failure. Every later run of a visual monitor keeps its comparison, passing runs included. Inspect `visual list`, `visual get --id COMPARISON_ID`, `visual heads --id MONITOR_ID`, `visual artifacts --id COMPARISON_ID` and `visual image --id COMPARISON_ID --role candidate|original|diff --file NEW_PRIVATE_PATH`. Review actual images and metrics before an authorized `visual approve --id COMPARISON_ID --expected-revision SELECTED_REVISION`; an initial selection uses 0. Restore only a reviewed retained baseline with `visual restore --id HEAD_ID --baseline-id BASELINE_ID --expected-revision CURRENT_HEAD_REVISION`. Stale decisions conflict: reload instead of retrying or changing revisions blindly. Approval preserves the historical result. Changed capture fingerprints need their own baseline. Foreign-owner/read-only refusals are boundaries, not reasons to switch credentials. Screenshots are private evidence; masks cover selected pixels only. Use actual `visual` and `run` help for current flags and capabilities.\n\n## Optional browser test-account identity\n\nFor a signed-in browser journey, discover hosted `features.browserIdentities` before configuring `identity create/rotate/enable/disable/delete`. Supply bounded cookies/localStorage through a private `--state-file`; metadata is scoped to one verified exact origin, project/environment and explicit expiry. State is write-only and cannot be exported. New identities default disabled; enable explicitly and bind the resulting current `{identityId, revision}` under `browserIdentity` in a version-2 browser manifest with explicit context. Rename, state replacement and enable/disable advance revisions; inspect current metadata and deliberately rebind rather than silently upgrading. After an uncertain write inspect metadata before retrying. No running Chrome profile is imported.\n\nRun the same manifest account-free with `run local --file MONITOR --runtime RUNTIME --browser-identities-file PRIVATE_MAP`. The map is `{schemaVersion:1,identities:[{identityId,revision,projectId,environmentId,origin,expiresAt,stateFile}]}`; state paths resolve relative to the map. Both map/state are private regular JSON files (chmod 600), no symlinks/hard links or inline state. Exact IDs/revision/scope/origin and bounded future expiry must match. Local mappings do not attest hosted target verification or revocation. The optional model map remains separate. Hosted identity-backed runs use the isolated lane for all owners; local code remains trusted. The selected script receives its own session and signed-in page content can reach private evidence or optional AI providers. Never promise pixel/encoded-secret masking. Use dedicated test accounts and inspect coverage errors after expiry/revocation before repeating a possibly completed action.\n\n## Verified HTTP credentials\n\nFor an authenticated HTTP or AI endpoint, use the user\'s owned verified HTTPS origin and an `httpAuth` reference (`targetId`, `credentialId`, `credentialRevision`). Check `features.httpTargets` before hosted configuration. Create/renew a target challenge with `target create` or `target challenge`, writing it to a new private `--output`; never print the token. The user publishes the supplied proof at `/.well-known/waitcher-verification.txt`, then `target verify` checks it without credentials. Verification expires after 24 hours and must be renewed. An origin excludes paths, query and fragments and is immutable.\n\nUse `target credential create/rotate` with non-secret metadata JSON plus `--credential-file` (mode 600) or `--credential-stdin`. Headers are limited to `Authorization` or `X-Api-Key`; values are complete single-line ASCII header values up to 4096 bytes. For Bearer auth, include the `Bearer ` prefix in the private value. Keys are write-only and encrypted on the server. The monitor and export retain references only. Rotation advances the credential revision; update the monitor binding explicitly. Disabled, expired, foreign or stale bindings fail without forwarding a request. Authenticated redirects are never followed.\n\nFor local execution without the app or account, pass `run local --file monitor.json --http-credentials-file private/http-map.json`. The private map is `{schemaVersion:1,credentials:[{targetId,credentialId,credentialRevision,origin,header,credentialFile}]}` and the referenced private file contains the raw header value. Paths resolve relative to the map. Never inline a key or reuse the CLI\'s own account cookie/token as a target credential. The local resolver requires exactly matching IDs, revision and canonical origin, and the shared runner enforces the single supported header and redirect policy. Local mapping does not prove that the hosted target is still verified or its key current. Keep the same manifest as the hosted monitor; only local key resolution differs. HTTP local checks need no E2E runtime. Use explicit user authorization for POST fixtures that change state.\n\n## Hosted endpoint invocation budgets\n\nBefore running dedicated AI endpoints or HTTP checks with `httpAuth`, read `account invocations` for the account/monitor UTC-day counters and limits. The manifest accepts `requestBudget: {dailyInvocations: N}` (default 50, maximum 1,000). Configure the owner cap with `account budget --daily-invocations N --expected-revision CURRENT_REVISION` only when authorized; personal accounts cap at 200, administrators at 5,000, and the controller also has a global 5,000 cap. Validate/apply/export do not charge calls.\n\n`INVOCATION_BUDGET_EXHAUSTED` is a coverage error: no request was dispatched and no product incident is created. Do not automatically retry or raise a limit to bypass it. Completed and uncertain dispatched calls consume budget, independent of product success or worker-reported usage. Local execution needs no account, preserves the setting and makes at most one endpoint call per fixture case, but does not enforce or consume the hosted daily ledger. After backup restore, `window.restoreHeld` blocks these checks until the next UTC reset because snapshot counters may be stale; do not bypass the hold by raising caps. These are request counts, separate from model-broker token/call caps and downstream provider spending. Inspect `account invocations` and the current `account` help for the hosted accounting contract.\n\n## Agent checks\n\nWhen `features.agentChecks` is true, an `api` entry may carry an `agent` block: Claude Code works on `task` in a sandbox, then the entry\'s script verifies the product\'s state ([guide](https://waitcher.dev/docs/agent-checks.md)). It needs a model connection in the entry\'s project environment (`connection create`, OpenRouter, the key from a private file) and fields `connectionId`, `configurationRevision`, `model`, `task`, optionally `seconds`, `turns`, `tokens`, `hosts` and `envNames` (a subset of `settings.envNames`). Read `limits.agentChecks` for the plan\'s count and bounds; the interval is at least 6 hours. Write the task as a user would say it and never put a secret in it. The verifier must reset the test account it checks. Ask before creating a connection: it stores the user\'s key and every run is billed to it.\n\n## Status pages\n\nWhen `features.statusPages` is true, the account can publish public pages at `https://waitcher.dev/status/SLUG` ([guide](https://waitcher.dev/docs/status-pages.md)); `limits.statusPages` is the plan\'s count. `waitcher status-page save --file page.json` takes `slug`, `title` and `components` (`monitorId`, a public `name`, optional `group`); `waitcher help status` has the full shape. A page is private until `"published": true` and asks search engines not to index it unless `"indexable": true`. Write public names the user\'s customers would recognise, never a target URL or an internal monitor name; ask before publishing, because the address is public. During an incident, `waitcher incident update --id INCIDENT_ID --kind identified --message TEXT` posts a note to every page that shows the monitor; only post text the user wrote or approved.\n';
61433
+ var optional_capabilities_default = '# Optional capabilities\n\nRead only when capabilities report the feature and the user needs it: visual baselines, signed-in browser identities, verified HTTP credentials and invocation budgets. AI endpoints, agent outcome checks, model steps and protected requests are in [ai-and-agents](ai-and-agents.md).\n\n## Optional visual checks\n\nDiscover `features.visual` for authoring and `features.visualReview` for baseline inspection; `features.isolatedVisual` says personal captures run in the hosted runner. A visual monitor counts as one of the plan\'s script monitors and each capture as a script run; `limits.visual.minInterval` is the shortest interval (2 hours on the free plan, 30 minutes otherwise). In a repository, add a `waitcher.json` entry such as `{ "key": "home-look", "type": "visual", "path": "/" }` with an optional `visual` block (page/element checkpoint, viewport, readiness, masks, thresholds) and deploy it like any other monitor; with `--smoke` the first capture is reported as `baseline_review` with the commands that show and approve it. For one monitor outside a repository, start with `monitor init --type visual --target https://product.example --file visual.json`, then `monitor validate --file visual.json` and `monitor apply --file visual.json --dry-run`. Apply paused; an authorized `run start --id ID --wait` is a separate action. User guide: https://waitcher.dev/docs/visual.md.\n\nFor a screen behind a sign-in or a few clicks, assert it inside a `browser` test instead: `await expect(screen).toHaveScreenshot(\'dashboard.png\')` (options `threshold`, `maxDiffPixels`, `maxDiffPixelRatio`, `mask`). Do not commit snapshot PNGs or pass `--update-snapshots`: Waitcher keeps the baselines. The first hosted run of each screenshot ends as `error` "First capture of NAME: approve it as the baseline"; inspect it with `visual list --monitor-id ID` and `visual image`, then `visual approve --id COMPARISON_ID --expected-revision 0`, one screenshot per run. Later runs fail with a comparison when a screenshot differs. Local runs (`run local`, `--verify`) compare against a capture from the same run, so a local pass says nothing about the look. Visual monitors accept no script, model binding, session identity or custom request credential. Fixed visual baseline execution is not supported by `run local`; local API/browser script evidence does not establish a visual baseline.\n\nA scheduled run never creates a baseline. Set the first one, or accept an intended change, with one run: `run start --id MONITOR_ID --update-baselines --wait` captures and approves it (write access); then inspect it with `visual list` and `visual image`. The alternative is to run normally and approve the capture. Until a baseline exists a run ends as `error` "First capture of NAME"; that is missing coverage, not a product failure. Every later run of a visual monitor keeps its comparison, passing runs included. Inspect `visual list`, `visual get --id COMPARISON_ID`, `visual heads --id MONITOR_ID`, `visual artifacts --id COMPARISON_ID` and `visual image --id COMPARISON_ID --role candidate|original|diff --file NEW_PRIVATE_PATH`. Review actual images and metrics before an authorized `visual approve --id COMPARISON_ID --expected-revision SELECTED_REVISION`; an initial selection uses 0. Restore only a reviewed retained baseline with `visual restore --id HEAD_ID --baseline-id BASELINE_ID --expected-revision CURRENT_HEAD_REVISION`. Stale decisions conflict: reload instead of retrying or changing revisions blindly. Approval preserves the historical result. Changed capture fingerprints need their own baseline. Foreign-owner/read-only refusals are boundaries, not reasons to switch credentials. Screenshots are private evidence; masks cover selected pixels only. Use actual `visual` and `run` help for current flags and capabilities.\n\n## Optional browser test-account identity\n\nFor a signed-in browser journey, discover hosted `features.browserIdentities` before configuring `identity create/rotate/enable/disable/delete`. Supply bounded cookies/localStorage through a private `--state-file`; metadata is scoped to one verified exact origin, project/environment and explicit expiry. State is write-only and cannot be exported. New identities default disabled; enable explicitly and bind the resulting current `{identityId, revision}` under `browserIdentity` in a version-2 browser manifest with explicit context. Rename, state replacement and enable/disable advance revisions; inspect current metadata and deliberately rebind rather than silently upgrading. After an uncertain write inspect metadata before retrying. No running Chrome profile is imported.\n\nRun the same manifest account-free with `run local --file MONITOR --runtime RUNTIME --browser-identities-file PRIVATE_MAP`. The map is `{schemaVersion:1,identities:[{identityId,revision,projectId,environmentId,origin,expiresAt,stateFile}]}`; state paths resolve relative to the map. Both map/state are private regular JSON files (chmod 600), no symlinks/hard links or inline state. Exact IDs/revision/scope/origin and bounded future expiry must match. Local mappings do not attest hosted target verification or revocation. The optional model map remains separate. Hosted identity-backed runs use the isolated lane for all owners; local code remains trusted. The selected script receives its own session and signed-in page content can reach private evidence or optional AI providers. Never promise pixel/encoded-secret masking. Use dedicated test accounts and inspect coverage errors after expiry/revocation before repeating a possibly completed action.\n\n## Verified HTTP credentials\n\nFor an authenticated HTTP or AI endpoint, use the user\'s owned verified HTTPS origin and an `httpAuth` reference (`targetId`, `credentialId`, `credentialRevision`). Check `features.httpTargets` before hosted configuration. Create/renew a target challenge with `target create` or `target challenge`, writing it to a new private `--output`; never print the token. The user publishes the supplied proof at `/.well-known/waitcher-verification.txt`, then `target verify` checks it without credentials. Verification expires after 24 hours and must be renewed. An origin excludes paths, query and fragments and is immutable.\n\nUse `target credential create/rotate` with non-secret metadata JSON plus `--credential-file` (mode 600) or `--credential-stdin`. Headers are limited to `Authorization` or `X-Api-Key`; values are complete single-line ASCII header values up to 4096 bytes. For Bearer auth, include the `Bearer ` prefix in the private value. Keys are write-only and encrypted on the server. The monitor and export retain references only. Rotation advances the credential revision; update the monitor binding explicitly. Disabled, expired, foreign or stale bindings fail without forwarding a request. Authenticated redirects are never followed.\n\nFor local execution without the app or account, pass `run local --file monitor.json --http-credentials-file private/http-map.json`. The private map is `{schemaVersion:1,credentials:[{targetId,credentialId,credentialRevision,origin,header,credentialFile}]}` and the referenced private file contains the raw header value. Paths resolve relative to the map. Never inline a key or reuse the CLI\'s own account cookie/token as a target credential. The local resolver requires exactly matching IDs, revision and canonical origin, and the shared runner enforces the single supported header and redirect policy. Local mapping does not prove that the hosted target is still verified or its key current. Keep the same manifest as the hosted monitor; only local key resolution differs. HTTP local checks need no E2E runtime. Use explicit user authorization for POST fixtures that change state.\n\n## Hosted endpoint invocation budgets\n\nBefore running dedicated AI endpoints or HTTP checks with `httpAuth`, read `account invocations` for the account/monitor UTC-day counters and limits. The manifest accepts `requestBudget: {dailyInvocations: N}` (default 50, maximum 1,000). Configure the owner cap with `account budget --daily-invocations N --expected-revision CURRENT_REVISION` only when authorized; personal accounts cap at 200, administrators at 5,000, and the controller also has a global 5,000 cap. Validate/apply/export do not charge calls.\n\n`INVOCATION_BUDGET_EXHAUSTED` is a coverage error: no request was dispatched and no product incident is created. Do not automatically retry or raise a limit to bypass it. Completed and uncertain dispatched calls consume budget, independent of product success or worker-reported usage. Local execution needs no account, preserves the setting and makes at most one endpoint call per fixture case, but does not enforce or consume the hosted daily ledger. After backup restore, `window.restoreHeld` blocks these checks until the next UTC reset because snapshot counters may be stale; do not bypass the hold by raising caps. These are request counts, separate from model-broker token/call caps and downstream provider spending. Inspect `account invocations` and the current `account` help for the hosted accounting contract.\n\n## Agent checks\n\nWhen `features.agentChecks` is true, an `api` entry may carry an `agent` block: Claude Code works on `task` in a sandbox, then the entry\'s script verifies the product\'s state ([guide](https://waitcher.dev/docs/agent-checks.md)). It needs a model connection in the entry\'s project environment (`connection create`, OpenRouter, the key from a private file) and fields `connectionId`, `configurationRevision`, `model`, `task`, optionally `seconds`, `turns`, `tokens`, `hosts` and `envNames` (a subset of `settings.envNames`). Read `limits.agentChecks` for the plan\'s count and bounds; the interval is at least 6 hours. Write the task as a user would say it and never put a secret in it. The verifier must reset the test account it checks. Ask before creating a connection: it stores the user\'s key and every run is billed to it.\n\n## Status pages\n\nWhen `features.statusPages` is true, the account can publish public pages at `https://waitcher.dev/status/SLUG` ([guide](https://waitcher.dev/docs/status-pages.md)); `limits.statusPages` is the plan\'s count. `waitcher status-page save --file page.json` takes `slug`, `title` and `components` (`monitorId`, a public `name`, optional `group`); `waitcher help status` has the full shape. A page is private until `"published": true` and asks search engines not to index it unless `"indexable": true`. Write public names the user\'s customers would recognise, never a target URL or an internal monitor name; ask before publishing, because the address is public. During an incident, `waitcher incident update --id INCIDENT_ID --kind identified --message TEXT` posts a note to every page that shows it. People can also open an incident no monitor has seen (`incident open --page-id ID --title TEXT --message TEXT [--impact down|degraded|none] [--services "A,B"]`), and change any incident with `incident edit` (title, impact, open or resolved, hidden; `--expected-revision` from `status-page incidents --id PAGE_ID`). On a monitor\'s incident those values win over the monitor until reset (`--state auto`). A page with `"automaticIncidents": false` shows only incidents people open. Everything on these pages is public: only post, open, resolve or hide what the user wrote or approved.\n';
61434
61434
 
61435
61435
  // ../../skills/waitcher/agents/openai.yaml
61436
61436
  var openai_default = 'interface:\n display_name: "Waitcher"\n short_description: "Deploy monitoring from a repository and inspect evidence"\n default_prompt: "Use $waitcher to set up monitoring for this repository: pick the critical journeys, verify them locally and deploy them paused through a reviewed plan."\n';
@@ -61930,7 +61930,9 @@ var STATUS_PAGE_LIMITS = Object.freeze({
61930
61930
  // whatever the plan's run history.
61931
61931
  historyDays: 90,
61932
61932
  adminPages: 10,
61933
- updates: 20
61933
+ updates: 20,
61934
+ // Incidents a person opened, kept per page (open and recent).
61935
+ manualIncidents: 200
61934
61936
  });
61935
61937
  var plain = (max) => external_exports.string().trim().max(max).refine((v) => !/[\u0000-\u001f\u007f<>]/.test(v), {
61936
61938
  message: "Use plain text without line breaks or angle brackets"
@@ -61947,6 +61949,8 @@ var statusPageSchema = external_exports.object({
61947
61949
  published: external_exports.boolean().default(false),
61948
61950
  indexable: external_exports.boolean().default(false),
61949
61951
  showMaintenance: external_exports.boolean().default(true),
61952
+ // Off: only people open incidents on this page; monitors still alert.
61953
+ automaticIncidents: external_exports.boolean().default(true),
61950
61954
  components: external_exports.array(
61951
61955
  external_exports.object({
61952
61956
  monitorId: external_exports.string().min(1).max(100),
@@ -61979,6 +61983,25 @@ var incidentUpdateSchema = external_exports.object({
61979
61983
  message: "Use plain text"
61980
61984
  })
61981
61985
  }).strict();
61986
+ var INCIDENT_IMPACTS = ["down", "degraded", "none"];
61987
+ var incidentTitle = plain(120);
61988
+ var serviceNames = external_exports.array(plain(60).pipe(external_exports.string().min(1))).max(25);
61989
+ var incidentOpenSchema = external_exports.object({
61990
+ title: incidentTitle.pipe(external_exports.string().min(1)),
61991
+ impact: external_exports.enum(INCIDENT_IMPACTS).default("down"),
61992
+ // Public service names on the page; empty means the whole page.
61993
+ services: serviceNames.default([]),
61994
+ kind: external_exports.enum(INCIDENT_UPDATE_KINDS).default("investigating"),
61995
+ message: incidentUpdateSchema.shape.message
61996
+ }).strict();
61997
+ var incidentEditSchema = external_exports.object({
61998
+ title: incidentTitle.pipe(external_exports.string().min(1)).nullable().optional(),
61999
+ impact: external_exports.enum(INCIDENT_IMPACTS).nullable().optional(),
62000
+ services: serviceNames.optional(),
62001
+ state: external_exports.enum(["open", "resolved", "auto"]).optional(),
62002
+ hidden: external_exports.boolean().optional(),
62003
+ expectedRevision: external_exports.number().int().nonnegative()
62004
+ }).strict();
61982
62005
 
61983
62006
  // src/access.ts
61984
62007
  import { lstat as lstat10, open as open16, unlink as unlink3 } from "node:fs/promises";
@@ -62619,8 +62642,6 @@ Executions and reports
62619
62642
  run wait --id RUN_ID [--timeout 60] [--brief] Bounded wait (1 to 900 seconds)
62620
62643
  report get [--days 1|7|14] [--demo]
62621
62644
  incident list [--demo]
62622
- incident update --id ID --message TEXT [--kind investigating|identified|monitoring|update]
62623
- Posts a public note to every status page that shows the monitor
62624
62645
 
62625
62646
  Visual checks and baseline review (features.visual, features.visualReview; decisions
62626
62647
  require write access). A visual monitor screenshots one page or element and compares it
@@ -62734,10 +62755,25 @@ Status pages
62734
62755
  status-page get --id ID
62735
62756
  status-page save --file PATH [--id ID]
62736
62757
  status-page delete --id ID --yes
62758
+ status-page incidents --id ID Monitors' and your incidents, with revisions
62759
+ incident update --id ID --message TEXT [--kind investigating|identified|monitoring|update]
62760
+ Posts a public note to every status page that shows the incident
62761
+ incident update-edit --id ID --update-id UPDATE_ID --message TEXT [--kind KIND]
62762
+ incident update-delete --id ID --update-id UPDATE_ID --yes
62763
+ incident open --page-id PAGE_ID --title TEXT --message TEXT
62764
+ [--impact down|degraded|none] [--services "Checkout,API"] [--kind KIND]
62765
+ Opens an incident without a failing monitor; no --services means the whole page
62766
+ incident edit --id ID --expected-revision N [--title TEXT] [--impact down|degraded|none]
62767
+ [--state open|resolved|auto] [--hidden true|false] [--services "A,B"]
62768
+ On a monitor's incident your values win until reset: --state auto,
62769
+ --title "" and --impact "" follow the monitor again; --hidden true
62770
+ removes a false alarm from your pages
62771
+ incident delete --id ID --yes Only incidents you opened
62737
62772
  JSON: {"slug":"acme","title":"Acme","published":true,"components":
62738
62773
  [{"monitorId":"UUID","name":"Checkout","group":"Website"}]}
62739
62774
  Optional: "website":"https://...", "historyDays":30|90, "indexable":false,
62740
- "showMaintenance":true. Updates add "expectedRevision":N (from list).
62775
+ "showMaintenance":true, "automaticIncidents":true (false: only people open
62776
+ incidents on the page). Updates add "expectedRevision":N (from list).
62741
62777
  The page lives at https://waitcher.dev/status/SLUG, with .json and .atom.
62742
62778
  It shows the names you give, never targets, scripts or error messages.
62743
62779
 
@@ -62887,12 +62923,12 @@ var commands = (section) => {
62887
62923
  for (const line of section.split("\n")) {
62888
62924
  const m = /^ {2}([a-z]+)(?: ([a-z][a-z|-]*))?/.exec(line);
62889
62925
  if (!m || !GROUPS.has(m[1])) continue;
62890
- const list = byGroup.get(m[1]) ?? /* @__PURE__ */ new Set();
62891
- if (m[2]) list.add(m[2]);
62892
- byGroup.set(m[1], list);
62926
+ const list2 = byGroup.get(m[1]) ?? /* @__PURE__ */ new Set();
62927
+ if (m[2]) list2.add(m[2]);
62928
+ byGroup.set(m[1], list2);
62893
62929
  }
62894
62930
  return [...byGroup].map(
62895
- ([group, list]) => list.size ? `${group}: ${[...list].join(", ")}` : group
62931
+ ([group, list2]) => list2.size ? `${group}: ${[...list2].join(", ")}` : group
62896
62932
  );
62897
62933
  };
62898
62934
  function helpTopic(topic) {
@@ -62912,9 +62948,9 @@ ${overview()}`;
62912
62948
  }
62913
62949
  function overview() {
62914
62950
  const index = sections.map((section) => {
62915
- const list = commands(section);
62916
- return list.length ? `${section.split("\n")[0]}
62917
- ${list.join("\n ")}` : "";
62951
+ const list2 = commands(section);
62952
+ return list2.length ? `${section.split("\n")[0]}
62953
+ ${list2.join("\n ")}` : "";
62918
62954
  }).filter(Boolean).join("\n");
62919
62955
  return `${intro}
62920
62956
 
@@ -62940,7 +62976,7 @@ ${exitCodes}
62940
62976
  // package.json
62941
62977
  var package_default = {
62942
62978
  name: "@waitcher/cli",
62943
- version: "0.2.17",
62979
+ version: "0.2.18",
62944
62980
  description: "Synthetic monitoring from your repository: deploy HTTP, certificate, heartbeat, API, browser and visual monitors from waitcher.json.",
62945
62981
  license: "SEE LICENSE IN LICENSE.txt",
62946
62982
  author: "S\u0142awomir Radzymi\u0144ski",
@@ -62985,6 +63021,8 @@ var package_default = {
62985
63021
  };
62986
63022
 
62987
63023
  // src/main.ts
63024
+ var list = (text2) => (text2 ?? "").split(",").map((x) => x.trim()).filter(Boolean);
63025
+ var issues = (all) => all.map((i) => `${i.path.join(".")}: ${i.message}`).join("\n");
62988
63026
  var controller = new AbortController();
62989
63027
  process.once("SIGINT", () => controller.abort());
62990
63028
  process.once("SIGTERM", () => controller.abort());
@@ -63098,6 +63136,13 @@ async function main() {
63098
63136
  note: { type: "string" },
63099
63137
  kind: { type: "string" },
63100
63138
  message: { type: "string" },
63139
+ title: { type: "string" },
63140
+ impact: { type: "string" },
63141
+ services: { type: "string" },
63142
+ state: { type: "string" },
63143
+ hidden: { type: "string" },
63144
+ "page-id": { type: "string" },
63145
+ "update-id": { type: "string" },
63101
63146
  "request-key": { type: "string" },
63102
63147
  "expected-revision": { type: "string" },
63103
63148
  "project-id": { type: "string" },
@@ -63404,6 +63449,27 @@ async function main() {
63404
63449
  "report get": ["days", "demo"],
63405
63450
  "incident list": ["demo"],
63406
63451
  "incident update": ["id", "kind", "message"],
63452
+ "incident open": [
63453
+ "page-id",
63454
+ "title",
63455
+ "message",
63456
+ "impact",
63457
+ "services",
63458
+ "kind"
63459
+ ],
63460
+ "incident edit": [
63461
+ "id",
63462
+ "title",
63463
+ "impact",
63464
+ "services",
63465
+ "state",
63466
+ "hidden",
63467
+ "expected-revision"
63468
+ ],
63469
+ "incident delete": ["id", "yes"],
63470
+ "incident update-edit": ["id", "update-id", "kind", "message"],
63471
+ "incident update-delete": ["id", "update-id", "yes"],
63472
+ "status-page incidents": ["id"],
63407
63473
  "status-page list": [],
63408
63474
  "status-page get": ["id"],
63409
63475
  "status-page save": ["file", "id"],
@@ -63529,7 +63595,7 @@ async function main() {
63529
63595
  issues: r.issues
63530
63596
  };
63531
63597
  });
63532
- const issues = [
63598
+ const issues2 = [
63533
63599
  ...built.issues,
63534
63600
  ...names.length ? environments.flatMap(
63535
63601
  (e) => e.issues.map((i) => ({ ...i, environment: e.name }))
@@ -63553,8 +63619,8 @@ async function main() {
63553
63619
  keys: v.key,
63554
63620
  signal: controller.signal
63555
63621
  }) : null;
63556
- if (local) issues.push(...local.issues);
63557
- const ok = !issues.some((i) => i.severity === "error");
63622
+ if (local) issues2.push(...local.issues);
63623
+ const ok = !issues2.some((i) => i.severity === "error");
63558
63624
  process.stdout.write(
63559
63625
  JSON.stringify({
63560
63626
  event: "validated",
@@ -63565,13 +63631,13 @@ async function main() {
63565
63631
  environments: environments.map(({ issues: _, ...e }) => e),
63566
63632
  builds: built.builds,
63567
63633
  ...local ? { verify: local.runs } : {},
63568
- issues,
63634
+ issues: issues2,
63569
63635
  next: ok ? [
63570
63636
  `waitcher deploy plan --file ${path2} --env ${names[0]} checks account permissions, quotas and changes`
63571
63637
  ] : [`Fix the error issues in ${path2} and validate again`]
63572
63638
  }) + "\n"
63573
63639
  );
63574
- process.exitCode = ok ? 0 : issues.some((i) => i.severity === "error" && i.code !== "VERIFY_FAILED") ? 2 : 4;
63640
+ process.exitCode = ok ? 0 : issues2.some((i) => i.severity === "error" && i.code !== "VERIFY_FAILED") ? 2 : 4;
63575
63641
  return;
63576
63642
  }
63577
63643
  if (command === "ci init") {
@@ -65390,8 +65456,72 @@ async function main() {
65390
65456
  method: "POST",
65391
65457
  body: parsed2.data
65392
65458
  });
65393
- } else if (command === "status-page list")
65394
- result2 = await api("status-pages");
65459
+ } else if (command === "incident open") {
65460
+ const parsed2 = incidentOpenSchema.safeParse({
65461
+ title: v.title,
65462
+ message: v.message,
65463
+ ...v.impact ? { impact: v.impact } : {},
65464
+ ...v.kind ? { kind: v.kind } : {},
65465
+ services: list(v.services)
65466
+ });
65467
+ if (!parsed2.success) usage2(issues(parsed2.error.issues));
65468
+ result2 = await api(`status-pages/${id3(v["page-id"])}/incidents`, {
65469
+ method: "POST",
65470
+ body: parsed2.data
65471
+ });
65472
+ } else if (command === "incident edit") {
65473
+ if (v["expected-revision"] === void 0)
65474
+ usage2(
65475
+ "Provide --expected-revision N from status-page incidents (0 for a monitor's incident you have not changed)."
65476
+ );
65477
+ if (v.hidden !== void 0 && !["true", "false"].includes(v.hidden))
65478
+ usage2("--hidden takes true or false.");
65479
+ const parsed2 = incidentEditSchema.safeParse({
65480
+ ...v.title !== void 0 ? { title: v.title === "" ? null : v.title } : {},
65481
+ ...v.impact !== void 0 ? { impact: v.impact === "" ? null : v.impact } : {},
65482
+ ...v.services !== void 0 ? { services: list(v.services) } : {},
65483
+ ...v.state !== void 0 ? { state: v.state } : {},
65484
+ ...v.hidden !== void 0 ? { hidden: v.hidden === "true" } : {},
65485
+ expectedRevision: integer2(
65486
+ v["expected-revision"],
65487
+ "expected-revision",
65488
+ 0,
65489
+ 1e6
65490
+ )
65491
+ });
65492
+ if (!parsed2.success) usage2(issues(parsed2.error.issues));
65493
+ result2 = await api(`incidents/${id3(v.id)}/public`, {
65494
+ method: "PUT",
65495
+ body: parsed2.data
65496
+ });
65497
+ } else if (command === "incident delete") {
65498
+ if (!v.yes)
65499
+ usage2(
65500
+ "This removes the incident and its updates from your page. Pass --yes to confirm."
65501
+ );
65502
+ result2 = await api(`incidents/${id3(v.id)}/public`, {
65503
+ method: "DELETE",
65504
+ body: {}
65505
+ });
65506
+ } else if (command === "incident update-edit") {
65507
+ const parsed2 = incidentUpdateSchema.safeParse({
65508
+ kind: v.kind ?? "update",
65509
+ message: v.message
65510
+ });
65511
+ if (!parsed2.success) usage2(issues(parsed2.error.issues));
65512
+ result2 = await api(
65513
+ `incidents/${id3(v.id)}/updates/${id3(v["update-id"])}`,
65514
+ { method: "PUT", body: parsed2.data }
65515
+ );
65516
+ } else if (command === "incident update-delete") {
65517
+ if (!v.yes) usage2("Pass --yes to delete the update from your pages.");
65518
+ result2 = await api(
65519
+ `incidents/${id3(v.id)}/updates/${id3(v["update-id"])}`,
65520
+ { method: "DELETE", body: {} }
65521
+ );
65522
+ } else if (command === "status-page incidents")
65523
+ result2 = await api(`status-pages/${id3(v.id)}/incidents`);
65524
+ else if (command === "status-page list") result2 = await api("status-pages");
65395
65525
  else if (command === "status-page get")
65396
65526
  result2 = await api(`status-pages/${id3(v.id)}`);
65397
65527
  else if (command === "status-page save") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waitcher/cli",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "Synthetic monitoring from your repository: deploy HTTP, certificate, heartbeat, API, browser and visual monitors from waitcher.json.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Sławomir Radzymiński",