@tencent-ai/agent-sdk 0.1.0-next.989 → 0.1.0

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.
Files changed (91) hide show
  1. package/README.md +73 -2
  2. package/cli/CHANGELOG.md +2418 -0
  3. package/cli/LICENSE.txt +19 -0
  4. package/cli/README.md +26 -0
  5. package/cli/bin/codebuddy +39 -0
  6. package/cli/dist/codebuddy.js +20 -0
  7. package/cli/package.json +44 -0
  8. package/cli/product.cloudhosted.json +242 -0
  9. package/cli/product.internal.json +244 -0
  10. package/cli/product.ioa.json +467 -0
  11. package/cli/product.json +948 -0
  12. package/cli/product.selfhosted.json +196 -0
  13. package/cli/vendor/ripgrep/COPYING +3 -0
  14. package/cli/vendor/ripgrep/arm64-darwin/rg +0 -0
  15. package/cli/vendor/ripgrep/arm64-darwin/ripgrep.node +0 -0
  16. package/cli/vendor/ripgrep/arm64-linux/rg +0 -0
  17. package/cli/vendor/ripgrep/arm64-linux/ripgrep.node +0 -0
  18. package/cli/vendor/ripgrep/x64-darwin/rg +0 -0
  19. package/cli/vendor/ripgrep/x64-darwin/ripgrep.node +0 -0
  20. package/cli/vendor/ripgrep/x64-linux/rg +0 -0
  21. package/cli/vendor/ripgrep/x64-linux/ripgrep.node +0 -0
  22. package/cli/vendor/ripgrep/x64-win32/rg.exe +0 -0
  23. package/cli/vendor/ripgrep/x64-win32/ripgrep.node +0 -0
  24. package/lib/errors.d.ts +10 -0
  25. package/lib/errors.d.ts.map +1 -0
  26. package/lib/errors.js +17 -0
  27. package/lib/errors.js.map +1 -0
  28. package/lib/index.d.ts +36 -0
  29. package/lib/index.d.ts.map +1 -0
  30. package/lib/index.js +40 -0
  31. package/lib/index.js.map +1 -0
  32. package/lib/package.spec.js +3 -2
  33. package/lib/package.spec.js.map +1 -1
  34. package/lib/query.d.ts +46 -0
  35. package/lib/query.d.ts.map +1 -0
  36. package/lib/query.js +270 -0
  37. package/lib/query.js.map +1 -0
  38. package/lib/session.d.ts +53 -0
  39. package/lib/session.d.ts.map +1 -0
  40. package/lib/session.js +163 -0
  41. package/lib/session.js.map +1 -0
  42. package/lib/transport/index.d.ts +104 -0
  43. package/lib/transport/index.d.ts.map +1 -0
  44. package/lib/transport/index.js +20 -0
  45. package/lib/transport/index.js.map +1 -0
  46. package/lib/transport/process-transport.d.ts +65 -0
  47. package/lib/transport/process-transport.d.ts.map +1 -0
  48. package/lib/transport/process-transport.js +380 -0
  49. package/lib/transport/process-transport.js.map +1 -0
  50. package/lib/types.d.ts +603 -0
  51. package/lib/types.d.ts.map +1 -0
  52. package/lib/types.js +58 -0
  53. package/lib/types.js.map +1 -0
  54. package/lib/utils/cli-resolver.d.ts +36 -0
  55. package/lib/utils/cli-resolver.d.ts.map +1 -0
  56. package/lib/utils/cli-resolver.js +123 -0
  57. package/lib/utils/cli-resolver.js.map +1 -0
  58. package/lib/utils/env-utils.d.ts +9 -0
  59. package/lib/utils/env-utils.d.ts.map +1 -0
  60. package/lib/utils/env-utils.js +19 -0
  61. package/lib/utils/env-utils.js.map +1 -0
  62. package/lib/utils/index.d.ts +8 -0
  63. package/lib/utils/index.d.ts.map +1 -0
  64. package/lib/utils/index.js +17 -0
  65. package/lib/utils/index.js.map +1 -0
  66. package/lib/utils/process.d.ts +8 -0
  67. package/lib/utils/process.d.ts.map +1 -0
  68. package/lib/utils/process.js +16 -0
  69. package/lib/utils/process.js.map +1 -0
  70. package/lib/utils/stream.d.ts +24 -0
  71. package/lib/utils/stream.d.ts.map +1 -0
  72. package/lib/utils/stream.js +85 -0
  73. package/lib/utils/stream.js.map +1 -0
  74. package/package.json +21 -14
  75. package/dist/agent-sdk.js +0 -1
  76. package/lib/common/application-utils.d.ts +0 -5
  77. package/lib/common/application-utils.d.ts.map +0 -1
  78. package/lib/common/application-utils.js +0 -18
  79. package/lib/common/application-utils.js.map +0 -1
  80. package/lib/common/component-registry.d.ts +0 -10
  81. package/lib/common/component-registry.d.ts.map +0 -1
  82. package/lib/common/component-registry.js +0 -50
  83. package/lib/common/component-registry.js.map +0 -1
  84. package/lib/common/index.d.ts +0 -4
  85. package/lib/common/index.d.ts.map +0 -1
  86. package/lib/common/index.js +0 -20
  87. package/lib/common/index.js.map +0 -1
  88. package/lib/common/services.d.ts +0 -8
  89. package/lib/common/services.d.ts.map +0 -1
  90. package/lib/common/services.js +0 -21
  91. package/lib/common/services.js.map +0 -1
