coder-config 0.44.37 → 0.44.38
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/lib/constants.js +1 -1
- package/package.json +1 -1
- package/ui/terminal-server.cjs +25 -16
package/lib/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coder-config",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.38",
|
|
4
4
|
"description": "Configuration manager for AI coding tools - Claude Code, Gemini CLI, Codex CLI, Antigravity. Manage MCPs, rules, permissions, memory, and workstreams.",
|
|
5
5
|
"author": "regression.io",
|
|
6
6
|
"main": "config-loader.js",
|
package/ui/terminal-server.cjs
CHANGED
|
@@ -87,30 +87,39 @@ class TerminalServer {
|
|
|
87
87
|
ptyProcess.write(cmd + '\r');
|
|
88
88
|
|
|
89
89
|
// If delayed command provided, send it when claude is ready
|
|
90
|
-
// Watch for claude's
|
|
90
|
+
// Watch for claude's input prompt in output
|
|
91
91
|
if (delayedCmd) {
|
|
92
92
|
let delayedCmdSent = false;
|
|
93
93
|
let outputBuffer = '';
|
|
94
|
+
let bannerSeen = false;
|
|
94
95
|
|
|
95
96
|
const checkReady = (data) => {
|
|
96
97
|
if (delayedCmdSent) return;
|
|
97
98
|
outputBuffer += data;
|
|
98
99
|
|
|
99
|
-
// Claude
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
100
|
+
// First wait for the Claude Code banner to appear
|
|
101
|
+
if (!bannerSeen && outputBuffer.includes('Claude Code')) {
|
|
102
|
+
bannerSeen = true;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// After banner, look for the actual input prompt
|
|
106
|
+
// Claude shows "> " or "❯ " when ready for input
|
|
107
|
+
// The prompt appears on its own line after the banner
|
|
108
|
+
if (bannerSeen) {
|
|
109
|
+
const lines = outputBuffer.split('\n');
|
|
110
|
+
const lastFewLines = lines.slice(-5).join('\n');
|
|
111
|
+
|
|
112
|
+
// Look for prompt indicators at start of line
|
|
113
|
+
// > Try "..." or just > waiting for input
|
|
114
|
+
if (lastFewLines.match(/^[>\❯]\s/m) ||
|
|
115
|
+
lastFewLines.includes('> Try') ||
|
|
116
|
+
lastFewLines.includes('❯ ')) {
|
|
117
|
+
delayedCmdSent = true;
|
|
118
|
+
// Small delay after detecting ready state
|
|
119
|
+
setTimeout(() => {
|
|
120
|
+
ptyProcess.write(delayedCmd + '\r');
|
|
121
|
+
}, 200);
|
|
122
|
+
}
|
|
114
123
|
}
|
|
115
124
|
};
|
|
116
125
|
|