@jtalk22/slack-mcp 3.0.0 → 3.1.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.
@@ -12,6 +12,12 @@ const NPM_PACKAGE =
12
12
  process.env.RELEASE_HEALTH_NPM_PACKAGE ||
13
13
  process.env.GROWTH_NPM_PACKAGE ||
14
14
  "@jtalk22/slack-mcp";
15
+ const argv = process.argv.slice(2);
16
+
17
+ function argValue(flag) {
18
+ const idx = argv.indexOf(flag);
19
+ return idx >= 0 && idx + 1 < argv.length ? argv[idx + 1] : null;
20
+ }
15
21
 
16
22
  function safeGhApi(path) {
17
23
  try {
@@ -132,7 +138,13 @@ async function main() {
132
138
 
133
139
  const markdown = buildMarkdown(data);
134
140
 
135
- const metricsDir = resolve("docs", "release-health");
141
+ const explicitOutDir = argValue("--out-dir");
142
+ const publicMode = argv.includes("--public");
143
+ const metricsDir = explicitOutDir
144
+ ? resolve(explicitOutDir)
145
+ : publicMode
146
+ ? resolve("docs", "release-health")
147
+ : resolve("output", "release-health");
136
148
  const datedPath = join(metricsDir, `${dateSlug}.md`);
137
149
  const latestPath = join(metricsDir, "latest.md");
138
150