@meltstudio/meltctl 4.189.0 → 4.191.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 +53 -5
  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.189.0";
17
+ CLI_VERSION = "4.191.0";
18
18
  }
19
19
  });
20
20
 
@@ -1179,9 +1179,16 @@ function createPmResource(config) {
1179
1179
  * findings, board health, plan recency, activity, standup compliance,
1180
1180
  * tickets) into a single response. Powers the `get_project_health`
1181
1181
  * MCP tool.
1182
+ *
1183
+ * Pass `{ expandFindings: true }` to also receive `findingIssues`: the
1184
+ * project's open `audit_findings` rendered as per-finding `HealthIssue`s
1185
+ * for the project page's unified Issues section (#460/#461). The flag is
1186
+ * opt-in so MCP tool calls keep their lean shape and findings-heavy
1187
+ * projects don't blow up agent token budgets.
1182
1188
  */
1183
- async getProjectHealth(projectId) {
1184
- const res = await apiFetch(config, `/pm/project-health/${projectId}`);
1189
+ async getProjectHealth(projectId, options) {
1190
+ const query = options?.expandFindings ? "?expandFindings=1" : "";
1191
+ const res = await apiFetch(config, `/pm/project-health/${projectId}${query}`);
1185
1192
  return unwrap("get project health", res);
1186
1193
  },
1187
1194
  // ─── Detailed risks (per-project + cross-project) ────────────────────
@@ -1485,6 +1492,23 @@ function createEndpointChecksResource(config) {
1485
1492
  throw new Error(data.error ?? `Failed to fetch endpoint check (${status})`);
1486
1493
  }
1487
1494
  return data.checks;
1495
+ },
1496
+ /**
1497
+ * Delete a single endpoint check row by id (#507). Manager-gated on the
1498
+ * API; used by the matrix UI to prune bogus or sandbox submissions without
1499
+ * touching the DB. 404 surfaces as a thrown error so the caller can
1500
+ * distinguish "already gone" from a real failure.
1501
+ */
1502
+ async delete(id) {
1503
+ const { data, status } = await apiFetch(config, `/endpoint-checks/${id}`, {
1504
+ method: "DELETE"
1505
+ });
1506
+ if (status === 403) {
1507
+ throw new Error("Access denied. Only Team Managers can delete endpoint checks.");
1508
+ }
1509
+ if (status >= 400) {
1510
+ throw new Error(data.error ?? `Failed to delete endpoint check (${status})`);
1511
+ }
1488
1512
  }
1489
1513
  };
1490
1514
  }
@@ -4392,9 +4416,16 @@ function createPmResource2(config) {
4392
4416
  * findings, board health, plan recency, activity, standup compliance,
4393
4417
  * tickets) into a single response. Powers the `get_project_health`
4394
4418
  * MCP tool.
4419
+ *
4420
+ * Pass `{ expandFindings: true }` to also receive `findingIssues`: the
4421
+ * project's open `audit_findings` rendered as per-finding `HealthIssue`s
4422
+ * for the project page's unified Issues section (#460/#461). The flag is
4423
+ * opt-in so MCP tool calls keep their lean shape and findings-heavy
4424
+ * projects don't blow up agent token budgets.
4395
4425
  */
4396
- async getProjectHealth(projectId) {
4397
- const res = await apiFetch2(config, `/pm/project-health/${projectId}`);
4426
+ async getProjectHealth(projectId, options) {
4427
+ const query = options?.expandFindings ? "?expandFindings=1" : "";
4428
+ const res = await apiFetch2(config, `/pm/project-health/${projectId}${query}`);
4398
4429
  return unwrap2("get project health", res);
4399
4430
  },
4400
4431
  // ─── Detailed risks (per-project + cross-project) ────────────────────
@@ -4686,6 +4717,23 @@ function createEndpointChecksResource2(config) {
4686
4717
  throw new Error(data.error ?? `Failed to fetch endpoint check (${status})`);
4687
4718
  }
4688
4719
  return data.checks;
4720
+ },
4721
+ /**
4722
+ * Delete a single endpoint check row by id (#507). Manager-gated on the
4723
+ * API; used by the matrix UI to prune bogus or sandbox submissions without
4724
+ * touching the DB. 404 surfaces as a thrown error so the caller can
4725
+ * distinguish "already gone" from a real failure.
4726
+ */
4727
+ async delete(id) {
4728
+ const { data, status } = await apiFetch2(config, `/endpoint-checks/${id}`, {
4729
+ method: "DELETE"
4730
+ });
4731
+ if (status === 403) {
4732
+ throw new Error("Access denied. Only Team Managers can delete endpoint checks.");
4733
+ }
4734
+ if (status >= 400) {
4735
+ throw new Error(data.error ?? `Failed to delete endpoint check (${status})`);
4736
+ }
4689
4737
  }
4690
4738
  };
4691
4739
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "4.189.0",
3
+ "version": "4.191.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",