codeep 1.2.57 → 1.2.58
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 +1 -0
- package/dist/acp/session.d.ts +1 -0
- package/dist/acp/session.js +2 -2
- package/package.json +1 -1
package/dist/acp/protocol.d.ts
CHANGED
package/dist/acp/session.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface AgentSessionOptions {
|
|
|
7
7
|
onChunk: (text: string) => void;
|
|
8
8
|
onThought?: (text: string) => void;
|
|
9
9
|
onToolCall?: (toolCallId: string, toolName: string, kind: string, title: string, status: 'pending' | 'running' | 'finished' | 'error', locations?: string[], rawOutput?: string, content?: {
|
|
10
|
+
type: 'Content';
|
|
10
11
|
oldText?: string;
|
|
11
12
|
newText?: string;
|
|
12
13
|
}) => void;
|
package/dist/acp/session.js
CHANGED
|
@@ -53,14 +53,14 @@ function buildToolCallContent(toolName, params) {
|
|
|
53
53
|
switch (toolName) {
|
|
54
54
|
case 'write_file': {
|
|
55
55
|
const content = params.content ?? '';
|
|
56
|
-
return content ? { newText: content } : undefined;
|
|
56
|
+
return content ? { type: 'Content', newText: content } : undefined;
|
|
57
57
|
}
|
|
58
58
|
case 'edit_file': {
|
|
59
59
|
const oldText = params.old_text ?? '';
|
|
60
60
|
const newText = params.new_text ?? '';
|
|
61
61
|
if (!oldText && !newText)
|
|
62
62
|
return undefined;
|
|
63
|
-
return { oldText: oldText || undefined, newText: newText || undefined };
|
|
63
|
+
return { type: 'Content', oldText: oldText || undefined, newText: newText || undefined };
|
|
64
64
|
}
|
|
65
65
|
default:
|
|
66
66
|
return undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeep",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.58",
|
|
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",
|