ask-decisions 0.2.5 → 0.2.6

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: 9969a46203cf5653cacf020b9e5399945d137c846b88fcc52b1b6d91828de484
4
- data.tar.gz: e172bd808e1a61019d9dd65dc2073f41776d46ee64e0233fa5333017a2c6945b
3
+ metadata.gz: 8c095716137f56aa0a2c6e3139a47a0f23049dd7df08d29b8a3ab537c7651a91
4
+ data.tar.gz: 61bc32fe79c0d496424a6d637c9c54abc1570ffa2e89d8b299b52547121230bc
5
5
  SHA512:
6
- metadata.gz: 2e9547a817b4b6e6dc2d21b00c4ca0118fb087505781937e9ad1e591eb4737b60c3eb156a32f76a346120bd0344ba376678522dd30151739bb25153adb0d7ff6
7
- data.tar.gz: bea3578951f0d0df5473f8a65412021cc040c044f9244ba484d1e2dc91577065aedf87b457176b8397f933150ed1cb1e760a187ca545af2f6c93d8db44cf48f2
6
+ metadata.gz: 60472b85e8f152fd6faf67b919466325782f76c226a7284147e42676d36d157d8e5af47e7fa32d1e4d80a4d51eda1eaa8175f6a3f545fa23c7b86546d633c9d3
7
+ data.tar.gz: dd460fe6aa16ade5306d0621a0c85deba188ad0b34c4df9e59c2c681b985808122a0708e0f7131f87f57449be95cbc4f6f6c297cccfab7f62dd2b35637ad12e8
data/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
+ ## [0.2.6] - 2026-09-19
8
+
9
+ ### Fixed
10
+
11
+ - **The output judge hook no longer crashes the first tool call of every
12
+ turn.** ask-agent hands after-tool hooks three arguments — the tool
13
+ call, the result, and the turn context — and the hook took two, raising
14
+ `ArgumentError` inside `run_after_tool` before any tool could answer.
15
+ A session rescued it into the generic "sorry" reply, so every chat turn
16
+ that reached for a tool returned nothing. The hook now accepts the
17
+ context it is given, and the hook test calls it the way ask-agent does.
18
+
7
19
  ## [0.2.5] - 2026-09-18
8
20
 
9
21
  ### Fixed
@@ -179,7 +179,7 @@ module Ask
179
179
  # Build an after_tool hook that runs the OutputJudge.
180
180
  def build_output_judge_hook
181
181
  judge = @output_judge
182
- lambda do |tool_call, result|
182
+ lambda do |tool_call, result, _context|
183
183
  output = result.respond_to?(:output) ? result.output : result.to_s
184
184
  args = tool_call.respond_to?(:arguments) ? tool_call.arguments : {}
185
185
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ask
4
4
  module Decisions
5
- VERSION = "0.2.5"
5
+ VERSION = "0.2.6"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ask-decisions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto