Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 58 additions & 44 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,79 +1,93 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (7.1.3.4)
activesupport (8.0.2)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.8)
concurrent-ruby (1.3.3)
connection_pool (2.4.1)
benchmark (0.4.0)
bigdecimal (3.1.9)
concurrent-ruby (1.3.5)
connection_pool (2.5.0)
drb (2.2.1)
i18n (1.14.5)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
json (2.7.2)
language_server-protocol (3.17.0.3)
minitest (5.24.1)
mutex_m (0.2.0)
parallel (1.25.1)
parser (3.3.3.0)
json (2.10.2)
language_server-protocol (3.17.0.4)
lint_roller (1.1.0)
logger (1.6.6)
minitest (5.25.5)
parallel (1.26.3)
parser (3.3.7.1)
ast (~> 2.4.1)
racc
prettier_print (1.2.1)
racc (1.8.0)
racc (1.8.1)
rack (3.1.12)
rainbow (3.1.1)
regexp_parser (2.9.2)
rexml (3.3.9)
rubocop (1.64.1)
regexp_parser (2.10.0)
rubocop (1.74.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.31.1, < 2.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.38.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.38.1)
parser (>= 3.3.1.0)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
rubocop-discourse (3.8.1)
rubocop-capybara (2.22.1)
lint_roller (~> 1.1)
rubocop (~> 1.72, >= 1.72.1)
rubocop-discourse (3.12.1)
activesupport (>= 6.1)
rubocop (>= 1.59.0)
rubocop-capybara (>= 2.0.0)
rubocop-factory_bot (>= 2.0.0)
rubocop-rails (>= 2.25.0)
lint_roller (>= 1.1.0)
rubocop (>= 1.73.2)
rubocop-capybara (>= 2.22.0)
rubocop-factory_bot (>= 2.27.0)
rubocop-rails (>= 2.30.3)
rubocop-rspec (>= 3.0.1)
rubocop-rspec_rails (>= 2.30.0)
rubocop-factory_bot (2.26.1)
rubocop (~> 1.61)
rubocop-rails (2.25.1)
rubocop-rspec_rails (>= 2.31.0)
rubocop-factory_bot (2.27.1)
lint_roller (~> 1.1)
rubocop (~> 1.72, >= 1.72.1)
rubocop-rails (2.30.3)
activesupport (>= 4.2.0)
lint_roller (~> 1.1)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rspec (3.0.2)
rubocop (~> 1.61)
rubocop-rspec_rails (2.30.0)
rubocop (~> 1.61)
rubocop-rspec (~> 3, >= 3.0.1)
rubocop (>= 1.72.1, < 2.0)
rubocop-ast (>= 1.38.0, < 2.0)
rubocop-rspec (3.5.0)
lint_roller (~> 1.1)
rubocop (~> 1.72, >= 1.72.1)
rubocop-rspec_rails (2.31.0)
lint_roller (~> 1.1)
rubocop (~> 1.72, >= 1.72.1)
rubocop-rspec (~> 3.5)
ruby-progressbar (1.13.0)
securerandom (0.4.1)
syntax_tree (6.2.0)
prettier_print (>= 1.2.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
uri (1.0.3)

PLATFORMS
ruby
Expand All @@ -83,4 +97,4 @@ DEPENDENCIES
syntax_tree

BUNDLED WITH
2.5.10
2.6.5
8 changes: 8 additions & 0 deletions assets/stylesheets/common/ai-blinking-animation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
height: 1em;
opacity: 0;
display: block;

&:nth-child(1) {
width: 10%;
}
Expand Down Expand Up @@ -92,15 +93,19 @@
&:nth-child(20) {
width: 25%;
}

&.is-shown {
opacity: 1;
}

&.show {
animation: appear 0.5s cubic-bezier(0.445, 0.05, 0.55, 0.95) 0s forwards;

@media (prefers-reduced-motion) {
animation-duration: 0s;
}
}

@media (prefers-reduced-motion: no-preference) {
&.blink {
animation: blink 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
Expand All @@ -112,6 +117,7 @@
0% {
opacity: 0;
}

100% {
opacity: 1;
}
Expand All @@ -121,9 +127,11 @@
0% {
opacity: 1;
}

50% {
opacity: 0.5;
}

100% {
opacity: 1;
}
Expand Down
9 changes: 7 additions & 2 deletions assets/stylesheets/common/streaming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
100% {
opacity: 0;
}

50% {
opacity: 1;
}
}

@mixin progress-dot {
content: "\25CF";
font-family: Söhne Circle, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
Cantarell, Noto Sans, sans-serif;
font-family: "Söhne Circle", system-ui, -apple-system, "Segoe UI", Roboto,
Ubuntu, Cantarell, "Noto Sans", sans-serif;
line-height: normal;
margin-left: 0.25rem;
vertical-align: baseline;
Expand Down Expand Up @@ -44,6 +45,7 @@ article.streaming .cooked {
100% {
transform: initial;
}

30% {
transform: translateY(-0.2em);
}
Expand All @@ -55,12 +57,15 @@ article.streaming .cooked {

&__dot {
display: inline-block;

@media (prefers-reduced-motion: no-preference) {
animation: ai-indicator-wave 1.8s linear infinite;
}

&:nth-child(2) {
animation-delay: -1.6s;
}

&:nth-child(3) {
animation-delay: -1.4s;
}
Expand Down
5 changes: 4 additions & 1 deletion assets/stylesheets/modules/ai-bot/common/ai-artifact.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ html.ai-artifact-expanded {
display: flex;
justify-content: space-between;
align-items: center;

.ai-artifact__expand-button {
margin-left: auto;
}
Expand Down Expand Up @@ -70,14 +71,17 @@ html.ai-artifact-expanded {
background-color: var(--secondary-low);
opacity: 0.9;
transform: translateY(0);

button {
width: 100%;
text-align: left;
box-sizing: border-box;
justify-content: flex-start;
color: var(--secondary-very-high);

&:hover {
color: var(--secondary-very-high);

.d-icon {
color: var(--secondary-high);
}
Expand All @@ -95,7 +99,6 @@ html.ai-artifact-expanded {
bottom: 0;
z-index: z("fullscreen");
}

position: fixed;
top: 0;
left: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from {
opacity: 0;
}

to {
opacity: 1;
}
Expand Down
7 changes: 6 additions & 1 deletion assets/stylesheets/modules/ai-bot/common/ai-persona.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,26 @@
padding-left: 0.25em;
color: var(--primary-medium);
}

label {
display: block;
}

&__tool-options {
padding: 5px 10px 5px;
border: 1px solid var(--primary-low-mid);
width: 480px;
}

&__tool-options-name {
margin-bottom: 10px;
font-size: var(--font-down-1);
}

&__description {
width: 500px;
}

&__system_prompt {
width: 500px;
height: 400px;
Expand Down Expand Up @@ -101,7 +106,7 @@

&:focus,
&:focus-within {
@include default-focus();
@include default-focus;
}

&-container {
Expand Down
2 changes: 2 additions & 0 deletions assets/stylesheets/modules/ai-bot/common/ai-tools.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@
.ai-tool-editor {
max-width: 80%;
position: relative;

.ace-wrapper {
border: 1px solid var(--primary-low);
max-width: 100%;
position: relative;
width: 100%;
height: 100%;
min-height: 500px;

.ace_editor {
position: absolute;
left: 0;
Expand Down
10 changes: 10 additions & 0 deletions assets/stylesheets/modules/ai-bot/common/bot-replies.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ nav.post-controls .actions button.cancel-streaming {
display: none;
}
}

.persona-llm-selector {
display: flex;
justify-content: space-between;
Expand All @@ -26,6 +27,7 @@ nav.post-controls .actions button.cancel-streaming {
.gpt-persona {
margin-bottom: 5px;
}

#reply-control .composer-fields {
.mini-tag-chooser,
.add-warning {
Expand All @@ -39,6 +41,7 @@ nav.post-controls .actions button.cancel-streaming {
background-color: var(--tertiary-low);
border-top: 1px solid var(--tertiary-medium);
opacity: 0.75;

.d-icon {
color: var(--tertiary);
}
Expand All @@ -60,10 +63,12 @@ article.streaming nav.post-controls .actions button.cancel-streaming {
width: 100%;
min-width: 320px;
padding: 0.5em;

.d-button-label {
flex: 1;
text-align: left;
}

&:hover {
background: var(--primary-low);
}
Expand All @@ -81,9 +86,11 @@ details.ai-quote {
display: flex;
justify-content: space-between;
align-items: center;

span:first-child {
margin-right: auto;
}

span:nth-child(2) {
font-size: var(--font-down-2);
background: var(--primary-medium);
Expand All @@ -97,10 +104,12 @@ details.ai-quote {
.d-modal__footer {
position: relative;
padding: 10px 20px 25px;

.btn-primary {
margin-left: auto;
}
}

&__just-copied {
position: absolute;
font-size: var(--font-down-1);
Expand All @@ -116,6 +125,7 @@ span.onebox-ai-llm-title {

.d-modal.ai-debug-modal {
--modal-max-width: 99%;

ul {
padding-left: 1em;
}
Expand Down
Loading
Loading