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 +1 -1
- package/cli/status.js +3 -1
- package/client/capture.js +5 -1
- package/package.json +1 -1
package/.commithash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|