@jadenrazo/cloudcost-mcp 1.2.0 → 1.2.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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,28 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.2.1] - 2026-08-07
10
+
11
+ ### Fixed
12
+
13
+ - **The `cloudcost` CLI could not start.** `dist/cli.js` shipped with two
14
+ `#!/usr/bin/env node` lines — one from `src/cli.ts` and one from the
15
+ `banner.js` that `tsup.config.ts` injects into every bundle. Node strips only
16
+ a line-1 shebang, so the second parsed as code and the binary died with
17
+ `SyntaxError: Invalid or unexpected token`. The shebang is now declared in
18
+ exactly one place (the tsup banner). This affected every published release up
19
+ to and including 1.2.0, so 1.2.0's `--currency` flag was unreachable in
20
+ practice. The MCP server entrypoint (`cloudcost-mcp`) was never affected —
21
+ `src/index.ts` carried no shebang of its own.
22
+
23
+ ### Tests
24
+
25
+ - `test/unit/cli/shebang.test.ts` guards the artifact users actually run: no
26
+ source entrypoint may declare a shebang, each built bin must contain exactly
27
+ one on line 1, and `dist/cli.js` must start under Node. The existing CLI
28
+ suites all execute `src/cli.ts` through the TypeScript loader, which is why a
29
+ build-output defect went unnoticed across six releases.
30
+
9
31
  ## [1.2.0] - 2026-08-07
10
32
 
11
33
  > Released as 1.2.0, not 1.1.0. The `v1.1.0` tag was already taken by an earlier
package/dist/cli.d.ts CHANGED
@@ -1,7 +1,11 @@
1
- #!/usr/bin/env node
2
1
  /**
3
2
  * CloudCost MCP CLI
4
3
  *
4
+ * NOTE: do not add a `#!/usr/bin/env node` line here. tsup injects one into
5
+ * every bundle via `banner.js` in tsup.config.ts; a second copy in this source
6
+ * file lands on line 2 of dist/cli.js, where Node does not strip it, and the
7
+ * binary dies with `SyntaxError: Invalid or unexpected token`.
8
+ *
5
9
  * Standalone command-line interface for the CloudCost MCP server tools.
6
10
  *
7
11
  * Usage:
package/dist/cli.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- #!/usr/bin/env node
3
2
  import {
4
3
  PricingCache,
5
4
  PricingEngine,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jadenrazo/cloudcost-mcp",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "MCP server for multi-cloud cost analysis of Terraform, CloudFormation, Pulumi, and Bicep/ARM codebases",
5
5
  "type": "module",
6
6
  "license": "MIT",