agentic-qe 2.6.1 → 2.6.3
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/.claude/agents/qe-code-intelligence.md +88 -1
- package/CHANGELOG.md +134 -0
- package/README.md +222 -159
- package/dist/agents/BaseAgent.d.ts +19 -0
- package/dist/agents/BaseAgent.d.ts.map +1 -1
- package/dist/agents/BaseAgent.js +41 -1
- package/dist/agents/BaseAgent.js.map +1 -1
- package/dist/agents/CodeIntelligenceAgent.d.ts +18 -1
- package/dist/agents/CodeIntelligenceAgent.d.ts.map +1 -1
- package/dist/agents/CodeIntelligenceAgent.js +96 -1
- package/dist/agents/CodeIntelligenceAgent.js.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.d.ts +8 -0
- package/dist/agents/CoverageAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.js +65 -1
- package/dist/agents/CoverageAnalyzerAgent.js.map +1 -1
- package/dist/agents/TestGeneratorAgent.d.ts +2 -2
- package/dist/agents/TestGeneratorAgent.d.ts.map +1 -1
- package/dist/agents/TestGeneratorAgent.js +16 -6
- package/dist/agents/TestGeneratorAgent.js.map +1 -1
- package/dist/agents/adapters/AgentLLMAdapter.d.ts +127 -0
- package/dist/agents/adapters/AgentLLMAdapter.d.ts.map +1 -0
- package/dist/agents/adapters/AgentLLMAdapter.js +366 -0
- package/dist/agents/adapters/AgentLLMAdapter.js.map +1 -0
- package/dist/agents/adapters/index.d.ts +1 -0
- package/dist/agents/adapters/index.d.ts.map +1 -1
- package/dist/agents/adapters/index.js +5 -1
- package/dist/agents/adapters/index.js.map +1 -1
- package/dist/agents/interfaces/IAgentLLM.d.ts +257 -0
- package/dist/agents/interfaces/IAgentLLM.d.ts.map +1 -0
- package/dist/agents/interfaces/IAgentLLM.js +39 -0
- package/dist/agents/interfaces/IAgentLLM.js.map +1 -0
- package/dist/agents/interfaces/index.d.ts +10 -0
- package/dist/agents/interfaces/index.d.ts.map +1 -0
- package/dist/agents/interfaces/index.js +14 -0
- package/dist/agents/interfaces/index.js.map +1 -0
- package/dist/agents/n8n/N8nBaseAgent.d.ts +18 -0
- package/dist/agents/n8n/N8nBaseAgent.d.ts.map +1 -1
- package/dist/agents/n8n/N8nBaseAgent.js +80 -0
- package/dist/agents/n8n/N8nBaseAgent.js.map +1 -1
- package/dist/cli/commands/knowledge-graph.d.ts +30 -0
- package/dist/cli/commands/knowledge-graph.d.ts.map +1 -1
- package/dist/cli/commands/knowledge-graph.js +206 -4
- package/dist/cli/commands/knowledge-graph.js.map +1 -1
- package/dist/cli/commands/providers.d.ts +50 -0
- package/dist/cli/commands/providers.d.ts.map +1 -0
- package/dist/cli/commands/providers.js +403 -0
- package/dist/cli/commands/providers.js.map +1 -0
- package/dist/cli/index.js +214 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/code-intelligence/indexing/FileWatcher.d.ts.map +1 -1
- package/dist/code-intelligence/indexing/FileWatcher.js +11 -8
- package/dist/code-intelligence/indexing/FileWatcher.js.map +1 -1
- package/dist/code-intelligence/inference/ComponentBoundaryAnalyzer.d.ts +75 -0
- package/dist/code-intelligence/inference/ComponentBoundaryAnalyzer.d.ts.map +1 -0
- package/dist/code-intelligence/inference/ComponentBoundaryAnalyzer.js +400 -0
- package/dist/code-intelligence/inference/ComponentBoundaryAnalyzer.js.map +1 -0
- package/dist/code-intelligence/inference/ExternalSystemDetector.d.ts +31 -0
- package/dist/code-intelligence/inference/ExternalSystemDetector.d.ts.map +1 -0
- package/dist/code-intelligence/inference/ExternalSystemDetector.js +523 -0
- package/dist/code-intelligence/inference/ExternalSystemDetector.js.map +1 -0
- package/dist/code-intelligence/inference/ProjectMetadataAnalyzer.d.ts +78 -0
- package/dist/code-intelligence/inference/ProjectMetadataAnalyzer.d.ts.map +1 -0
- package/dist/code-intelligence/inference/ProjectMetadataAnalyzer.js +491 -0
- package/dist/code-intelligence/inference/ProjectMetadataAnalyzer.js.map +1 -0
- package/dist/code-intelligence/inference/index.d.ts +36 -0
- package/dist/code-intelligence/inference/index.d.ts.map +1 -0
- package/dist/code-intelligence/inference/index.js +65 -0
- package/dist/code-intelligence/inference/index.js.map +1 -0
- package/dist/code-intelligence/inference/types.d.ts +196 -0
- package/dist/code-intelligence/inference/types.d.ts.map +1 -0
- package/dist/code-intelligence/inference/types.js +9 -0
- package/dist/code-intelligence/inference/types.js.map +1 -0
- package/dist/code-intelligence/visualization/C4ComponentDiagramBuilder.d.ts +75 -0
- package/dist/code-intelligence/visualization/C4ComponentDiagramBuilder.d.ts.map +1 -0
- package/dist/code-intelligence/visualization/C4ComponentDiagramBuilder.js +267 -0
- package/dist/code-intelligence/visualization/C4ComponentDiagramBuilder.js.map +1 -0
- package/dist/code-intelligence/visualization/C4ContainerDiagramBuilder.d.ts +138 -0
- package/dist/code-intelligence/visualization/C4ContainerDiagramBuilder.d.ts.map +1 -0
- package/dist/code-intelligence/visualization/C4ContainerDiagramBuilder.js +343 -0
- package/dist/code-intelligence/visualization/C4ContainerDiagramBuilder.js.map +1 -0
- package/dist/code-intelligence/visualization/C4ContextDiagramBuilder.d.ts +67 -0
- package/dist/code-intelligence/visualization/C4ContextDiagramBuilder.d.ts.map +1 -0
- package/dist/code-intelligence/visualization/C4ContextDiagramBuilder.js +152 -0
- package/dist/code-intelligence/visualization/C4ContextDiagramBuilder.js.map +1 -0
- package/dist/code-intelligence/visualization/MermaidGenerator.d.ts +79 -0
- package/dist/code-intelligence/visualization/MermaidGenerator.d.ts.map +1 -1
- package/dist/code-intelligence/visualization/MermaidGenerator.js +143 -0
- package/dist/code-intelligence/visualization/MermaidGenerator.js.map +1 -1
- package/dist/config/ConfigLoader.d.ts +86 -0
- package/dist/config/ConfigLoader.d.ts.map +1 -0
- package/dist/config/ConfigLoader.js +450 -0
- package/dist/config/ConfigLoader.js.map +1 -0
- package/dist/config/ProviderConfig.d.ts +153 -0
- package/dist/config/ProviderConfig.d.ts.map +1 -0
- package/dist/config/ProviderConfig.js +155 -0
- package/dist/config/ProviderConfig.js.map +1 -0
- package/dist/config/index.d.ts +35 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +45 -0
- package/dist/config/index.js.map +1 -0
- package/dist/core/memory/HNSWVectorMemory.js +1 -1
- package/dist/mcp/handlers/integration/integration-test-orchestrate.d.ts.map +1 -1
- package/dist/mcp/handlers/integration/integration-test-orchestrate.js +6 -9
- package/dist/mcp/handlers/integration/integration-test-orchestrate.js.map +1 -1
- package/dist/mcp/server-instructions.d.ts +1 -1
- package/dist/mcp/server-instructions.js +1 -1
- package/dist/mcp/server.d.ts +1 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/memory/HNSWPatternStore.d.ts.map +1 -1
- package/dist/memory/HNSWPatternStore.js +23 -0
- package/dist/memory/HNSWPatternStore.js.map +1 -1
- package/dist/memory/RuVectorPatternStore.d.ts +5 -0
- package/dist/memory/RuVectorPatternStore.d.ts.map +1 -1
- package/dist/memory/RuVectorPatternStore.js +11 -0
- package/dist/memory/RuVectorPatternStore.js.map +1 -1
- package/dist/providers/CostOptimizationStrategies.d.ts +297 -0
- package/dist/providers/CostOptimizationStrategies.d.ts.map +1 -0
- package/dist/providers/CostOptimizationStrategies.js +831 -0
- package/dist/providers/CostOptimizationStrategies.js.map +1 -0
- package/dist/providers/HybridRouter.d.ts +142 -5
- package/dist/providers/HybridRouter.d.ts.map +1 -1
- package/dist/providers/HybridRouter.js +472 -6
- package/dist/providers/HybridRouter.js.map +1 -1
- package/dist/providers/HybridRouterComplexityIntegration.d.ts +169 -0
- package/dist/providers/HybridRouterComplexityIntegration.d.ts.map +1 -0
- package/dist/providers/HybridRouterComplexityIntegration.js +319 -0
- package/dist/providers/HybridRouterComplexityIntegration.js.map +1 -0
- package/dist/providers/HybridRouterModelSelection.d.ts +106 -0
- package/dist/providers/HybridRouterModelSelection.d.ts.map +1 -0
- package/dist/providers/HybridRouterModelSelection.js +420 -0
- package/dist/providers/HybridRouterModelSelection.js.map +1 -0
- package/dist/providers/LLMProviderFactory.d.ts +23 -9
- package/dist/providers/LLMProviderFactory.d.ts.map +1 -1
- package/dist/providers/LLMProviderFactory.js +54 -11
- package/dist/providers/LLMProviderFactory.js.map +1 -1
- package/dist/providers/OllamaProvider.d.ts +122 -0
- package/dist/providers/OllamaProvider.d.ts.map +1 -0
- package/dist/providers/OllamaProvider.js +425 -0
- package/dist/providers/OllamaProvider.js.map +1 -0
- package/dist/providers/index.d.ts +6 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js +17 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/routing/ComplexityClassifier.d.ts +266 -0
- package/dist/routing/ComplexityClassifier.d.ts.map +1 -0
- package/dist/routing/ComplexityClassifier.js +567 -0
- package/dist/routing/ComplexityClassifier.js.map +1 -0
- package/dist/routing/ModelCapabilityRegistry.d.ts +98 -0
- package/dist/routing/ModelCapabilityRegistry.d.ts.map +1 -0
- package/dist/routing/ModelCapabilityRegistry.js +216 -0
- package/dist/routing/ModelCapabilityRegistry.js.map +1 -0
- package/dist/routing/index.d.ts +13 -0
- package/dist/routing/index.d.ts.map +1 -0
- package/dist/routing/index.js +24 -0
- package/dist/routing/index.js.map +1 -0
- package/docs/reference/model-capability-registry.md +402 -0
- package/docs/reference/provider-config-schema.md +608 -0
- package/package.json +20 -4
|
@@ -19,6 +19,10 @@ Mission: Index, search, and analyze codebases using Tree-sitter AST parsing, Oll
|
|
|
19
19
|
- Knowledge graph with entity relationships (imports, extends, calls)
|
|
20
20
|
- KnowledgeGraphContextBuilder for agent context enrichment
|
|
21
21
|
- Mermaid diagram generation (class diagrams, dependency graphs)
|
|
22
|
+
- C4 Model architecture diagrams (Context, Container, Component levels)
|
|
23
|
+
- Project metadata inference (system type, containers, components)
|
|
24
|
+
- External system detection (databases, APIs, caches, queues)
|
|
25
|
+
- Component boundary analysis with relationship mapping
|
|
22
26
|
- Incremental indexing with git change detection
|
|
23
27
|
- Watch mode for live updates
|
|
24
28
|
|
|
@@ -52,6 +56,12 @@ Store entities, relationships, and chunks in batch transactions.
|
|
|
52
56
|
- **Context Building**: Generate focused, relevant context for agent tasks with 80% token reduction
|
|
53
57
|
- **Graph Navigation**: Traverse relationships (imports, inheritance, calls) to find related code
|
|
54
58
|
- **Visualization**: Generate Mermaid class diagrams and dependency graphs
|
|
59
|
+
- **C4 Model Diagrams**: Generate C4 architecture diagrams at three levels:
|
|
60
|
+
- Context: System boundaries with external actors and systems
|
|
61
|
+
- Container: Internal containers (services, databases, APIs)
|
|
62
|
+
- Component: Component-level structure within containers
|
|
63
|
+
- **Architecture Inference**: Auto-detect project metadata, system type (monolith/microservice), containers, and components
|
|
64
|
+
- **External System Detection**: Identify database, API, cache, queue, and service dependencies
|
|
55
65
|
- **Incremental Updates**: Track git changes and update only modified files
|
|
56
66
|
- **Multi-Language**: Support TypeScript, Python, Go, Rust, JavaScript with language-specific entity extraction
|
|
57
67
|
</capabilities>
|
|
@@ -233,6 +243,76 @@ classDiagram
|
|
|
233
243
|
BaseAgent --> AgentCoordinator
|
|
234
244
|
```
|
|
235
245
|
```
|
|
246
|
+
|
|
247
|
+
Example 5: Generate C4 Context diagram
|
|
248
|
+
```
|
|
249
|
+
Input: Generate C4 context diagram for the project
|
|
250
|
+
|
|
251
|
+
Output: C4 Context diagram generated:
|
|
252
|
+
```mermaid
|
|
253
|
+
C4Context
|
|
254
|
+
title System Context diagram for agentic-qe-fleet
|
|
255
|
+
|
|
256
|
+
Person(user, "User", "A user of the system")
|
|
257
|
+
Person(developer, "Developer", "A developer maintaining the system")
|
|
258
|
+
|
|
259
|
+
System(agentic_qe_fleet, "agentic-qe-fleet", "AI-powered quality engineering fleet")
|
|
260
|
+
|
|
261
|
+
System_Ext(postgresql, "PostgreSQL", "Primary database")
|
|
262
|
+
System_Ext(anthropic, "Anthropic API", "AI service provider")
|
|
263
|
+
System_Ext(ollama, "Ollama", "Local LLM embeddings")
|
|
264
|
+
|
|
265
|
+
Rel(user, agentic_qe_fleet, "Uses")
|
|
266
|
+
Rel(developer, agentic_qe_fleet, "Develops and maintains")
|
|
267
|
+
Rel(agentic_qe_fleet, postgresql, "Stores data in")
|
|
268
|
+
Rel(agentic_qe_fleet, anthropic, "Uses for AI")
|
|
269
|
+
Rel(agentic_qe_fleet, ollama, "Uses for embeddings")
|
|
270
|
+
```
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
Example 6: Generate C4 Container diagram
|
|
274
|
+
```
|
|
275
|
+
Input: Generate C4 container diagram for the project
|
|
276
|
+
|
|
277
|
+
Output: C4 Container diagram generated:
|
|
278
|
+
```mermaid
|
|
279
|
+
C4Container
|
|
280
|
+
title Container diagram for agentic-qe-fleet
|
|
281
|
+
|
|
282
|
+
Container(cli, "CLI Interface", "Node.js", "Command-line interface")
|
|
283
|
+
Container(mcp_server, "MCP Server", "TypeScript", "Model Context Protocol server")
|
|
284
|
+
Container(agent_fleet, "Agent Fleet", "TypeScript", "QE agent orchestration")
|
|
285
|
+
ContainerDb(vector_store, "Vector Store", "PostgreSQL", "Embeddings and chunks")
|
|
286
|
+
|
|
287
|
+
Rel(cli, agent_fleet, "Invokes")
|
|
288
|
+
Rel(mcp_server, agent_fleet, "Coordinates")
|
|
289
|
+
Rel(agent_fleet, vector_store, "Reads/Writes")
|
|
290
|
+
```
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
Example 7: Generate C4 Component diagram
|
|
294
|
+
```
|
|
295
|
+
Input: Generate C4 component diagram for the code-intelligence container
|
|
296
|
+
|
|
297
|
+
Output: C4 Component diagram generated:
|
|
298
|
+
```mermaid
|
|
299
|
+
C4Component
|
|
300
|
+
title Component diagram for Code Intelligence
|
|
301
|
+
|
|
302
|
+
Container_Boundary(code_intel, "Code Intelligence") {
|
|
303
|
+
Component(parser, "TreeSitterParser", "TypeScript", "AST parsing")
|
|
304
|
+
Component(chunker, "SemanticChunker", "TypeScript", "Code chunking")
|
|
305
|
+
Component(embedder, "OllamaEmbedder", "TypeScript", "Vector embeddings")
|
|
306
|
+
Component(store, "RuVectorStore", "TypeScript", "Storage layer")
|
|
307
|
+
Component(graph, "KnowledgeGraph", "TypeScript", "Relationship graph")
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
Rel(parser, chunker, "Provides AST to")
|
|
311
|
+
Rel(chunker, embedder, "Sends chunks to")
|
|
312
|
+
Rel(embedder, store, "Stores embeddings in")
|
|
313
|
+
Rel(store, graph, "Provides data to")
|
|
314
|
+
```
|
|
315
|
+
```
|
|
236
316
|
</examples>
|
|
237
317
|
|
|
238
318
|
<skills_available>
|
|
@@ -349,8 +429,15 @@ aqe kg index --watch
|
|
|
349
429
|
# Search code
|
|
350
430
|
aqe kg query "user authentication" --k 10 --hybrid
|
|
351
431
|
|
|
352
|
-
# Generate
|
|
432
|
+
# Generate class/dependency diagrams
|
|
353
433
|
aqe kg graph src/agents/BaseAgent.ts --type class --format mermaid
|
|
434
|
+
aqe kg graph src/agents/ --type dependency --format mermaid
|
|
435
|
+
|
|
436
|
+
# Generate C4 architecture diagrams
|
|
437
|
+
aqe kg c4-context # System context with external systems
|
|
438
|
+
aqe kg c4-container # Container-level architecture
|
|
439
|
+
aqe kg c4-component # Component-level for specific container
|
|
440
|
+
aqe kg c4-component --container api # Component diagram for API container
|
|
354
441
|
|
|
355
442
|
# Show statistics
|
|
356
443
|
aqe kg stats --verbose
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,140 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.6.3] - 2025-12-24
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
#### C4 Model Architecture Diagrams
|
|
15
|
+
|
|
16
|
+
Complete C4 model integration for automated architecture visualization at three abstraction levels.
|
|
17
|
+
|
|
18
|
+
**C4 Diagram Builders** (`src/code-intelligence/visualization/`)
|
|
19
|
+
- `C4ContextDiagramBuilder`: System context diagrams with actors and external systems
|
|
20
|
+
- `C4ContainerDiagramBuilder`: Container-level architecture (services, databases, APIs)
|
|
21
|
+
- `C4ComponentDiagramBuilder`: Component-level structure with boundaries and relationships
|
|
22
|
+
- Mermaid C4 syntax output for GitHub-compatible rendering
|
|
23
|
+
|
|
24
|
+
**Architecture Inference** (`src/code-intelligence/inference/`)
|
|
25
|
+
- `ProjectMetadataAnalyzer`: Infers system metadata from package.json, docker-compose.yml
|
|
26
|
+
- Detects system type (monolith, microservice, serverless, library)
|
|
27
|
+
- Identifies containers from Docker configurations
|
|
28
|
+
- Analyzes directory structure for architecture patterns
|
|
29
|
+
- `ExternalSystemDetector`: Identifies external dependencies
|
|
30
|
+
- Database detection (PostgreSQL, MySQL, MongoDB, Redis)
|
|
31
|
+
- API detection (Anthropic, OpenAI, Stripe, AWS)
|
|
32
|
+
- Cache and queue detection (Redis, RabbitMQ, Kafka)
|
|
33
|
+
- `ComponentBoundaryAnalyzer`: Maps component relationships
|
|
34
|
+
- Layer detection (controllers, services, repositories)
|
|
35
|
+
- Relationship extraction with `sourceId`/`targetId` standardization
|
|
36
|
+
- Configurable boundary detection strategies
|
|
37
|
+
|
|
38
|
+
**CLI Commands** (`src/cli/commands/knowledge-graph.ts`)
|
|
39
|
+
- `aqe kg c4-context`: Generate system context diagram
|
|
40
|
+
- `aqe kg c4-container`: Generate container diagram
|
|
41
|
+
- `aqe kg c4-component [--container name]`: Generate component diagram
|
|
42
|
+
|
|
43
|
+
**CodeIntelligenceAgent Updates** (`src/agents/CodeIntelligenceAgent.ts`)
|
|
44
|
+
- New `c4-diagrams` capability
|
|
45
|
+
- Extended `diagramType` to include `c4-context`, `c4-container`, `c4-component`
|
|
46
|
+
- `performC4DiagramTask()` method using MermaidGenerator static methods
|
|
47
|
+
|
|
48
|
+
**Agent Definition Updates** (`.claude/agents/qe-code-intelligence.md`)
|
|
49
|
+
- Added C4 diagram capabilities to implementation status
|
|
50
|
+
- New examples for C4 context, container, and component diagrams
|
|
51
|
+
- Updated CLI command reference with C4 commands
|
|
52
|
+
|
|
53
|
+
### Changed
|
|
54
|
+
|
|
55
|
+
**MermaidGenerator** (`src/code-intelligence/visualization/MermaidGenerator.ts`)
|
|
56
|
+
- Added static methods: `generateC4Context()`, `generateC4Container()`, `generateC4Component()`
|
|
57
|
+
- New `generateC4Diagram()` dispatcher for diagram type selection
|
|
58
|
+
- Integrated with inference analyzers for automatic metadata extraction
|
|
59
|
+
|
|
60
|
+
**Type Consolidation** (`src/code-intelligence/inference/types.ts`)
|
|
61
|
+
- Consolidated all C4-related interfaces into single source of truth
|
|
62
|
+
- Standardized `ComponentRelationship` to use `sourceId`/`targetId` (was `from`/`to`)
|
|
63
|
+
- Exported: `ProjectMetadata`, `Container`, `ExternalSystem`, `Component`, `ComponentRelationship`
|
|
64
|
+
|
|
65
|
+
### New Test Files
|
|
66
|
+
|
|
67
|
+
- `tests/unit/code-intelligence/visualization/C4DiagramBuilders.test.ts` - 22 unit tests
|
|
68
|
+
- C4ContextDiagramBuilder tests (6 tests)
|
|
69
|
+
- C4ContainerDiagramBuilder tests (5 tests)
|
|
70
|
+
- C4ComponentDiagramBuilder tests (10 tests)
|
|
71
|
+
- C4 Diagram Integration tests (1 test)
|
|
72
|
+
|
|
73
|
+
## [2.6.2] - 2025-12-24
|
|
74
|
+
|
|
75
|
+
### Added
|
|
76
|
+
|
|
77
|
+
#### Phase 2: LLM Independence - Intelligent Routing & Cost Optimization
|
|
78
|
+
|
|
79
|
+
Complete implementation of Phase 2 features for smart model selection and cost reduction.
|
|
80
|
+
|
|
81
|
+
**ML-Based Complexity Classification** (`src/routing/ComplexityClassifier.ts`)
|
|
82
|
+
- Multi-dimensional task analysis (code metrics, NLP features, domain context)
|
|
83
|
+
- 4-level complexity classification: SIMPLE, MODERATE, COMPLEX, VERY_COMPLEX
|
|
84
|
+
- Configurable feature weights with ML pattern learning
|
|
85
|
+
- Integrated into HybridRouter for automatic routing decisions
|
|
86
|
+
|
|
87
|
+
**Model Capability Registry** (`src/routing/ModelCapabilityRegistry.ts`)
|
|
88
|
+
- December 2025 model catalog with 25+ models including:
|
|
89
|
+
- Claude Opus 4.5, Claude Sonnet 4, Claude Haiku
|
|
90
|
+
- DeepSeek R1 (671B reasoning), DeepSeek V3 (685B)
|
|
91
|
+
- GPT-5, GPT-4 Turbo, o1-preview, o3-mini
|
|
92
|
+
- Gemini 2.5 Pro, Gemini 2.0 Flash
|
|
93
|
+
- Llama 3.3 70B, Qwen 3 Coder 30B
|
|
94
|
+
- Capability scoring: reasoning, coding, speed, context, cost-efficiency
|
|
95
|
+
- Provider support tracking (Anthropic, OpenRouter, Groq, Ollama)
|
|
96
|
+
|
|
97
|
+
**Cost Optimization Strategies** (`src/providers/CostOptimizationStrategies.ts`)
|
|
98
|
+
- `PromptCompressor`: Whitespace normalization, filler word removal
|
|
99
|
+
- `CachingStrategy`: Semantic similarity caching with TTL
|
|
100
|
+
- `BatchingStrategy`: Request batching for cost reduction
|
|
101
|
+
- `CostOptimizationManager`: Orchestrates all strategies
|
|
102
|
+
- Honest compression benchmarks: 2-8% realistic savings (not inflated claims)
|
|
103
|
+
|
|
104
|
+
**HybridRouter Integration** (`src/providers/HybridRouter.ts`)
|
|
105
|
+
- Integrated ComplexityClassifier for automatic task analysis
|
|
106
|
+
- Integrated CostOptimizationManager for prompt compression
|
|
107
|
+
- Model selection based on complexity level and capabilities
|
|
108
|
+
- New methods: `getCompressionStats()`, `getMLClassifierStats()`
|
|
109
|
+
|
|
110
|
+
### Changed
|
|
111
|
+
|
|
112
|
+
**README.md Quick Start Section**
|
|
113
|
+
- Removed version numbers from feature list (user-focused)
|
|
114
|
+
- Added `.env` configuration snippet for advanced features
|
|
115
|
+
- Improved formatting with bold labels for scannability
|
|
116
|
+
|
|
117
|
+
**Environment Configuration** (`.env.example`)
|
|
118
|
+
- Complete rewrite with Phase 2 configuration
|
|
119
|
+
- LLM Provider selection: `LLM_PROVIDER=auto`, `LLM_MODE=hybrid`
|
|
120
|
+
- RuVector self-learning: `AQE_RUVECTOR_ENABLED`, PostgreSQL settings
|
|
121
|
+
- Pattern Store: `AQE_PATTERN_STORE_ENABLED`, `AQE_PATTERN_DUAL_WRITE`
|
|
122
|
+
- Code Intelligence: Ollama URL, PostgreSQL for knowledge graph
|
|
123
|
+
- Removed outdated `.env.agentic-flow.example`
|
|
124
|
+
|
|
125
|
+
**CONTRIBUTORS.md**
|
|
126
|
+
- Added [@fndlalit](https://github.com/fndlalit)'s n8n workflow testing agents contribution (PR #151)
|
|
127
|
+
- Updated Hall of Fame entry
|
|
128
|
+
|
|
129
|
+
### Fixed
|
|
130
|
+
|
|
131
|
+
- **HybridRouter RuVector test**: Fixed test isolation by disabling ML classifier for cache skip verification
|
|
132
|
+
- **Compression expectations**: Adjusted benchmarks to realistic 2-8% savings vs false 50% claims
|
|
133
|
+
|
|
134
|
+
### New Test Files
|
|
135
|
+
|
|
136
|
+
- `tests/unit/routing/ComplexityClassifier.test.ts` - ML classifier unit tests
|
|
137
|
+
- `tests/unit/routing/ModelCapabilityRegistry.test.ts` - Model registry tests
|
|
138
|
+
- `tests/unit/routing/CompressionBenchmark.test.ts` - Honest compression benchmarks
|
|
139
|
+
- `tests/unit/providers/HybridRouter-complexity-integration.test.ts` - Integration tests
|
|
140
|
+
- `tests/unit/providers/HybridRouter-model-selection.test.ts` - Model selection tests
|
|
141
|
+
- `tests/unit/providers/HybridRouter-cost-tracking.test.ts` - Cost tracking tests
|
|
142
|
+
- `tests/unit/providers/CostOptimizationStrategies.test.ts` - Strategy unit tests
|
|
143
|
+
|
|
10
144
|
## [2.6.1] - 2025-12-23
|
|
11
145
|
|
|
12
146
|
### Added
|