@dennisrepa/elevate 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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Dennis Répa
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dennis Répa
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.
package/README.md CHANGED
@@ -1,214 +1,225 @@
1
- # Elevate
2
-
3
- > **Interactive Polyglot Terminal Dashboard (TUI) and MCP Server for safe, selective, and transparent dependency management across monorepos and multi-project repositories.**
4
-
5
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
- [![npm version](https://img.shields.io/npm/v/@dennisrepa/elevate.svg)](https://www.npmjs.com/package/@dennisrepa/elevate)
7
- [![Ko-fi](https://img.shields.io/badge/Ko--fi-Support-F16061?logo=ko-fi&logoColor=white)](https://ko-fi.com/dennisrepa)
8
-
9
- ---
10
-
11
- ## 📖 Documentation
12
-
13
- * 🇬🇧 **[English Documentation](./docs/en.md)** — Architecture, release channels, safety mechanisms, headless CLI, MCP server, and configuration.
14
- * 🇩🇪 **[Deutsche Dokumentation](./docs/de.md)** — Vollständige Anleitung, Architektur, Release Channels, Monorepo-Schutz und Konfiguration.
15
-
16
- ---
17
-
18
- ## ✨ Key Features
19
-
20
- * **Polyglot Monorepo Support:** Manages frontend workspaces (`package.json`) and backend services (`pom.xml`) in a single tool.
21
- * **Targeted Version Selection:** Interactive modal to search, filter, and pick any published version (`[V]`), not just `latest`.
22
- * **Runtime Ecosystem Switching:** Switch instantly between Node.js and Maven modules (`[E]`).
23
- * **Release Channels:** Configurable channels (`stable` vs. `all`) with automatic filtering of pre-releases (alpha, beta, rc, snapshot).
24
- * **Monorepo Scope Protection:** Prevents private packages (`@my-org/*`, `com.mycompany.*`) and local symlinks from being overwritten by public registries.
25
- * **Safety Guardrails & Verification:** Automatic post-update verification (`npm install`, `mvn test-compile`) with rollback safety and major-version warnings.
26
- * **Agentic & CI/CD Ready:** Full headless CLI (`--json`) and native Model Context Protocol (MCP) server for integration with autonomous AI coding agents.
27
- * **Bilingual Interface:** Instant language toggle between English and German (`[L]`).
28
- * **Modular Architecture:** Decoupled domain core and ports/adapters (hexagonal architecture).
29
-
30
- ---
31
-
32
- ## 📦 Supported Package Managers
33
-
34
- | Ecosystem | Package Manager | Manifest File | Primary Registry | Monorepo Support | Verification Method | Status |
35
- | :--- | :--- | :--- | :--- | :--- | :--- | :---: |
36
- | **Node.js** (JS / TS) | `npm` | `package.json` | [npm Registry](https://registry.npmjs.org) | Root & npm Workspaces | `npm install` | ✅ Supported |
37
- | **Java** (JVM) | `Maven` (`mvn`) | `pom.xml` | [Maven Central](https://repo1.maven.org/maven2) | Root POM & nested sub-modules | `mvn test-compile` | ✅ Supported |
38
-
39
- > **Planned:** Support for Python (`pip`, `poetry`, `uv`), `pnpm`, `yarn`, and `Gradle` is on the roadmap.
40
-
41
- ---
42
-
43
- ## 🚀 Installation & Quick Start
44
-
45
- ### 1. Instant Run via `npx` (No Installation Required)
46
- ```bash
47
- npx @dennisrepa/elevate
48
- ```
49
-
50
- > **For AI Agents (Claude Code, Cursor, Antigravity):**
51
- > Register Elevate directly in your agent's MCP settings:
52
- > ```json
53
- > {
54
- > "mcpServers": {
55
- > "elevate": {
56
- > "command": "npx",
57
- > "args": ["-y", "@dennisrepa/elevate", "mcp"]
58
- > }
59
- > }
60
- > }
61
- > ```
62
-
63
- ---
64
-
65
- ### 2. Standalone Binary (Zero Node.js Dependency)
66
- For environments without a Node.js runtime:
67
- 1. Download `elevate.exe` (Windows) or `elevate-linux` from [GitHub Releases](https://github.com/DennisRepa/Elevate/releases).
68
- 2. Execute directly:
69
- ```powershell
70
- .\elevate.exe
71
- ```
72
-
73
- ---
74
-
75
- ### 3. Global Installation
76
- ```bash
77
- npm install -g @dennisrepa/elevate
78
- elevate
79
- ```
80
-
81
- ---
82
-
83
- ### 4. Project Integration
84
- Add as a development dependency:
85
- ```bash
86
- npm install -D @dennisrepa/elevate
87
- ```
88
-
89
- Add an entry to `package.json`:
90
- ```json
91
- {
92
- "scripts": {
93
- "elevate": "elevate"
94
- }
95
- }
96
- ```
97
-
98
- Run via:
99
- ```bash
100
- npm run elevate
101
- ```
102
-
103
- ---
104
-
105
- ### 5. Local Development
106
- ```bash
107
- npm install
108
- npm run build
109
- npm link
110
- ```
111
-
112
- Run locally:
113
- ```bash
114
- elevate
115
- # or
116
- node dist/cli.js
117
- ```
118
-
119
- ---
120
-
121
- ## ⌨️ Keyboard Shortcuts (Interactive TUI)
122
-
123
- | Key | Action |
124
- | :--- | :--- |
125
- | **`E`** | Switch Ecosystem (`npm` ⇄ `Maven`) |
126
- | **`W`** | Open Module / Workspace Selector |
127
- | **`V`** | Pick Specific Version (Interactive search & filter modal) |
128
- | **`L`** | Toggle Language (`English` ⇄ `Deutsch`) |
129
- | **`↑` / `↓`** *(or `k`/`j`)* | Navigate package list |
130
- | **`Space`** | Toggle selection of focused package |
131
- | **`A`** | Toggle selection of all visible packages in the active tab |
132
- | **`Tab`** *(or `1`, `2`, `3`)* | Switch between tabs |
133
- | **`U`** | Execute update for selected packages |
134
- | **`R`** | Re-scan current module |
135
- | **`Q`** | Quit Elevate |
136
-
137
- ---
138
-
139
- ## 🤖 Headless CLI & MCP Server
140
-
141
- ### 1. Headless CLI (`--json`)
142
-
143
- Run non-interactive commands for scripting and CI/CD pipelines:
144
-
145
- ```bash
146
- # Discover all modules in the repository
147
- elevate modules --json
148
-
149
- # Scan dependencies for available updates (exits with code 1 if updates found)
150
- elevate scan --ecosystem=npm --channel=stable --json
151
-
152
- # Query complete published version history for a package
153
- elevate versions chalk --json
154
-
155
- # Dry-run update simulation without modifying files
156
- elevate update --module=apps/web --packages=chalk@5.6.2 --dry-run --json
157
-
158
- # Apply updates with explicit major-version approval
159
- elevate update --module=apps/web --packages=pinia@4.0.3 --allow-major --json
160
- ```
161
-
162
- ### 2. Model Context Protocol (MCP) Server
163
-
164
- Start Elevate as an MCP server via stdio:
165
- ```bash
166
- elevate mcp
167
- ```
168
-
169
- MCP Configuration (e.g. `claude_desktop_config.json`):
170
- ```json
171
- {
172
- "mcpServers": {
173
- "elevate": {
174
- "command": "npx",
175
- "args": ["-y", "@dennisrepa/elevate", "mcp"]
176
- }
177
- }
178
- }
179
- ```
180
-
181
- #### Available MCP Tools:
182
- * `elevate_discover_modules`: Discovers repository modules and workspaces.
183
- * `elevate_scan`: Scans dependencies for outdated packages against registries.
184
- * `elevate_get_versions`: Fetches published version history from registry.
185
- * `elevate_apply_updates`: Applies targeted updates with verification and guardrails.
186
- * `elevate_verify`: Runs module-specific build and test verification checks.
187
-
188
- ---
189
-
190
- ## ⚙️ Configuration
191
-
192
- Elevate operates with zero configuration by default. Optional settings can be defined in `elevate.config.json` in the repository root:
193
-
194
- ```json
195
- {
196
- "channel": "stable",
197
- "locale": "en",
198
- "excludeScopes": ["@my-org", "com.mycompany"],
199
- "postUpdateScript": "npm test",
200
- "postUpdateLabel": "Run test suite"
201
- }
202
- ```
203
-
204
- Detailed parameter references are available in [`docs/en.md`](./docs/en.md) and [`docs/de.md`](./docs/de.md).
205
-
206
- ---
207
-
208
- ## 📄 License & Sponsorship
209
-
210
- Elevate is open-source software licensed under the [MIT License](./package.json).
211
-
212
- * **Ko-fi:** [Support on Ko-fi](https://ko-fi.com/dennisrepa)
213
- * **npm:** `npm fund @dennisrepa/elevate`
214
-
1
+ # Elevate
2
+
3
+ > **Interactive Polyglot Terminal Dashboard (TUI) and MCP Server for safe, selective, and transparent dependency management across monorepos and multi-project repositories.**
4
+
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+ [![npm version](https://img.shields.io/npm/v/@dennisrepa/elevate.svg)](https://www.npmjs.com/package/@dennisrepa/elevate)
7
+ [![Ko-fi](https://img.shields.io/badge/Ko--fi-Support-F16061?logo=ko-fi&logoColor=white)](https://ko-fi.com/dennisrepa)
8
+
9
+ ---
10
+
11
+ ## 📖 Documentation
12
+
13
+ * 🇬🇧 **[English Documentation](./docs/en.md)** — Architecture, release channels, safety mechanisms, headless CLI, MCP server, and configuration.
14
+ * 🇩🇪 **[Deutsche Dokumentation](./docs/de.md)** — Vollständige Anleitung, Architektur, Release Channels, Monorepo-Schutz und Konfiguration.
15
+
16
+ ---
17
+
18
+ ## ✨ Key Features
19
+
20
+ * **Polyglot Monorepo Support:** Manages frontend workspaces (`package.json`) and backend services (`pom.xml`) in a single tool.
21
+ * **Targeted Version Selection:** Interactive modal to search, filter, and pick any published version (`[V]`), not just `latest`.
22
+ * **Runtime Ecosystem Switching:** Switch instantly between Node.js and Maven modules (`[E]`).
23
+ * **Release Channels:** Configurable channels (`stable` vs. `all`) with automatic filtering of pre-releases (alpha, beta, rc, snapshot).
24
+ * **Internal Dependencies:** Aligns workspace modules to their local versions and looks up internal packages (`@my-org/*`, `com.mycompany.*`) only in private registries — never on a public one.
25
+ * **Rollback on Failure:** If installation, the workspace link check or verification fails, every touched file is restored.
26
+ * **Safety Guardrails & Verification:** Automatic post-update verification (`npm install`, `mvn test-compile`) with rollback safety and major-version warnings.
27
+ * **Agentic & CI/CD Ready:** Full headless CLI (`--json`) and native Model Context Protocol (MCP) server for integration with autonomous AI coding agents.
28
+ * **Bilingual Interface:** Instant language toggle between English and German (`[L]`).
29
+ * **Modular Architecture:** Decoupled domain core and ports/adapters (hexagonal architecture).
30
+
31
+ ---
32
+
33
+ ## 📦 Supported Package Managers
34
+
35
+ | Ecosystem | Package Manager | Manifest File | Primary Registry | Monorepo Support | Verification Method | Status |
36
+ | :--- | :--- | :--- | :--- | :--- | :--- | :---: |
37
+ | **Node.js** (JS / TS) | `npm` | `package.json` | Configured npm registry (`.npmrc`) | Root & npm Workspaces (glob patterns) | `npm install` + `npm ls` | ✅ Supported |
38
+ | **Java** (JVM) | `Maven` (`mvnw` / `mvn`) | `pom.xml` | Repositories & mirrors from Maven's own settings | Root POM, reactor & parent POMs | `mvn test-compile -amd` | ✅ Supported |
39
+
40
+ > **Planned:** Support for Python (`pip`, `poetry`, `uv`), `pnpm`, `yarn`, and `Gradle` is on the roadmap.
41
+
42
+ ---
43
+
44
+ ## 🚀 Installation & Quick Start
45
+
46
+ ### 1. Instant Run via `npx` (No Installation Required)
47
+ ```bash
48
+ npx @dennisrepa/elevate
49
+ ```
50
+
51
+ > **For AI Agents (Claude Code, Cursor, Antigravity):**
52
+ > Register Elevate directly in your agent's MCP settings:
53
+ > ```json
54
+ > {
55
+ > "mcpServers": {
56
+ > "elevate": {
57
+ > "command": "npx",
58
+ > "args": ["-y", "@dennisrepa/elevate", "mcp"]
59
+ > }
60
+ > }
61
+ > }
62
+ > ```
63
+
64
+ ---
65
+
66
+ ### 2. Standalone Binary (Zero Node.js Dependency)
67
+ For environments without a Node.js runtime:
68
+ 1. Download `elevate.exe` (Windows) or `elevate-linux` from [GitHub Releases](https://github.com/DennisRepa/Elevate/releases).
69
+ 2. Execute directly:
70
+ ```powershell
71
+ .\elevate.exe
72
+ ```
73
+
74
+ ---
75
+
76
+ ### 3. Global Installation
77
+ ```bash
78
+ npm install -g @dennisrepa/elevate
79
+ elevate
80
+ ```
81
+
82
+ ---
83
+
84
+ ### 4. Project Integration
85
+ Add as a development dependency:
86
+ ```bash
87
+ npm install -D @dennisrepa/elevate
88
+ ```
89
+
90
+ Add an entry to `package.json`:
91
+ ```json
92
+ {
93
+ "scripts": {
94
+ "elevate": "elevate"
95
+ }
96
+ }
97
+ ```
98
+
99
+ Run via:
100
+ ```bash
101
+ npm run elevate
102
+ ```
103
+
104
+ ---
105
+
106
+ ### 5. Local Development
107
+ ```bash
108
+ npm install
109
+ npm run build
110
+ npm link
111
+ ```
112
+
113
+ Run locally:
114
+ ```bash
115
+ elevate
116
+ # or
117
+ node dist/cli.js
118
+ ```
119
+
120
+ ---
121
+
122
+ ## ⌨️ Keyboard Shortcuts (Interactive TUI)
123
+
124
+ | Key | Action |
125
+ | :--- | :--- |
126
+ | **`E`** | Switch Ecosystem (`npm` ⇄ `Maven`) |
127
+ | **`W`** | Open Module / Workspace Selector |
128
+ | **`V`** | Pick Specific Version (Interactive search & filter modal) |
129
+ | **`L`** | Toggle Language (`English` ⇄ `Deutsch`) |
130
+ | **`↑` / `↓`** *(or `k`/`j`)* | Navigate package list |
131
+ | **`Space`** | Toggle selection of focused package |
132
+ | **`A`** | Toggle selection of all visible packages in the active tab |
133
+ | **`Tab`** *(or `1`, `2`, `3`)* | Switch between tabs |
134
+ | **`U`** | Execute update for selected packages |
135
+ | **`R`** | Re-scan current module |
136
+ | **`Q`** | Quit Elevate |
137
+
138
+ ---
139
+
140
+ ## 🤖 Headless CLI & MCP Server
141
+
142
+ ### 1. Headless CLI (`--json`)
143
+
144
+ Run non-interactive commands for scripting and CI/CD pipelines:
145
+
146
+ ```bash
147
+ # Discover all modules in the repository
148
+ elevate modules --json
149
+
150
+ # Scan dependencies for available updates (exits with code 1 if updates found)
151
+ elevate scan --ecosystem=npm --channel=stable --json
152
+
153
+ # Query complete published version history for a package
154
+ elevate versions chalk --json
155
+
156
+ # Dry-run update simulation without modifying files
157
+ elevate update --module=apps/web --packages=chalk@5.6.2 --dry-run --json
158
+
159
+ # Apply updates with explicit major-version approval
160
+ elevate update --module=apps/web --packages=pinia@4.0.3 --allow-major --json
161
+ ```
162
+
163
+ ### 2. Model Context Protocol (MCP) Server
164
+
165
+ Start Elevate as an MCP server via stdio:
166
+ ```bash
167
+ elevate mcp
168
+ ```
169
+
170
+ MCP Configuration (e.g. `claude_desktop_config.json`):
171
+ ```json
172
+ {
173
+ "mcpServers": {
174
+ "elevate": {
175
+ "command": "npx",
176
+ "args": ["-y", "@dennisrepa/elevate", "mcp"]
177
+ }
178
+ }
179
+ }
180
+ ```
181
+
182
+ #### Available MCP Tools:
183
+ * `elevate_discover_modules`: Discovers repository modules and workspaces.
184
+ * `elevate_scan`: Scans dependencies for outdated packages against registries.
185
+ * `elevate_get_versions`: Fetches published version history from registry.
186
+ * `elevate_apply_updates`: Applies targeted updates with verification and guardrails.
187
+ * `elevate_verify`: Runs module-specific build and test verification checks.
188
+
189
+ ---
190
+
191
+ ## ⚙️ Configuration
192
+
193
+ Elevate operates with zero configuration by default. Optional settings can be defined in `elevate.config.json` in the repository root:
194
+
195
+ ```json
196
+ {
197
+ "channel": "stable",
198
+ "locale": "en",
199
+ "internalScopes": ["@my-org", "com.mycompany"],
200
+ "mavenPlugins": { "help": "3.5.2", "versions": "2.22.0" },
201
+ "postUpdateScript": "npm test",
202
+ "postUpdateLabel": "Run test suite"
203
+ }
204
+ ```
205
+
206
+ Detailed parameter references are available in [`docs/en.md`](./docs/en.md) and [`docs/de.md`](./docs/de.md).
207
+
208
+ ---
209
+
210
+ ## 🧭 Scope and known limits
211
+
212
+ * **npm only for Node.js.** Elevate drives npm. Repositories managed by pnpm, Yarn or Bun are refused (scans and updates say why and change nothing); Maven modules in the same repository still work.
213
+ * **Broken configuration stops Elevate.** An `elevate.config.json` that is not valid JSON, not an object, or whose `internalScopes` is not a list of strings is reported and Elevate exits with code `1`, because ignoring it would switch off the protection of internal packages. Without any configuration file Elevate works with defaults.
214
+ * **Dependency sections.** `dependencies`, `devDependencies` and `optionalDependencies` are covered. `peerDependencies` and `overrides` are never changed.
215
+ * **Maven.** Maven plugin versions and declarations inside `<profiles>` are not offered. Dependencies whose version is declared outside the repository (an external parent or BOM) are listed as *not offered* with the reason.
216
+
217
+ ---
218
+
219
+ ## 📄 License & Sponsorship
220
+
221
+ Elevate is open-source software licensed under the [MIT License](./LICENSE).
222
+
223
+ * **Ko-fi:** [Support on Ko-fi](https://ko-fi.com/dennisrepa)
224
+ * **npm:** `npm fund @dennisrepa/elevate`
225
+