mrmainspring 0.1.3 → 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.
Files changed (2) hide show
  1. package/dist/cli.js +6 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,10 +1,12 @@
1
- import { existsSync, mkdirSync, writeFileSync } from "node:fs";
2
- import { dirname } from "node:path";
1
+ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
2
+ import { dirname, join } from "node:path";
3
3
  import { spawnSync } from "node:child_process";
4
+ import { fileURLToPath } from "node:url";
4
5
  import { loadConfig } from "./config.js";
5
6
  import { ensureGrimoireMasterKey, loadLocalEnvFile, resolveEnvPath } from "./env-file.js";
6
7
  import { getDefaultMainspringPaths } from "./paths.js";
7
- const VERSION = "0.1.2";
8
+ const _pkgRoot = dirname(dirname(fileURLToPath(import.meta.url)));
9
+ const VERSION = JSON.parse(readFileSync(join(_pkgRoot, "package.json"), "utf8")).version;
8
10
  const HELP = `Mr Mainspring MCP server
9
11
 
10
12
  Usage:
@@ -13,7 +15,7 @@ Usage:
13
15
  mainspring --version Show the installed version
14
16
  mainspring init Create local config, data, and logs directories
15
17
  mainspring config Print MCP client config JSON
16
- mainspring setup [client] Initialize local files and print MCP config
18
+ mainspring setup Initialize local files and print MCP config
17
19
  mainspring doctor Check the local setup
18
20
  mainspring update Show how to update to the latest version
19
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mrmainspring",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Mr Mainspring MCP backend with memory, Grimoire policies, audit, Casper anchoring, and x402 settlement boundaries.",
5
5
  "license": "MIT",
6
6
  "type": "module",