codeep 1.2.38 → 1.2.39
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/protocol.d.ts +6 -2
- package/dist/acp/server.js +17 -12
- package/package.json +1 -1
package/dist/acp/protocol.d.ts
CHANGED
|
@@ -128,8 +128,12 @@ export interface SessionUpdateAgentThoughtChunk {
|
|
|
128
128
|
export interface SessionUpdateToolCall {
|
|
129
129
|
sessionUpdate: 'tool_call';
|
|
130
130
|
toolCallId: string;
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
title: string;
|
|
132
|
+
kind?: string;
|
|
133
|
+
status: 'pending' | 'in_progress';
|
|
134
|
+
locations?: {
|
|
135
|
+
uri: string;
|
|
136
|
+
}[];
|
|
133
137
|
}
|
|
134
138
|
export interface SessionUpdateToolCallUpdate {
|
|
135
139
|
sessionUpdate: 'tool_call_update';
|
package/dist/acp/server.js
CHANGED
|
@@ -152,7 +152,7 @@ export function startAcpServer() {
|
|
|
152
152
|
};
|
|
153
153
|
transport.respond(msg.id, result);
|
|
154
154
|
// Advertise slash commands
|
|
155
|
-
transport.notify('
|
|
155
|
+
transport.notify('sessionUpdate', {
|
|
156
156
|
sessionId: acpSessionId,
|
|
157
157
|
update: {
|
|
158
158
|
sessionUpdate: 'available_commands_update',
|
|
@@ -160,7 +160,7 @@ export function startAcpServer() {
|
|
|
160
160
|
},
|
|
161
161
|
});
|
|
162
162
|
// Send welcome message
|
|
163
|
-
transport.notify('
|
|
163
|
+
transport.notify('sessionUpdate', {
|
|
164
164
|
sessionId: acpSessionId,
|
|
165
165
|
update: {
|
|
166
166
|
sessionUpdate: 'agent_message_chunk',
|
|
@@ -200,7 +200,7 @@ export function startAcpServer() {
|
|
|
200
200
|
};
|
|
201
201
|
transport.respond(msg.id, result);
|
|
202
202
|
// Send restored session welcome
|
|
203
|
-
transport.notify('
|
|
203
|
+
transport.notify('sessionUpdate', {
|
|
204
204
|
sessionId: params.sessionId,
|
|
205
205
|
update: {
|
|
206
206
|
sessionUpdate: 'agent_message_chunk',
|
|
@@ -226,7 +226,7 @@ export function startAcpServer() {
|
|
|
226
226
|
config.set('agentConfirmation', modeId === 'manual' ? 'dangerous' : 'never');
|
|
227
227
|
transport.respond(msg.id, {});
|
|
228
228
|
// Notify Zed of the mode change
|
|
229
|
-
transport.notify('
|
|
229
|
+
transport.notify('sessionUpdate', {
|
|
230
230
|
sessionId,
|
|
231
231
|
update: {
|
|
232
232
|
sessionUpdate: 'current_mode_update',
|
|
@@ -265,7 +265,7 @@ export function startAcpServer() {
|
|
|
265
265
|
const agentResponseChunks = [];
|
|
266
266
|
const sendChunk = (text) => {
|
|
267
267
|
agentResponseChunks.push(text);
|
|
268
|
-
transport.notify('
|
|
268
|
+
transport.notify('sessionUpdate', {
|
|
269
269
|
sessionId: params.sessionId,
|
|
270
270
|
update: {
|
|
271
271
|
sessionUpdate: 'agent_message_chunk',
|
|
@@ -298,7 +298,7 @@ export function startAcpServer() {
|
|
|
298
298
|
abortSignal: abortController.signal,
|
|
299
299
|
onChunk: sendChunk,
|
|
300
300
|
onThought: (text) => {
|
|
301
|
-
transport.notify('
|
|
301
|
+
transport.notify('sessionUpdate', {
|
|
302
302
|
sessionId: params.sessionId,
|
|
303
303
|
update: {
|
|
304
304
|
sessionUpdate: 'agent_thought_chunk',
|
|
@@ -306,26 +306,31 @@ export function startAcpServer() {
|
|
|
306
306
|
},
|
|
307
307
|
});
|
|
308
308
|
},
|
|
309
|
-
onToolCall: (toolCallId, toolName,
|
|
309
|
+
onToolCall: (toolCallId, toolName, kind, title, status, locations) => {
|
|
310
310
|
if (status === 'running') {
|
|
311
|
-
|
|
311
|
+
// Initial tool_call notification: spec ToolCall shape
|
|
312
|
+
transport.notify('sessionUpdate', {
|
|
312
313
|
sessionId: params.sessionId,
|
|
313
314
|
update: {
|
|
314
315
|
sessionUpdate: 'tool_call',
|
|
315
316
|
toolCallId,
|
|
316
|
-
|
|
317
|
-
|
|
317
|
+
title: title || toolName,
|
|
318
|
+
kind: kind || 'other',
|
|
319
|
+
status: 'in_progress',
|
|
320
|
+
...(locations && locations.length > 0
|
|
321
|
+
? { locations: locations.map(uri => ({ uri })) }
|
|
322
|
+
: {}),
|
|
318
323
|
},
|
|
319
324
|
});
|
|
320
325
|
}
|
|
321
326
|
else {
|
|
322
|
-
|
|
327
|
+
// tool_call_update: update status to completed/failed
|
|
328
|
+
transport.notify('sessionUpdate', {
|
|
323
329
|
sessionId: params.sessionId,
|
|
324
330
|
update: {
|
|
325
331
|
sessionUpdate: 'tool_call_update',
|
|
326
332
|
toolCallId,
|
|
327
333
|
status: status === 'finished' ? 'completed' : 'failed',
|
|
328
|
-
rawOutput: '',
|
|
329
334
|
},
|
|
330
335
|
});
|
|
331
336
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.39",
|
|
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",
|