lean-spec 0.1.4 → 0.1.5

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
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.5] - 2025-11-10
11
+
12
+ ### Fixed
13
+ - MCP server version now also read dynamically from package.json
14
+ - Complete version consistency across CLI and MCP server
15
+
10
16
  ## [0.1.4] - 2025-11-10
11
17
 
12
18
  ### Fixed
@@ -211,6 +217,7 @@ This UAT release operationalizes LeanSpec's five first principles:
211
217
  - Gray-matter for frontmatter parsing
212
218
  - Dayjs for date handling
213
219
 
220
+ [0.1.5]: https://github.com/codervisor/lean-spec/releases/tag/v0.1.5
214
221
  [0.1.4]: https://github.com/codervisor/lean-spec/releases/tag/v0.1.4
215
222
  [0.1.3]: https://github.com/codervisor/lean-spec/releases/tag/v0.1.3
216
223
  [0.1.2]: https://github.com/codervisor/lean-spec/releases/tag/v0.1.2
@@ -459,8 +459,8 @@ async function getProjectName(cwd = process.cwd()) {
459
459
  try {
460
460
  const packageJsonPath = path4.join(cwd, "package.json");
461
461
  const content = await fs4.readFile(packageJsonPath, "utf-8");
462
- const packageJson = JSON.parse(content);
463
- return packageJson.name || null;
462
+ const packageJson2 = JSON.parse(content);
463
+ return packageJson2.name || null;
464
464
  } catch {
465
465
  return null;
466
466
  }
@@ -4710,6 +4710,14 @@ async function mcpCommand() {
4710
4710
  }
4711
4711
 
4712
4712
  // src/mcp-server.ts
4713
+ import { readFileSync } from "fs";
4714
+ import { fileURLToPath as fileURLToPath2 } from "url";
4715
+ import { dirname as dirname3, join as join18 } from "path";
4716
+ var __filename2 = fileURLToPath2(import.meta.url);
4717
+ var __dirname3 = dirname3(__filename2);
4718
+ var packageJson = JSON.parse(
4719
+ readFileSync(join18(__dirname3, "../package.json"), "utf-8")
4720
+ );
4713
4721
  function formatErrorMessage(prefix, error) {
4714
4722
  const errorMsg = error instanceof Error ? error.message : String(error);
4715
4723
  return `${prefix}: ${errorMsg}`;
@@ -4861,7 +4869,7 @@ async function getDepsData(specPath) {
4861
4869
  async function createMcpServer() {
4862
4870
  const server = new McpServer({
4863
4871
  name: "lean-spec",
4864
- version: "0.1.0"
4872
+ version: packageJson.version
4865
4873
  });
4866
4874
  server.registerTool(
4867
4875
  "list",
@@ -5645,4 +5653,4 @@ export {
5645
5653
  createMcpServer,
5646
5654
  mcpCommand
5647
5655
  };
5648
- //# sourceMappingURL=chunk-S6TGAL75.js.map
5656
+ //# sourceMappingURL=chunk-J7ZSZ5VJ.js.map