@meltstudio/meltctl 4.183.0 → 4.184.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 +23 -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.183.0";
17
+ CLI_VERSION = "4.184.0";
18
18
  }
19
19
  });
20
20
 
@@ -1205,6 +1205,17 @@ function createPmResource(config) {
1205
1205
  const res = await apiFetch(config, `/pm/risks?status=${status}`);
1206
1206
  return unwrap("list risks", res);
1207
1207
  },
1208
+ /**
1209
+ * On-demand pull of one project's risks from Linear into the mirror (#503).
1210
+ * The scheduled sync runs weekly; this lets a PM who just closed/updated
1211
+ * risks refresh immediately. Manager-only on the server. Returns the sync
1212
+ * counts (upserted/deleted). Throws if the project isn't mapped to a risks
1213
+ * board (409) or the risk-board key is unconfigured (503).
1214
+ */
1215
+ async refreshProjectRisks(projectId) {
1216
+ const res = await apiFetch(config, `/pm/projects/${projectId}/risks/refresh`, { method: "POST" });
1217
+ return unwrap("refresh project risks", res);
1218
+ },
1208
1219
  // ─── Portfolio status ──────────────────────────────────────────────────
1209
1220
  /**
1210
1221
  * Cross-project ranked answer to "where do I focus next?". Returns a
@@ -4324,6 +4335,17 @@ function createPmResource2(config) {
4324
4335
  const res = await apiFetch2(config, `/pm/risks?status=${status}`);
4325
4336
  return unwrap2("list risks", res);
4326
4337
  },
4338
+ /**
4339
+ * On-demand pull of one project's risks from Linear into the mirror (#503).
4340
+ * The scheduled sync runs weekly; this lets a PM who just closed/updated
4341
+ * risks refresh immediately. Manager-only on the server. Returns the sync
4342
+ * counts (upserted/deleted). Throws if the project isn't mapped to a risks
4343
+ * board (409) or the risk-board key is unconfigured (503).
4344
+ */
4345
+ async refreshProjectRisks(projectId) {
4346
+ const res = await apiFetch2(config, `/pm/projects/${projectId}/risks/refresh`, { method: "POST" });
4347
+ return unwrap2("refresh project risks", res);
4348
+ },
4327
4349
  // ─── Portfolio status ──────────────────────────────────────────────────
4328
4350
  /**
4329
4351
  * Cross-project ranked answer to "where do I focus next?". Returns a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "4.183.0",
3
+ "version": "4.184.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",