context-mode 1.0.100 → 1.0.101

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/start.mjs CHANGED
@@ -152,8 +152,10 @@ try{
152
152
  h.hooks?.some((hh) => hh.command?.includes("context-mode-cache-heal")),
153
153
  );
154
154
  if (!alreadyRegistered) {
155
+ const _nodePath = process.execPath.replace(/\\/g, "/");
156
+ const _healPath = healHookPath.replace(/\\/g, "/");
155
157
  sessionStart.push({
156
- hooks: [{ type: "command", command: `node ${healHookPath}` }],
158
+ hooks: [{ type: "command", command: `"${_nodePath}" "${_healPath}"` }],
157
159
  });
158
160
  hooks.SessionStart = sessionStart;
159
161
  settings.hooks = hooks;