@meltstudio/meltctl 4.188.0 → 4.190.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.
Files changed (2) hide show
  1. package/dist/index.js +35 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var CLI_VERSION;
14
14
  var init_version = __esm({
15
15
  "src/utils/version.ts"() {
16
16
  "use strict";
17
- CLI_VERSION = "4.188.0";
17
+ CLI_VERSION = "4.190.0";
18
18
  }
19
19
  });
20
20
 
@@ -1485,6 +1485,23 @@ function createEndpointChecksResource(config) {
1485
1485
  throw new Error(data.error ?? `Failed to fetch endpoint check (${status})`);
1486
1486
  }
1487
1487
  return data.checks;
1488
+ },
1489
+ /**
1490
+ * Delete a single endpoint check row by id (#507). Manager-gated on the
1491
+ * API; used by the matrix UI to prune bogus or sandbox submissions without
1492
+ * touching the DB. 404 surfaces as a thrown error so the caller can
1493
+ * distinguish "already gone" from a real failure.
1494
+ */
1495
+ async delete(id) {
1496
+ const { data, status } = await apiFetch(config, `/endpoint-checks/${id}`, {
1497
+ method: "DELETE"
1498
+ });
1499
+ if (status === 403) {
1500
+ throw new Error("Access denied. Only Team Managers can delete endpoint checks.");
1501
+ }
1502
+ if (status >= 400) {
1503
+ throw new Error(data.error ?? `Failed to delete endpoint check (${status})`);
1504
+ }
1488
1505
  }
1489
1506
  };
1490
1507
  }
@@ -4686,6 +4703,23 @@ function createEndpointChecksResource2(config) {
4686
4703
  throw new Error(data.error ?? `Failed to fetch endpoint check (${status})`);
4687
4704
  }
4688
4705
  return data.checks;
4706
+ },
4707
+ /**
4708
+ * Delete a single endpoint check row by id (#507). Manager-gated on the
4709
+ * API; used by the matrix UI to prune bogus or sandbox submissions without
4710
+ * touching the DB. 404 surfaces as a thrown error so the caller can
4711
+ * distinguish "already gone" from a real failure.
4712
+ */
4713
+ async delete(id) {
4714
+ const { data, status } = await apiFetch2(config, `/endpoint-checks/${id}`, {
4715
+ method: "DELETE"
4716
+ });
4717
+ if (status === 403) {
4718
+ throw new Error("Access denied. Only Team Managers can delete endpoint checks.");
4719
+ }
4720
+ if (status >= 400) {
4721
+ throw new Error(data.error ?? `Failed to delete endpoint check (${status})`);
4722
+ }
4689
4723
  }
4690
4724
  };
4691
4725
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "4.188.0",
3
+ "version": "4.190.0",
4
4
  "description": "AI-first development tools for teams - set up AGENTS.md, Claude Code, Cursor, and OpenCode standards",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",