@trenchwork/erosolar 1.1.40 → 1.1.42

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 (105) hide show
  1. package/LICENSE +12 -17
  2. package/README.md +23 -12
  3. package/dist/bin/deepseek.js +18 -198
  4. package/dist/bin/deepseek.js.map +1 -1
  5. package/dist/contracts/agent-profiles.schema.json +5 -23
  6. package/dist/contracts/agent-schemas.json +31 -343
  7. package/dist/contracts/schemas/agent-schemas.schema.json +3 -3
  8. package/dist/contracts/unified-schema.json +8 -628
  9. package/dist/core/hitl.d.ts.map +1 -1
  10. package/dist/core/hitl.js +17 -16
  11. package/dist/core/hitl.js.map +1 -1
  12. package/dist/core/modelDiscovery.d.ts +0 -3
  13. package/dist/core/modelDiscovery.d.ts.map +1 -1
  14. package/dist/core/modelDiscovery.js +3 -355
  15. package/dist/core/modelDiscovery.js.map +1 -1
  16. package/dist/core/permissionMode.d.ts +40 -0
  17. package/dist/core/permissionMode.d.ts.map +1 -0
  18. package/dist/core/permissionMode.js +86 -0
  19. package/dist/core/permissionMode.js.map +1 -0
  20. package/dist/core/quotaErrors.d.ts +42 -0
  21. package/dist/core/quotaErrors.d.ts.map +1 -0
  22. package/dist/core/quotaErrors.js +88 -0
  23. package/dist/core/quotaErrors.js.map +1 -0
  24. package/dist/core/secretStore.d.ts.map +1 -1
  25. package/dist/core/secretStore.js +0 -13
  26. package/dist/core/secretStore.js.map +1 -1
  27. package/dist/core/toolRuntime.d.ts.map +1 -1
  28. package/dist/core/toolRuntime.js +21 -2
  29. package/dist/core/toolRuntime.js.map +1 -1
  30. package/dist/headless/interactiveShell.d.ts +7 -5
  31. package/dist/headless/interactiveShell.d.ts.map +1 -1
  32. package/dist/headless/interactiveShell.js +99 -217
  33. package/dist/headless/interactiveShell.js.map +1 -1
  34. package/dist/plugins/providers/deepseek/index.d.ts +1 -0
  35. package/dist/plugins/providers/deepseek/index.d.ts.map +1 -1
  36. package/dist/plugins/providers/deepseek/index.js +65 -4
  37. package/dist/plugins/providers/deepseek/index.js.map +1 -1
  38. package/dist/plugins/providers/index.d.ts.map +1 -1
  39. package/dist/plugins/providers/index.js +0 -7
  40. package/dist/plugins/providers/index.js.map +1 -1
  41. package/dist/providers/openaiChatCompletionsProvider.js +7 -30
  42. package/dist/providers/openaiChatCompletionsProvider.js.map +1 -1
  43. package/dist/providers/resilientProvider.d.ts.map +1 -1
  44. package/dist/providers/resilientProvider.js +0 -31
  45. package/dist/providers/resilientProvider.js.map +1 -1
  46. package/dist/shell/commandRegistry.js +6 -6
  47. package/dist/shell/commandRegistry.js.map +1 -1
  48. package/dist/shell/toolPresentation.d.ts +47 -0
  49. package/dist/shell/toolPresentation.d.ts.map +1 -0
  50. package/dist/shell/toolPresentation.js +260 -0
  51. package/dist/shell/toolPresentation.js.map +1 -0
  52. package/dist/tools/bashTools.js +2 -2
  53. package/dist/tools/bashTools.js.map +1 -1
  54. package/dist/tools/webTools.d.ts.map +1 -1
  55. package/dist/tools/webTools.js +85 -3
  56. package/dist/tools/webTools.js.map +1 -1
  57. package/dist/ui/ink/App.d.ts +2 -0
  58. package/dist/ui/ink/App.d.ts.map +1 -1
  59. package/dist/ui/ink/App.js +2 -2
  60. package/dist/ui/ink/App.js.map +1 -1
  61. package/dist/ui/ink/ChatStatic.d.ts +6 -5
  62. package/dist/ui/ink/ChatStatic.d.ts.map +1 -1
  63. package/dist/ui/ink/ChatStatic.js +35 -10
  64. package/dist/ui/ink/ChatStatic.js.map +1 -1
  65. package/dist/ui/ink/InkPromptController.d.ts +11 -0
  66. package/dist/ui/ink/InkPromptController.d.ts.map +1 -1
  67. package/dist/ui/ink/InkPromptController.js +50 -11
  68. package/dist/ui/ink/InkPromptController.js.map +1 -1
  69. package/dist/ui/ink/Prompt.d.ts +2 -0
  70. package/dist/ui/ink/Prompt.d.ts.map +1 -1
  71. package/dist/ui/ink/Prompt.js +8 -2
  72. package/dist/ui/ink/Prompt.js.map +1 -1
  73. package/dist/ui/ink/StatusLine.d.ts +16 -8
  74. package/dist/ui/ink/StatusLine.d.ts.map +1 -1
  75. package/dist/ui/ink/StatusLine.js +45 -4
  76. package/dist/ui/ink/StatusLine.js.map +1 -1
  77. package/dist/ui/theme.d.ts.map +1 -1
  78. package/dist/ui/theme.js +4 -6
  79. package/dist/ui/theme.js.map +1 -1
  80. package/package.json +2 -9
  81. package/scripts/postinstall.cjs +1 -2
  82. package/dist/bin/cliMode.d.ts +0 -8
  83. package/dist/bin/cliMode.d.ts.map +0 -1
  84. package/dist/bin/cliMode.js +0 -20
  85. package/dist/bin/cliMode.js.map +0 -1
  86. package/dist/bin/selfTest.d.ts +0 -14
  87. package/dist/bin/selfTest.d.ts.map +0 -1
  88. package/dist/bin/selfTest.js +0 -298
  89. package/dist/bin/selfTest.js.map +0 -1
  90. package/dist/headless/printMode.d.ts +0 -17
  91. package/dist/headless/printMode.d.ts.map +0 -1
  92. package/dist/headless/printMode.js +0 -40
  93. package/dist/headless/printMode.js.map +0 -1
  94. package/dist/plugins/providers/anthropic/index.d.ts +0 -9
  95. package/dist/plugins/providers/anthropic/index.d.ts.map +0 -1
  96. package/dist/plugins/providers/anthropic/index.js +0 -48
  97. package/dist/plugins/providers/anthropic/index.js.map +0 -1
  98. package/dist/plugins/providers/openai/index.d.ts +0 -10
  99. package/dist/plugins/providers/openai/index.d.ts.map +0 -1
  100. package/dist/plugins/providers/openai/index.js +0 -47
  101. package/dist/plugins/providers/openai/index.js.map +0 -1
  102. package/dist/plugins/providers/xai/index.d.ts +0 -10
  103. package/dist/plugins/providers/xai/index.d.ts.map +0 -1
  104. package/dist/plugins/providers/xai/index.js +0 -47
  105. package/dist/plugins/providers/xai/index.js.map +0 -1
