fosm-rails 0.2.1 → 0.2.1.1
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/app/controllers/fosm/admin/dashboard_controller.rb +1 -1
- data/app/views/fosm/admin/agents/chat.html.erb +2 -2
- data/app/views/fosm/admin/agents/show.html.erb +2 -2
- data/app/views/fosm/admin/apps/show.html.erb +3 -3
- data/app/views/fosm/admin/webhooks/new.html.erb +1 -1
- data/lib/fosm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28f26f433fce210f3d83b05e743813e00af06799377202f38d0607fe8035d225
|
|
4
|
+
data.tar.gz: a41302a39d9f2d563bd79d1979447ef5349c7e3a83b5b8a5883f30bcbb8b3026
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9efdc72240a07c07533a251a7d853db7a548b2190978354011de4f43cf0355df53c05a26e8e0318c47389f04b7af00dbcd3ea9d21faed23b9e9dee1b455d6c48
|
|
7
|
+
data.tar.gz: 39023f14ea79e8a5e09be3f00ac9aff8c1ad76ffaeccd128015baefae3517bf21193b5740faf80b5e8ae23e5560e9130acd5e24734d657d9367ff4d5aec8e610
|
|
@@ -10,7 +10,7 @@ module Fosm
|
|
|
10
10
|
{
|
|
11
11
|
slug: slug,
|
|
12
12
|
model_class: model_class,
|
|
13
|
-
name: model_class.name.demodulize.
|
|
13
|
+
name: model_class.name.demodulize.titleize,
|
|
14
14
|
state_counts: state_counts,
|
|
15
15
|
total: model_class.count,
|
|
16
16
|
recent_transitions: Fosm::TransitionLog.for_app(model_class).recent.limit(3)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div class="flex items-center gap-3">
|
|
6
6
|
<%= link_to "←", fosm.agent_admin_app_path(@slug), class: "text-gray-400 hover:text-gray-700 text-lg" %>
|
|
7
7
|
<div>
|
|
8
|
-
<span class="font-semibold text-gray-900 text-sm"><%= @model_class.name.demodulize.
|
|
8
|
+
<span class="font-semibold text-gray-900 text-sm"><%= @model_class.name.demodulize.titleize %> Agent Chat</span>
|
|
9
9
|
<span class="text-xs text-gray-400 ml-2">FOSM bounded autonomy · tools only</span>
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<% if @history.empty? %>
|
|
23
23
|
<div id="empty-state" class="flex flex-col items-center justify-center h-full text-center text-gray-400 space-y-2 py-20">
|
|
24
24
|
<div class="text-4xl">🤖</div>
|
|
25
|
-
<p class="text-sm font-medium text-gray-600">Chat with <%= @model_class.name.demodulize.
|
|
25
|
+
<p class="text-sm font-medium text-gray-600">Chat with <%= @model_class.name.demodulize.titleize %> Agent</p>
|
|
26
26
|
<p class="text-xs max-w-sm">
|
|
27
27
|
The agent can only act via the lifecycle tools — it cannot bypass guards or jump to terminal states directly.
|
|
28
28
|
</p>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<div class="p-6 space-y-8">
|
|
2
2
|
<div class="flex items-center gap-3">
|
|
3
|
-
<%= link_to "← #{@model_class.name.demodulize.
|
|
3
|
+
<%= link_to "← #{@model_class.name.demodulize.titleize}", fosm.admin_app_path(@slug), class: "text-sm text-blue-600 hover:underline" %>
|
|
4
4
|
</div>
|
|
5
5
|
|
|
6
6
|
<!-- Header -->
|
|
7
7
|
<div class="flex items-start justify-between">
|
|
8
8
|
<div>
|
|
9
|
-
<h1 class="text-2xl font-bold text-gray-900"><%= @model_class.name.demodulize.
|
|
9
|
+
<h1 class="text-2xl font-bold text-gray-900"><%= @model_class.name.demodulize.titleize %> Agent</h1>
|
|
10
10
|
<p class="text-sm text-gray-500 mt-1">
|
|
11
11
|
<% if @agent_class %>
|
|
12
12
|
<span class="text-green-600 font-medium">✓ <%= @agent_class.name %></span>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
<div class="flex items-start justify-between">
|
|
7
7
|
<div>
|
|
8
|
-
<h1 class="text-2xl font-bold text-gray-900"><%= @model_class.name.demodulize.
|
|
8
|
+
<h1 class="text-2xl font-bold text-gray-900"><%= @model_class.name.demodulize.titleize %></h1>
|
|
9
9
|
<p class="text-sm text-gray-500"><%= @model_class.name %> · <%= @total %> total records</p>
|
|
10
10
|
<% if @stuck_count > 0 %>
|
|
11
11
|
<p class="text-sm text-amber-600 mt-1">⚠ <%= @stuck_count %> record<%= @stuck_count == 1 ? "" : "s" %> may be stuck (no transition in 7+ days)</p>
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
<div class="flex gap-2 shrink-0">
|
|
15
15
|
<% if main_app.respond_to?("fosm_#{@slug.pluralize}_path") %>
|
|
16
|
-
<%= link_to "View all #{@model_class.name.demodulize.
|
|
16
|
+
<%= link_to "View all #{@model_class.name.demodulize.titleize.pluralize}",
|
|
17
17
|
main_app.send("fosm_#{@slug.pluralize}_path"),
|
|
18
18
|
class: "text-sm border border-gray-200 bg-white text-gray-700 px-3 py-1.5 rounded hover:bg-gray-50" %>
|
|
19
19
|
<% end %>
|
|
20
20
|
<% if main_app.respond_to?("new_fosm_#{@slug}_path") %>
|
|
21
|
-
<%= link_to "+ New #{@model_class.name.demodulize.
|
|
21
|
+
<%= link_to "+ New #{@model_class.name.demodulize.titleize}",
|
|
22
22
|
main_app.send("new_fosm_#{@slug}_path"),
|
|
23
23
|
class: "text-sm bg-gray-900 text-white px-3 py-1.5 rounded hover:bg-gray-700" %>
|
|
24
24
|
<% end %>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<div>
|
|
9
9
|
<label class="block text-sm font-medium text-gray-700 mb-1">FOSM App</label>
|
|
10
10
|
<%= f.select :model_class_name,
|
|
11
|
-
@apps.map { |slug, klass| [klass.name.demodulize.
|
|
11
|
+
@apps.map { |slug, klass| [klass.name.demodulize.titleize, klass.name] },
|
|
12
12
|
{ prompt: "Select an app" },
|
|
13
13
|
class: "w-full border border-gray-200 rounded px-3 py-2 text-sm" %>
|
|
14
14
|
</div>
|
data/lib/fosm/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fosm-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.1
|
|
4
|
+
version: 0.2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Abhishek Parolkar
|
|
@@ -127,7 +127,7 @@ files:
|
|
|
127
127
|
- lib/tasks/fosm_graph.rake
|
|
128
128
|
homepage: https://github.com/inloopstudio/fosm-rails
|
|
129
129
|
licenses:
|
|
130
|
-
-
|
|
130
|
+
- Nonstandard
|
|
131
131
|
metadata:
|
|
132
132
|
homepage_uri: https://github.com/inloopstudio/fosm-rails
|
|
133
133
|
source_code_uri: https://github.com/inloopstudio/fosm-rails
|