smart-terminal-mcp 1.2.12 → 1.2.13
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 +27 -0
- package/README.md +467 -465
- package/package.json +32 -27
- package/server.json +20 -0
- package/src/ansi.js +117 -23
- package/src/command-parsers.js +507 -507
- package/src/command-runner.js +395 -395
- package/src/index.js +40 -40
- package/src/pager.js +25 -25
- package/src/regex-utils.js +27 -27
- package/src/shell-detector.js +77 -77
- package/src/smart-tools.js +177 -177
- package/test/ansi.test.js +197 -0
- package/test/command-parsers.test.js +338 -338
- package/test/command-runner.test.js +355 -355
- package/test/pager.test.js +59 -59
- package/test/session-manager.test.js +88 -88
- package/test/smart-tools.test.js +76 -76
- package/test.ps1 +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [1.2.12] - 2026-03-08
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- Implemented a session manager with shell detection and robust CWD (Current Working Directory) validation.
|
|
9
|
+
- Added a robust command runner utility with output parsing, limits, timeouts, and success checks.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- Stripped ANSI sequences, carriage-return animations, and control characters from PTY output to save tokens and improve readability for AI models.
|
|
13
|
+
- Added handling for C1 8-bit OSC sequences (`0x9D`) in ANSI stripping.
|
|
14
|
+
- Processed erase-in-line (EL) sequences before ANSI stripping to properly truncate lines and prevent partial character overwrites.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- Fixed a sentinel leak where standalone `ERASE_EOL` sequences appearing without a preceding carriage return were missed.
|
|
18
|
+
|
|
19
|
+
## [1.2.11] - 2026-03-07
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- Improved CWD validation and startup error handling for the `terminal_start` tool.
|
|
23
|
+
|
|
24
|
+
## [1.2.10] - 2026-03-07
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
- Added `successExitCode` and `successFilePattern` checks to the `terminal_run` tool to assert successful execution.
|