girb 0.3.2 → 0.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdae8b7956a4924603ee3edfcebdf3835ed6d994037847eed0d432d078dec400
4
- data.tar.gz: 270cf95c4e39728de8cfb5ca5153139951c94b4f94d9255d250d6a47e527813e
3
+ metadata.gz: 5cae538e895d9dd246c201ed472db76065a49f120dfc8c547966110cfa5d804b
4
+ data.tar.gz: c919449a3e80f389a252e1893e0d7a3a6cc517c70c75dcbc66e79dc573a29f0e
5
5
  SHA512:
6
- metadata.gz: ea1a35c4aaf70ce1a4a8a28ad9a1b12fc33ef8b15e01e257ac9a94b2cbbef60d290e0d6aff426bc95b88da9257c1f0b6d76549be350bfe92bb81bd3398e349c8
7
- data.tar.gz: 4c0738e997b5796c26d331c38ec60b782186c41803f1858ec1553d7a577d226ec38d3a794f1bfef008b8aa1a5c452494428d4bf55ad38b08c123fcf144e9b723
6
+ metadata.gz: dc8e3c1aba30b34c016343f763e34c8541f2725bef726ff95ce7abd8f1776ef910be6edc9604bde5c92f55d0507b47d1353c60962a972d1d71f0d413cedf264f
7
+ data.tar.gz: 23b477f7f0d77f34966a95ee761c8acb7bcaa56330d76b7385968f50b468ee41d79a9c4f2312290e077a84e4ddfaade5912b88fea5c369d347abb413681aa5a5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.0] - 2026-02-12
4
+
5
+ ### Added
6
+
7
+ - Add web search support note for girb-gemini provider in README
8
+
9
+ ### Fixed
10
+
11
+ - Always record assistant message in conversation history even when response text is empty
12
+ - Maintains user/assistant message alternation required by some providers (e.g. Gemini with web search)
13
+
14
+ ## [0.3.3] - 2026-02-08
15
+
16
+ ### Fixed
17
+
18
+ - Fix Rails console prompt referencing non-existent tools (`model_info`, `query_model`)
19
+ - Corrected to actual tool names: `rails_model_info`, `rails_project_info`
20
+
3
21
  ## [0.3.2] - 2026-02-08
4
22
 
5
23
  ### Added
data/README.md CHANGED
@@ -54,7 +54,7 @@ gem install girb girb-ruby_llm
54
54
 
55
55
  Available provider gems:
56
56
  - [girb-ruby_llm](https://github.com/rira100000000/girb-ruby_llm) - OpenAI, Anthropic, Gemini, Ollama, etc. (Recommended)
57
- - [girb-gemini](https://github.com/rira100000000/girb-gemini) - Google Gemini only
57
+ - [girb-gemini](https://github.com/rira100000000/girb-gemini) - Google Gemini only (supports web search)
58
58
 
59
59
  ### API Keys
60
60
 
data/README_ja.md CHANGED
@@ -52,7 +52,7 @@ gem install girb girb-ruby_llm
52
52
 
53
53
  利用可能なプロバイダーgem:
54
54
  - [girb-ruby_llm](https://github.com/rira100000000/girb-ruby_llm) - OpenAI、Anthropic、Gemini、Ollama等(推奨)
55
- - [girb-gemini](https://github.com/rira100000000/girb-gemini) - Google Geminiのみ
55
+ - [girb-gemini](https://github.com/rira100000000/girb-gemini) - Google Geminiのみ(web検索対応)
56
56
 
57
57
  ### APIキー
58
58
 
@@ -236,13 +236,14 @@ module Girb
236
236
  accumulated_text << response.text
237
237
  end
238
238
 
239
- if accumulated_text.any?
240
- full_text = accumulated_text.join("\n")
239
+ full_text = accumulated_text.any? ? accumulated_text.join("\n") : ""
240
+ # 空でも必ずアシスタントメッセージを記録(user/assistantの交互を維持)
241
+ ConversationHistory.add_assistant_message(full_text)
242
+ if full_text.empty?
243
+ puts "[girb] Warning: Empty or unexpected response" if Girb.configuration.debug
244
+ else
241
245
  puts full_text
242
- ConversationHistory.add_assistant_message(full_text)
243
246
  record_ai_response(full_text)
244
- elsif Girb.configuration.debug
245
- puts "[girb] Warning: Empty or unexpected response"
246
247
  end
247
248
  break
248
249
  end
@@ -171,9 +171,9 @@ module Girb
171
171
  The user is in a Rails console with full access to the application's models and services.
172
172
 
173
173
  ### Rails-Specific Capabilities
174
- - You can query ActiveRecord models directly
175
- - Use `model_info` tool to get schema information
176
- - Use `query_model` tool to execute database queries safely
174
+ - You can query ActiveRecord models directly using `evaluate_code`
175
+ - Use `rails_model_info` tool to get model schema, associations, validations, and callbacks
176
+ - Use `rails_project_info` tool to get project info, environment, and list of models
177
177
  - Access to Rails helpers, routes, and application configuration
178
178
 
179
179
  ### Best Practices
data/lib/girb/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Girb
4
- VERSION = "0.3.2"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: girb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rira100000000