ask-rails 0.15.1 → 0.15.2

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: bab6d43af3ef0e50fd9ad0a56b27c49d34c180cdc76c321bd6cb642ce2c3a6b6
4
- data.tar.gz: 82d27fdde526bd74282120ced0f6b8d4253971e085ac540707a76604c1d93002
3
+ metadata.gz: 9b6a862555ac37ba174e915e11011a31a1f839b9baf29a1be9615c960542ebb9
4
+ data.tar.gz: 6dd22901bb03b6652714a749da016ebf4ef5ea74a54886b61810afb9f4c7626c
5
5
  SHA512:
6
- metadata.gz: dd685b7d6ecf528570a042e7ced02889387344b99999886255d316b92e03eb6cfa1dcc9ae9ed60f0b42d066791fc71ff62f048633b34a0345f50a940e2d57a9a
7
- data.tar.gz: 6364a6b3632411eebbd5190d279b6f166b01ebb687178ba193f69fc12513cc04f4a395da32ba3be908c9b6abbcf76bbfc3837012e28de9afa26299e7cadfb5e3
6
+ metadata.gz: 4b0556aedd3ff9c379323e3b8ed305470928e779bbd41e0b1fee5a9b55aec2d2597b749289ca185f6a5eb3da837cd06b724ff66bc4b394851b0912b8d364eb33
7
+ data.tar.gz: ee27d507c6fa98a377ed35ace846dfbf00c32567b32b6cd36f2e82aba2f1b007c96cc54b58ace3497a8fd8a248449619a36f94b9601c477c528ef082ee46d2b7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## [0.15.2] — 2026-07-30
2
+
3
+ ### Added
4
+
5
+ - **Shared tools required at boot.** `app/agents/shared/tools/*.rb` are
6
+ `require`d by a new `ask_rails.shared_tools` initializer so the
7
+ `Ask::Tools` registry is populated and tool constants (e.g.
8
+ `Tools::Billing::InquiryTool`) resolve anywhere in the app — including
9
+ code compiled before the first agent discovery, like test classes.
10
+ ask-agent's lazy discovery re-requires them idempotently.
11
+
1
12
  ## [0.15.0] — 2026-07-30
2
13
 
3
14
  ### Added
@@ -17,6 +17,18 @@ module Ask
17
17
  ::Rails.autoloaders.main.ignore(entry) if File.directory?(entry)
18
18
  end
19
19
  end
20
+
21
+ # Shared tools (app/agents/shared/tools/*.rb) are required at boot so
22
+ # the Ask::Tools registry is populated and their constants resolve
23
+ # anywhere — including code compiled before the first agent discovery
24
+ # (e.g. test classes referencing Tools::Billing::InquiryTool).
25
+ # ask-agent's own lazy discovery re-requires them idempotently.
26
+ initializer "ask_rails.shared_tools" do |app|
27
+ tools_path = app.root.join("app/agents/shared/tools")
28
+ next unless tools_path.directory?
29
+
30
+ Dir[tools_path.join("*.rb")].sort.each { |file| require file }
31
+ end
20
32
  end
21
33
  end
22
34
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ask
4
4
  module Rails
5
- VERSION = "0.15.1"
5
+ VERSION = "0.15.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ask-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto