Ship Assistent 0.12.1: training tab, dataset pipeline, and heard RAG.

Restructure UI with app-level tabs and chat history drawer; add dataset curation,
HF import, Modelfile/QLoRA hooks, and link approved samples to the agent immediately
via heard vector memory without waiting for fine-tuning.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-22 14:27:59 +03:00
co-authored by Cursor
parent e8bb012885
commit 1a03c3178f
21 changed files with 4919 additions and 638 deletions
+467 -18
View File
@@ -17,6 +17,137 @@
opacity: 0.95;
}
.sa-appbar {
display: flex;
align-items: center;
gap: 0.65rem;
flex-wrap: wrap;
padding: 0.35rem 0.5rem 0.55rem;
border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
flex: 0 0 auto;
}
.sa-appbar-brand {
display: flex;
align-items: center;
gap: 0.45rem;
min-width: 0;
}
.sa-appbar-title {
font-weight: 700;
letter-spacing: 0.04em;
font-size: 0.92rem;
}
.sa-app-tabs {
display: inline-flex;
gap: 0.25rem;
flex: 1;
min-width: 0;
flex-wrap: wrap;
}
.sa-app-tab {
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: transparent;
color: inherit;
border-radius: 999px;
padding: 0.22rem 0.75rem;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
opacity: 0.72;
}
.sa-app-tab-active {
opacity: 1;
background: color-mix(in srgb, currentColor 14%, transparent);
border-color: color-mix(in srgb, currentColor 42%, transparent);
}
.sa-train-banner {
display: inline-flex;
align-items: center;
gap: 0.45rem;
padding: 0.25rem 0.65rem;
border-radius: 999px;
font-size: 0.78rem;
font-weight: 600;
border: 1px solid color-mix(in srgb, #f5a623 55%, currentColor);
background: color-mix(in srgb, #f5a623 16%, transparent);
flex: 0 0 auto;
}
.sa-views {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
.sa-views > .sa-view {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.sa-views > .sa-view[hidden] {
display: none !important;
}
#sa_view_chat .sa-layout {
flex: 1;
min-height: 0;
}
.sa-chat-workspace {
flex: 1 1 auto;
display: flex;
min-width: 0;
min-height: 0;
gap: 0;
}
.sa-chat-body {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
.sa-chats-drawer {
flex: 0 0 var(--sa-chats-drawer-width, 16rem);
width: var(--sa-chats-drawer-width, 16rem);
display: flex;
flex-direction: column;
gap: 0.35rem;
min-height: 0;
border-left: 1px solid color-mix(in srgb, currentColor 18%, transparent);
background: color-mix(in srgb, currentColor 4%, transparent);
padding: 0.45rem 0.5rem;
overflow: hidden;
transition: width 0.2s ease, flex-basis 0.2s ease, opacity 0.2s ease;
}
.sa-chats-drawer[hidden] {
display: none !important;
}
.sa-chats-drawer-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.35rem;
font-size: 0.82rem;
}
.sa-chats-drawer-actions {
display: inline-flex;
gap: 0.2rem;
}
.sa-layout {
display: flex;
flex: 1;
@@ -411,22 +542,21 @@
background: color-mix(in srgb, currentColor 10%, transparent);
}
.sa-chats-panel {
position: absolute;
z-index: 50;
top: calc(100% - 1px);
left: 0.5rem;
right: 0.5rem;
max-width: 26rem;
max-height: min(50vh, 22rem);
display: flex;
flex-direction: column;
gap: 0.35rem;
padding: 0.55rem;
border-radius: 0 0 0.5rem 0.5rem;
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
background: color-mix(in srgb, #161616 94%, currentColor);
box-shadow: 0 12px 28px color-mix(in srgb, #000 40%, transparent);
.sa-chats-panel,
.sa-chats-drawer {
/* drawer lives in .sa-chat-workspace — not a dropdown */
position: static;
z-index: auto;
top: auto;
left: auto;
right: auto;
max-width: none;
max-height: none;
box-shadow: none;
border-radius: 0;
border: none;
border-left: 1px solid color-mix(in srgb, currentColor 18%, transparent);
background: color-mix(in srgb, currentColor 4%, transparent);
}
.sa-chats-panel-head {
@@ -1491,7 +1621,13 @@
vertical-align: middle;
}
.sa-subtab {
/* app-level tabs replace in-pane subtabs */
.sa-subtabs {
display: none;
}
.sa-subtab,
.sa-app-tab {
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: transparent;
color: inherit;
@@ -1503,7 +1639,8 @@
opacity: 0.7;
}
.sa-subtab-active {
.sa-subtab-active,
.sa-app-tab-active {
opacity: 1;
background: color-mix(in srgb, currentColor 12%, transparent);
}
@@ -2016,4 +2153,316 @@
width: 98%;
max-height: 96%;
}
.sa-chat-workspace {
position: relative;
}
.sa-chats-drawer:not([hidden]) {
position: absolute;
z-index: 60;
top: 0;
right: 0;
bottom: 0;
width: min(18rem, 92vw);
flex: none;
box-shadow: -8px 0 24px color-mix(in srgb, #000 35%, transparent);
}
}
/* Training tab */
.sa-training {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
border-radius: 0.55rem;
background: color-mix(in srgb, currentColor 3%, transparent);
overflow: hidden;
}
.sa-training-tabs {
display: flex;
gap: 0.25rem;
padding: 0.45rem 0.55rem;
border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
flex-wrap: wrap;
}
.sa-ttab {
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
background: transparent;
color: inherit;
border-radius: 999px;
padding: 0.15rem 0.65rem;
font-size: 0.78rem;
font-weight: 600;
cursor: pointer;
opacity: 0.72;
}
.sa-ttab-active {
opacity: 1;
background: color-mix(in srgb, currentColor 12%, transparent);
}
.sa-training-panes {
flex: 1;
overflow: auto;
min-height: 0;
padding: 0.55rem 0.65rem 0.75rem;
}
.sa-tpane {
display: flex;
flex-direction: column;
gap: 0.55rem;
min-height: 0;
}
.sa-train-toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
align-items: center;
}
.sa-train-stats {
font-size: 0.78rem;
font-weight: 600;
opacity: 0.85;
margin-right: 0.25rem;
}
.sa-agent-heard-panel {
border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
border-radius: 0.45rem;
padding: 0.55rem 0.65rem;
display: flex;
flex-direction: column;
gap: 0.4rem;
margin-bottom: 0.35rem;
}
.sa-agent-heard-head {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.65rem;
}
.sa-agent-heard-stats {
font-size: 0.78rem;
font-weight: 600;
opacity: 0.8;
}
.sa-agent-heard-hint {
margin: 0;
font-size: 0.78rem;
opacity: 0.78;
line-height: 1.35;
}
.sa-agent-heard-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.45rem 0.75rem;
}
.sa-agent-heard-controls label {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-size: 0.82rem;
}
.sa-agent-heard-controls input[type="number"] {
width: 2.75rem;
}
.sa-hf-panel {
border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
border-radius: 0.45rem;
padding: 0.55rem;
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.sa-hf-search-row,
.sa-hf-link-row,
.sa-hf-import-row {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
align-items: center;
}
.sa-hf-search,
.sa-hf-link {
flex: 1 1 12rem;
min-width: 8rem;
}
.sa-hf-status {
font-size: 0.76rem;
opacity: 0.85;
min-height: 1.1rem;
}
.sa-hf-list {
display: flex;
flex-direction: column;
gap: 0.25rem;
max-height: 12rem;
overflow: auto;
}
.sa-hf-row {
display: flex;
align-items: flex-start;
gap: 0.35rem;
padding: 0.35rem 0.45rem;
border-radius: 0.35rem;
border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
cursor: pointer;
font-size: 0.76rem;
}
.sa-hf-row:hover {
background: color-mix(in srgb, currentColor 8%, transparent);
}
.sa-hf-row.sa-hf-row-active {
border-color: color-mix(in srgb, currentColor 42%, transparent);
background: color-mix(in srgb, currentColor 12%, transparent);
}
.sa-hf-row.sa-hf-rejected {
opacity: 0.55;
cursor: not-allowed;
}
.sa-hf-badge {
font-size: 0.68rem;
padding: 0.05rem 0.35rem;
border-radius: 999px;
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
white-space: nowrap;
}
.sa-hf-badge-ok {
border-color: color-mix(in srgb, #4caf50 50%, currentColor);
}
.sa-hf-badge-map {
border-color: color-mix(in srgb, #f5a623 50%, currentColor);
}
.sa-hf-badge-no {
border-color: color-mix(in srgb, #e74c3c 50%, currentColor);
}
.sa-hf-preview {
font-size: 0.72rem;
max-height: 10rem;
overflow: auto;
border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
border-radius: 0.35rem;
padding: 0.4rem;
white-space: pre-wrap;
font-family: ui-monospace, monospace;
}
.sa-train-samples {
display: flex;
flex-direction: column;
gap: 0.35rem;
max-height: 24rem;
overflow: auto;
}
.sa-train-sample {
border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
border-radius: 0.4rem;
padding: 0.45rem 0.55rem;
font-size: 0.76rem;
}
.sa-train-sample-head {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
align-items: center;
margin-bottom: 0.35rem;
}
.sa-train-sample textarea {
width: 100%;
box-sizing: border-box;
min-height: 3rem;
font-size: 0.74rem;
}
.sa-msg-curate {
display: inline-flex;
gap: 0.25rem;
margin-top: 0.35rem;
}
.sa-msg-curate button {
font-size: 0.72rem !important;
padding: 0.1rem 0.4rem !important;
}
.sa-train-modes {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.sa-train-form label {
display: flex;
flex-direction: column;
gap: 0.2rem;
font-size: 0.78rem;
margin-bottom: 0.35rem;
}
.sa-train-progress-bar {
height: 0.35rem;
border-radius: 999px;
background: color-mix(in srgb, currentColor 12%, transparent);
overflow: hidden;
}
.sa-train-progress-fill {
height: 100%;
width: 0%;
background: color-mix(in srgb, #4caf50 70%, currentColor);
transition: width 0.3s ease;
}
.sa-train-log {
max-height: 14rem;
overflow: auto;
font-size: 0.72rem;
margin: 0.35rem 0 0;
padding: 0.45rem;
border-radius: 0.35rem;
background: color-mix(in srgb, #000 22%, transparent);
}
.sa-train-models-list {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.sa-root-training-lock .sa-composer,
.sa-root-training-lock #sa_btn_send,
.sa-root-training-lock #sa_btn_build_gen {
pointer-events: none;
opacity: 0.45;
}