rails-agent-stack 0.2.2 → 0.2.3
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 +9 -0
- data/README.md +1 -1
- data/app/controllers/rails_agents/registrations_controller.rb +6 -0
- data/app/controllers/rails_agents/sessions_controller.rb +5 -0
- data/app/views/rails_agents/registrations/new.html.erb +1 -1
- data/app/views/rails_agents/sessions/new.html.erb +1 -1
- data/lib/generators/rails_agents/agent/agent_generator.rb +3 -0
- data/lib/generators/rails_agents/agent/templates/knowledge/sources/rails_database.yml.tt +7 -0
- data/lib/rails_agents/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be409425a0ebe1936cbc02ec6720f47d5827423d5e4b362528e5c7033f2a6f1f
|
|
4
|
+
data.tar.gz: fbbbb69a8a99544d9884793ab4863022e3430855e2bc059343193ae20e1d137b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f9bfcf4579f2621ec45342a3549d4aafb58a503139773b4ec9a921eb85c759ed5f4aeb6acb7a4975fa3afce3dd56237450c9155216989a7e08abec19e2ad85b
|
|
7
|
+
data.tar.gz: d93599b868b320d1e6f2c712edfad421815f5c3b5998bb52f7e6d6ee74fecfda420141a5ad52b984289f007372a29c60b36598aac03dccc91c2d711513a28d29
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `rails-agent-stack` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.2.3] - 2026-08-05
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Signup/sign-in OTP "Use a different email" now clears the pending auth session
|
|
10
|
+
so the email form is shown again (`?change_email=1`).
|
|
11
|
+
- Knowledge `--database` generator writes `knowledge/sources/rails_database.yml`
|
|
12
|
+
as connected (no perpetual pending-snapshot flag).
|
|
13
|
+
|
|
5
14
|
## [0.2.2] - 2026-08-04
|
|
6
15
|
|
|
7
16
|
### Changed
|
data/README.md
CHANGED
|
@@ -8,6 +8,9 @@ module RailsAgents
|
|
|
8
8
|
|
|
9
9
|
def new
|
|
10
10
|
@github_url = github_oauth_url
|
|
11
|
+
if params[:change_email].present?
|
|
12
|
+
session.delete(:ra_auth)
|
|
13
|
+
end
|
|
11
14
|
pending = session[:ra_auth]
|
|
12
15
|
if pending.is_a?(Hash) && pending["email"].present? && pending["purpose"] == "signup"
|
|
13
16
|
@step = :code
|
|
@@ -18,6 +21,9 @@ module RailsAgents
|
|
|
18
21
|
else
|
|
19
22
|
@step = :email
|
|
20
23
|
@workspace = default_workspace
|
|
24
|
+
@email = nil
|
|
25
|
+
@name = nil
|
|
26
|
+
@dev_code = nil
|
|
21
27
|
end
|
|
22
28
|
end
|
|
23
29
|
|
|
@@ -8,6 +8,9 @@ module RailsAgents
|
|
|
8
8
|
|
|
9
9
|
def new
|
|
10
10
|
@github_url = github_oauth_url
|
|
11
|
+
if params[:change_email].present?
|
|
12
|
+
session.delete(:ra_auth)
|
|
13
|
+
end
|
|
11
14
|
pending = session[:ra_auth]
|
|
12
15
|
if pending.is_a?(Hash) && pending["email"].present? && pending["purpose"] == "signin"
|
|
13
16
|
@step = :code
|
|
@@ -15,6 +18,8 @@ module RailsAgents
|
|
|
15
18
|
@dev_code = pending["dev_code"]
|
|
16
19
|
else
|
|
17
20
|
@step = :email
|
|
21
|
+
@email = nil
|
|
22
|
+
@dev_code = nil
|
|
18
23
|
end
|
|
19
24
|
end
|
|
20
25
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
<% end %>
|
|
43
43
|
|
|
44
44
|
<p class="rails-agents-connect__foot">
|
|
45
|
-
<%= link_to "Use a different email", rails_agents.signup_path %>
|
|
45
|
+
<%= link_to "Use a different email", rails_agents.signup_path(change_email: 1) %>
|
|
46
46
|
</p>
|
|
47
47
|
<% else %>
|
|
48
48
|
<a class="rails-agents-btn rails-agents-btn--ghost rails-agents-btn--spaced"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
<% end %>
|
|
41
41
|
|
|
42
42
|
<p class="rails-agents-connect__foot">
|
|
43
|
-
<%= link_to "Use a different email", rails_agents.signin_path %>
|
|
43
|
+
<%= link_to "Use a different email", rails_agents.signin_path(change_email: 1) %>
|
|
44
44
|
</p>
|
|
45
45
|
<% else %>
|
|
46
46
|
<a class="rails-agents-btn rails-agents-btn--ghost rails-agents-btn--spaced"
|
|
@@ -35,6 +35,9 @@ module RailsAgents
|
|
|
35
35
|
if database?
|
|
36
36
|
template "agent_database.rb.tt", File.join(agent_path, "agent.rb")
|
|
37
37
|
template "prompt_database.md.tt", File.join(agent_path, "prompt.md")
|
|
38
|
+
empty_directory File.join(agent_path, "knowledge", "sources")
|
|
39
|
+
template "knowledge/sources/rails_database.yml.tt",
|
|
40
|
+
File.join(agent_path, "knowledge", "sources", "rails_database.yml")
|
|
38
41
|
else
|
|
39
42
|
template "agent.rb.tt", File.join(agent_path, "agent.rb")
|
|
40
43
|
template "prompt.md.tt", File.join(agent_path, "prompt.md")
|
data/lib/rails_agents/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails-agent-stack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tiny Bubble Company
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|
|
@@ -164,6 +164,7 @@ files:
|
|
|
164
164
|
- lib/generators/rails_agents/agent/templates/channels/slack.rb.tt
|
|
165
165
|
- lib/generators/rails_agents/agent/templates/evals/smoke.yml.tt
|
|
166
166
|
- lib/generators/rails_agents/agent/templates/imports.yml.tt
|
|
167
|
+
- lib/generators/rails_agents/agent/templates/knowledge/sources/rails_database.yml.tt
|
|
167
168
|
- lib/generators/rails_agents/agent/templates/memory.rb.tt
|
|
168
169
|
- lib/generators/rails_agents/agent/templates/prompt.md.tt
|
|
169
170
|
- lib/generators/rails_agents/agent/templates/prompt_database.md.tt
|