@deepseekdev/coder 1.0.82 → 1.0.83
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/contracts/agent-schemas.json +0 -152
- package/dist/contracts/unified-schema.json +19 -479
- package/dist/core/embeddingProviders.d.ts +2 -29
- package/dist/core/embeddingProviders.d.ts.map +1 -1
- package/dist/core/embeddingProviders.js +3 -101
- package/dist/core/embeddingProviders.js.map +1 -1
- package/dist/core/modelDiscovery.d.ts +1 -1
- package/dist/core/modelDiscovery.d.ts.map +1 -1
- package/dist/core/modelDiscovery.js +5 -349
- package/dist/core/modelDiscovery.js.map +1 -1
- package/dist/plugins/providers/index.d.ts.map +1 -1
- package/dist/plugins/providers/index.js +1 -7
- package/dist/plugins/providers/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/plugins/providers/anthropic/index.d.ts +0 -9
- package/dist/plugins/providers/anthropic/index.d.ts.map +0 -1
- package/dist/plugins/providers/anthropic/index.js +0 -48
- package/dist/plugins/providers/anthropic/index.js.map +0 -1
- package/dist/plugins/providers/openai/index.d.ts +0 -10
- package/dist/plugins/providers/openai/index.d.ts.map +0 -1
- package/dist/plugins/providers/openai/index.js +0 -47
- package/dist/plugins/providers/openai/index.js.map +0 -1
- package/dist/plugins/providers/xai/index.d.ts +0 -10
- package/dist/plugins/providers/xai/index.d.ts.map +0 -1
- package/dist/plugins/providers/xai/index.js +0 -47
- package/dist/plugins/providers/xai/index.js.map +0 -1
|
@@ -2,58 +2,10 @@
|
|
|
2
2
|
"$schema": "./schemas/unified-schema.schema.json",
|
|
3
3
|
"contractVersion": "2.0.0",
|
|
4
4
|
"version": "2024-11-25",
|
|
5
|
-
"label": "
|
|
6
|
-
"description": "
|
|
5
|
+
"label": "DeepSeek Coder CLI Schema",
|
|
6
|
+
"description": "Schema for DeepSeek AI coding assistant",
|
|
7
7
|
|
|
8
8
|
"providers": [
|
|
9
|
-
{
|
|
10
|
-
"id": "anthropic",
|
|
11
|
-
"label": "Anthropic",
|
|
12
|
-
"description": "Anthropic Claude models - state of the art reasoning and coding",
|
|
13
|
-
"baseUrl": "https://api.anthropic.com",
|
|
14
|
-
"apiVersion": "2023-06-01",
|
|
15
|
-
"envVars": {
|
|
16
|
-
"apiKey": "ANTHROPIC_API_KEY"
|
|
17
|
-
},
|
|
18
|
-
"capabilities": ["chat", "reasoning", "tools", "streaming", "vision", "prompt_caching"],
|
|
19
|
-
"rateLimiting": {
|
|
20
|
-
"maxRetries": 4,
|
|
21
|
-
"baseDelayMs": 750,
|
|
22
|
-
"maxDelayMs": 40000,
|
|
23
|
-
"backoffMultiplier": 2
|
|
24
|
-
},
|
|
25
|
-
"models": ["claude-opus-4-5-20251101", "claude-sonnet-4-5-20250929", "claude-haiku-4-5-20251001"],
|
|
26
|
-
"defaultModel": "claude-sonnet-4-5-20250929",
|
|
27
|
-
"status": "production"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"id": "openai",
|
|
31
|
-
"label": "OpenAI",
|
|
32
|
-
"description": "OpenAI GPT models including reasoning and coding variants",
|
|
33
|
-
"baseUrl": "https://api.openai.com/v1",
|
|
34
|
-
"envVars": {
|
|
35
|
-
"apiKey": "OPENAI_API_KEY"
|
|
36
|
-
},
|
|
37
|
-
"capabilities": ["chat", "reasoning", "tools", "streaming", "vision"],
|
|
38
|
-
"apiVariants": ["chat_completions", "responses"],
|
|
39
|
-
"models": ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini", "o1-pro", "o3", "o3-pro", "gpt-4-turbo"],
|
|
40
|
-
"defaultModel": "gpt-4o",
|
|
41
|
-
"reasoningModels": ["o1", "o1-mini", "o1-pro", "o3", "o3-pro"],
|
|
42
|
-
"status": "production"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"id": "google",
|
|
46
|
-
"label": "Google AI",
|
|
47
|
-
"description": "Google Gemini models with multimodal capabilities",
|
|
48
|
-
"baseUrl": "https://generativelanguage.googleapis.com",
|
|
49
|
-
"envVars": {
|
|
50
|
-
"apiKey": "GEMINI_API_KEY"
|
|
51
|
-
},
|
|
52
|
-
"capabilities": ["chat", "reasoning", "tools", "streaming", "multimodal", "vision"],
|
|
53
|
-
"models": ["gemini-2.0-flash-exp", "gemini-1.5-pro", "gemini-1.5-flash"],
|
|
54
|
-
"defaultModel": "gemini-2.0-flash-exp",
|
|
55
|
-
"status": "production"
|
|
56
|
-
},
|
|
57
9
|
{
|
|
58
10
|
"id": "deepseek",
|
|
59
11
|
"label": "DeepSeek",
|
|
@@ -67,118 +19,6 @@
|
|
|
67
19
|
"models": ["deepseek-reasoner", "deepseek-chat"],
|
|
68
20
|
"defaultModel": "deepseek-reasoner",
|
|
69
21
|
"status": "production"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"id": "xai",
|
|
73
|
-
"label": "xAI",
|
|
74
|
-
"description": "xAI Grok models for coding and reasoning",
|
|
75
|
-
"baseUrl": "https://api.x.ai/v1",
|
|
76
|
-
"envVars": {
|
|
77
|
-
"apiKey": "XAI_API_KEY"
|
|
78
|
-
},
|
|
79
|
-
"capabilities": ["chat", "reasoning", "tools", "streaming"],
|
|
80
|
-
"openaiCompatible": true,
|
|
81
|
-
"models": ["grok-beta", "grok-2"],
|
|
82
|
-
"defaultModel": "grok-beta",
|
|
83
|
-
"status": "production"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"id": "ollama",
|
|
87
|
-
"label": "Ollama (Local)",
|
|
88
|
-
"description": "Run open-weight models locally via Ollama",
|
|
89
|
-
"baseUrl": "http://localhost:11434/v1",
|
|
90
|
-
"envVars": {
|
|
91
|
-
"baseUrl": "OLLAMA_BASE_URL"
|
|
92
|
-
},
|
|
93
|
-
"capabilities": ["chat", "tools", "streaming"],
|
|
94
|
-
"openaiCompatible": true,
|
|
95
|
-
"models": ["llama3.1:8b", "llama3.2:3b", "qwen2.5:7b", "mistral:7b", "codellama:7b"],
|
|
96
|
-
"defaultModel": "llama3.1:8b",
|
|
97
|
-
"status": "production"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"id": "mistral",
|
|
101
|
-
"label": "Mistral AI",
|
|
102
|
-
"description": "Mistral AI models",
|
|
103
|
-
"baseUrl": "https://api.mistral.ai/v1",
|
|
104
|
-
"envVars": {
|
|
105
|
-
"apiKey": "MISTRAL_API_KEY"
|
|
106
|
-
},
|
|
107
|
-
"capabilities": ["chat", "tools", "streaming"],
|
|
108
|
-
"openaiCompatible": true,
|
|
109
|
-
"models": ["mistral-large-latest", "mistral-medium-latest", "codestral-latest"],
|
|
110
|
-
"defaultModel": "mistral-large-latest",
|
|
111
|
-
"status": "production"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"id": "groq",
|
|
115
|
-
"label": "Groq",
|
|
116
|
-
"description": "Groq ultra-fast inference for open models",
|
|
117
|
-
"baseUrl": "https://api.groq.com/openai/v1",
|
|
118
|
-
"envVars": {
|
|
119
|
-
"apiKey": "GROQ_API_KEY"
|
|
120
|
-
},
|
|
121
|
-
"capabilities": ["chat", "tools", "streaming"],
|
|
122
|
-
"openaiCompatible": true,
|
|
123
|
-
"models": ["llama-3.1-70b-versatile", "llama-3.1-8b-instant", "mixtral-8x7b-32768"],
|
|
124
|
-
"defaultModel": "llama-3.1-70b-versatile",
|
|
125
|
-
"status": "production"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"id": "together",
|
|
129
|
-
"label": "Together AI",
|
|
130
|
-
"description": "Together AI inference platform",
|
|
131
|
-
"baseUrl": "https://api.together.xyz/v1",
|
|
132
|
-
"envVars": {
|
|
133
|
-
"apiKey": "TOGETHER_API_KEY"
|
|
134
|
-
},
|
|
135
|
-
"capabilities": ["chat", "tools", "streaming"],
|
|
136
|
-
"openaiCompatible": true,
|
|
137
|
-
"models": ["meta-llama/Llama-3-70b-chat-hf", "mistralai/Mixtral-8x7B-Instruct-v0.1"],
|
|
138
|
-
"defaultModel": "meta-llama/Llama-3-70b-chat-hf",
|
|
139
|
-
"status": "production"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"id": "fireworks",
|
|
143
|
-
"label": "Fireworks AI",
|
|
144
|
-
"description": "Fireworks AI inference platform",
|
|
145
|
-
"baseUrl": "https://api.fireworks.ai/inference/v1",
|
|
146
|
-
"envVars": {
|
|
147
|
-
"apiKey": "FIREWORKS_API_KEY"
|
|
148
|
-
},
|
|
149
|
-
"capabilities": ["chat", "tools", "streaming"],
|
|
150
|
-
"openaiCompatible": true,
|
|
151
|
-
"models": ["accounts/fireworks/models/llama-v3p1-70b-instruct"],
|
|
152
|
-
"defaultModel": "accounts/fireworks/models/llama-v3p1-70b-instruct",
|
|
153
|
-
"status": "production"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"id": "azure_openai",
|
|
157
|
-
"label": "Azure OpenAI",
|
|
158
|
-
"description": "OpenAI models hosted on Azure",
|
|
159
|
-
"envVars": {
|
|
160
|
-
"apiKey": "AZURE_OPENAI_API_KEY",
|
|
161
|
-
"endpoint": "AZURE_OPENAI_ENDPOINT",
|
|
162
|
-
"deploymentId": "AZURE_OPENAI_DEPLOYMENT"
|
|
163
|
-
},
|
|
164
|
-
"capabilities": ["chat", "tools", "streaming", "vision"],
|
|
165
|
-
"models": ["gpt-4o", "gpt-4-turbo"],
|
|
166
|
-
"defaultModel": "gpt-4o",
|
|
167
|
-
"status": "production"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"id": "bedrock",
|
|
171
|
-
"label": "AWS Bedrock",
|
|
172
|
-
"description": "AWS Bedrock foundation models",
|
|
173
|
-
"envVars": {
|
|
174
|
-
"accessKeyId": "AWS_ACCESS_KEY_ID",
|
|
175
|
-
"secretAccessKey": "AWS_SECRET_ACCESS_KEY",
|
|
176
|
-
"region": "AWS_REGION"
|
|
177
|
-
},
|
|
178
|
-
"capabilities": ["chat", "tools", "streaming"],
|
|
179
|
-
"models": ["anthropic.claude-3-sonnet", "anthropic.claude-3-haiku", "meta.llama3-70b-instruct-v1"],
|
|
180
|
-
"defaultModel": "anthropic.claude-3-sonnet",
|
|
181
|
-
"status": "production"
|
|
182
22
|
}
|
|
183
23
|
],
|
|
184
24
|
|
|
@@ -190,7 +30,7 @@
|
|
|
190
30
|
"requiredCapabilities": ["chat", "tools"],
|
|
191
31
|
"preferredCapabilities": ["reasoning", "streaming"],
|
|
192
32
|
"defaultTemperature": 0.0,
|
|
193
|
-
"recommendedProviders": ["
|
|
33
|
+
"recommendedProviders": ["deepseek"],
|
|
194
34
|
"tools": ["read", "write", "edit", "bash", "glob", "grep"]
|
|
195
35
|
},
|
|
196
36
|
{
|
|
@@ -200,7 +40,7 @@
|
|
|
200
40
|
"requiredCapabilities": ["chat", "reasoning"],
|
|
201
41
|
"preferredCapabilities": ["tools", "streaming"],
|
|
202
42
|
"defaultTemperature": 0.3,
|
|
203
|
-
"recommendedProviders": ["
|
|
43
|
+
"recommendedProviders": ["deepseek"],
|
|
204
44
|
"tools": ["read", "glob", "grep", "web_search", "web_fetch"]
|
|
205
45
|
},
|
|
206
46
|
{
|
|
@@ -210,7 +50,7 @@
|
|
|
210
50
|
"requiredCapabilities": ["chat"],
|
|
211
51
|
"preferredCapabilities": ["streaming"],
|
|
212
52
|
"defaultTemperature": 0.7,
|
|
213
|
-
"recommendedProviders": ["
|
|
53
|
+
"recommendedProviders": ["deepseek"],
|
|
214
54
|
"tools": []
|
|
215
55
|
},
|
|
216
56
|
{
|
|
@@ -220,7 +60,7 @@
|
|
|
220
60
|
"requiredCapabilities": ["chat", "tools"],
|
|
221
61
|
"preferredCapabilities": ["reasoning"],
|
|
222
62
|
"defaultTemperature": 0.0,
|
|
223
|
-
"recommendedProviders": ["
|
|
63
|
+
"recommendedProviders": ["deepseek"],
|
|
224
64
|
"tools": ["read", "glob", "grep", "analyze_complexity", "dependency_audit", "code_security_scan"]
|
|
225
65
|
},
|
|
226
66
|
{
|
|
@@ -230,19 +70,9 @@
|
|
|
230
70
|
"requiredCapabilities": ["chat"],
|
|
231
71
|
"preferredCapabilities": ["tools", "streaming"],
|
|
232
72
|
"defaultTemperature": 0.5,
|
|
233
|
-
"recommendedProviders": ["
|
|
73
|
+
"recommendedProviders": ["deepseek"],
|
|
234
74
|
"tools": ["web_search", "web_fetch", "read"]
|
|
235
75
|
},
|
|
236
|
-
{
|
|
237
|
-
"id": "multimodal",
|
|
238
|
-
"label": "Vision & Multimodal",
|
|
239
|
-
"description": "Process images, documents, and mixed content",
|
|
240
|
-
"requiredCapabilities": ["chat", "multimodal"],
|
|
241
|
-
"preferredCapabilities": ["vision", "streaming"],
|
|
242
|
-
"defaultTemperature": 0.3,
|
|
243
|
-
"recommendedProviders": ["google", "anthropic", "openai"],
|
|
244
|
-
"tools": ["read", "write"]
|
|
245
|
-
},
|
|
246
76
|
{
|
|
247
77
|
"id": "testing",
|
|
248
78
|
"label": "Test Generation",
|
|
@@ -250,7 +80,7 @@
|
|
|
250
80
|
"requiredCapabilities": ["chat", "tools"],
|
|
251
81
|
"preferredCapabilities": ["reasoning"],
|
|
252
82
|
"defaultTemperature": 0.0,
|
|
253
|
-
"recommendedProviders": ["
|
|
83
|
+
"recommendedProviders": ["deepseek"],
|
|
254
84
|
"tools": ["read", "write", "edit", "bash", "generate_test_stub"]
|
|
255
85
|
},
|
|
256
86
|
{
|
|
@@ -260,7 +90,7 @@
|
|
|
260
90
|
"requiredCapabilities": ["chat", "tools"],
|
|
261
91
|
"preferredCapabilities": ["streaming"],
|
|
262
92
|
"defaultTemperature": 0.3,
|
|
263
|
-
"recommendedProviders": ["
|
|
93
|
+
"recommendedProviders": ["deepseek"],
|
|
264
94
|
"tools": ["read", "write", "edit", "generate_docstring"]
|
|
265
95
|
},
|
|
266
96
|
{
|
|
@@ -270,19 +100,9 @@
|
|
|
270
100
|
"requiredCapabilities": ["chat", "tools", "reasoning"],
|
|
271
101
|
"preferredCapabilities": ["streaming"],
|
|
272
102
|
"defaultTemperature": 0.0,
|
|
273
|
-
"recommendedProviders": ["
|
|
103
|
+
"recommendedProviders": ["deepseek"],
|
|
274
104
|
"tools": ["read", "glob", "grep", "dependency_audit", "code_security_scan", "analyze_attack_surface"],
|
|
275
105
|
"requiresAuth": true
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"id": "competitive_rl",
|
|
279
|
-
"label": "Competitive RL (Alpha Zero 2)",
|
|
280
|
-
"description": "Competitive multi-agent reinforcement learning for code optimization",
|
|
281
|
-
"requiredCapabilities": ["chat", "tools", "reasoning"],
|
|
282
|
-
"preferredCapabilities": ["streaming"],
|
|
283
|
-
"defaultTemperature": 0.2,
|
|
284
|
-
"recommendedProviders": ["anthropic", "openai"],
|
|
285
|
-
"tools": ["alpha_zero_evaluate", "alpha_zero_tournament", "alpha_zero_introspect", "alpha_zero_metrics"]
|
|
286
106
|
}
|
|
287
107
|
],
|
|
288
108
|
|
|
@@ -316,20 +136,6 @@
|
|
|
316
136
|
"requiresAuth": true,
|
|
317
137
|
"tools": ["dependency_audit", "code_security_scan", "analyze_attack_surface"]
|
|
318
138
|
},
|
|
319
|
-
{
|
|
320
|
-
"id": "alpha_zero",
|
|
321
|
-
"label": "Alpha Zero 2",
|
|
322
|
-
"description": "Competitive RL framework",
|
|
323
|
-
"alwaysEnabled": false,
|
|
324
|
-
"tools": ["alpha_zero_evaluate", "alpha_zero_tournament", "alpha_zero_introspect", "alpha_zero_history", "alpha_zero_metrics"]
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"id": "mcp",
|
|
328
|
-
"label": "Model Context Protocol",
|
|
329
|
-
"description": "MCP server integration",
|
|
330
|
-
"alwaysEnabled": false,
|
|
331
|
-
"tools": []
|
|
332
|
-
},
|
|
333
139
|
{
|
|
334
140
|
"id": "intelligence",
|
|
335
141
|
"label": "Code Intelligence",
|
|
@@ -374,15 +180,15 @@
|
|
|
374
180
|
{
|
|
375
181
|
"id": "edit",
|
|
376
182
|
"name": "Edit",
|
|
377
|
-
"description": "Performs exact string replacements in files.
|
|
183
|
+
"description": "Performs exact string replacements in files.",
|
|
378
184
|
"category": "core",
|
|
379
185
|
"cacheable": false,
|
|
380
186
|
"parameters": {
|
|
381
187
|
"type": "object",
|
|
382
188
|
"properties": {
|
|
383
189
|
"file_path": {"type": "string", "description": "Absolute path to the file to modify or create"},
|
|
384
|
-
"old_string": {"type": "string", "description": "Exact text to replace.
|
|
385
|
-
"new_string": {"type": "string", "description": "Replacement text.
|
|
190
|
+
"old_string": {"type": "string", "description": "Exact text to replace."},
|
|
191
|
+
"new_string": {"type": "string", "description": "Replacement text."},
|
|
386
192
|
"replace_all": {"type": "boolean", "description": "Replace all occurrences instead of enforcing uniqueness"}
|
|
387
193
|
},
|
|
388
194
|
"required": ["file_path", "old_string"]
|
|
@@ -463,269 +269,6 @@
|
|
|
463
269
|
},
|
|
464
270
|
"required": ["url", "prompt"]
|
|
465
271
|
}
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
"id": "analyze_complexity",
|
|
469
|
-
"name": "AnalyzeComplexity",
|
|
470
|
-
"description": "Analyze code complexity metrics",
|
|
471
|
-
"category": "coding",
|
|
472
|
-
"cacheable": true,
|
|
473
|
-
"parameters": {
|
|
474
|
-
"type": "object",
|
|
475
|
-
"properties": {
|
|
476
|
-
"code": {"type": "string", "description": "Code to analyze"},
|
|
477
|
-
"language": {"type": "string", "description": "Programming language"}
|
|
478
|
-
},
|
|
479
|
-
"required": ["code"]
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
"id": "find_dependencies",
|
|
484
|
-
"name": "FindDependencies",
|
|
485
|
-
"description": "Find imports and dependencies in code",
|
|
486
|
-
"category": "coding",
|
|
487
|
-
"cacheable": true,
|
|
488
|
-
"parameters": {
|
|
489
|
-
"type": "object",
|
|
490
|
-
"properties": {
|
|
491
|
-
"code": {"type": "string", "description": "Code to analyze"},
|
|
492
|
-
"language": {"type": "string", "description": "Programming language"}
|
|
493
|
-
},
|
|
494
|
-
"required": ["code"]
|
|
495
|
-
}
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"id": "generate_docstring",
|
|
499
|
-
"name": "GenerateDocstring",
|
|
500
|
-
"description": "Generate documentation for code",
|
|
501
|
-
"category": "coding",
|
|
502
|
-
"cacheable": false,
|
|
503
|
-
"parameters": {
|
|
504
|
-
"type": "object",
|
|
505
|
-
"properties": {
|
|
506
|
-
"code": {"type": "string", "description": "Code to document"},
|
|
507
|
-
"style": {"type": "string", "enum": ["google", "numpy", "sphinx", "jsdoc"]}
|
|
508
|
-
},
|
|
509
|
-
"required": ["code"]
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
"id": "suggest_refactorings",
|
|
514
|
-
"name": "SuggestRefactorings",
|
|
515
|
-
"description": "Suggest code refactoring improvements",
|
|
516
|
-
"category": "coding",
|
|
517
|
-
"cacheable": true,
|
|
518
|
-
"parameters": {
|
|
519
|
-
"type": "object",
|
|
520
|
-
"properties": {
|
|
521
|
-
"code": {"type": "string", "description": "Code to analyze"},
|
|
522
|
-
"focus": {"type": "array", "items": {"type": "string"}}
|
|
523
|
-
},
|
|
524
|
-
"required": ["code"]
|
|
525
|
-
}
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
"id": "generate_test_stub",
|
|
529
|
-
"name": "GenerateTestStub",
|
|
530
|
-
"description": "Generate test stubs for code",
|
|
531
|
-
"category": "coding",
|
|
532
|
-
"cacheable": false,
|
|
533
|
-
"parameters": {
|
|
534
|
-
"type": "object",
|
|
535
|
-
"properties": {
|
|
536
|
-
"code": {"type": "string", "description": "Code to test"},
|
|
537
|
-
"framework": {"type": "string", "description": "Test framework"}
|
|
538
|
-
},
|
|
539
|
-
"required": ["code"]
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
"id": "dependency_audit",
|
|
544
|
-
"name": "DependencyAudit",
|
|
545
|
-
"description": "Audit dependencies for vulnerabilities",
|
|
546
|
-
"category": "security",
|
|
547
|
-
"cacheable": true,
|
|
548
|
-
"requiresAuth": true,
|
|
549
|
-
"parameters": {
|
|
550
|
-
"type": "object",
|
|
551
|
-
"properties": {
|
|
552
|
-
"packageFile": {"type": "string", "description": "Path to package file"},
|
|
553
|
-
"severityThreshold": {"type": "string", "enum": ["critical", "high", "medium", "low"]}
|
|
554
|
-
},
|
|
555
|
-
"required": ["packageFile"]
|
|
556
|
-
}
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
"id": "code_security_scan",
|
|
560
|
-
"name": "CodeSecurityScan",
|
|
561
|
-
"description": "Scan code for security vulnerabilities",
|
|
562
|
-
"category": "security",
|
|
563
|
-
"cacheable": true,
|
|
564
|
-
"requiresAuth": true,
|
|
565
|
-
"parameters": {
|
|
566
|
-
"type": "object",
|
|
567
|
-
"properties": {
|
|
568
|
-
"code": {"type": "string", "description": "Code to scan"},
|
|
569
|
-
"language": {"type": "string", "description": "Programming language"}
|
|
570
|
-
},
|
|
571
|
-
"required": ["code", "language"]
|
|
572
|
-
}
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
"id": "analyze_attack_surface",
|
|
576
|
-
"name": "AnalyzeAttackSurface",
|
|
577
|
-
"description": "Analyze code attack surface",
|
|
578
|
-
"category": "security",
|
|
579
|
-
"cacheable": true,
|
|
580
|
-
"requiresAuth": true,
|
|
581
|
-
"parameters": {
|
|
582
|
-
"type": "object",
|
|
583
|
-
"properties": {
|
|
584
|
-
"code": {"type": "string", "description": "Code to analyze"},
|
|
585
|
-
"context": {"type": "string", "enum": ["web_app", "api", "cli", "library"]}
|
|
586
|
-
},
|
|
587
|
-
"required": ["code"]
|
|
588
|
-
}
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
"id": "alpha_zero_evaluate",
|
|
592
|
-
"name": "AlphaZeroEvaluate",
|
|
593
|
-
"description": "Evaluate code quality with Alpha Zero 2 metrics",
|
|
594
|
-
"category": "alpha_zero",
|
|
595
|
-
"cacheable": true,
|
|
596
|
-
"parameters": {
|
|
597
|
-
"type": "object",
|
|
598
|
-
"properties": {
|
|
599
|
-
"code": {"type": "string", "description": "Code to evaluate"}
|
|
600
|
-
},
|
|
601
|
-
"required": ["code"]
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
"id": "alpha_zero_tournament",
|
|
606
|
-
"name": "AlphaZeroTournament",
|
|
607
|
-
"description": "Run a competitive tournament between agents",
|
|
608
|
-
"category": "alpha_zero",
|
|
609
|
-
"cacheable": false,
|
|
610
|
-
"parameters": {
|
|
611
|
-
"type": "object",
|
|
612
|
-
"properties": {
|
|
613
|
-
"taskPrompts": {"type": "array", "items": {"type": "string"}},
|
|
614
|
-
"numRounds": {"type": "integer"}
|
|
615
|
-
},
|
|
616
|
-
"required": ["taskPrompts"]
|
|
617
|
-
}
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
"id": "alpha_zero_introspect",
|
|
621
|
-
"name": "AlphaZeroIntrospect",
|
|
622
|
-
"description": "Analyze agent performance and get improvement suggestions",
|
|
623
|
-
"category": "alpha_zero",
|
|
624
|
-
"cacheable": false,
|
|
625
|
-
"parameters": {
|
|
626
|
-
"type": "object",
|
|
627
|
-
"properties": {}
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
"id": "alpha_zero_history",
|
|
632
|
-
"name": "AlphaZeroHistory",
|
|
633
|
-
"description": "Get historical competition data",
|
|
634
|
-
"category": "alpha_zero",
|
|
635
|
-
"cacheable": true,
|
|
636
|
-
"parameters": {
|
|
637
|
-
"type": "object",
|
|
638
|
-
"properties": {}
|
|
639
|
-
}
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
"id": "alpha_zero_metrics",
|
|
643
|
-
"name": "AlphaZeroMetrics",
|
|
644
|
-
"description": "Get comprehensive performance metrics",
|
|
645
|
-
"category": "alpha_zero",
|
|
646
|
-
"cacheable": false,
|
|
647
|
-
"parameters": {
|
|
648
|
-
"type": "object",
|
|
649
|
-
"properties": {
|
|
650
|
-
"timeframe": {"type": "string", "enum": ["hour", "day", "week", "month", "all"]},
|
|
651
|
-
"includeTrends": {"type": "boolean"}
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
"id": "intelligence_analyze",
|
|
657
|
-
"name": "IntelligenceAnalyze",
|
|
658
|
-
"description": "Analyze codebase for issues, patterns, and metrics",
|
|
659
|
-
"category": "intelligence",
|
|
660
|
-
"cacheable": true,
|
|
661
|
-
"parameters": {
|
|
662
|
-
"type": "object",
|
|
663
|
-
"properties": {
|
|
664
|
-
"path": {"type": "string", "description": "Path to analyze (file or directory)"},
|
|
665
|
-
"includeMetrics": {"type": "boolean", "description": "Include code quality metrics"},
|
|
666
|
-
"severity": {"type": "string", "enum": ["all", "critical", "high", "medium", "low"], "description": "Minimum severity to report"}
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
"id": "intelligence_refactor",
|
|
672
|
-
"name": "IntelligenceRefactor",
|
|
673
|
-
"description": "Find and optionally apply refactoring opportunities",
|
|
674
|
-
"category": "intelligence",
|
|
675
|
-
"cacheable": false,
|
|
676
|
-
"parameters": {
|
|
677
|
-
"type": "object",
|
|
678
|
-
"properties": {
|
|
679
|
-
"path": {"type": "string", "description": "Path to analyze"},
|
|
680
|
-
"autoApply": {"type": "boolean", "description": "Automatically apply safe refactorings"},
|
|
681
|
-
"riskLevel": {"type": "string", "enum": ["safe", "low", "medium", "all"], "description": "Maximum risk level to consider"}
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
"id": "intelligence_document",
|
|
687
|
-
"name": "IntelligenceDocument",
|
|
688
|
-
"description": "Generate documentation from code analysis",
|
|
689
|
-
"category": "intelligence",
|
|
690
|
-
"cacheable": true,
|
|
691
|
-
"parameters": {
|
|
692
|
-
"type": "object",
|
|
693
|
-
"properties": {
|
|
694
|
-
"path": {"type": "string", "description": "Path to document"},
|
|
695
|
-
"format": {"type": "string", "enum": ["markdown", "json", "html"], "description": "Output format"},
|
|
696
|
-
"includeArchitecture": {"type": "boolean", "description": "Include architecture analysis"}
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
},
|
|
700
|
-
{
|
|
701
|
-
"id": "intelligence_test",
|
|
702
|
-
"name": "IntelligenceTest",
|
|
703
|
-
"description": "Generate test suites from code analysis",
|
|
704
|
-
"category": "intelligence",
|
|
705
|
-
"cacheable": false,
|
|
706
|
-
"parameters": {
|
|
707
|
-
"type": "object",
|
|
708
|
-
"properties": {
|
|
709
|
-
"path": {"type": "string", "description": "Path to generate tests for"},
|
|
710
|
-
"framework": {"type": "string", "enum": ["jest", "mocha", "vitest", "pytest"], "description": "Test framework"},
|
|
711
|
-
"includeEdgeCases": {"type": "boolean", "description": "Include edge case tests"}
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
{
|
|
716
|
-
"id": "intelligence_full",
|
|
717
|
-
"name": "IntelligenceFull",
|
|
718
|
-
"description": "Run full intelligence suite: analyze, refactor, document, and test",
|
|
719
|
-
"category": "intelligence",
|
|
720
|
-
"cacheable": false,
|
|
721
|
-
"parameters": {
|
|
722
|
-
"type": "object",
|
|
723
|
-
"properties": {
|
|
724
|
-
"path": {"type": "string", "description": "Path to analyze"},
|
|
725
|
-
"autoFix": {"type": "boolean", "description": "Automatically apply safe fixes"},
|
|
726
|
-
"outputDir": {"type": "string", "description": "Directory for output files"}
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
272
|
}
|
|
730
273
|
],
|
|
731
274
|
|
|
@@ -733,15 +276,12 @@
|
|
|
733
276
|
{"id": "chat", "label": "Chat", "description": "Basic conversational capabilities"},
|
|
734
277
|
{"id": "reasoning", "label": "Reasoning", "description": "Extended chain-of-thought reasoning"},
|
|
735
278
|
{"id": "tools", "label": "Tool Use", "description": "Ability to call external tools"},
|
|
736
|
-
{"id": "streaming", "label": "Streaming", "description": "Support for streaming responses"}
|
|
737
|
-
{"id": "multimodal", "label": "Multimodal", "description": "Support for images and mixed content"},
|
|
738
|
-
{"id": "vision", "label": "Vision", "description": "Image understanding capabilities"},
|
|
739
|
-
{"id": "prompt_caching", "label": "Prompt Caching", "description": "Cache repeated prompt content"}
|
|
279
|
+
{"id": "streaming", "label": "Streaming", "description": "Support for streaming responses"}
|
|
740
280
|
],
|
|
741
281
|
|
|
742
282
|
"defaults": {
|
|
743
|
-
"provider": "
|
|
744
|
-
"model": "
|
|
283
|
+
"provider": "deepseek",
|
|
284
|
+
"model": "deepseek-reasoner",
|
|
745
285
|
"temperature": 0.0,
|
|
746
286
|
"maxTokens": 4096,
|
|
747
287
|
"taskType": "coding"
|
|
@@ -749,9 +289,9 @@
|
|
|
749
289
|
|
|
750
290
|
"metadata": {
|
|
751
291
|
"schemaVersion": "2.0.0",
|
|
752
|
-
"lastUpdated": "
|
|
292
|
+
"lastUpdated": "2026-01-29",
|
|
753
293
|
"author": "Bo Shang",
|
|
754
|
-
"framework": "
|
|
755
|
-
"description": "
|
|
294
|
+
"framework": "deepseek-coder",
|
|
295
|
+
"description": "DeepSeek-only schema for coding assistant"
|
|
756
296
|
}
|
|
757
297
|
}
|
|
@@ -3,37 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Supports:
|
|
5
5
|
* - Simple (built-in, no dependencies)
|
|
6
|
-
* -
|
|
7
|
-
* - Ollama local embeddings
|
|
6
|
+
* - DeepSeek embeddings
|
|
8
7
|
* - Custom providers via interface
|
|
9
8
|
*/
|
|
10
9
|
import type { EmbeddingProvider } from './episodicMemory.js';
|
|
11
|
-
export interface OpenAIEmbeddingConfig {
|
|
12
|
-
apiKey: string;
|
|
13
|
-
model?: 'text-embedding-3-small' | 'text-embedding-3-large' | 'text-embedding-ada-002';
|
|
14
|
-
baseUrl?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class OpenAIEmbeddingProvider implements EmbeddingProvider {
|
|
17
|
-
readonly name = "openai";
|
|
18
|
-
readonly dimension: number;
|
|
19
|
-
private apiKey;
|
|
20
|
-
private model;
|
|
21
|
-
private baseUrl;
|
|
22
|
-
constructor(config: OpenAIEmbeddingConfig);
|
|
23
|
-
embed(text: string): Promise<number[]>;
|
|
24
|
-
}
|
|
25
|
-
export interface OllamaEmbeddingConfig {
|
|
26
|
-
model?: string;
|
|
27
|
-
baseUrl?: string;
|
|
28
|
-
}
|
|
29
|
-
export declare class OllamaEmbeddingProvider implements EmbeddingProvider {
|
|
30
|
-
readonly name = "ollama";
|
|
31
|
-
readonly dimension = 4096;
|
|
32
|
-
private model;
|
|
33
|
-
private baseUrl;
|
|
34
|
-
constructor(config?: OllamaEmbeddingConfig);
|
|
35
|
-
embed(text: string): Promise<number[]>;
|
|
36
|
-
}
|
|
37
10
|
export interface DeepSeekEmbeddingConfig {
|
|
38
11
|
apiKey: string;
|
|
39
12
|
baseUrl?: string;
|
|
@@ -60,7 +33,7 @@ export declare class CachedEmbeddingProvider implements EmbeddingProvider {
|
|
|
60
33
|
maxSize: number;
|
|
61
34
|
};
|
|
62
35
|
}
|
|
63
|
-
export type EmbeddingProviderType = 'simple' | '
|
|
36
|
+
export type EmbeddingProviderType = 'simple' | 'deepseek';
|
|
64
37
|
export interface EmbeddingProviderOptions {
|
|
65
38
|
type: EmbeddingProviderType;
|
|
66
39
|
apiKey?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embeddingProviders.d.ts","sourceRoot":"","sources":["../../src/core/embeddingProviders.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"embeddingProviders.d.ts","sourceRoot":"","sources":["../../src/core/embeddingProviders.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAM7D,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,yBAA0B,YAAW,iBAAiB;IACjE,QAAQ,CAAC,IAAI,cAAc;IAC3B,QAAQ,CAAC,SAAS,QAAQ;IAE1B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAS;gBAEZ,MAAM,EAAE,uBAAuB;IAKrC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAyB7C;AAMD,qBAAa,uBAAwB,YAAW,iBAAiB;IAC/D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,OAAO,CAAC,QAAQ,CAAoB;IACpC,OAAO,CAAC,KAAK,CAAoC;IACjD,OAAO,CAAC,YAAY,CAAS;gBAEjB,QAAQ,EAAE,iBAAiB,EAAE,YAAY,SAAQ;IAOvD,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAqB5C,UAAU,IAAI,IAAI;IAIlB,aAAa,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;CAMnD;AAMD,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE1D,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,wBAAwB,GAAG,iBAAiB,CA6C5F;AAED;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,iBAAiB,CAc/D"}
|