cognova 0.2.15 → 0.2.16

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cognova-prod",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
package/dist/cli/index.js CHANGED
@@ -2149,6 +2149,8 @@ module.exports = {
2149
2149
  name: 'cognova',
2150
2150
  script: '.output/server/index.mjs',
2151
2151
  cwd: '${config.installDir}',
2152
+ // Use 'node' interpreter when NVM is detected to avoid path parsing issues
2153
+ interpreter: 'node',
2152
2154
  node_args: '--max-old-space-size=4096',
2153
2155
  env: {
2154
2156
  ...dotenv,
@@ -2206,7 +2208,15 @@ async function setupAndStart(config) {
2206
2208
  s.stop("Cognova is running");
2207
2209
  } catch (err) {
2208
2210
  s.stop("Failed to start");
2209
- R2.error(`PM2 error: ${err}`);
2211
+ const errMsg = String(err);
2212
+ if (errMsg.includes("nvm") && errMsg.includes("not found")) {
2213
+ R2.error("PM2 + NVM compatibility issue detected");
2214
+ R2.info("Try: pm2 delete cognova && pm2 start ecosystem.config.cjs");
2215
+ R2.info(`Working directory: ${config.installDir}`);
2216
+ } else {
2217
+ R2.error(`PM2 error: ${err}`);
2218
+ }
2219
+ throw err;
2210
2220
  }
2211
2221
  }
2212
2222
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cognova",
3
3
  "type": "module",
4
- "version": "0.2.15",
4
+ "version": "0.2.16",
5
5
  "description": "Personal knowledge management system with Claude Code integration",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1 +0,0 @@
1
- {"id":"7c42ae85-1cae-45f0-8cb9-ad3a10165c2c","timestamp":1771874253739,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}