ai-lens 0.8.32 → 0.8.34

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/.commithash CHANGED
@@ -1 +1 @@
1
- 02e0ba4
1
+ 5ed015e
package/cli/status.js CHANGED
@@ -134,6 +134,7 @@ function checkCaptureRun(installedTools) {
134
134
  hook_event_name: 'Stop',
135
135
  session_id: testSessionId,
136
136
  stop_reason: 'test',
137
+ cwd: join(homedir(), '.ai-lens-status-check-cwd'),
137
138
  });
138
139
  // Use spawnSync with stdin piped directly — avoids shell echo pipe syntax
139
140
  // that fails on Windows (no /usr/bin/env, single-quote handling differs).
@@ -188,12 +189,17 @@ function checkCaptureRun(installedTools) {
188
189
  let shellOk = false;
189
190
  let shellDetail = '';
190
191
  try {
191
- // On Windows, Cursor runs hooks via PowerShell, but shell:true uses cmd.exe.
192
- // Use powershell.exe explicitly so the `& "..."` call-operator syntax works.
192
+ // On Windows, Cursor runs hooks via PowerShell (needs `& "..."` call-operator),
193
+ // but Claude Code runs hooks via bash/cmd (no `&` prefix).
194
+ // Test each tool with the shell it actually uses.
193
195
  const isWin = process.platform === 'win32';
196
+ const isCursor = name === 'Cursor';
197
+ const usePS = isWin && isCursor;
194
198
  const shellResult = spawnSync(
195
- isWin ? 'powershell.exe' : command,
196
- isWin ? ['-NoProfile', '-Command', command] : [],
199
+ usePS ? 'powershell.exe' : isWin ? 'cmd.exe' : command,
200
+ usePS ? ['-NoProfile', '-Command', command]
201
+ : isWin ? ['/c', command]
202
+ : [],
197
203
  {
198
204
  // Prepend UTF-8 BOM on Windows — PowerShell adds it when piping stdin,
199
205
  // so we must test that capture.js handles it correctly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-lens",
3
- "version": "0.8.32",
3
+ "version": "0.8.34",
4
4
  "type": "module",
5
5
  "description": "Centralized session analytics for AI coding tools",
6
6
  "bin": {