rlm-analyzer 1.2.0 → 1.3.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,106 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.3.0] - 2026-01-19
9
+
10
+ ### Added
11
+
12
+ #### Advanced Token Optimization (RLM Paper Implementation)
13
+ - **Context Compression**: Automatically compresses sub-LLM results, achieving 50-70% token savings
14
+ - **Sliding Window History**: Keeps recent turns in full detail while compressing older context
15
+ - **Memory Bank**: Extracts and stores key findings with importance scoring for later synthesis
16
+ - **Adaptive Compression**: Dynamically adjusts compression level based on context usage:
17
+ - `none` (< 50% usage)
18
+ - `normal` (50-70% usage)
19
+ - `aggressive` (70-85% usage)
20
+ - `emergency` (> 85% usage)
21
+
22
+ #### New Advanced Features
23
+ - **ParallelExecutor**: Run multiple sub-LLM queries concurrently with retry logic
24
+ - **AdaptiveCompressor**: Context-aware compression that responds to token pressure
25
+ - **ContextRotDetector**: Detects when model loses track of context and injects memory reminders
26
+ - **SelectiveAttention**: Query-based memory filtering for relevance scoring
27
+ - **IterativeRefiner**: Multi-pass analysis for quality improvement (opt-in)
28
+
29
+ #### Orchestrator Enhancements
30
+ - New feature flags: `enableContextCompression`, `enableParallelExecution`, `enableContextRotDetection`, `enableIterativeRefinement`
31
+ - New accessor methods: `getCompressionMetrics()`, `getContextRotStats()`, `getRefinementHistory()`
32
+ - `executeParallelQueries()` method for batch sub-LLM execution
33
+
34
+ #### New Exports
35
+ - `ContextManager` and related types
36
+ - All advanced feature classes and their configuration types
37
+ - Subpath exports for `./advanced-features` and `./context-manager`
38
+
39
+ ### Changed
40
+ - Verbose mode now shows compression savings and history optimization
41
+ - Sub-LLM results are automatically compressed before being added to context
42
+ - History is optimized using sliding window when message count exceeds threshold
43
+
44
+ ### Fixed
45
+ - Improved handling of large codebases with many files
46
+ - Better error recovery in sub-LLM execution
47
+
48
+ ---
49
+
50
+ ## [1.2.0] - 2026-01-18
51
+
52
+ ### Added
53
+ - MCP (Model Context Protocol) server for Claude Code and Cursor integration
54
+ - New MCP tools: `rlm_analyze`, `rlm_summarize`, `rlm_architecture`, `rlm_security`, `rlm_dependencies`, `rlm_refactor`, `rlm_ask`, `rlm_config`
55
+ - Binary aliases: `rlm-mcp`, `rlm-analyzer-mcp`
56
+
57
+ ### Changed
58
+ - Improved system prompts for better analysis quality
59
+ - Enhanced error messages for API issues
60
+
61
+ ---
62
+
63
+ ## [1.1.0] - 2026-01-18
64
+
65
+ ### Added
66
+ - **Model Configuration System**: Flexible model selection with priority chain
67
+ - CLI `--model` flag (highest priority)
68
+ - Environment variables: `RLM_DEFAULT_MODEL`, `RLM_FALLBACK_MODEL`
69
+ - Config file: `~/.rlm-analyzer/config.json`
70
+ - Built-in defaults
71
+ - **Model Aliases**: `fast`, `smart`, `pro`, `flash`, `flash-2`, `flash-2.5`
72
+ - Factory functions: `createAnalyzer()`, `createOrchestrator()`, `getModelConfig()`
73
+ - `rlm test` command to verify API connection
74
+
75
+ ### Changed
76
+ - Default model updated to `gemini-3-flash-preview`
77
+ - Improved CLI help with model configuration details
78
+
79
+ ---
80
+
81
+ ## [1.0.0] - 2026-01-18
82
+
83
+ ### Added
84
+ - Initial release
85
+ - Core RLM orchestrator with REPL execution
86
+ - Sub-LLM delegation via `llm_query()` function
87
+ - Analysis types: summary, architecture, dependencies, security, performance, refactor
88
+ - CLI commands: `summary`, `arch`, `deps`, `security`, `perf`, `refactor`, `find`, `explain`, `ask`, `config`
89
+ - Sandboxed code execution with security patterns
90
+ - Support for 20+ programming languages
91
+ - JSON output mode for scripting
92
+ - Verbose mode for debugging
93
+
94
+ ### Security
95
+ - Blocked dangerous patterns: `eval`, `exec`, `process.`, network calls
96
+ - Read-only analysis - no file modifications
97
+ - API keys stored securely, never logged
98
+
99
+ ---
100
+
101
+ ## [0.1.0] - 2026-01-18
102
+
103
+ ### Added
104
+ - Initial prototype
105
+ - Basic file loading and analysis
106
+ - Gemini API integration
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 BzLabs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.