@meltstudio/meltctl 4.102.0 → 4.104.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 +43 -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.102.0";
17
+ CLI_VERSION = "4.104.0";
18
18
  }
19
19
  });
20
20
 
@@ -949,6 +949,27 @@ function createPmResource(config) {
949
949
  async getProjectHealth(projectId) {
950
950
  const res = await apiFetch(config, `/pm/project-health/${projectId}`);
951
951
  return unwrap("get project health", res);
952
+ },
953
+ // ─── Detailed risks (per-project + cross-project) ────────────────────
954
+ /**
955
+ * Full per-project risk list — every risk on the project's RSK board with
956
+ * its latest weekly status comment and a `staleRedZone` flag for
957
+ * red-zone risks (score ≥ 12) that have gone 30+ days without a comment.
958
+ * `hasMapping` distinguishes "project not yet mapped to a Linear risks
959
+ * board" (empty list with a callout) from "mapped, just no risks yet".
960
+ */
961
+ async getProjectRisks(projectId) {
962
+ const res = await apiFetch(config, `/pm/projects/${projectId}/risks`);
963
+ return unwrap("get project risks", res);
964
+ },
965
+ /**
966
+ * Cross-project risks index. Defaults to `status=open` (mitigated risks
967
+ * filtered out); pass `status: 'all'` to include resolved rows.
968
+ */
969
+ async listRisks(opts) {
970
+ const status = opts?.status ?? "open";
971
+ const res = await apiFetch(config, `/pm/risks?status=${status}`);
972
+ return unwrap("list risks", res);
952
973
  }
953
974
  };
954
975
  }
@@ -3260,6 +3281,27 @@ function createPmResource2(config) {
3260
3281
  async getProjectHealth(projectId) {
3261
3282
  const res = await apiFetch2(config, `/pm/project-health/${projectId}`);
3262
3283
  return unwrap2("get project health", res);
3284
+ },
3285
+ // ─── Detailed risks (per-project + cross-project) ────────────────────
3286
+ /**
3287
+ * Full per-project risk list — every risk on the project's RSK board with
3288
+ * its latest weekly status comment and a `staleRedZone` flag for
3289
+ * red-zone risks (score ≥ 12) that have gone 30+ days without a comment.
3290
+ * `hasMapping` distinguishes "project not yet mapped to a Linear risks
3291
+ * board" (empty list with a callout) from "mapped, just no risks yet".
3292
+ */
3293
+ async getProjectRisks(projectId) {
3294
+ const res = await apiFetch2(config, `/pm/projects/${projectId}/risks`);
3295
+ return unwrap2("get project risks", res);
3296
+ },
3297
+ /**
3298
+ * Cross-project risks index. Defaults to `status=open` (mitigated risks
3299
+ * filtered out); pass `status: 'all'` to include resolved rows.
3300
+ */
3301
+ async listRisks(opts) {
3302
+ const status = opts?.status ?? "open";
3303
+ const res = await apiFetch2(config, `/pm/risks?status=${status}`);
3304
+ return unwrap2("list risks", res);
3263
3305
  }
3264
3306
  };
3265
3307
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "4.102.0",
3
+ "version": "4.104.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",