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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c54944cc1cad8a6a188bbf5b5a50a216b0719046339b59eccc12447aff916582
4
- data.tar.gz: f190123758f3d4b73a7c7f53ccf8b275347819e5a7b60008085a62a79c239751
3
+ metadata.gz: 7a14639ba1f9033b76d3cc5d3ec3b252b7568c14b22098a4efb6d71f50d95463
4
+ data.tar.gz: 1c3f66f4ffc22405485ad3048a3b1635ed5849a1a46a4881b20647bff33a2118
5
5
  SHA512:
6
- metadata.gz: 050def7293a77fb6204fb51f9fc5640caf036903b765c34be1b9c9163300e1034ae880ad3855d92480df40fe813c4590df6c1a86b812d80c9e541b8d7df8d9ef
7
- data.tar.gz: 1d2874cf1817fdf4825d189f666c5fd9e9a300966892118dd79e254a4b528251d8cb85e587525735a3749f07ad75711e1ac1cdd444f30ba0c76852d4d4f62504
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 --code '{prompt}'"
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
- # [rest of your existing code remains the same]
121
- if config['include_tests'] && !CodeHealer::ConfigManager.demo_mode?
122
- command += " --append-system-prompt 'Include tests when fixing the code'"
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
- command += " --append-system-prompt 'Do NOT create or modify tests'"
125
- end
126
-
127
- if config['max_file_changes']
128
- command += " --append-system-prompt 'Limit changes to #{config['max_file_changes']} files maximum'"
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
- command += " --permission-mode acceptEdits --allowedTools Edit"
132
- command += " --append-system-prompt 'Optionally use Confluence MCP tools if available to enhance business context, but proceed regardless.'"
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 combined command
136
- mcp_setup + command
136
+ # Return command
137
+ command
137
138
  end
138
139
 
139
140
  def reload_modified_files
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CodeHealer
4
- VERSION = "0.1.20"
4
+ VERSION = "0.1.22"
5
5
  end
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.20
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-28 00:00:00.000000000 Z
11
+ date: 2025-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails