@aisystemresources/emdee 0.1.1 → 0.1.2
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/bin/emdee.js +7 -1
- package/package.json +1 -1
- package/src/mcp/server.ts +2 -1
package/bin/emdee.js
CHANGED
|
@@ -2,12 +2,18 @@
|
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
import { mkdir, writeFile, access } from "node:fs/promises";
|
|
5
|
+
import { createRequire } from "node:module";
|
|
5
6
|
import readline from "node:readline/promises";
|
|
6
7
|
import path from "node:path";
|
|
7
8
|
import { fileURLToPath } from "node:url";
|
|
8
9
|
|
|
9
10
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
10
11
|
const pkgRoot = path.resolve(__dirname, "..");
|
|
12
|
+
// Version comes from package.json — `npm version <bump>` is the one
|
|
13
|
+
// place the string ever needs to change. createRequire works on any
|
|
14
|
+
// Node >= 14 without depending on the newer `import ... with { type: "json" }`
|
|
15
|
+
// attribute syntax (stable only in Node 20.10+).
|
|
16
|
+
const pkg = createRequire(import.meta.url)("../package.json");
|
|
11
17
|
|
|
12
18
|
// SPRINT-090: `start` and `serve-next` shell out to Vite / Next.js against
|
|
13
19
|
// the full repo. Those files (app/, next.config.*, etc.) aren't in the
|
|
@@ -60,7 +66,7 @@ function ownerNodeScaffold(title) {
|
|
|
60
66
|
}
|
|
61
67
|
|
|
62
68
|
const program = new Command();
|
|
63
|
-
program.name("emdee").description("Emdee — local docs + knowledge graph + MCP").version(
|
|
69
|
+
program.name("emdee").description("Emdee — local docs + knowledge graph + MCP").version(pkg.version);
|
|
64
70
|
|
|
65
71
|
program
|
|
66
72
|
.command("init")
|
package/package.json
CHANGED
package/src/mcp/server.ts
CHANGED
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
restoreDoc,
|
|
28
28
|
} from "../lib/mcp/tools/index.js";
|
|
29
29
|
import type { ToolContext } from "../lib/mcp/tools/types.js";
|
|
30
|
+
import pkg from "../../package.json";
|
|
30
31
|
// SPRINT-021: this stdio entrypoint is hardcoded to local mode (no
|
|
31
32
|
// clerk_id, no namespace), so mcp_activity logging is intentionally
|
|
32
33
|
// skipped here. Cloud-mode logging lives in app/api/mcp/route.ts.
|
|
@@ -37,7 +38,7 @@ const ctx: ToolContext = { mode: "local", docsDir };
|
|
|
37
38
|
const server = new Server(
|
|
38
39
|
{
|
|
39
40
|
name: "emdee",
|
|
40
|
-
version:
|
|
41
|
+
version: pkg.version,
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
44
|
capabilities: { tools: {} },
|