nemoris 0.1.17 → 0.1.18

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/package.json +1 -1
  2. package/src/cli-main.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nemoris",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "type": "module",
5
5
  "description": "Personal AI agent runtime — persistent memory, delivery guarantees, task contracts, self-healing. Local-first, no cloud.",
6
6
  "license": "MIT",
package/src/cli-main.js CHANGED
@@ -2779,8 +2779,9 @@ export async function main(argv = process.argv) {
2779
2779
  // Re-read the installed package.json to get the actual new version
2780
2780
  let newVersion;
2781
2781
  try {
2782
- const globalPkg = execSync("node -e \"process.stdout.write(require('nemoris/package.json').version)\"", { encoding: "utf8", timeout: 5_000 }).trim();
2783
- newVersion = globalPkg || null;
2782
+ const globalRoot = execSync("npm root -g", { encoding: "utf8", timeout: 5_000 }).trim();
2783
+ const installedPkg = JSON.parse(fs.readFileSync(path.join(globalRoot, "nemoris", "package.json"), "utf8"));
2784
+ newVersion = installedPkg.version || null;
2784
2785
  } catch {
2785
2786
  newVersion = null;
2786
2787
  }