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 +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/ask/rails/railtie.rb +12 -0
- data/lib/ask/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b6a862555ac37ba174e915e11011a31a1f839b9baf29a1be9615c960542ebb9
|
|
4
|
+
data.tar.gz: 6dd22901bb03b6652714a749da016ebf4ef5ea74a54886b61810afb9f4c7626c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/ask/rails/railtie.rb
CHANGED
|
@@ -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
|
data/lib/ask/rails/version.rb
CHANGED