code-squad-cli 1.2.19 → 1.2.21
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/dist/flip/index.js +12 -1
- package/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/flip/index.js
CHANGED
|
@@ -8,8 +8,14 @@ import { execSync } from 'child_process';
|
|
|
8
8
|
import { copyToClipboard } from './output/clipboard.js';
|
|
9
9
|
const DEFAULT_PORT = 51234;
|
|
10
10
|
const MAX_PORT = 51240;
|
|
11
|
+
// Quiet mode: no logs in coprocess mode to avoid iTerm error indicators
|
|
12
|
+
let quietMode = false;
|
|
11
13
|
// Use stderr for info messages (stdout goes to terminal input in coprocess mode)
|
|
12
|
-
const log = (...args) =>
|
|
14
|
+
const log = (...args) => {
|
|
15
|
+
if (!quietMode) {
|
|
16
|
+
console.error(...args);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
13
19
|
function formatTime() {
|
|
14
20
|
const now = new Date();
|
|
15
21
|
const hours = String(now.getHours()).padStart(2, '0');
|
|
@@ -63,6 +69,11 @@ async function registerSession(port, sessionId, cwd) {
|
|
|
63
69
|
});
|
|
64
70
|
}
|
|
65
71
|
export async function runFlip(args) {
|
|
72
|
+
// Enable quiet mode when running as coprocess (stdin is not a TTY)
|
|
73
|
+
// This prevents iTerm from showing error indicators for info messages
|
|
74
|
+
if (!process.stdin.isTTY) {
|
|
75
|
+
quietMode = true;
|
|
76
|
+
}
|
|
66
77
|
// Parse --session flag from anywhere in args
|
|
67
78
|
let sessionId;
|
|
68
79
|
const sessionIdx = args.indexOf('--session');
|
package/dist/index.js
CHANGED
|
@@ -1746,7 +1746,12 @@ import http2 from "http";
|
|
|
1746
1746
|
import { execSync as execSync2 } from "child_process";
|
|
1747
1747
|
var DEFAULT_PORT = 51234;
|
|
1748
1748
|
var MAX_PORT = 51240;
|
|
1749
|
-
var
|
|
1749
|
+
var quietMode = false;
|
|
1750
|
+
var log3 = (...args) => {
|
|
1751
|
+
if (!quietMode) {
|
|
1752
|
+
console.error(...args);
|
|
1753
|
+
}
|
|
1754
|
+
};
|
|
1750
1755
|
function formatTime() {
|
|
1751
1756
|
const now = /* @__PURE__ */ new Date();
|
|
1752
1757
|
const hours = String(now.getHours()).padStart(2, "0");
|
|
@@ -1792,6 +1797,9 @@ async function registerSession(port, sessionId, cwd) {
|
|
|
1792
1797
|
});
|
|
1793
1798
|
}
|
|
1794
1799
|
async function runFlip(args) {
|
|
1800
|
+
if (!process.stdin.isTTY) {
|
|
1801
|
+
quietMode = true;
|
|
1802
|
+
}
|
|
1795
1803
|
let sessionId;
|
|
1796
1804
|
const sessionIdx = args.indexOf("--session");
|
|
1797
1805
|
if (sessionIdx !== -1 && args[sessionIdx + 1]) {
|