llm_fixer 0.0.3 → 0.0.5

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: cb73fbc33ad7bb58e87e339fd4bb0a04df64f38902f5aea2729753d7db090644
4
- data.tar.gz: db8767bcb98be1c1421e133bbe988e12a77892925eaa24701afc8c59760759e3
3
+ metadata.gz: 43aecdbbe17697c50f00dbe3be4ac50e06ad6af49ab17a972484ba7d85f64628
4
+ data.tar.gz: ce02161a7b6f71cf6aa546dff1a85ac4773980738ddae143e8b02b7a1ac4af2c
5
5
  SHA512:
6
- metadata.gz: 61d7ffdc4b0f9f9fd2b916d116c7dab2a8800a3dda4b00c996fc11cbc3084922e58fc9e382cb2bd9c0b78212b4b9a3a3e80f5d26c4e35e025fd68e522b2baf96
7
- data.tar.gz: acc8fec0fb87c8fe25dd5636827881a6848284277b1c53f625c126348c8bb8a52887b234de04825b3b5a8302da28217b8492a4a5a26a5a080f9719ed4c7525ef
6
+ metadata.gz: d987e2eeb2862d30d511109d62d29612b4fad43f77e8175c38102a1bb78288caa41b699f55e4d207d90e9fd0e6ae8ad7cdff15affd4eae7369f28d190a7e2eff
7
+ data.tar.gz: 21f703bce8001fc8540c7943026fabfbdec00065d8de1d03a381d33611887de875754a7cb1d8c669f9e6e43046568123487c55244b36ece63ea1d01588b6810e
data/bin/llm_fixer CHANGED
@@ -2,6 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require 'thor'
5
+ require 'faraday'
5
6
  require_relative '../lib/llm_fixer/static_analysis_fixer'
6
7
 
7
8
  class CLI < Thor
@@ -39,6 +40,9 @@ class CLI < Thor
39
40
  fixer = LlmFixer::StaticAnalysisFixer.new(ENV.fetch('LLM_API_KEY', nil))
40
41
  success = fixer.fix_file(command_args, additional_prompt)
41
42
  exit(1) unless success
43
+ rescue Faraday::Error => e
44
+ puts "Error: #{e.message}\n#{e.response[:body]}"
45
+ exit 1
42
46
  end
43
47
 
44
48
  def self.exit_on_failure?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LlmFixer
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.5"
5
5
  end
@@ -1,6 +1,6 @@
1
1
  You are a code repair assistant. Your task is to fix static analysis errors in code.
2
2
  You should:
3
- - Fix only the error locations
3
+ - Fix only the error locations. Don't add comments that explain the process.
4
4
  - Delete unnecessary lines instead of commenting them out
5
5
  - Generate fixed full source code
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llm_fixer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaiba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-21 00:00:00.000000000 Z
11
+ date: 2025-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize