@meltstudio/meltctl 4.151.0 → 4.153.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 +41 -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.151.0";
17
+ CLI_VERSION = "4.153.0";
18
18
  }
19
19
  });
20
20
 
@@ -498,6 +498,24 @@ function createStandupsResource(config) {
498
498
  if (status !== 200)
499
499
  throw new Error(data.error ?? `Failed to fetch missing standups (${status})`);
500
500
  return data;
501
+ },
502
+ /**
503
+ * Per-developer standup-compliance counts over a sliding window. Feeds
504
+ * the dashboard's "Standup discipline" verdict on the developer detail
505
+ * page and the worklist items for the negative tiers (inconsistent /
506
+ * slipping / missing). Manager-only.
507
+ */
508
+ async getPerPersonStats(opts) {
509
+ const params = new URLSearchParams();
510
+ if (opts?.windowDays)
511
+ params.set("windowDays", String(opts.windowDays));
512
+ const path9 = `/standups/per-person-stats${params.toString() ? `?${params}` : ""}`;
513
+ const { data, status } = await apiFetch(config, path9);
514
+ if (status === 403)
515
+ throw new Error("Access denied. Only Team Managers can view standup stats.");
516
+ if (status !== 200)
517
+ throw new Error(data.error ?? `Failed to fetch standup per-person stats (${status})`);
518
+ return data;
501
519
  }
502
520
  };
503
521
  }
@@ -1605,6 +1623,9 @@ var ISSUE_RULES = [
1605
1623
  ];
1606
1624
  var RULE_BY_ID = new Map(ISSUE_RULES.map((r) => [r.id, r]));
1607
1625
 
1626
+ // ../sdk/dist/utils/health-issues-derivation.js
1627
+ var FOURTEEN_DAYS_MS = 14 * 24 * 60 * 60 * 1e3;
1628
+
1608
1629
  // src/utils/api.ts
1609
1630
  async function getToken() {
1610
1631
  const envToken = process.env["MELTCTL_TOKEN"];
@@ -3348,6 +3369,24 @@ function createStandupsResource2(config) {
3348
3369
  if (status !== 200)
3349
3370
  throw new Error(data.error ?? `Failed to fetch missing standups (${status})`);
3350
3371
  return data;
3372
+ },
3373
+ /**
3374
+ * Per-developer standup-compliance counts over a sliding window. Feeds
3375
+ * the dashboard's "Standup discipline" verdict on the developer detail
3376
+ * page and the worklist items for the negative tiers (inconsistent /
3377
+ * slipping / missing). Manager-only.
3378
+ */
3379
+ async getPerPersonStats(opts) {
3380
+ const params = new URLSearchParams();
3381
+ if (opts?.windowDays)
3382
+ params.set("windowDays", String(opts.windowDays));
3383
+ const path22 = `/standups/per-person-stats${params.toString() ? `?${params}` : ""}`;
3384
+ const { data, status } = await apiFetch2(config, path22);
3385
+ if (status === 403)
3386
+ throw new Error("Access denied. Only Team Managers can view standup stats.");
3387
+ if (status !== 200)
3388
+ throw new Error(data.error ?? `Failed to fetch standup per-person stats (${status})`);
3389
+ return data;
3351
3390
  }
3352
3391
  };
3353
3392
  }
@@ -4421,6 +4460,7 @@ var ISSUE_RULES2 = [
4421
4460
  }
4422
4461
  ];
4423
4462
  var RULE_BY_ID2 = new Map(ISSUE_RULES2.map((r) => [r.id, r]));
4463
+ var FOURTEEN_DAYS_MS2 = 14 * 24 * 60 * 60 * 1e3;
4424
4464
  var AUTH_DIR2 = path8.join(os3.homedir(), ".meltctl");
4425
4465
  var AUTH_FILE2 = path8.join(AUTH_DIR2, "auth.json");
4426
4466
  var API_BASE2 = process.env["MELTCTL_API_URL"] ?? "https://meltctl-api.meltstudio.co";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "4.151.0",
3
+ "version": "4.153.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",