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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f140697a1264a6617dec5728f4c2927dd0ee97f23ab831fc7acab92403fdc9b
4
- data.tar.gz: 97e778dbf86aac1dc57003a3d3c2924bd377397681cb592e389757c39a3d4f40
3
+ metadata.gz: be409425a0ebe1936cbc02ec6720f47d5827423d5e4b362528e5c7033f2a6f1f
4
+ data.tar.gz: fbbbb69a8a99544d9884793ab4863022e3430855e2bc059343193ae20e1d137b
5
5
  SHA512:
6
- metadata.gz: 64a8a2032c588c53ed11ed69ed264c0487a7d4bea764a12f315746781e64541d53f0b5c7f31472c3a90070b1d2e3dbf6a934efac4574e385a8a2f6e65f8222ab
7
- data.tar.gz: aad2a17d51b42ba2468beda8e47f93851eb2a629020da49d04481705e4f67cd71d0bc5040a0f6abb55ed1cbe35f452dfdca20ee26c5097abadaeb82648ce443d
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
@@ -126,7 +126,7 @@ OpenAI · Anthropic · Google Gemini · OpenRouter · xAI · Groq · Mistral AI
126
126
 
127
127
  ```ruby
128
128
  # Gemfile
129
- gem "rails-agent-stack", "~> 0.2.2"
129
+ gem "rails-agent-stack", "~> 0.2.3"
130
130
  ```
131
131
 
132
132
  ```bash
@@ -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")
@@ -0,0 +1,7 @@
1
+ # Rails app database knowledge source
2
+ type: rails_database
3
+ adapter: activerecord
4
+ scope: full_database
5
+ tables: "*"
6
+ mode: read_only
7
+ connected_at: <%= Time.now.utc.iso8601 %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsAgents
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
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.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-04 00:00:00.000000000 Z
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