@@ -0,0 +1,467 @@
1
+ {
2
+ "endpoint": "https://copilot.tencent.com",
3
+ "stagingEndpoint": "https://staging-copilot.tencent.com",
4
+ "agents": [
5
+ {
6
+ "name": "cli",
7
+ "instructions": "cli-agent-prompt",
8
+ "description": "cli agent",
9
+ "models": [
10
+ "claude-4.5",
11
+ "claude-opus-4.5",
12
+ "claude-haiku-4.5",
13
+ "gemini-3.0-pro",
14
+ "gemini-3.0-flash",
15
+ "gemini-2.5-pro",
16
+ "gpt-5.2",
17
+ "gpt-5.1",
18
+ "gpt-5.1-codex",
19
+ "gpt-5.1-codex-max",
20
+ "gpt-5.1-codex-mini",
21
+ "glm-4.6",
22
+ "deepseek-v3.1"
23
+ ],
24
+ "commands": [
25
+ "init",
26
+ "compact",
27
+ "statusline"
28
+ ],
29
+ "tools": [
30
+ "Task",
31
+ "Read",
32
+ "Write",
33
+ "Edit",
34
+ "MultiEdit",
35
+ "Bash",
36
+ "Glob",
37
+ "Grep",
38
+ "ExitPlanMode",
39
+ "TodoWrite",
40
+ "WebFetch",
41
+ "WebSearch",
42
+ "NotebookEdit",
43
+ "BashOutput",
44
+ "KillShell",
45
+ "SlashCommand",
46
+ "Skill",
47
+ "AskUserQuestion"
48
+ ],
49
+ "tags": [
50
+ "cli",
51
+ "default"
52
+ ]
53
+ },
54
+ {
55
+ "name": "general-purpose",
56
+ "instructions": "cli-agent-prompt",
57
+ "description": "general-purpose agent",
58
+ "tools": [
59
+ "Read",
60
+ "Write",
61
+ "Edit",
62
+ "MultiEdit",
63
+ "Bash",
64
+ "Glob",
65
+ "Grep",
66
+ "TodoWrite",
67
+ "SaveMemory",
68
+ "WebFetch",
69
+ "WebSearch",
70
+ "NotebookRead",
71
+ "NotebookEdit",
72
+ "NotebookWrite",
73
+ "BashOutput",
74
+ "KillShell",
75
+ "SlashCommand",
76
+ "Skill",
77
+ "AskUserQuestion"
78
+ ],
79
+ "tags": [
80
+ "cli",
81
+ "general-purpose"
82
+ ]
83
+ },
84
+ {
85
+ "name": "compact",
86
+ "instructions": "compact-agent-prompt",
87
+ "description": "compact agent",
88
+ "tools": [
89
+ "Read"
90
+ ],
91
+ "tags": [
92
+ "cli",
93
+ "compact"
94
+ ]
95
+ },
96
+ {
97
+ "name": "contentAnalyzer",
98
+ "instructions": "content-analyzer-agent-instructions",
99
+ "description": "content analyzer agent",
100
+ "tags": [
101
+ "cli",
102
+ "content-analyzer"
103
+ ]
104
+ },
105
+ {
106
+ "name": "terminalTitleGenerator",
107
+ "instructions": "terminal-title-generator-instructions",
108
+ "description": "Generate terminal window titles from conversation topics.",
109
+ "models": [
110
+ "claude-haiku-4.5"
111
+ ],
112
+ "tags": [
113
+ "cli",
114
+ "terminal-title-generator"
115
+ ]
116
+ },
117
+ {
118
+ "name": "agentInstructions",
119
+ "instructions": "agent-instructions",
120
+ "description": "generating agent instructions",
121
+ "tags": [
122
+ "cli",
123
+ "agent-instructions"
124
+ ]
125
+ },
126
+ {
127
+ "name": "statusline-setup",
128
+ "instructions": "agent-statusline-instructions",
129
+ "description": "Use this agent to configure the user's Codebuddy Code status line setting.",
130
+ "tools": [
131
+ "Read",
132
+ "Write",
133
+ "Edit"
134
+ ],
135
+ "asTool": true,
136
+ "tags": [
137
+ "cli",
138
+ "sub-agent"
139
+ ]
140
+ },
141
+ {
142
+ "name": "Explore",
143
+ "instructions": "agent-explore-instructions",
144
+ "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.",
145
+ "tools": [
146
+ "Read",
147
+ "Bash",
148
+ "Glob",
149
+ "Grep",
150
+ "WebFetch",
151
+ "WebSearch",
152
+ "BashOutput",
153
+ "KillShell",
154
+ "SlashCommand",
155
+ "Skill",
156
+ "AskUserQuestion"
157
+ ],
158
+ "models": [
159
+ "claude-haiku-4.5"
160
+ ],
161
+ "asTool": true,
162
+ "tags": [
163
+ "cli",
164
+ "sub-agent"
165
+ ]
166
+ },
167
+ {
168
+ "name": "Plan",
169
+ "instructions": "agent-plan-instructions",
170
+ "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. (Tools: All tools)",
171
+ "tools": [
172
+ "Read",
173
+ "Bash",
174
+ "Glob",
175
+ "Grep",
176
+ "TodoWrite",
177
+ "WebFetch",
178
+ "WebSearch",
179
+ "BashOutput",
180
+ "KillShell",
181
+ "SlashCommand",
182
+ "Skill",
183
+ "AskUserQuestion"
184
+ ],
185
+ "asTool": true,
186
+ "tags": [
187
+ "cli",
188
+ "sub-agent"
189
+ ]
190
+ }
191
+ ],
192
+ "models": [
193
+ {
194
+ "credits": "x0.43 credits",
195
+ "id": "deepseek-v3.1",
196
+ "name": "DeepSeek-V3.1-Terminus",
197
+ "vendor": "f",
198
+ "maxOutputTokens": 16000,
199
+ "maxInputTokens": 104000,
200
+ "supportsToolCall": true,
201
+ "supportsImages": false,
202
+ "disabledMultimodal": true,
203
+ "maxAllowedSize": 56000
204
+ },
205
+ {
206
+ "credits": "x0.20 credits",
207
+ "id": "glm-4.6",
208
+ "name": "GLM-4.6",
209
+ "vendor": "f",
210
+ "maxOutputTokens": 32000,
211
+ "maxInputTokens": 168000,
212
+ "supportsToolCall": true,
213
+ "supportsImages": false,
214
+ "disabledMultimodal": true,
215
+ "maxAllowedSize": 168000,
216
+ "supportsReasoning": true,
217
+ "temperature": 1
218
+ },
219
+ {
220
+ "credits": "x2.00 credits",
221
+ "id": "claude-4.0",
222
+ "name": "Claude-4.0-Sonnet",
223
+ "vendor": "e",
224
+ "maxOutputTokens": 24000,
225
+ "maxInputTokens": 176000,
226
+ "supportsToolCall": true,
227
+ "supportsImages": true,
228
+ "maxAllowedSize": 80000,
229
+ "supportsReasoning": true,
230
+ "isDefault": true
231
+ },
232
+ {
233
+ "credits": "x3.33 credits",
234
+ "id": "claude-opus-4.5",
235
+ "name": "Claude-4.5-Opus",
236
+ "vendor": "e",
237
+ "maxOutputTokens": 24000,
238
+ "maxInputTokens": 176000,
239
+ "supportsToolCall": true,
240
+ "supportsImages": true,
241
+ "maxAllowedSize": 80000,
242
+ "supportsReasoning": true
243
+ },
244
+ {
245
+ "credits": "x2.20 credits",
246
+ "id": "claude-4.5",
247
+ "name": "Claude-4.5-Sonnet",
248
+ "vendor": "e",
249
+ "maxOutputTokens": 24000,
250
+ "maxInputTokens": 176000,
251
+ "supportsToolCall": true,
252
+ "supportsImages": true,
253
+ "maxAllowedSize": 80000,
254
+ "supportsReasoning": true
255
+ },
256
+ {
257
+ "credits": "x0.67 credits",
258
+ "id": "claude-haiku-4.5",
259
+ "name": "Claude-4.5-Haiku",
260
+ "vendor": "e",
261
+ "maxOutputTokens": 24000,
262
+ "maxInputTokens": 176000,
263
+ "supportsToolCall": true,
264
+ "supportsImages": true,
265
+ "maxAllowedSize": 80000,
266
+ "supportsReasoning": true,
267
+ "tags": [
268
+ "lite"
269
+ ]
270
+ },
271
+ {
272
+ "credits": "x1.33 credits",
273
+ "id": "gpt-5.2",
274
+ "name": "GPT-5.2",
275
+ "vendor": "e",
276
+ "maxInputTokens": 272000,
277
+ "maxOutputTokens": 128000,
278
+ "supportsToolCall": true,
279
+ "supportsImages": true,
280
+ "supportsReasoning": true,
281
+ "reseaning": {
282
+ "effort": "medium",
283
+ "summary": "auto"
284
+ }
285
+ },
286
+ {
287
+ "credits": "x0.95 credits",
288
+ "id": "gpt-5.1",
289
+ "name": "GPT-5.1",
290
+ "vendor": "e",
291
+ "maxInputTokens": 272000,
292
+ "maxOutputTokens": 128000,
293
+ "supportsToolCall": true,
294
+ "supportsImages": true,
295
+ "supportsReasoning": true,
296
+ "reseaning": {
297
+ "effort": "medium",
298
+ "summary": "auto"
299
+ }
300
+ },
301
+ {
302
+ "credits": "x0.95 credits",
303
+ "id": "gpt-5.1-codex",
304
+ "name": "GPT-5.1-Codex",
305
+ "vendor": "e",
306
+ "maxInputTokens": 272000,
307
+ "maxOutputTokens": 128000,
308
+ "supportsToolCall": true,
309
+ "supportsImages": true,
310
+ "supportsReasoning": true,
311
+ "reseaning": {
312
+ "effort": "medium",
313
+ "summary": "auto"
314
+ }
315
+ },
316
+ {
317
+ "credits": "x0.95 credits",
318
+ "id": "gpt-5.1-codex-max",
319
+ "maxAllowedSize": 272000,
320
+ "maxInputTokens": 272000,
321
+ "maxOutputTokens": 128000,
322
+ "name": "GPT-5.1-Codex-Max",
323
+ "reasoning": {
324
+ "effort": "medium",
325
+ "summary": "auto"
326
+ },
327
+ "supportsImages": true,
328
+ "supportsReasoning": true,
329
+ "supportsToolCall": true,
330
+ "vendor": "e"
331
+ },
332
+ {
333
+ "credits": "x0.19 credits",
334
+ "id": "gpt-5.1-codex-mini",
335
+ "name": "GPT-5.1-Codex-Mini",
336
+ "vendor": "e",
337
+ "maxInputTokens": 272000,
338
+ "maxOutputTokens": 128000,
339
+ "supportsToolCall": true,
340
+ "supportsImages": true,
341
+ "supportsReasoning": true,
342
+ "reseaning": {
343
+ "effort": "medium",
344
+ "summary": "auto"
345
+ }
346
+ },
347
+ {
348
+ "credits": "x0.95 credits",
349
+ "id": "gpt-5",
350
+ "name": "GPT-5",
351
+ "vendor": "e",
352
+ "maxOutputTokens": 72000,
353
+ "maxInputTokens": 200000,
354
+ "supportsToolCall": true,
355
+ "supportsImages": true,
356
+ "maxAllowedSize": 80000,
357
+ "supportsReasoning": true,
358
+ "reseaning": {
359
+ "effort": "medium",
360
+ "summary": "auto"
361
+ }
362
+ },
363
+ {
364
+ "credits": "x0.95 credits",
365
+ "id": "gpt-5-Codex",
366
+ "name": "GPT-5-Codex",
367
+ "vendor": "e",
368
+ "maxOutputTokens": 72000,
369
+ "maxInputTokens": 200000,
370
+ "supportsToolCall": true,
371
+ "supportsImages": true,
372
+ "maxAllowedSize": 80000,
373
+ "supportsReasoning": true,
374
+ "reseaning": {
375
+ "effort": "medium",
376
+ "summary": "auto"
377
+ }
378
+ },
379
+ {
380
+ "credits": "x0.19 credits",
381
+ "id": "gpt-5-mini",
382
+ "name": "GPT-5-Mini",
383
+ "vendor": "e",
384
+ "maxOutputTokens": 72000,
385
+ "maxInputTokens": 200000,
386
+ "supportsToolCall": true,
387
+ "supportsImages": true,
388
+ "maxAllowedSize": 80000
389
+ },
390
+ {
391
+ "credits": "x0.04 credits",
392
+ "id": "gpt-5-nano",
393
+ "name": "GPT-5-Nano",
394
+ "vendor": "e",
395
+ "maxOutputTokens": 72000,
396
+ "maxInputTokens": 200000,
397
+ "supportsToolCall": true,
398
+ "supportsImages": true,
399
+ "maxAllowedSize": 80000
400
+ },
401
+ {
402
+ "credits": "x0.92 credits",
403
+ "id": "o4-mini",
404
+ "name": "GPT-4o-Mini",
405
+ "vendor": "e",
406
+ "maxOutputTokens": 24000,
407
+ "maxInputTokens": 104000,
408
+ "supportsToolCall": true,
409
+ "supportsImages": true,
410
+ "maxAllowedSize": 40000
411
+ },
412
+ {
413
+ "credits": "x1.33 credits",
414
+ "id": "gemini-3.0-pro",
415
+ "name": "Gemini-3.0-Pro",
416
+ "maxOutputTokens": 64000,
417
+ "maxInputTokens": 400000,
418
+ "supportsToolCall": true,
419
+ "supportsImages": true,
420
+ "supportsReasoning": true,
421
+ "maxAllowedSize": 400000
422
+ },
423
+ {
424
+ "credits": "x0.33 credits",
425
+ "id": "gemini-3.0-flash",
426
+ "name": "Gemini-3.0-Flash",
427
+ "maxOutputTokens": 64000,
428
+ "maxInputTokens": 400000,
429
+ "supportsToolCall": true,
430
+ "supportsImages": true,
431
+ "supportsReasoning": true,
432
+ "maxAllowedSize": 400000
433
+ },
434
+ {
435
+ "credits": "x0.23 credits",
436
+ "id": "gemini-2.5-flash",
437
+ "name": "Gemini-2.5-Flash",
438
+ "maxOutputTokens": 64000,
439
+ "maxInputTokens": 400000,
440
+ "supportsToolCall": true,
441
+ "supportsImages": true,
442
+ "supportsReasoning": true,
443
+ "maxAllowedSize": 400000
444
+ },
445
+ {
446
+ "credits": "x0.95 credits",
447
+ "id": "gemini-2.5-pro",
448
+ "name": "Gemini-2.5-Pro",
449
+ "maxOutputTokens": 64000,
450
+ "maxInputTokens": 400000,
451
+ "supportsToolCall": true,
452
+ "supportsImages": true,
453
+ "supportsReasoning": true,
454
+ "maxAllowedSize": 400000
455
+ }
456
+ ],
457
+ "links": {
458
+ "officialWebsite": "https://copilot.tencent.com/cli",
459
+ "upgradeUrl": ""
460
+ },
461
+ "productFeatures": {
462
+ "BillingNotice": false,
463
+ "CustomModelsJSON": true
464
+ },
465
+ "commit": "99513c6e55aec7e6d92db60e8b7b62d96f32dc44",
466
+ "date": "2025-12-19T17:20:31.499Z"
467
+ }