completion-kit 0.5.32 → 0.5.33
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/config/completion_kit_manifest.js +1 -0
- data/app/assets/fonts/completion_kit/jetbrains-mono-400.woff2 +0 -0
- data/app/assets/fonts/completion_kit/jetbrains-mono-500.woff2 +0 -0
- data/app/assets/fonts/completion_kit/jetbrains-mono-700.woff2 +0 -0
- data/app/assets/stylesheets/completion_kit/{application.css → application.css.erb} +37 -2
- data/app/controllers/completion_kit/onboarding_controller.rb +7 -1
- data/app/views/completion_kit/prompts/_form.html.erb +1 -1
- data/app/views/completion_kit/runs/_form.html.erb +1 -1
- data/app/views/layouts/completion_kit/application.html.erb +4 -3
- data/lib/completion_kit/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df835ff1e701f30b2d0b2889040f1d5fb0f09e5414ce4b50b8c2aeb0729a09b0
|
|
4
|
+
data.tar.gz: b104c726a3aacac06bfaf7332da69845a5d441b60c6d97cb70a3cf69ce6d50ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63a12da9635ce4bda787581edd983c4544a51ee0d2dd5816e0473107dc5a46e1b04d751e93dbb8452536daaf4c53961576996fe478fc2f59354fc4d4935dc749
|
|
7
|
+
data.tar.gz: b7a6b8b01d28e6dbbd0511ae85f9b3e19c813d623c6e0e8470ec82eae14310b30bf9bae3a0fd22adfac7a3414dda9bdb2c0e220d6a4bfc4952eb1c1acc4bfe38
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
<% %w[400 500 700].each do |weight| %>
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'JetBrains Mono';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: <%= weight %>;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src: url('<%= asset_path("completion_kit/jetbrains-mono-#{weight}.woff2") %>') format('woff2');
|
|
8
|
+
}
|
|
9
|
+
<% end %>
|
|
2
10
|
|
|
3
11
|
.turbo-progress-bar {
|
|
4
12
|
background-color: var(--ck-accent);
|
|
@@ -14,7 +22,7 @@
|
|
|
14
22
|
--ck-line-strong: #334155;
|
|
15
23
|
--ck-text: #e2e8f0;
|
|
16
24
|
--ck-muted: #8b9ab5;
|
|
17
|
-
--ck-dim: #
|
|
25
|
+
--ck-dim: #7a8aa3;
|
|
18
26
|
--ck-accent: #06b6d4;
|
|
19
27
|
--ck-accent-soft: rgba(6, 182, 212, 0.1);
|
|
20
28
|
--ck-accent-hover: #22d3ee;
|
|
@@ -5053,3 +5061,30 @@ a.tag-mark {
|
|
|
5053
5061
|
max-width: none;
|
|
5054
5062
|
}
|
|
5055
5063
|
}
|
|
5064
|
+
|
|
5065
|
+
.ck-skip-link {
|
|
5066
|
+
position: absolute;
|
|
5067
|
+
left: -10000px;
|
|
5068
|
+
top: auto;
|
|
5069
|
+
width: 1px;
|
|
5070
|
+
height: 1px;
|
|
5071
|
+
overflow: hidden;
|
|
5072
|
+
}
|
|
5073
|
+
.ck-skip-link:focus {
|
|
5074
|
+
position: fixed;
|
|
5075
|
+
left: 0.75rem;
|
|
5076
|
+
top: 0.75rem;
|
|
5077
|
+
width: auto;
|
|
5078
|
+
height: auto;
|
|
5079
|
+
z-index: 1000;
|
|
5080
|
+
padding: 0.6rem 1rem;
|
|
5081
|
+
background: var(--ck-accent);
|
|
5082
|
+
color: var(--ck-bg);
|
|
5083
|
+
border-radius: var(--ck-radius);
|
|
5084
|
+
text-decoration: none;
|
|
5085
|
+
font-family: var(--ck-mono);
|
|
5086
|
+
font-size: 0.85rem;
|
|
5087
|
+
font-weight: 500;
|
|
5088
|
+
letter-spacing: 0.04em;
|
|
5089
|
+
text-transform: uppercase;
|
|
5090
|
+
}
|
|
@@ -9,7 +9,13 @@ module CompletionKit
|
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
def dismiss
|
|
12
|
-
cookies[ONBOARDING_DISMISS_COOKIE] = {
|
|
12
|
+
cookies[ONBOARDING_DISMISS_COOKIE] = {
|
|
13
|
+
value: "1",
|
|
14
|
+
expires: 1.year.from_now,
|
|
15
|
+
httponly: true,
|
|
16
|
+
secure: Rails.env.production?,
|
|
17
|
+
same_site: :lax
|
|
18
|
+
}
|
|
13
19
|
redirect_to dashboard_path, notice: "Setup skipped. Pick it back up from Settings → Getting started any time."
|
|
14
20
|
end
|
|
15
21
|
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<%= render "completion_kit/provider_credentials/discovery_status", provider_credential: pc, show_completed: false %>
|
|
50
50
|
<% end %>
|
|
51
51
|
</div>
|
|
52
|
-
<p class="ck-field-hint" id="refresh-status" style="min-height: 1.2em; margin-top: -0.25rem; font-size: 0.75rem;"> </p>
|
|
52
|
+
<p class="ck-field-hint" id="refresh-status" role="status" aria-live="polite" style="min-height: 1.2em; margin-top: -0.25rem; font-size: 0.75rem;"> </p>
|
|
53
53
|
</div>
|
|
54
54
|
|
|
55
55
|
<%= render "completion_kit/tags/picker", record: prompt, param_namespace: :prompt %>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<%= render "completion_kit/provider_credentials/discovery_status", provider_credential: pc, show_completed: false %>
|
|
102
102
|
<% end %>
|
|
103
103
|
</div>
|
|
104
|
-
<p class="ck-field-hint" id="refresh-status" style="min-height: 1.2em; margin-top: -0.25rem; font-size: 0.75rem;"> </p>
|
|
104
|
+
<p class="ck-field-hint" id="refresh-status" role="status" aria-live="polite" style="min-height: 1.2em; margin-top: -0.25rem; font-size: 0.75rem;"> </p>
|
|
105
105
|
<% else %>
|
|
106
106
|
<p class="ck-field-hint" style="color: var(--ck-warning);">No judge models available. <%= link_to "Add a provider", provider_credentials_path, class: "ck-link" %></p>
|
|
107
107
|
<%= form.hidden_field :judge_model, value: nil, id: "run_judge_model" %>
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
<%= action_cable_meta_tag %>
|
|
14
14
|
</head>
|
|
15
15
|
<body class="ck-app">
|
|
16
|
+
<a class="ck-skip-link" href="#ck-main-content">Skip to content</a>
|
|
16
17
|
<header class="ck-topbar">
|
|
17
18
|
<div class="ck-wrap ck-topbar__inner">
|
|
18
19
|
<%= link_to dashboard_path, class: "ck-brand" do %><%= image_tag "completion_kit/logo.png", alt: "CompletionKit", style: "height: 64px; width: auto;" %><span class="ck-brand__name">Completion<span class="ck-brand__kit">Kit</span></span><% end %>
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
<summary class="ck-nav-menu__trigger" aria-label="Menu">
|
|
22
23
|
<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
|
|
23
24
|
</summary>
|
|
24
|
-
<nav class="ck-nav">
|
|
25
|
+
<nav class="ck-nav" aria-label="Primary">
|
|
25
26
|
<% active = ->(path) { request.path.start_with?(path) ? ck_button_classes(:dark) : ck_button_classes(:light, variant: :outline) } %>
|
|
26
27
|
<%= link_to "Prompts", prompts_path, class: active.(prompts_path) %>
|
|
27
28
|
<%= link_to "Metrics", metrics_path, class: request.path.start_with?(metrics_path) || request.path.start_with?(metric_groups_path) ? ck_button_classes(:dark) : ck_button_classes(:light, variant: :outline) %>
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
<summary class="<%= settings_active ? ck_button_classes(:dark) : ck_button_classes(:light, variant: :outline) %> ck-settings-menu__trigger" aria-label="Settings">
|
|
33
34
|
<%= heroicon_tag "cog-6-tooth", variant: :outline, size: 18, "aria-hidden": "true" %>
|
|
34
35
|
</summary>
|
|
35
|
-
<div class="ck-settings-menu__panel"
|
|
36
|
+
<div class="ck-settings-menu__panel">
|
|
36
37
|
<%= link_to "Getting started", onboarding_path(reset: 1), class: "ck-settings-menu__item" %>
|
|
37
38
|
<%= link_to "API", api_reference_path, class: "ck-settings-menu__item" %>
|
|
38
39
|
<%= link_to "Providers", provider_credentials_path, class: "ck-settings-menu__item" %>
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
</div>
|
|
48
49
|
</header>
|
|
49
50
|
|
|
50
|
-
<main class="ck-main">
|
|
51
|
+
<main class="ck-main" id="ck-main-content" tabindex="-1">
|
|
51
52
|
<div class="ck-wrap">
|
|
52
53
|
<% flash.each do |type, message| %>
|
|
53
54
|
<% notice = type.to_s == "notice" %>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: completion-kit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.33
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Damien Bastin
|
|
@@ -227,10 +227,13 @@ files:
|
|
|
227
227
|
- Rakefile
|
|
228
228
|
- app/assets/config/completion_kit_manifest.js
|
|
229
229
|
- app/assets/config/manifest.js
|
|
230
|
+
- app/assets/fonts/completion_kit/jetbrains-mono-400.woff2
|
|
231
|
+
- app/assets/fonts/completion_kit/jetbrains-mono-500.woff2
|
|
232
|
+
- app/assets/fonts/completion_kit/jetbrains-mono-700.woff2
|
|
230
233
|
- app/assets/images/completion_kit/favicon.ico
|
|
231
234
|
- app/assets/images/completion_kit/logo.png
|
|
232
235
|
- app/assets/javascripts/completion_kit/application.js
|
|
233
|
-
- app/assets/stylesheets/completion_kit/application.css
|
|
236
|
+
- app/assets/stylesheets/completion_kit/application.css.erb
|
|
234
237
|
- app/controllers/completion_kit/api/v1/base_controller.rb
|
|
235
238
|
- app/controllers/completion_kit/api/v1/datasets_controller.rb
|
|
236
239
|
- app/controllers/completion_kit/api/v1/metric_groups_controller.rb
|