codeep 1.3.39 → 1.3.40
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/acp/server.js +12 -0
- package/dist/acp/transport.js +8 -1
- package/package.json +1 -1
package/dist/acp/server.js
CHANGED
|
@@ -708,6 +708,18 @@ export function startAcpServer() {
|
|
|
708
708
|
transport.error(msg.id, -32602, `Unknown sessionId: ${params.sessionId}`);
|
|
709
709
|
return;
|
|
710
710
|
}
|
|
711
|
+
// Re-advertise commands on every prompt — Zed sometimes drops the initial
|
|
712
|
+
// `available_commands_update` from session/new because the thread_view
|
|
713
|
+
// isn't registered yet on Zed's side (race against the session/new
|
|
714
|
+
// response). Re-sending here guarantees `/` autocomplete works by the
|
|
715
|
+
// time the user could plausibly type the next prompt.
|
|
716
|
+
transport.notify('session/update', {
|
|
717
|
+
sessionId: params.sessionId,
|
|
718
|
+
update: {
|
|
719
|
+
sessionUpdate: 'available_commands_update',
|
|
720
|
+
availableCommands: AVAILABLE_COMMANDS,
|
|
721
|
+
},
|
|
722
|
+
});
|
|
711
723
|
// Extract text from ContentBlock[]
|
|
712
724
|
let prompt = params.prompt
|
|
713
725
|
.filter((b) => b.type === 'text')
|
package/dist/acp/transport.js
CHANGED
|
@@ -26,6 +26,9 @@ export class StdioTransport {
|
|
|
26
26
|
if (!trimmed)
|
|
27
27
|
continue;
|
|
28
28
|
try {
|
|
29
|
+
if (process.env.CODEEP_ACP_DEBUG) {
|
|
30
|
+
process.stderr.write(`[ACP←client] ${trimmed}\n`);
|
|
31
|
+
}
|
|
29
32
|
const msg = JSON.parse(trimmed);
|
|
30
33
|
// Check if this is a response to one of our outbound requests
|
|
31
34
|
if ('result' in msg || 'error' in msg) {
|
|
@@ -45,7 +48,11 @@ export class StdioTransport {
|
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
50
|
send(msg) {
|
|
48
|
-
|
|
51
|
+
const line = JSON.stringify(msg);
|
|
52
|
+
if (process.env.CODEEP_ACP_DEBUG) {
|
|
53
|
+
process.stderr.write(`[ACP→client] ${line}\n`);
|
|
54
|
+
}
|
|
55
|
+
process.stdout.write(line + '\n');
|
|
49
56
|
}
|
|
50
57
|
respond(id, result) {
|
|
51
58
|
this.send({ jsonrpc: '2.0', id, result });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.40",
|
|
4
4
|
"description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|