@@ -2,62 +2,14 @@
2
2
  "$schema": "./schemas/unified-schema.schema.json",
3
3
  "contractVersion": "2.0.0",
4
4
  "version": "2024-11-25",
5
- "label": "AGI CLI Unified AI Task Schema",
6
- "description": "Comprehensive schema for all AI tasks, providers, tools, and capabilities - single source of truth",
5
+ "label": "Erosolar CLI Unified Schema",
6
+ "description": "Comprehensive schema for AI tasks, providers, and tools - single source of truth",
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",
60
- "description": "DeepSeek reasoning and coding models",
12
+ "description": "DeepSeek reasoning and coding models on max thought",
61
13
  "baseUrl": "https://api.deepseek.com",
62
14
  "envVars": {
63
15
  "apiKey": "DEEPSEEK_API_KEY"
@@ -67,586 +19,14 @@
67
19
  "models": ["deepseek-v4-pro", "deepseek-chat"],
68
20
  "defaultModel": "deepseek-v4-pro",
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
 
185
- "taskTypes": [
186
- {
187
- "id": "coding",
188
- "label": "Code Generation & Editing",
189
- "description": "Generate, edit, refactor, and analyze code",
190
- "requiredCapabilities": ["chat", "tools"],
191
- "preferredCapabilities": ["reasoning", "streaming"],
192
- "defaultTemperature": 0.0,
193
- "recommendedProviders": ["anthropic", "openai", "deepseek"],
194
- "tools": ["read", "write", "edit", "bash", "glob", "grep"]
195
- },
196
- {
197
- "id": "reasoning",
198
- "label": "Complex Reasoning",
199
- "description": "Multi-step reasoning, planning, and analysis",
200
- "requiredCapabilities": ["chat", "reasoning"],
201
- "preferredCapabilities": ["tools", "streaming"],
202
- "defaultTemperature": 0.3,
203
- "recommendedProviders": ["anthropic", "openai", "deepseek"],
204
- "tools": ["read", "glob", "grep", "web_search", "web_fetch"]
205
- },
206
- {
207
- "id": "chat",
208
- "label": "Conversational",
209
- "description": "General conversation and Q&A",
210
- "requiredCapabilities": ["chat"],
211
- "preferredCapabilities": ["streaming"],
212
- "defaultTemperature": 0.7,
213
- "recommendedProviders": ["anthropic", "openai", "google"],
214
- "tools": []
215
- },
216
- {
217
- "id": "analysis",
218
- "label": "Code Analysis",
219
- "description": "Analyze code quality, security, dependencies",
220
- "requiredCapabilities": ["chat", "tools"],
221
- "preferredCapabilities": ["reasoning"],
222
- "defaultTemperature": 0.0,
223
- "recommendedProviders": ["anthropic", "openai"],
224
- "tools": ["read", "glob", "grep", "analyze_complexity", "dependency_audit", "code_security_scan"]
225
- },
226
- {
227
- "id": "research",
228
- "label": "Research & Information",
229
- "description": "Research topics, gather information",
230
- "requiredCapabilities": ["chat"],
231
- "preferredCapabilities": ["tools", "streaming"],
232
- "defaultTemperature": 0.5,
233
- "recommendedProviders": ["anthropic", "openai", "google"],
234
- "tools": ["web_search", "web_fetch", "read"]
235
- },
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
- {
247
- "id": "testing",
248
- "label": "Test Generation",
249
- "description": "Generate and run tests",
250
- "requiredCapabilities": ["chat", "tools"],
251
- "preferredCapabilities": ["reasoning"],
252
- "defaultTemperature": 0.0,
253
- "recommendedProviders": ["anthropic", "openai"],
254
- "tools": ["read", "write", "edit", "bash", "generate_test_stub"]
255
- },
256
- {
257
- "id": "documentation",
258
- "label": "Documentation",
259
- "description": "Generate documentation and comments",
260
- "requiredCapabilities": ["chat", "tools"],
261
- "preferredCapabilities": ["streaming"],
262
- "defaultTemperature": 0.3,
263
- "recommendedProviders": ["anthropic", "openai"],
264
- "tools": ["read", "write", "edit", "generate_docstring"]
265
- },
266
- {
267
- "id": "security",
268
- "label": "Security Analysis",
269
- "description": "Security auditing and vulnerability analysis",
270
- "requiredCapabilities": ["chat", "tools", "reasoning"],
271
- "preferredCapabilities": ["streaming"],
272
- "defaultTemperature": 0.0,
273
- "recommendedProviders": ["anthropic", "openai"],
274
- "tools": ["read", "glob", "grep", "dependency_audit", "code_security_scan"],
275
- "requiresAuth": true
276
- },
277
- ],
278
-
279
- "toolCategories": [
280
- {
281
- "id": "core",
282
- "label": "Core Tools",
283
- "description": "Essential tools always available",
284
- "alwaysEnabled": true,
285
- "tools": ["read", "write", "edit", "bash", "glob", "grep"]
286
- },
287
- {
288
- "id": "web",
289
- "label": "Web Tools",
290
- "description": "Web search and fetch capabilities",
291
- "alwaysEnabled": false,
292
- "tools": ["web_search", "web_fetch"]
293
- },
294
- {
295
- "id": "coding",
296
- "label": "Enhanced Coding",
297
- "description": "Advanced code analysis and generation",
298
- "alwaysEnabled": false,
299
- "tools": ["analyze_complexity", "find_dependencies", "generate_docstring", "suggest_refactorings", "generate_test_stub"]
300
- },
301
- {
302
- "id": "security",
303
- "label": "Security Research",
304
- "description": "Security analysis and auditing",
305
- "alwaysEnabled": false,
306
- "requiresAuth": true,
307
- "tools": ["dependency_audit", "code_security_scan"]
308
- },
309
- {
310
- "id": "mcp",
311
- "label": "Model Context Protocol",
312
- "description": "MCP server integration",
313
- "alwaysEnabled": false,
314
- "tools": []
315
- },
316
- {
317
- "id": "intelligence",
318
- "label": "Code Intelligence",
319
- "description": "Automated code analysis, refactoring, documentation, and test generation",
320
- "alwaysEnabled": false,
321
- "tools": ["intelligence_analyze", "intelligence_refactor", "intelligence_document", "intelligence_test", "intelligence_full"]
322
- }
323
- ],
324
-
325
- "tools": [
326
- {
327
- "id": "read",
328
- "name": "Read",
329
- "description": "Read file contents from the filesystem",
330
- "category": "core",
331
- "cacheable": true,
332
- "parameters": {
333
- "type": "object",
334
- "properties": {
335
- "file_path": {"type": "string", "description": "Absolute path to the file"},
336
- "offset": {"type": "number", "description": "Line number to start from"},
337
- "limit": {"type": "number", "description": "Number of lines to read"}
338
- },
339
- "required": ["file_path"]
340
- }
341
- },
342
- {
343
- "id": "write",
344
- "name": "Write",
345
- "description": "Write content to a file",
346
- "category": "core",
347
- "cacheable": false,
348
- "parameters": {
349
- "type": "object",
350
- "properties": {
351
- "file_path": {"type": "string", "description": "Absolute path to the file"},
352
- "content": {"type": "string", "description": "Content to write"}
353
- },
354
- "required": ["file_path", "content"]
355
- }
356
- },
357
- {
358
- "id": "edit",
359
- "name": "Edit",
360
- "description": "Performs exact string replacements in files. Use empty old_string to create a file and empty new_string to delete matched text.",
361
- "category": "core",
362
- "cacheable": false,
363
- "parameters": {
364
- "type": "object",
365
- "properties": {
366
- "file_path": {"type": "string", "description": "Absolute path to the file to modify or create"},
367
- "old_string": {"type": "string", "description": "Exact text to replace. Use empty string to create a new file."},
368
- "new_string": {"type": "string", "description": "Replacement text. Use empty string to delete the match. Defaults to empty when omitted."},
369
- "replace_all": {"type": "boolean", "description": "Replace all occurrences instead of enforcing uniqueness"}
370
- },
371
- "required": ["file_path", "old_string"]
372
- }
373
- },
374
- {
375
- "id": "bash",
376
- "name": "Bash",
377
- "description": "Execute shell commands",
378
- "category": "core",
379
- "cacheable": false,
380
- "parameters": {
381
- "type": "object",
382
- "properties": {
383
- "command": {"type": "string", "description": "Command to execute"},
384
- "timeout": {"type": "number", "description": "Timeout in milliseconds"},
385
- "description": {"type": "string", "description": "What this command does"}
386
- },
387
- "required": ["command"]
388
- }
389
- },
390
- {
391
- "id": "glob",
392
- "name": "Glob",
393
- "description": "Find files matching a pattern",
394
- "category": "core",
395
- "cacheable": true,
396
- "parameters": {
397
- "type": "object",
398
- "properties": {
399
- "pattern": {"type": "string", "description": "Glob pattern to match"},
400
- "path": {"type": "string", "description": "Directory to search in"}
401
- },
402
- "required": ["pattern"]
403
- }
404
- },
405
- {
406
- "id": "grep",
407
- "name": "Grep",
408
- "description": "Search file contents with regex",
409
- "category": "core",
410
- "cacheable": true,
411
- "parameters": {
412
- "type": "object",
413
- "properties": {
414
- "pattern": {"type": "string", "description": "Regex pattern to search for"},
415
- "path": {"type": "string", "description": "File or directory to search"},
416
- "output_mode": {"type": "string", "enum": ["content", "files_with_matches", "count"]}
417
- },
418
- "required": ["pattern"]
419
- }
420
- },
421
- {
422
- "id": "web_search",
423
- "name": "WebSearch",
424
- "description": "Search the web for information",
425
- "category": "web",
426
- "cacheable": true,
427
- "parameters": {
428
- "type": "object",
429
- "properties": {
430
- "query": {"type": "string", "description": "Search query"}
431
- },
432
- "required": ["query"]
433
- }
434
- },
435
- {
436
- "id": "web_fetch",
437
- "name": "WebFetch",
438
- "description": "Fetch and analyze web page content",
439
- "category": "web",
440
- "cacheable": true,
441
- "parameters": {
442
- "type": "object",
443
- "properties": {
444
- "url": {"type": "string", "description": "URL to fetch"},
445
- "prompt": {"type": "string", "description": "What to extract from the page"}
446
- },
447
- "required": ["url", "prompt"]
448
- }
449
- },
450
- {
451
- "id": "analyze_complexity",
452
- "name": "AnalyzeComplexity",
453
- "description": "Analyze code complexity metrics",
454
- "category": "coding",
455
- "cacheable": true,
456
- "parameters": {
457
- "type": "object",
458
- "properties": {
459
- "code": {"type": "string", "description": "Code to analyze"},
460
- "language": {"type": "string", "description": "Programming language"}
461
- },
462
- "required": ["code"]
463
- }
464
- },
465
- {
466
- "id": "find_dependencies",
467
- "name": "FindDependencies",
468
- "description": "Find imports and dependencies in code",
469
- "category": "coding",
470
- "cacheable": true,
471
- "parameters": {
472
- "type": "object",
473
- "properties": {
474
- "code": {"type": "string", "description": "Code to analyze"},
475
- "language": {"type": "string", "description": "Programming language"}
476
- },
477
- "required": ["code"]
478
- }
479
- },
480
- {
481
- "id": "generate_docstring",
482
- "name": "GenerateDocstring",
483
- "description": "Generate documentation for code",
484
- "category": "coding",
485
- "cacheable": false,
486
- "parameters": {
487
- "type": "object",
488
- "properties": {
489
- "code": {"type": "string", "description": "Code to document"},
490
- "style": {"type": "string", "enum": ["google", "numpy", "sphinx", "jsdoc"]}
491
- },
492
- "required": ["code"]
493
- }
494
- },
495
- {
496
- "id": "suggest_refactorings",
497
- "name": "SuggestRefactorings",
498
- "description": "Suggest code refactoring improvements",
499
- "category": "coding",
500
- "cacheable": true,
501
- "parameters": {
502
- "type": "object",
503
- "properties": {
504
- "code": {"type": "string", "description": "Code to analyze"},
505
- "focus": {"type": "array", "items": {"type": "string"}}
506
- },
507
- "required": ["code"]
508
- }
509
- },
510
- {
511
- "id": "generate_test_stub",
512
- "name": "GenerateTestStub",
513
- "description": "Generate test stubs for code",
514
- "category": "coding",
515
- "cacheable": false,
516
- "parameters": {
517
- "type": "object",
518
- "properties": {
519
- "code": {"type": "string", "description": "Code to test"},
520
- "framework": {"type": "string", "description": "Test framework"}
521
- },
522
- "required": ["code"]
523
- }
524
- },
525
- {
526
- "id": "dependency_audit",
527
- "name": "DependencyAudit",
528
- "description": "Audit dependencies for vulnerabilities",
529
- "category": "security",
530
- "cacheable": true,
531
- "requiresAuth": true,
532
- "parameters": {
533
- "type": "object",
534
- "properties": {
535
- "packageFile": {"type": "string", "description": "Path to package file"},
536
- "severityThreshold": {"type": "string", "enum": ["critical", "high", "medium", "low"]}
537
- },
538
- "required": ["packageFile"]
539
- }
540
- },
541
- {
542
- "id": "code_security_scan",
543
- "name": "CodeSecurityScan",
544
- "description": "Scan code for security vulnerabilities",
545
- "category": "security",
546
- "cacheable": true,
547
- "requiresAuth": true,
548
- "parameters": {
549
- "type": "object",
550
- "properties": {
551
- "code": {"type": "string", "description": "Code to scan"},
552
- "language": {"type": "string", "description": "Programming language"}
553
- },
554
- "required": ["code", "language"]
555
- }
556
-
557
- },
558
- {
559
- "id": "intelligence_analyze",
560
- "name": "IntelligenceAnalyze",
561
- "description": "Analyze codebase for issues, patterns, and metrics",
562
- "category": "intelligence",
563
- "cacheable": true,
564
- "parameters": {
565
- "type": "object",
566
- "properties": {
567
- "path": {"type": "string", "description": "Path to analyze (file or directory)"},
568
- "includeMetrics": {"type": "boolean", "description": "Include code quality metrics"},
569
- "severity": {"type": "string", "enum": ["all", "critical", "high", "medium", "low"], "description": "Minimum severity to report"}
570
- }
571
- }
572
- },
573
- {
574
- "id": "intelligence_refactor",
575
- "name": "IntelligenceRefactor",
576
- "description": "Find and optionally apply refactoring opportunities",
577
- "category": "intelligence",
578
- "cacheable": false,
579
- "parameters": {
580
- "type": "object",
581
- "properties": {
582
- "path": {"type": "string", "description": "Path to analyze"},
583
- "autoApply": {"type": "boolean", "description": "Automatically apply safe refactorings"},
584
- "riskLevel": {"type": "string", "enum": ["safe", "low", "medium", "all"], "description": "Maximum risk level to consider"}
585
- }
586
- }
587
- },
588
- {
589
- "id": "intelligence_document",
590
- "name": "IntelligenceDocument",
591
- "description": "Generate documentation from code analysis",
592
- "category": "intelligence",
593
- "cacheable": true,
594
- "parameters": {
595
- "type": "object",
596
- "properties": {
597
- "path": {"type": "string", "description": "Path to document"},
598
- "format": {"type": "string", "enum": ["markdown", "json", "html"], "description": "Output format"},
599
- "includeArchitecture": {"type": "boolean", "description": "Include architecture analysis"}
600
- }
601
- }
602
- },
603
- {
604
- "id": "intelligence_test",
605
- "name": "IntelligenceTest",
606
- "description": "Generate test suites from code analysis",
607
- "category": "intelligence",
608
- "cacheable": false,
609
- "parameters": {
610
- "type": "object",
611
- "properties": {
612
- "path": {"type": "string", "description": "Path to generate tests for"},
613
- "framework": {"type": "string", "enum": ["jest", "mocha", "vitest", "pytest"], "description": "Test framework"},
614
- "includeEdgeCases": {"type": "boolean", "description": "Include edge case tests"}
615
- }
616
- }
617
- },
618
- {
619
- "id": "intelligence_full",
620
- "name": "IntelligenceFull",
621
- "description": "Run full intelligence suite: analyze, refactor, document, and test",
622
- "category": "intelligence",
623
- "cacheable": false,
624
- "parameters": {
625
- "type": "object",
626
- "properties": {
627
- "path": {"type": "string", "description": "Path to analyze"},
628
- "autoFix": {"type": "boolean", "description": "Automatically apply safe fixes"},
629
- "outputDir": {"type": "string", "description": "Directory for output files"}
630
- }
631
- }
632
- }
633
- ],
634
-
635
- "capabilities": [
636
- {"id": "chat", "label": "Chat", "description": "Basic conversational capabilities"},
637
- {"id": "reasoning", "label": "Reasoning", "description": "Extended chain-of-thought reasoning"},
638
- {"id": "tools", "label": "Tool Use", "description": "Ability to call external tools"},
639
- {"id": "streaming", "label": "Streaming", "description": "Support for streaming responses"},
640
- {"id": "multimodal", "label": "Multimodal", "description": "Support for images and mixed content"},
641
- {"id": "vision", "label": "Vision", "description": "Image understanding capabilities"},
642
- {"id": "prompt_caching", "label": "Prompt Caching", "description": "Cache repeated prompt content"}
643
- ],
644
-
645
25
  "defaults": {
646
- "provider": "anthropic",
647
- "model": "claude-sonnet-4-5-20250929",
26
+ "provider": "deepseek",
27
+ "model": "deepseek-v4-pro",
648
28
  "temperature": 0.0,
649
- "maxTokens": 4096,
29
+ "maxTokens": 32768,
650
30
  "taskType": "coding"
651
31
  },
652
32
 
@@ -654,7 +34,7 @@
654
34
  "schemaVersion": "2.0.0",
655
35
  "lastUpdated": "2024-11-25",
656
36
  "author": "Bo Shang",
657
- "framework": "agi-cli",
658
- "description": "Unified schema for all AI tasks across all providers"
37
+ "framework": "erosolar-cli",
38
+ "description": "Unified schema for DeepSeek-powered AI tasks"
659
39
  }
660
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"hitl.d.ts","sourceRoot":"","sources":["../../src/core/hitl.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,mBAAqB,CAAC;AAK7C,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,SAAS,EAAE,OAAO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