ask-decisions 0.2.5 → 0.2.7

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: 2a4e5d7562997a10df653367868de8d0ba87dec9d743ca740569dcba37adebdb
4
+ data.tar.gz: 5df1c9f8e432ccf0f06e188b40fa0de5d2426dd8a4b631f51a99c80d4e449ae1
5
5
  SHA512:
6
- metadata.gz: 2e9547a817b4b6e6dc2d21b00c4ca0118fb087505781937e9ad1e591eb4737b60c3eb156a32f76a346120bd0344ba376678522dd30151739bb25153adb0d7ff6
7
- data.tar.gz: bea3578951f0d0df5473f8a65412021cc040c044f9244ba484d1e2dc91577065aedf87b457176b8397f933150ed1cb1e760a187ca545af2f6c93d8db44cf48f2
6
+ metadata.gz: 821ea49caaf3610d7f9d330c18e967d059ce71679da70ffdffcb294e0e5469eb2f4f9ae94841e888e76ca5d4c8ae6ac45384144e519881ad647030395d26c259
7
+ data.tar.gz: d7120b8708614d1aeee92a88c6656a2746ac5c4f88e6fa79666d451d35ef15ab66dd539a1c55cc5bf5159c5ecc6cd8bb422c85047ee981148564745c904fbec5
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.7"
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.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto
@@ -15,28 +15,28 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 0.12.0
18
+ version: 0.12.1
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: 0.12.0
25
+ version: 0.12.1
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: ask-auth
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: '0'
32
+ version: 0.3.5
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '0'
39
+ version: 0.3.5
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: faraday
42
42
  requirement: !ruby/object:Gem::Requirement