cardinal-ai 0.2.13 → 0.2.16
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/assets/stylesheets/cardinal.css +69 -4
- data/app/controllers/boards_controller.rb +25 -1
- data/app/controllers/cards_controller.rb +21 -1
- data/app/controllers/messages_controller.rb +16 -1
- data/app/helpers/application_helper.rb +54 -0
- data/app/javascript/controllers/archive_drop_controller.js +41 -0
- data/app/javascript/controllers/attach_controller.js +80 -0
- data/app/javascript/controllers/board_column_controller.js +6 -0
- data/app/jobs/ai_task_job.rb +2 -1
- data/app/jobs/assistant_reply_job.rb +2 -1
- data/app/jobs/compact_job.rb +14 -1
- data/app/jobs/deep_dive_job.rb +2 -1
- data/app/jobs/resume_run_job.rb +8 -0
- data/app/jobs/summary_job.rb +11 -1
- data/app/models/ai_call.rb +10 -0
- data/app/models/board.rb +10 -0
- data/app/models/card.rb +26 -2
- data/app/models/column.rb +10 -4
- data/app/services/agent/runner.rb +18 -3
- data/app/services/claude_cli.rb +23 -1
- data/app/services/github_issues.rb +49 -0
- data/app/services/rules/compiler.rb +1 -0
- data/app/services/run_sweeper.rb +12 -3
- data/app/views/boards/archive.html.erb +56 -0
- data/app/views/boards/brief.html.erb +2 -0
- data/app/views/boards/issues.html.erb +41 -0
- data/app/views/boards/show.html.erb +8 -0
- data/app/views/cards/_card.html.erb +3 -1
- data/app/views/cards/_compact_panel.html.erb +5 -3
- data/app/views/cards/_detail.html.erb +15 -3
- data/app/views/cards/_summary_panel.html.erb +5 -3
- data/app/views/columns/_column.html.erb +8 -1
- data/app/views/events/_event.html.erb +2 -1
- data/config/routes.rb +5 -0
- data/db/cable_schema.rb +15 -3
- data/db/migrate/20260705120000_create_ai_calls.rb +17 -0
- data/db/migrate/20260705120001_add_issue_number_to_cards.rb +5 -0
- data/db/migrate/20260705193935_add_settings_to_boards.rb +6 -0
- data/db/queue_schema.rb +74 -62
- data/lib/cardinal/version.rb +1 -1
- metadata +10 -1
data/db/queue_schema.rb
CHANGED
|
@@ -1,123 +1,135 @@
|
|
|
1
|
-
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
|
4
|
+
#
|
|
5
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
|
6
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
|
9
|
+
# migrations use external dependencies or application code.
|
|
10
|
+
#
|
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
+
|
|
13
|
+
ActiveRecord::Schema[8.1].define(version: 1) do
|
|
2
14
|
create_table "solid_queue_blocked_executions", force: :cascade do |t|
|
|
3
|
-
t.bigint "job_id", null: false
|
|
4
|
-
t.string "queue_name", null: false
|
|
5
|
-
t.integer "priority", default: 0, null: false
|
|
6
15
|
t.string "concurrency_key", null: false
|
|
7
|
-
t.datetime "expires_at", null: false
|
|
8
16
|
t.datetime "created_at", null: false
|
|
9
|
-
t.
|
|
10
|
-
t.
|
|
11
|
-
t.
|
|
17
|
+
t.datetime "expires_at", null: false
|
|
18
|
+
t.bigint "job_id", null: false
|
|
19
|
+
t.integer "priority", default: 0, null: false
|
|
20
|
+
t.string "queue_name", null: false
|
|
21
|
+
t.index ["concurrency_key", "priority", "job_id"], name: "index_solid_queue_blocked_executions_for_release"
|
|
22
|
+
t.index ["expires_at", "concurrency_key"], name: "index_solid_queue_blocked_executions_for_maintenance"
|
|
23
|
+
t.index ["job_id"], name: "index_solid_queue_blocked_executions_on_job_id", unique: true
|
|
12
24
|
end
|
|
13
25
|
|
|
14
26
|
create_table "solid_queue_claimed_executions", force: :cascade do |t|
|
|
27
|
+
t.datetime "created_at", null: false
|
|
15
28
|
t.bigint "job_id", null: false
|
|
16
29
|
t.bigint "process_id"
|
|
17
|
-
t.
|
|
18
|
-
t.index [ "job_id"
|
|
19
|
-
t.index [ "process_id", "job_id" ], name: "index_solid_queue_claimed_executions_on_process_id_and_job_id"
|
|
30
|
+
t.index ["job_id"], name: "index_solid_queue_claimed_executions_on_job_id", unique: true
|
|
31
|
+
t.index ["process_id", "job_id"], name: "index_solid_queue_claimed_executions_on_process_id_and_job_id"
|
|
20
32
|
end
|
|
21
33
|
|
|
22
34
|
create_table "solid_queue_failed_executions", force: :cascade do |t|
|
|
23
|
-
t.bigint "job_id", null: false
|
|
24
|
-
t.text "error"
|
|
25
35
|
t.datetime "created_at", null: false
|
|
26
|
-
t.
|
|
36
|
+
t.text "error"
|
|
37
|
+
t.bigint "job_id", null: false
|
|
38
|
+
t.index ["job_id"], name: "index_solid_queue_failed_executions_on_job_id", unique: true
|
|
27
39
|
end
|
|
28
40
|
|
|
29
41
|
create_table "solid_queue_jobs", force: :cascade do |t|
|
|
30
|
-
t.string "queue_name", null: false
|
|
31
|
-
t.string "class_name", null: false
|
|
32
|
-
t.text "arguments"
|
|
33
|
-
t.integer "priority", default: 0, null: false
|
|
34
42
|
t.string "active_job_id"
|
|
35
|
-
t.
|
|
36
|
-
t.
|
|
43
|
+
t.text "arguments"
|
|
44
|
+
t.string "class_name", null: false
|
|
37
45
|
t.string "concurrency_key"
|
|
38
46
|
t.datetime "created_at", null: false
|
|
47
|
+
t.datetime "finished_at"
|
|
48
|
+
t.integer "priority", default: 0, null: false
|
|
49
|
+
t.string "queue_name", null: false
|
|
50
|
+
t.datetime "scheduled_at"
|
|
39
51
|
t.datetime "updated_at", null: false
|
|
40
|
-
t.index [
|
|
41
|
-
t.index [
|
|
42
|
-
t.index [
|
|
43
|
-
t.index [
|
|
44
|
-
t.index [
|
|
52
|
+
t.index ["active_job_id"], name: "index_solid_queue_jobs_on_active_job_id"
|
|
53
|
+
t.index ["class_name"], name: "index_solid_queue_jobs_on_class_name"
|
|
54
|
+
t.index ["finished_at"], name: "index_solid_queue_jobs_on_finished_at"
|
|
55
|
+
t.index ["queue_name", "finished_at"], name: "index_solid_queue_jobs_for_filtering"
|
|
56
|
+
t.index ["scheduled_at", "finished_at"], name: "index_solid_queue_jobs_for_alerting"
|
|
45
57
|
end
|
|
46
58
|
|
|
47
59
|
create_table "solid_queue_pauses", force: :cascade do |t|
|
|
48
|
-
t.string "queue_name", null: false
|
|
49
60
|
t.datetime "created_at", null: false
|
|
50
|
-
t.
|
|
61
|
+
t.string "queue_name", null: false
|
|
62
|
+
t.index ["queue_name"], name: "index_solid_queue_pauses_on_queue_name", unique: true
|
|
51
63
|
end
|
|
52
64
|
|
|
53
65
|
create_table "solid_queue_processes", force: :cascade do |t|
|
|
66
|
+
t.datetime "created_at", null: false
|
|
67
|
+
t.string "hostname"
|
|
54
68
|
t.string "kind", null: false
|
|
55
69
|
t.datetime "last_heartbeat_at", null: false
|
|
56
|
-
t.bigint "supervisor_id"
|
|
57
|
-
t.integer "pid", null: false
|
|
58
|
-
t.string "hostname"
|
|
59
70
|
t.text "metadata"
|
|
60
|
-
t.datetime "created_at", null: false
|
|
61
71
|
t.string "name", null: false
|
|
62
|
-
t.
|
|
63
|
-
t.
|
|
64
|
-
t.index [
|
|
72
|
+
t.integer "pid", null: false
|
|
73
|
+
t.bigint "supervisor_id"
|
|
74
|
+
t.index ["last_heartbeat_at"], name: "index_solid_queue_processes_on_last_heartbeat_at"
|
|
75
|
+
t.index ["name", "supervisor_id"], name: "index_solid_queue_processes_on_name_and_supervisor_id", unique: true
|
|
76
|
+
t.index ["supervisor_id"], name: "index_solid_queue_processes_on_supervisor_id"
|
|
65
77
|
end
|
|
66
78
|
|
|
67
79
|
create_table "solid_queue_ready_executions", force: :cascade do |t|
|
|
80
|
+
t.datetime "created_at", null: false
|
|
68
81
|
t.bigint "job_id", null: false
|
|
69
|
-
t.string "queue_name", null: false
|
|
70
82
|
t.integer "priority", default: 0, null: false
|
|
71
|
-
t.
|
|
72
|
-
t.index [
|
|
73
|
-
t.index [
|
|
74
|
-
t.index [
|
|
83
|
+
t.string "queue_name", null: false
|
|
84
|
+
t.index ["job_id"], name: "index_solid_queue_ready_executions_on_job_id", unique: true
|
|
85
|
+
t.index ["priority", "job_id"], name: "index_solid_queue_poll_all"
|
|
86
|
+
t.index ["queue_name", "priority", "job_id"], name: "index_solid_queue_poll_by_queue"
|
|
75
87
|
end
|
|
76
88
|
|
|
77
89
|
create_table "solid_queue_recurring_executions", force: :cascade do |t|
|
|
90
|
+
t.datetime "created_at", null: false
|
|
78
91
|
t.bigint "job_id", null: false
|
|
79
|
-
t.string "task_key", null: false
|
|
80
92
|
t.datetime "run_at", null: false
|
|
81
|
-
t.
|
|
82
|
-
t.index [
|
|
83
|
-
t.index [
|
|
93
|
+
t.string "task_key", null: false
|
|
94
|
+
t.index ["job_id"], name: "index_solid_queue_recurring_executions_on_job_id", unique: true
|
|
95
|
+
t.index ["task_key", "run_at"], name: "index_solid_queue_recurring_executions_on_task_key_and_run_at", unique: true
|
|
84
96
|
end
|
|
85
97
|
|
|
86
98
|
create_table "solid_queue_recurring_tasks", force: :cascade do |t|
|
|
87
|
-
t.string "key", null: false
|
|
88
|
-
t.string "schedule", null: false
|
|
89
|
-
t.string "command", limit: 2048
|
|
90
|
-
t.string "class_name"
|
|
91
99
|
t.text "arguments"
|
|
92
|
-
t.string "
|
|
100
|
+
t.string "class_name"
|
|
101
|
+
t.string "command", limit: 2048
|
|
102
|
+
t.datetime "created_at", null: false
|
|
103
|
+
t.text "description"
|
|
104
|
+
t.string "key", null: false
|
|
93
105
|
t.integer "priority", default: 0
|
|
106
|
+
t.string "queue_name"
|
|
107
|
+
t.string "schedule", null: false
|
|
94
108
|
t.boolean "static", default: true, null: false
|
|
95
|
-
t.text "description"
|
|
96
|
-
t.datetime "created_at", null: false
|
|
97
109
|
t.datetime "updated_at", null: false
|
|
98
|
-
t.index [
|
|
99
|
-
t.index [
|
|
110
|
+
t.index ["key"], name: "index_solid_queue_recurring_tasks_on_key", unique: true
|
|
111
|
+
t.index ["static"], name: "index_solid_queue_recurring_tasks_on_static"
|
|
100
112
|
end
|
|
101
113
|
|
|
102
114
|
create_table "solid_queue_scheduled_executions", force: :cascade do |t|
|
|
115
|
+
t.datetime "created_at", null: false
|
|
103
116
|
t.bigint "job_id", null: false
|
|
104
|
-
t.string "queue_name", null: false
|
|
105
117
|
t.integer "priority", default: 0, null: false
|
|
118
|
+
t.string "queue_name", null: false
|
|
106
119
|
t.datetime "scheduled_at", null: false
|
|
107
|
-
t.
|
|
108
|
-
t.index [ "job_id"
|
|
109
|
-
t.index [ "scheduled_at", "priority", "job_id" ], name: "index_solid_queue_dispatch_all"
|
|
120
|
+
t.index ["job_id"], name: "index_solid_queue_scheduled_executions_on_job_id", unique: true
|
|
121
|
+
t.index ["scheduled_at", "priority", "job_id"], name: "index_solid_queue_dispatch_all"
|
|
110
122
|
end
|
|
111
123
|
|
|
112
124
|
create_table "solid_queue_semaphores", force: :cascade do |t|
|
|
113
|
-
t.string "key", null: false
|
|
114
|
-
t.integer "value", default: 1, null: false
|
|
115
|
-
t.datetime "expires_at", null: false
|
|
116
125
|
t.datetime "created_at", null: false
|
|
126
|
+
t.datetime "expires_at", null: false
|
|
127
|
+
t.string "key", null: false
|
|
117
128
|
t.datetime "updated_at", null: false
|
|
118
|
-
t.
|
|
119
|
-
t.index [
|
|
120
|
-
t.index [
|
|
129
|
+
t.integer "value", default: 1, null: false
|
|
130
|
+
t.index ["expires_at"], name: "index_solid_queue_semaphores_on_expires_at"
|
|
131
|
+
t.index ["key", "value"], name: "index_solid_queue_semaphores_on_key_and_value"
|
|
132
|
+
t.index ["key"], name: "index_solid_queue_semaphores_on_key", unique: true
|
|
121
133
|
end
|
|
122
134
|
|
|
123
135
|
add_foreign_key "solid_queue_blocked_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
|
data/lib/cardinal/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cardinal-ai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jason Ellis
|
|
@@ -171,6 +171,8 @@ files:
|
|
|
171
171
|
- app/helpers/application_helper.rb
|
|
172
172
|
- app/javascript/application.js
|
|
173
173
|
- app/javascript/controllers/application.js
|
|
174
|
+
- app/javascript/controllers/archive_drop_controller.js
|
|
175
|
+
- app/javascript/controllers/attach_controller.js
|
|
174
176
|
- app/javascript/controllers/autosave_controller.js
|
|
175
177
|
- app/javascript/controllers/board_column_controller.js
|
|
176
178
|
- app/javascript/controllers/clipboard_controller.js
|
|
@@ -196,6 +198,7 @@ files:
|
|
|
196
198
|
- app/jobs/summary_job.rb
|
|
197
199
|
- app/mailers/application_mailer.rb
|
|
198
200
|
- app/models/agent_session.rb
|
|
201
|
+
- app/models/ai_call.rb
|
|
199
202
|
- app/models/application_record.rb
|
|
200
203
|
- app/models/artifact.rb
|
|
201
204
|
- app/models/board.rb
|
|
@@ -208,11 +211,14 @@ files:
|
|
|
208
211
|
- app/services/agent/workspace.rb
|
|
209
212
|
- app/services/card_transition.rb
|
|
210
213
|
- app/services/claude_cli.rb
|
|
214
|
+
- app/services/github_issues.rb
|
|
211
215
|
- app/services/rules.rb
|
|
212
216
|
- app/services/rules/compiler.rb
|
|
213
217
|
- app/services/run_sweeper.rb
|
|
218
|
+
- app/views/boards/archive.html.erb
|
|
214
219
|
- app/views/boards/brief.html.erb
|
|
215
220
|
- app/views/boards/edit.html.erb
|
|
221
|
+
- app/views/boards/issues.html.erb
|
|
216
222
|
- app/views/boards/show.html.erb
|
|
217
223
|
- app/views/cards/_card.html.erb
|
|
218
224
|
- app/views/cards/_compact_panel.html.erb
|
|
@@ -267,6 +273,9 @@ files:
|
|
|
267
273
|
- db/migrate/20260704130000_add_summary_to_cards.rb
|
|
268
274
|
- db/migrate/20260704140000_add_compact_to_cards.rb
|
|
269
275
|
- db/migrate/20260704231436_add_model_and_effort_to_cards.rb
|
|
276
|
+
- db/migrate/20260705120000_create_ai_calls.rb
|
|
277
|
+
- db/migrate/20260705120001_add_issue_number_to_cards.rb
|
|
278
|
+
- db/migrate/20260705193935_add_settings_to_boards.rb
|
|
270
279
|
- db/queue_schema.rb
|
|
271
280
|
- db/seeds.rb
|
|
272
281
|
- docker/agent/Dockerfile
|