girb 0.3.3 → 0.4.1

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: f4766c775d7ef847340ae16e45b549bbb3d25679cba9a1ab056d83f9f9cde9ae
4
- data.tar.gz: '087f48944b9853977230ab10b98d98c9ad604c2d8a8333ab31d3531ef1ceb6b3'
3
+ metadata.gz: f244733846ba5bf59fd211ed2d84baf52b62cc3865e67b42601889d50f0754da
4
+ data.tar.gz: b25bb0834fa555712f5fd3ad5ad05ec3459e9fc0ba198f385aa6bebad1fa815c
5
5
  SHA512:
6
- metadata.gz: 16c1b0cda14ebce2880fcedcbeb289f81bcb885216e57d3eecfcefa36f198ddfb9fff7024960b14752809ad18e5f28a3440835a9562277be3bc8df8fe8d838b7
7
- data.tar.gz: 94b0c7f35ce6cafbe82871b138f7544990ea04e9af51e4aa16b49c07f52ccb06b30fd49d6d395ad767aba1d6cdabdb74d434dc954fcd2fc5ef22505eafa86685
6
+ metadata.gz: e52e3443a0cc91f8b5a53ae7ac5c36c33fbe04a9e6eeb1450148a7aa54e321d46cba35b3ab2845ddcfff5cafa29c9bd2e1250adc19a028f2cb43d312b31ca8b5
7
+ data.tar.gz: 50fcdded0067980c0098c5e9cebc0b5d76c6a3a1f799f0d749cb4b2faf1433ba0f4a590908fd1c7f10e54b7d41252c0b9e08066fe9c3d35ea2a1da6d799fc9a6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.1] - 2026-02-12
4
+
5
+ ### Fixed
6
+
7
+ - Fix AI always responding in Japanese regardless of user's language
8
+ - Replaced Japanese-only examples in system prompt with English examples
9
+ - Added explicit instruction to match user's language in tool comments
10
+
11
+ ## [0.4.0] - 2026-02-12
12
+
13
+ ### Added
14
+
15
+ - Add web search support note for girb-gemini provider in README
16
+
17
+ ### Fixed
18
+
19
+ - Always record assistant message in conversation history even when response text is empty
20
+ - Maintains user/assistant message alternation required by some providers (e.g. Gemini with web search)
21
+
3
22
  ## [0.3.3] - 2026-02-08
4
23
 
5
24
  ### Fixed
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
@@ -25,8 +25,8 @@ module Girb
25
25
  - Read patterns and intentions; handle hypothetical questions
26
26
  - Code examples should use variables and objects from the current context and be directly executable
27
27
  - When calling tools, ALWAYS include a brief one-line comment explaining what you're about to do
28
- (e.g., "ソースファイルを確認します", "ループを実行してxの値を追跡します")
29
- This gives users real-time visibility into your investigation process.
28
+ (e.g., "Checking the source file", "Running the loop to track x values")
29
+ Use the same language as the user. This gives users real-time visibility into your investigation process.
30
30
 
31
31
  ## Debugging Support on Errors
32
32
  When users encounter errors, actively support debugging.
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.3"
4
+ VERSION = "0.4.1"
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.3
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - rira100000000