dsh-codebuddy-sdk 0.1.1 → 0.1.2
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/stream.js +3 -5
- package/package.json +5 -5
package/dist/stream.js
CHANGED
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
* execute the tool, so one call to {@link translateStep} consumes exactly one
|
|
8
8
|
* CodeBuddy turn and stops at that boundary.
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
return value;
|
|
12
|
-
}
|
|
10
|
+
import { ToolCallId } from '@deepseek-ai/dsh-llm';
|
|
13
11
|
function mapUsage(usage) {
|
|
14
12
|
return {
|
|
15
13
|
inputTokens: usage?.input_tokens ?? 0,
|
|
@@ -81,7 +79,7 @@ export async function* translateStep(source, bridge, callerSignal) {
|
|
|
81
79
|
yield {
|
|
82
80
|
type: 'tool-call-delta',
|
|
83
81
|
index: event.index,
|
|
84
|
-
id:
|
|
82
|
+
id: ToolCallId(known?.id ?? ''),
|
|
85
83
|
...known?.name === undefined ? {} : { name: known.name },
|
|
86
84
|
argumentsDelta: delta.partial_json,
|
|
87
85
|
};
|
|
@@ -121,7 +119,7 @@ export async function* translateStep(source, bridge, callerSignal) {
|
|
|
121
119
|
index,
|
|
122
120
|
block: {
|
|
123
121
|
type: 'tool-call',
|
|
124
|
-
id:
|
|
122
|
+
id: ToolCallId(block.id),
|
|
125
123
|
name: block.name,
|
|
126
124
|
arguments: argumentBuffers.get(index) || JSON.stringify(block.input ?? {}),
|
|
127
125
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-codebuddy-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "DeepSeek Harness plugin: CodeBuddy (Tencent Agent SDK) as an LLM provider (ctx.llm).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
],
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@deepseek-ai/cordis": "
|
|
39
|
-
"@deepseek-ai/dsh-credentials": "
|
|
40
|
-
"@deepseek-ai/dsh-llm": "
|
|
41
|
-
"@deepseek-ai/schemastery": "
|
|
38
|
+
"@deepseek-ai/cordis": "~4.0.5",
|
|
39
|
+
"@deepseek-ai/dsh-credentials": "0.2.1-rc.2",
|
|
40
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.2",
|
|
41
|
+
"@deepseek-ai/schemastery": "~3.18.5",
|
|
42
42
|
"@tencent-ai/agent-sdk": "^0.3.267",
|
|
43
43
|
"change-case": "^5.4.4",
|
|
44
44
|
"zod": "^4.0.0"
|