ai-lens 0.8.24 → 0.8.26

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
- 39d3d60
1
+ 188d752
package/cli/status.js CHANGED
@@ -195,7 +195,9 @@ function checkCaptureRun(installedTools) {
195
195
  isWin ? 'powershell.exe' : command,
196
196
  isWin ? ['-NoProfile', '-Command', command] : [],
197
197
  {
198
- input: shellEvent,
198
+ // Prepend UTF-8 BOM on Windows — PowerShell adds it when piping stdin,
199
+ // so we must test that capture.js handles it correctly.
200
+ input: isWin ? '\uFEFF' + shellEvent : shellEvent,
199
201
  shell: !isWin,
200
202
  encoding: 'utf-8',
201
203
  timeout: 10_000,
package/client/capture.js CHANGED
@@ -578,7 +578,11 @@ async function main() {
578
578
  input += chunk;
579
579
  }
580
580
 
581
- if (!input.trim()) {
581
+ // Strip UTF-8 BOM — Windows PowerShell adds it when piping stdin
582
+ if (input.charCodeAt(0) === 0xFEFF) input = input.slice(1);
583
+ input = input.trim();
584
+
585
+ if (!input) {
582
586
  logDrop('empty_stdin');
583
587
  process.exit(0);
584
588
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-lens",
3
- "version": "0.8.24",
3
+ "version": "0.8.26",
4
4
  "type": "module",
5
5
  "description": "Centralized session analytics for AI coding tools",
6
6
  "bin": {