clementine-agent 1.18.70 → 1.18.71

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.
@@ -33,7 +33,11 @@ const CLI_ENTRY = path.join(PACKAGE_ROOT, 'dist', 'cli', 'index.js');
33
33
  const ICONS_DIR = path.join(PACKAGE_ROOT, 'build', 'icons');
34
34
  const BASE_DIR = process.env.CLEMENTINE_HOME || path.join(os.homedir(), '.clementine');
35
35
  const DEFAULT_PORT = Number(process.env.CLEMENTINE_DESKTOP_PORT || process.env.DASHBOARD_PORT || 3030);
36
- const NODE_BINARY = process.env.CLEMENTINE_NODE_PATH || 'node';
36
+ // Use Electron's bundled Node runtime (via ELECTRON_RUN_AS_NODE) so the
37
+ // desktop app does not depend on a `node` binary being on the host PATH.
38
+ // macOS GUI launches (Finder/Spotlight/Dock) get a barebones PATH that
39
+ // excludes Homebrew and NVM, which previously caused `spawn node ENOENT`.
40
+ const NODE_BINARY = process.env.CLEMENTINE_NODE_PATH || process.execPath;
37
41
  let mainWindow = null;
38
42
  let tray = null;
39
43
  let dashboardProcess = null;
@@ -138,6 +142,9 @@ function startDashboardProcess(port) {
138
142
  CLEMENTINE_HOME: BASE_DIR,
139
143
  CLEMENTINE_NO_OPEN: '1',
140
144
  __CLEM_DASHBOARD_CHILD: '1',
145
+ // Run Electron's binary as plain Node when no host node is configured.
146
+ // No-op when the user pinned a real node via CLEMENTINE_NODE_PATH.
147
+ ELECTRON_RUN_AS_NODE: process.env.CLEMENTINE_NODE_PATH ? '0' : '1',
141
148
  },
142
149
  stdio: ['ignore', 'pipe', 'pipe'],
143
150
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clementine-agent",
3
- "version": "1.18.70",
3
+ "version": "1.18.71",
4
4
  "description": "Clementine — Personal AI Assistant (TypeScript)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",