code_healer 0.1.20 → 0.1.22
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/lib/code_healer/claude_code_evolution_handler.rb +15 -14
- data/lib/code_healer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a14639ba1f9033b76d3cc5d3ec3b252b7568c14b22098a4efb6d71f50d95463
|
4
|
+
data.tar.gz: 1c3f66f4ffc22405485ad3048a3b1635ed5849a1a46a4881b20647bff33a2118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b78c5c6c5917de5253fcf543132c26679f5d520e1a0d9e80dcfe5b28ee13e9e45b5751449db2addb6e0fb90563ee69d4830fbafb6526977f91b73b083c1e54b1
|
7
|
+
data.tar.gz: 78dfc2a6168f34a25fc0eab7be783e63a1b4d18f06c5236e25acf1f6835a262032e23526b4ae0b08f2fd81cfc992fbef6c0e038a5fb1d2e8aa199f0403e8061b
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [0.1.22] - 2025-08-27
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
- **Critical Flag Fix**: Fixed Claude Terminal command to use correct `--print` flag instead of unsupported `--code` flag
|
12
|
+
- **Command Compatibility**: Ensured all Claude Terminal flags are compatible with the `--print` command
|
13
|
+
- **Fallback Template**: Updated fallback command template to use correct flags
|
14
|
+
|
15
|
+
## [0.1.21] - 2025-08-27
|
16
|
+
|
17
|
+
### Fixed
|
18
|
+
- **Critical Bug Fix**: Resolved `mcp_setup` undefined method error in Claude Code evolution handler
|
19
|
+
- **Claude Command Fix**: Fixed command template to use `--print` instead of `--code` for proper code editing
|
20
|
+
- **Demo Mode Enhancement**: Improved demo mode handling with optimized Claude command building
|
21
|
+
- **Command Cleanup**: Removed duplicate permission flags and incompatible command options
|
22
|
+
|
8
23
|
## [0.1.20] - 2025-08-27
|
9
24
|
|
10
25
|
### Added
|
@@ -112,28 +112,29 @@ module CodeHealer
|
|
112
112
|
escaped_prompt = prompt.gsub("'", "'\"'\"'")
|
113
113
|
|
114
114
|
# Build command template for MCP tools access
|
115
|
-
command_template = config['command_template'] || "claude --
|
115
|
+
command_template = config['command_template'] || "claude --print '{prompt}' --output-format text"
|
116
116
|
|
117
117
|
# Replace placeholder
|
118
118
|
command = command_template.gsub('{prompt}', escaped_prompt)
|
119
119
|
|
120
|
-
#
|
121
|
-
if
|
122
|
-
command += " --append-system-prompt '
|
120
|
+
# Add demo mode specific instructions
|
121
|
+
if CodeHealer::ConfigManager.demo_mode?
|
122
|
+
command += " --append-system-prompt 'DEMO MODE: Focus on quick fixes, skip tests, limit file changes to #{config['max_file_changes'] || 3} files maximum'"
|
123
123
|
else
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
124
|
+
if config['include_tests']
|
125
|
+
command += " --append-system-prompt 'Include tests when fixing the code'"
|
126
|
+
end
|
127
|
+
|
128
|
+
if config['max_file_changes']
|
129
|
+
command += " --append-system-prompt 'Limit changes to #{config['max_file_changes']} files maximum'"
|
130
|
+
end
|
129
131
|
end
|
130
132
|
|
131
|
-
|
132
|
-
command += " --append-system-prompt '
|
133
|
-
command += " --add-dir . --append-system-prompt 'Do not scan the whole repo; open only files explicitly referenced.'"
|
133
|
+
# Add business context instructions
|
134
|
+
command += " --append-system-prompt 'Use available MCP tools for business context if needed, but proceed with the fix regardless.'"
|
134
135
|
|
135
|
-
# Return
|
136
|
-
|
136
|
+
# Return command
|
137
|
+
command
|
137
138
|
end
|
138
139
|
|
139
140
|
def reload_modified_files
|
data/lib/code_healer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code_healer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Deepan Kumar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|