@meltstudio/meltctl 4.124.1 → 4.125.1

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 +27 -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.124.1";
17
+ CLI_VERSION = "4.125.1";
18
18
  }
19
19
  });
20
20
 
@@ -1127,6 +1127,19 @@ function createSlackResource(config) {
1127
1127
  if (status >= 400)
1128
1128
  throw new Error(`Failed to test Slack mapping (${status}): ${data.error ?? ""}`);
1129
1129
  return data;
1130
+ },
1131
+ async listNotifications(opts) {
1132
+ const params = new URLSearchParams();
1133
+ if (opts?.limit !== void 0)
1134
+ params.set("limit", String(opts.limit));
1135
+ const qs = params.toString();
1136
+ const path9 = `/slack/notifications${qs ? `?${qs}` : ""}`;
1137
+ const { data, status } = await apiFetch(config, path9);
1138
+ if (status === 403)
1139
+ throw new Error("Access denied. Only Team Managers can view this.");
1140
+ if (status !== 200)
1141
+ throw new Error(`Failed to list Slack notifications (${status})`);
1142
+ return data;
1130
1143
  }
1131
1144
  };
1132
1145
  }
@@ -3656,6 +3669,19 @@ function createSlackResource2(config) {
3656
3669
  if (status >= 400)
3657
3670
  throw new Error(`Failed to test Slack mapping (${status}): ${data.error ?? ""}`);
3658
3671
  return data;
3672
+ },
3673
+ async listNotifications(opts) {
3674
+ const params = new URLSearchParams();
3675
+ if (opts?.limit !== void 0)
3676
+ params.set("limit", String(opts.limit));
3677
+ const qs = params.toString();
3678
+ const path22 = `/slack/notifications${qs ? `?${qs}` : ""}`;
3679
+ const { data, status } = await apiFetch2(config, path22);
3680
+ if (status === 403)
3681
+ throw new Error("Access denied. Only Team Managers can view this.");
3682
+ if (status !== 200)
3683
+ throw new Error(`Failed to list Slack notifications (${status})`);
3684
+ return data;
3659
3685
  }
3660
3686
  };
3661
3687
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "4.124.1",
3
+ "version": "4.125.1",
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",