@tencent-ai/agent-harness 0.2.0-beta.3 → 0.2.0-beta.4
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/CHANGELOG.md +14 -0
- package/cli/dist-server/shared.cjs +267 -210
- package/cli/dist-server/types/node/acp/acp-protocol.d.ts +8 -0
- package/cli/dist-server/types/node/loopback/server-protocol.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-protocol.d.ts +23 -22
- package/cli/dist-server/types/vendor/cbc-core/node/agent/runner-factory.d.ts +18 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/index.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/mods-bridge.d.ts +115 -0
- package/cli/dist-server/types/vendor/cbc-core/node/message-queue/followup-queue-protocol.d.ts +3 -2
- package/cli/dist-server/types/vendor/cbc-core/node/message-queue/followup-queue.d.ts +1 -1
- package/cli/dist-server/types/vendor/cbc-core/node/message-queue/steer-input-buffer-protocol.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/can-use-tool.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-manager.d.ts +30 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +12 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/input-item-utils.d.ts +1 -1
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/prompt-codec.d.ts +4 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/types.d.ts +15 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/runner-factory.d.ts +18 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/mods-bridge.d.ts +115 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/message-queue/followup-queue-protocol.d.ts +3 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/message-queue/followup-queue.d.ts +1 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/message-queue/steer-input-buffer-protocol.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/can-use-tool.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-manager.d.ts +30 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/input-item-utils.d.ts +1 -1
- package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +16 -0
- package/cli/dist-server/types/workspace/prompts/lib/common/product-prompt-provider.d.ts +3 -1
- package/cli/dist-server/types/workspace/prompts/lib/common/prompt-protocol.d.ts +6 -0
- package/cli/product.cloudhosted.json +1 -803
- package/cli/product.internal.json +1 -1061
- package/cli/product.ioa.json +1 -1523
- package/cli/product.json +1 -2217
- package/cli/product.selfhosted.json +1 -364
- package/docs/acp-v2.md +19 -0
- package/docs/client.md +7 -0
- package/docs/product.md +4 -0
- package/docs/protocol.md +3 -1
- package/lib/agent/v2.js +1 -1
- package/lib/application/services.js +1 -1
- package/lib/auth/module.d.ts +3 -1
- package/lib/auth/module.js +1 -1
- package/lib/client/client.js +1 -1
- package/lib/components/sandbox.d.mts +2 -0
- package/lib/components/sandbox.mjs +1 -0
- package/lib/components/session-replay.d.mts +2 -0
- package/lib/components/session-replay.mjs +1 -1
- package/lib/effect-runtime/concurrency.d.mts +2 -4
- package/lib/effect-runtime/concurrency.mjs +1 -1
- package/lib/effect-runtime/process-runtime-context.d.ts +5 -1
- package/lib/protocol/acp-v2-credits.d.ts +10 -0
- package/lib/protocol/acp-v2-credits.js +1 -0
- package/lib/protocol/acp-v2-private-client.d.ts +1 -10
- package/lib/runtime/codebuddy-auth.d.ts +5 -3
- package/lib/runtime/codebuddy-auth.js +1 -1
- package/lib/session/replay.d.ts +1 -1
- package/lib/session/replay.js +1 -1
- package/lib/session/server-events.js +1 -1
- package/lib/session/server-interactions.js +1 -1
- package/lib/subagent/history.js +1 -1
- package/package.json +14 -9
|
@@ -1,364 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"agents": [
|
|
3
|
-
{
|
|
4
|
-
"name": "cli",
|
|
5
|
-
"instructions": "cli-agent-prompt",
|
|
6
|
-
"description": "cli agent",
|
|
7
|
-
"models": [
|
|
8
|
-
"codewise-chat"
|
|
9
|
-
],
|
|
10
|
-
"modelTags": [
|
|
11
|
-
"craft"
|
|
12
|
-
],
|
|
13
|
-
"commands": [
|
|
14
|
-
"init",
|
|
15
|
-
"compact",
|
|
16
|
-
"statusline",
|
|
17
|
-
"insights"
|
|
18
|
-
],
|
|
19
|
-
"tools": [
|
|
20
|
-
"Agent",
|
|
21
|
-
"Read",
|
|
22
|
-
"Write",
|
|
23
|
-
"Edit",
|
|
24
|
-
"Bash",
|
|
25
|
-
"PowerShell",
|
|
26
|
-
"Glob",
|
|
27
|
-
"Grep",
|
|
28
|
-
"EnterPlanMode",
|
|
29
|
-
"ExitPlanMode",
|
|
30
|
-
"TaskCreate",
|
|
31
|
-
"TaskGet",
|
|
32
|
-
"TaskUpdate",
|
|
33
|
-
"TaskList",
|
|
34
|
-
"WebFetch",
|
|
35
|
-
"WebSearch",
|
|
36
|
-
"TaskStop",
|
|
37
|
-
"TaskOutput",
|
|
38
|
-
"Skill",
|
|
39
|
-
"AskUserQuestion",
|
|
40
|
-
"AskUserForStructuredInput",
|
|
41
|
-
"StructuredOutput",
|
|
42
|
-
"ToolSearch",
|
|
43
|
-
"DeferExecuteTool",
|
|
44
|
-
"SendMessage",
|
|
45
|
-
"SendUserMessage",
|
|
46
|
-
"TeamCreate",
|
|
47
|
-
"TeamDelete",
|
|
48
|
-
"NotebookEdit",
|
|
49
|
-
"LSP",
|
|
50
|
-
"EnterWorktree",
|
|
51
|
-
"LeaveWorktree",
|
|
52
|
-
"CronCreate",
|
|
53
|
-
"CronDelete",
|
|
54
|
-
"CronList",
|
|
55
|
-
"DelegateTool",
|
|
56
|
-
"WeChatReply",
|
|
57
|
-
"WeComReply",
|
|
58
|
-
"PushNotification",
|
|
59
|
-
"ReportFindings",
|
|
60
|
-
"ComputerUse",
|
|
61
|
-
"ListMcpResources",
|
|
62
|
-
"ReadMcpResource",
|
|
63
|
-
"WaitForMcpServers",
|
|
64
|
-
"Workflow",
|
|
65
|
-
"Monitor",
|
|
66
|
-
"REPL",
|
|
67
|
-
"A2AGetAgentCard",
|
|
68
|
-
"A2ASendMessage",
|
|
69
|
-
"A2AGetTask",
|
|
70
|
-
"A2ACancelTask"
|
|
71
|
-
],
|
|
72
|
-
"tags": [
|
|
73
|
-
"cli",
|
|
74
|
-
"default",
|
|
75
|
-
"model:craft"
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "general-purpose",
|
|
80
|
-
"instructions": "cli-agent-prompt",
|
|
81
|
-
"description": "general-purpose agent",
|
|
82
|
-
"tools": [
|
|
83
|
-
"Read",
|
|
84
|
-
"Write",
|
|
85
|
-
"Edit",
|
|
86
|
-
"Bash",
|
|
87
|
-
"PowerShell",
|
|
88
|
-
"Glob",
|
|
89
|
-
"Grep",
|
|
90
|
-
"TaskCreate",
|
|
91
|
-
"TaskGet",
|
|
92
|
-
"TaskUpdate",
|
|
93
|
-
"TaskList",
|
|
94
|
-
"WebFetch",
|
|
95
|
-
"WebSearch",
|
|
96
|
-
"TaskStop",
|
|
97
|
-
"TaskOutput",
|
|
98
|
-
"Skill",
|
|
99
|
-
"AskUserQuestion",
|
|
100
|
-
"AskUserForStructuredInput",
|
|
101
|
-
"ToolSearch",
|
|
102
|
-
"DeferExecuteTool",
|
|
103
|
-
"StructuredOutput",
|
|
104
|
-
"SendMessage",
|
|
105
|
-
"SendUserMessage",
|
|
106
|
-
"NotebookEdit",
|
|
107
|
-
"LSP",
|
|
108
|
-
"ComputerUse",
|
|
109
|
-
"ImageGen",
|
|
110
|
-
"ImageEdit",
|
|
111
|
-
"Artifact",
|
|
112
|
-
"ArtifactControl",
|
|
113
|
-
"ListMcpResources",
|
|
114
|
-
"ReadMcpResource",
|
|
115
|
-
"WaitForMcpServers",
|
|
116
|
-
"REPL"
|
|
117
|
-
],
|
|
118
|
-
"tags": [
|
|
119
|
-
"cli",
|
|
120
|
-
"general-purpose"
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"name": "compact",
|
|
125
|
-
"instructions": "compact-agent-prompt",
|
|
126
|
-
"description": "compact agent",
|
|
127
|
-
"tools": [
|
|
128
|
-
"Read"
|
|
129
|
-
],
|
|
130
|
-
"commands": [
|
|
131
|
-
"_compact"
|
|
132
|
-
],
|
|
133
|
-
"tags": [
|
|
134
|
-
"cli",
|
|
135
|
-
"compact"
|
|
136
|
-
]
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"name": "contextSummary",
|
|
140
|
-
"instructions": "context-summary-agent-prompt",
|
|
141
|
-
"description": "Context summary agent for conversation compaction and max-token recovery",
|
|
142
|
-
"tools": [],
|
|
143
|
-
"tags": [
|
|
144
|
-
"cli",
|
|
145
|
-
"contextSummary"
|
|
146
|
-
]
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"name": "contentAnalyzer",
|
|
150
|
-
"instructions": "content-analyzer-agent-instructions",
|
|
151
|
-
"description": "content analyzer agent",
|
|
152
|
-
"tags": [
|
|
153
|
-
"cli",
|
|
154
|
-
"content-analyzer"
|
|
155
|
-
],
|
|
156
|
-
"tools": []
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"name": "terminalTitleGenerator",
|
|
160
|
-
"instructions": "terminal-title-generator-instructions",
|
|
161
|
-
"description": "Generate terminal window titles from conversation topics.",
|
|
162
|
-
"tags": [
|
|
163
|
-
"cli",
|
|
164
|
-
"terminal-title-generator"
|
|
165
|
-
],
|
|
166
|
-
"tools": []
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"name": "promptSuggestion",
|
|
170
|
-
"instructions": "prompt-suggestion-instructions",
|
|
171
|
-
"description": "Suggest the user's next prompt after a conversation turn.",
|
|
172
|
-
"tags": [
|
|
173
|
-
"cli",
|
|
174
|
-
"prompt-suggestion"
|
|
175
|
-
],
|
|
176
|
-
"tools": []
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"name": "memorySelector",
|
|
180
|
-
"instructions": "memory-selector-instructions",
|
|
181
|
-
"description": "Select relevant memories for the current query.",
|
|
182
|
-
"models": [
|
|
183
|
-
"lite"
|
|
184
|
-
],
|
|
185
|
-
"tags": [
|
|
186
|
-
"cli",
|
|
187
|
-
"memory-selector"
|
|
188
|
-
],
|
|
189
|
-
"tools": []
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"name": "summaryGenerator",
|
|
193
|
-
"instructions": "summary-generator-instructions",
|
|
194
|
-
"description": "Generate session summaries from conversation content.",
|
|
195
|
-
"tags": [
|
|
196
|
-
"cli",
|
|
197
|
-
"summary-generator"
|
|
198
|
-
],
|
|
199
|
-
"tools": []
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"name": "autoModeClassifier",
|
|
203
|
-
"instructions": "auto-mode-classifier-instructions",
|
|
204
|
-
"description": "Classify auto mode tool permission risk.",
|
|
205
|
-
"models": [
|
|
206
|
-
"lite"
|
|
207
|
-
],
|
|
208
|
-
"tags": [
|
|
209
|
-
"cli",
|
|
210
|
-
"auto-mode-classifier"
|
|
211
|
-
],
|
|
212
|
-
"tools": []
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"name": "promptHookEvaluator",
|
|
216
|
-
"instructions": "prompt-hook-evaluator-instructions",
|
|
217
|
-
"description": "Evaluates prompt hooks using LLM to determine if conditions are met",
|
|
218
|
-
"models": [
|
|
219
|
-
"lite"
|
|
220
|
-
],
|
|
221
|
-
"tags": [
|
|
222
|
-
"cli",
|
|
223
|
-
"prompt-hook-evaluator"
|
|
224
|
-
],
|
|
225
|
-
"tools": []
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"name": "insightsAnalyzer",
|
|
229
|
-
"instructions": "base-agent-instructions",
|
|
230
|
-
"description": "Analyzes user usage data facets for the /insights command",
|
|
231
|
-
"tags": [
|
|
232
|
-
"cli",
|
|
233
|
-
"insights-analyzer"
|
|
234
|
-
],
|
|
235
|
-
"tools": []
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"name": "agentInstructions",
|
|
239
|
-
"instructions": "agent-instructions",
|
|
240
|
-
"description": "generating agent instructions",
|
|
241
|
-
"tags": [
|
|
242
|
-
"cli",
|
|
243
|
-
"agent-instructions"
|
|
244
|
-
],
|
|
245
|
-
"tools": []
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"name": "statusline-setup",
|
|
249
|
-
"instructions": "agent-statusline-instructions",
|
|
250
|
-
"description": "Use this agent to configure the user's Codebuddy Code status line setting.",
|
|
251
|
-
"tools": [
|
|
252
|
-
"Read",
|
|
253
|
-
"Write",
|
|
254
|
-
"Edit",
|
|
255
|
-
"ToolSearch",
|
|
256
|
-
"DeferExecuteTool"
|
|
257
|
-
],
|
|
258
|
-
"asTool": true,
|
|
259
|
-
"tags": [
|
|
260
|
-
"cli",
|
|
261
|
-
"sub-agent"
|
|
262
|
-
]
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"name": "Explore",
|
|
266
|
-
"instructions": "agent-explore-instructions",
|
|
267
|
-
"description": "Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. \"src/components/**/*.tsx\"), search code for keywords (eg. \"API endpoints\"), or answer questions about the codebase (eg. \"how do API endpoints work?\"). When calling this agent, specify the desired thoroughness level: \"quick\" for basic searches, \"medium\" for moderate exploration, or \"very thorough\" for comprehensive analysis across multiple locations and naming conventions.",
|
|
268
|
-
"models": [
|
|
269
|
-
"lite"
|
|
270
|
-
],
|
|
271
|
-
"tools": [
|
|
272
|
-
"Read",
|
|
273
|
-
"Bash",
|
|
274
|
-
"PowerShell",
|
|
275
|
-
"Glob",
|
|
276
|
-
"Grep",
|
|
277
|
-
"TaskCreate",
|
|
278
|
-
"TaskGet",
|
|
279
|
-
"TaskUpdate",
|
|
280
|
-
"TaskList",
|
|
281
|
-
"WebFetch",
|
|
282
|
-
"WebSearch",
|
|
283
|
-
"Skill",
|
|
284
|
-
"SendMessage",
|
|
285
|
-
"SendUserMessage",
|
|
286
|
-
"ToolSearch",
|
|
287
|
-
"DeferExecuteTool"
|
|
288
|
-
],
|
|
289
|
-
"asTool": true,
|
|
290
|
-
"tags": [
|
|
291
|
-
"cli",
|
|
292
|
-
"sub-agent"
|
|
293
|
-
]
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"name": "Plan",
|
|
297
|
-
"instructions": "agent-plan-instructions",
|
|
298
|
-
"description": "Software architect agent for designing implementation plans. Use this when you need to plan the implementation strategy for a multi-step task before writing code. Returns step-by-step plans, identifies critical files, and considers architectural trade-offs. Read-only: it designs but does not modify files or exit plan mode; the caller reviews the plan and implements it.",
|
|
299
|
-
"tools": [
|
|
300
|
-
"Read",
|
|
301
|
-
"Bash",
|
|
302
|
-
"PowerShell",
|
|
303
|
-
"Glob",
|
|
304
|
-
"Grep",
|
|
305
|
-
"TaskCreate",
|
|
306
|
-
"TaskGet",
|
|
307
|
-
"TaskUpdate",
|
|
308
|
-
"TaskList",
|
|
309
|
-
"WebFetch",
|
|
310
|
-
"WebSearch",
|
|
311
|
-
"Skill",
|
|
312
|
-
"ToolSearch",
|
|
313
|
-
"DeferExecuteTool",
|
|
314
|
-
"TeamCreate",
|
|
315
|
-
"TeamDelete",
|
|
316
|
-
"SendMessage",
|
|
317
|
-
"SendUserMessage"
|
|
318
|
-
],
|
|
319
|
-
"asTool": true,
|
|
320
|
-
"tags": [
|
|
321
|
-
"cli",
|
|
322
|
-
"sub-agent"
|
|
323
|
-
]
|
|
324
|
-
}
|
|
325
|
-
],
|
|
326
|
-
"models": [
|
|
327
|
-
{
|
|
328
|
-
"credits": "x0.01 credits",
|
|
329
|
-
"id": "codewise-chat",
|
|
330
|
-
"name": "Codewise-Chat",
|
|
331
|
-
"vendor": "tencent",
|
|
332
|
-
"maxOutputTokens": 8192,
|
|
333
|
-
"maxInputTokens": 128000,
|
|
334
|
-
"supportsToolCall": true,
|
|
335
|
-
"supportsImages": false,
|
|
336
|
-
"disabledMultimodal": true,
|
|
337
|
-
"maxAllowedSize": 56000
|
|
338
|
-
}
|
|
339
|
-
],
|
|
340
|
-
"links": {
|
|
341
|
-
"officialWebsite": "https://copilot.tencent.com/cli",
|
|
342
|
-
"helpDocument": "https://copilot.tencent.com/docs/cli",
|
|
343
|
-
"issueFeedback": "https://cnb.cool/codebuddy/codebuddy-code/-/issues",
|
|
344
|
-
"issueCreation": "https://cnb.cool/codebuddy/codebuddy-code/-/issues/new",
|
|
345
|
-
"mcpHelpDocument": "https://copilot.tencent.com/docs/cli/mcp",
|
|
346
|
-
"hooksHelpDocument": "https://copilot.tencent.com/docs/cli/hooks",
|
|
347
|
-
"sandboxHelpDocument": "https://copilot.tencent.com/docs/cli/bash-sandboxing",
|
|
348
|
-
"upgradeUrl": ""
|
|
349
|
-
},
|
|
350
|
-
"productFeatures": {
|
|
351
|
-
"BillingNotice": false,
|
|
352
|
-
"ShareLink": true,
|
|
353
|
-
"Artifact": true,
|
|
354
|
-
"CodeAdoptionRate": false,
|
|
355
|
-
"CloudAgentsSmartMerge": true,
|
|
356
|
-
"CustomModelsJSON": true,
|
|
357
|
-
"CustomModelIdPrefix": true,
|
|
358
|
-
"DeferToolLoading": true,
|
|
359
|
-
"ScheduledTasks": true,
|
|
360
|
-
"SkipToolCallSupportCheck": true
|
|
361
|
-
},
|
|
362
|
-
"commit": "5fdb0502c8031c71fd947c537235505bdae49eec",
|
|
363
|
-
"date": "2026-09-28T07:49:01.677Z"
|
|
364
|
-
}
|
|
1
|
+
{"agents":[{"name":"cli","instructions":"cli-agent-prompt","description":"cli agent","models":["codewise-chat"],"modelTags":["craft"],"commands":["init","compact","statusline","insights"],"tools":["Agent","Read","Write","Edit","Bash","PowerShell","Glob","Grep","EnterPlanMode","ExitPlanMode","TaskCreate","TaskGet","TaskUpdate","TaskList","WebFetch","WebSearch","TaskStop","TaskOutput","Skill","AskUserQuestion","AskUserForStructuredInput","StructuredOutput","ToolSearch","DeferExecuteTool","SendMessage","SendUserMessage","TeamCreate","TeamDelete","NotebookEdit","LSP","EnterWorktree","LeaveWorktree","CronCreate","CronDelete","CronList","DelegateTool","WeChatReply","WeComReply","PushNotification","ReportFindings","ComputerUse","ListMcpResources","ReadMcpResource","WaitForMcpServers","Workflow","Monitor","REPL","A2AGetAgentCard","A2ASendMessage","A2AGetTask","A2ACancelTask"],"tags":["cli","default","model:craft"]},{"name":"general-purpose","instructions":"cli-agent-prompt","description":"general-purpose agent","tools":["Read","Write","Edit","Bash","PowerShell","Glob","Grep","TaskCreate","TaskGet","TaskUpdate","TaskList","WebFetch","WebSearch","TaskStop","TaskOutput","Skill","AskUserQuestion","AskUserForStructuredInput","ToolSearch","DeferExecuteTool","StructuredOutput","SendMessage","SendUserMessage","NotebookEdit","LSP","ComputerUse","ImageGen","ImageEdit","Artifact","ArtifactControl","ListMcpResources","ReadMcpResource","WaitForMcpServers","REPL"],"tags":["cli","general-purpose"]},{"name":"compact","instructions":"compact-agent-prompt","description":"compact agent","tools":["Read"],"commands":["_compact"],"tags":["cli","compact"]},{"name":"contextSummary","instructions":"context-summary-agent-prompt","description":"Context summary agent for conversation compaction and max-token recovery","tools":[],"tags":["cli","contextSummary"]},{"name":"contentAnalyzer","instructions":"content-analyzer-agent-instructions","description":"content analyzer agent","tags":["cli","content-analyzer"],"tools":[]},{"name":"terminalTitleGenerator","instructions":"terminal-title-generator-instructions","description":"Generate terminal window titles from conversation topics.","tags":["cli","terminal-title-generator"],"tools":[]},{"name":"promptSuggestion","instructions":"prompt-suggestion-instructions","description":"Suggest the user's next prompt after a conversation turn.","tags":["cli","prompt-suggestion"],"tools":[]},{"name":"memorySelector","instructions":"memory-selector-instructions","description":"Select relevant memories for the current query.","models":["lite"],"tags":["cli","memory-selector"],"tools":[]},{"name":"summaryGenerator","instructions":"summary-generator-instructions","description":"Generate session summaries from conversation content.","tags":["cli","summary-generator"],"tools":[]},{"name":"autoModeClassifier","instructions":"auto-mode-classifier-instructions","description":"Classify auto mode tool permission risk.","models":["lite"],"tags":["cli","auto-mode-classifier"],"tools":[]},{"name":"promptHookEvaluator","instructions":"prompt-hook-evaluator-instructions","description":"Evaluates prompt hooks using LLM to determine if conditions are met","models":["lite"],"tags":["cli","prompt-hook-evaluator"],"tools":[]},{"name":"insightsAnalyzer","instructions":"base-agent-instructions","description":"Analyzes user usage data facets for the /insights command","tags":["cli","insights-analyzer"],"tools":[]},{"name":"agentInstructions","instructions":"agent-instructions","description":"generating agent instructions","tags":["cli","agent-instructions"],"tools":[]},{"name":"statusline-setup","instructions":"agent-statusline-instructions","description":"Use this agent to configure the user's Codebuddy Code status line setting.","tools":["Read","Write","Edit","ToolSearch","DeferExecuteTool"],"asTool":true,"tags":["cli","sub-agent"]},{"name":"Explore","instructions":"agent-explore-instructions","description":"Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. \"src/components/**/*.tsx\"), search code for keywords (eg. \"API endpoints\"), or answer questions about the codebase (eg. \"how do API endpoints work?\"). When calling this agent, specify the desired thoroughness level: \"quick\" for basic searches, \"medium\" for moderate exploration, or \"very thorough\" for comprehensive analysis across multiple locations and naming conventions.","models":["lite"],"tools":["Read","Bash","PowerShell","Glob","Grep","TaskCreate","TaskGet","TaskUpdate","TaskList","WebFetch","WebSearch","Skill","SendMessage","SendUserMessage","ToolSearch","DeferExecuteTool"],"asTool":true,"tags":["cli","sub-agent"]},{"name":"Plan","instructions":"agent-plan-instructions","description":"Software architect agent for designing implementation plans. Use this when you need to plan the implementation strategy for a multi-step task before writing code. Returns step-by-step plans, identifies critical files, and considers architectural trade-offs. Read-only: it designs but does not modify files or exit plan mode; the caller reviews the plan and implements it.","tools":["Read","Bash","PowerShell","Glob","Grep","TaskCreate","TaskGet","TaskUpdate","TaskList","WebFetch","WebSearch","Skill","ToolSearch","DeferExecuteTool","TeamCreate","TeamDelete","SendMessage","SendUserMessage"],"asTool":true,"tags":["cli","sub-agent"]}],"models":[{"credits":"x0.01 credits","id":"codewise-chat","name":"Codewise-Chat","vendor":"tencent","maxOutputTokens":8192,"maxInputTokens":128000,"supportsToolCall":true,"supportsImages":false,"disabledMultimodal":true,"maxAllowedSize":56000}],"links":{"officialWebsite":"https://copilot.tencent.com/cli","helpDocument":"https://copilot.tencent.com/docs/cli","issueFeedback":"https://cnb.cool/codebuddy/codebuddy-code/-/issues","issueCreation":"https://cnb.cool/codebuddy/codebuddy-code/-/issues/new","mcpHelpDocument":"https://copilot.tencent.com/docs/cli/mcp","hooksHelpDocument":"https://copilot.tencent.com/docs/cli/hooks","sandboxHelpDocument":"https://copilot.tencent.com/docs/cli/bash-sandboxing","upgradeUrl":""},"productFeatures":{"BillingNotice":false,"ShareLink":true,"Artifact":true,"CodeAdoptionRate":false,"CloudAgentsSmartMerge":true,"CustomModelsJSON":true,"CustomModelIdPrefix":true,"DeferToolLoading":true,"ScheduledTasks":true,"SkipToolCallSupportCheck":true},"commit":"c209d15bb4897f91f06d884723baf7cdefb01bff","date":"2026-09-29T02:49:53.555Z"}
|
package/docs/acp-v2.md
CHANGED
|
@@ -59,6 +59,25 @@ response commit 是接受边界。仅在 commit 前取消该 JSON-RPC request
|
|
|
59
59
|
新轮使用自己的 requestId 和取消信号;旧轮的取消不能使新轮直接变成 `cancelled`。
|
|
60
60
|
terminal `usage` 是 Session 累计快照,取消前后数值相同不代表新轮继承了取消状态。
|
|
61
61
|
|
|
62
|
+
### 用量与费用
|
|
63
|
+
|
|
64
|
+
| 字段 | 含义 |
|
|
65
|
+
| --- | --- |
|
|
66
|
+
| `usage_update.used / size` | 当前上下文占用与模型上下文预算,不是本轮消耗。预算未知时不发送该更新。 |
|
|
67
|
+
| `usage_update.cost` | 会话累计费用;`currency: "credits"` 表示 Credits,`amount: 0` 是有效值。 |
|
|
68
|
+
| `usage_update._meta.usage` | 单次模型请求的用量,保留服务端原始 token、cache、`credit` 等字段及零值。没有原始数据时仅提供已记录的 token 计数,不推算费用。 |
|
|
69
|
+
| `state_update: idle` 的 `usage` | 会话累计 token 快照,不是当前 turn 的增量。 |
|
|
70
|
+
|
|
71
|
+
带有 `_meta.usage` 的更新同时携带 `codebuddy.ai/requestId`(所属轮次)和
|
|
72
|
+
`codebuddy.ai/messageId`(模型请求身份)。一次 turn 可以包含多个模型请求;reasoning、
|
|
73
|
+
完整消息和历史回放可能再次携带同一请求的用量。客户端应按会话、轮次和模型请求 ID
|
|
74
|
+
更新记录,再汇总当前 turn,不能逐帧相加。Subagent 使用
|
|
75
|
+
`codebuddy.ai/subagent.sessionId` 区分会话,`codebuddy.ai/rootRequestId` 关联根轮次。
|
|
76
|
+
|
|
77
|
+
`session/resume` 回放保留这些身份,最后的累计快照不携带 `_meta.usage`。
|
|
78
|
+
客户端应在 `resume()` 返回时结束本次回放累加,不能等下一条实时 prompt 再收尾,
|
|
79
|
+
也不能把累计费用覆盖到最后一个历史 turn。历史回放不生成前台 `idle` 事件。
|
|
80
|
+
|
|
62
81
|
不存在 `session_end` update。Client 只能依据 terminal `state_update` 结束 turn。技术故障遵循
|
|
63
82
|
[错误处理](errors.md)中的生命周期,包括自定义 terminal stop reason `_codebuddy.ai/error`。
|
|
64
83
|
|
package/docs/client.md
CHANGED
|
@@ -77,6 +77,13 @@ client.on('session/request_permission', (request, context) =>
|
|
|
77
77
|
`void | Promise<void>`;各 listener 都会被调用并等待完成,一个 listener 失败不会阻止
|
|
78
78
|
同一通知的其他 listener。
|
|
79
79
|
|
|
80
|
+
沙箱审批的展示信息位于 `request.subject.toolCall._meta`(先确认 `subject.type === 'tool_call'`),
|
|
81
|
+
包括 `codebuddy.ai/sandboxIntercept`、`interceptType`、`target`、`operation`、`description`、
|
|
82
|
+
`sandboxRuleContext` 和 `bulkDeleteInfo` 等 `codebuddy.ai/` 字段。沙箱命令的“本次会话内允许”
|
|
83
|
+
只作用于当前会话的同一命令和工作目录。若含 `codebuddy.ai/fileApprovalScope`,客户端应显示其目录、
|
|
84
|
+
操作与会话有效期;用户明确确认该范围后才返回 `optionId: 'allow_directory'`。
|
|
85
|
+
它不会出现在通用选项列表里,普通“允许本次”或自动选择选项不能登记目录授权。
|
|
86
|
+
|
|
80
87
|
通知可以在连接前后订阅,只接收注册后的事件。反向请求每个方法只允许一个回答者,也可以在
|
|
81
88
|
连接后注册;请求到达时使用当时的 handler。权限请求缺少 handler 时返回 ACP 的取消结果。
|
|
82
89
|
若声明 `capabilities.elicitation.form` 或 `url`,必须在 `connect` 前注册
|
package/docs/product.md
CHANGED
|
@@ -282,6 +282,10 @@ broker boundary 内捕获当前 secret-free Account binding,不让 Client 在
|
|
|
282
282
|
完全缺省(显式 `null` 也非法),不能把企业 Product 提交给个人 account state。bearer token 不在 binding
|
|
283
283
|
中,因此同一 binding 下的 token refresh 不改变 Product。
|
|
284
284
|
|
|
285
|
+
排队及等待旧任务结束期间,Client 可通过 `$/cancel_request` 取消 provision;取消会释放等待,保留原有
|
|
286
|
+
Account/Product。提交已经开始时会完成提交和通知,再释放串行门。排队的读取请求也可以独立取消,
|
|
287
|
+
不会终止其他请求的提交。Client 超时后应发送取消通知,并重新读取 Product 确认最终状态。
|
|
288
|
+
|
|
285
289
|
`expectedGeneration` 和 `expectedRevision` 必须同时取自最近一次 `product/read` 或 provision result。
|
|
286
290
|
前者覆盖 private Product execution 代际,后者覆盖 ready/unavailable、freshness、公开 projection
|
|
287
291
|
和 Account binding invalidation 在内的完整 resource 版本。过期写入返回
|
package/docs/protocol.md
CHANGED
|
@@ -77,7 +77,9 @@ await client.session.compact({ sessionId });
|
|
|
77
77
|
|
|
78
78
|
### 输入与附件
|
|
79
79
|
|
|
80
|
-
Prompt 接受 ACP content,包括 text、image、resource 与 resource_link
|
|
80
|
+
Prompt 接受 ACP content,包括 text、image、resource 与 resource_link。普通 text 中的 `@browser:session`、`@skill:name`、文件路径和 slash 文本在实时回显与历史回放时保持为文本,由客户端解释。Harness 不从文本拼写推断资源引用;旧历史中没有资源元数据的 badge 也按文本返回。
|
|
81
|
+
|
|
82
|
+
显式的 resource_link、image、resource 会保留资源 URI、显示名称、MIME 类型和内容。原始二进制字节不会被拼成普通文本发送给模型。内部上下文与系统提示仍按现有规则隐藏。
|
|
81
83
|
|
|
82
84
|
调用方应保留结构化 content,而不是提前把附件转成说明文本。UI 应根据 content 类型显示附件和 badge。
|
|
83
85
|
|