@dmsdc-ai/aigentry-deliberation 0.0.4 → 0.0.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.
Files changed (2) hide show
  1. package/index.js +7 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -32,7 +32,7 @@ Usage:
32
32
  }
33
33
 
34
34
  /**
35
- * MCP Deliberation Server (Global) — v2.5 Multi-Session + Transport Routing + Cross-Platform + BrowserControlPort
35
+ * MCP Deliberation Server (Global) — Multi-Session + Transport Routing + Cross-Platform + BrowserControlPort
36
36
  *
37
37
  * 모든 프로젝트에서 사용 가능한 AI 간 deliberation 서버.
38
38
  * 동시에 여러 deliberation을 병렬 진행할 수 있다.
@@ -63,6 +63,7 @@ import { z } from "zod";
63
63
  import { execFileSync, spawn } from "child_process";
64
64
  import fs from "fs";
65
65
  import path from "path";
66
+ import { fileURLToPath } from "url";
66
67
  import os from "os";
67
68
  import { OrchestratedBrowserPort } from "./browser-control-port.js";
68
69
 
@@ -2134,9 +2135,13 @@ process.on("unhandledRejection", (reason) => {
2134
2135
  }
2135
2136
  });
2136
2137
 
2138
+ // Read version from package.json (single source of truth)
2139
+ const __pkgPath = path.join(path.dirname(fileURLToPath(import.meta.url)), "package.json");
2140
+ const __pkgVersion = JSON.parse(fs.readFileSync(__pkgPath, "utf-8")).version;
2141
+
2137
2142
  const server = new McpServer({
2138
2143
  name: "mcp-deliberation",
2139
- version: "2.4.0",
2144
+ version: __pkgVersion,
2140
2145
  });
2141
2146
 
2142
2147
  server.tool(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-deliberation",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "MCP Deliberation Server — Multi-session AI deliberation with smart speaker ordering and persona roles",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -40,10 +40,10 @@
40
40
  "README.md"
41
41
  ],
42
42
  "scripts": {
43
- "postinstall": "node install.js || true",
44
43
  "start": "node index.js",
45
44
  "test": "vitest run",
46
- "test:watch": "vitest"
45
+ "test:watch": "vitest",
46
+ "prepublishOnly": "vitest run"
47
47
  },
48
48
  "dependencies": {
49
49
  "@modelcontextprotocol/sdk": "^1.26.0",