feat: preliminary work on assistant

This commit is contained in:
2026-04-26 09:48:53 +02:00
parent 50d8e88ce8
commit 8e8a2e2cd2
10 changed files with 313 additions and 13 deletions

View File

@@ -221,5 +221,9 @@
"View": "Ansicht",
"Welcome to bDS2": "Willkommen bei bDS2",
"Workbench Notes": "Workbench-Hinweise",
"Working tree integration is not wired yet in the shell, but the tab is selectable and ready for command output.": "Die Integration des Arbeitsverzeichnisses ist in der Shell noch nicht verdrahtet, aber der Tab ist auswählbar und bereit für Befehlsausgaben."
"Working tree integration is not wired yet in the shell, but the tab is selectable and ready for command output.": "Die Integration des Arbeitsverzeichnisses ist in der Shell noch nicht verdrahtet, aber der Tab ist auswählbar und bereit für Befehlsausgaben.",
"Ask the assistant about the active project or editor.": "Frage den Assistenten zum aktiven Projekt oder Editor.",
"Start chat": "Chat starten",
"You": "Du",
"The assistant sidebar chat surface is ready, but model execution is not connected yet.": "Die Chat-Oberfläche der Assistenten-Seitenleiste ist bereit, aber die Modellausführung ist noch nicht verbunden."
}

View File

@@ -221,5 +221,9 @@
"View": "View",
"Welcome to bDS2": "Welcome to bDS2",
"Workbench Notes": "Workbench Notes",
"Working tree integration is not wired yet in the shell, but the tab is selectable and ready for command output.": "Working tree integration is not wired yet in the shell, but the tab is selectable and ready for command output."
"Working tree integration is not wired yet in the shell, but the tab is selectable and ready for command output.": "Working tree integration is not wired yet in the shell, but the tab is selectable and ready for command output.",
"Ask the assistant about the active project or editor.": "Ask the assistant about the active project or editor.",
"Start chat": "Start chat",
"You": "You",
"The assistant sidebar chat surface is ready, but model execution is not connected yet.": "The assistant sidebar chat surface is ready, but model execution is not connected yet."
}

View File

@@ -221,5 +221,9 @@
"View": "Ver",
"Welcome to bDS2": "Bienvenido a bDS2",
"Workbench Notes": "Notas del área de trabajo",
"Working tree integration is not wired yet in the shell, but the tab is selectable and ready for command output.": "La integración del árbol de trabajo aún no está conectada en el shell, pero la pestaña es seleccionable y está lista para la salida de comandos."
"Working tree integration is not wired yet in the shell, but the tab is selectable and ready for command output.": "La integración del árbol de trabajo aún no está conectada en el shell, pero la pestaña es seleccionable y está lista para la salida de comandos.",
"Ask the assistant about the active project or editor.": "Pregunta al asistente sobre el proyecto o editor activo.",
"Start chat": "Iniciar chat",
"You": "Tú",
"The assistant sidebar chat surface is ready, but model execution is not connected yet.": "La superficie de chat de la barra lateral del asistente está lista, pero la ejecución del modelo aún no está conectada."
}

View File

@@ -221,5 +221,9 @@
"View": "Affichage",
"Welcome to bDS2": "Bienvenue dans bDS2",
"Workbench Notes": "Notes datelier",
"Working tree integration is not wired yet in the shell, but the tab is selectable and ready for command output.": "Lintégration de larbre de travail nest pas encore câblée dans le shell, mais longlet est sélectionnable et prêt pour la sortie des commandes."
"Working tree integration is not wired yet in the shell, but the tab is selectable and ready for command output.": "Lintégration de larbre de travail nest pas encore câblée dans le shell, mais longlet est sélectionnable et prêt pour la sortie des commandes.",
"Ask the assistant about the active project or editor.": "Interrogez lassistant sur le projet ou léditeur actif.",
"Start chat": "Démarrer la conversation",
"You": "Vous",
"The assistant sidebar chat surface is ready, but model execution is not connected yet.": "La surface de discussion de la barre latérale de lassistant est prête, mais lexécution du modèle nest pas encore connectée."
}

View File

@@ -221,5 +221,9 @@
"View": "Vista",
"Welcome to bDS2": "Benvenuto in bDS2",
"Workbench Notes": "Note del banco di lavoro",
"Working tree integration is not wired yet in the shell, but the tab is selectable and ready for command output.": "Lintegrazione del working tree non è ancora collegata nella shell, ma la scheda è selezionabile e pronta per loutput dei comandi."
"Working tree integration is not wired yet in the shell, but the tab is selectable and ready for command output.": "Lintegrazione del working tree non è ancora collegata nella shell, ma la scheda è selezionabile e pronta per loutput dei comandi.",
"Ask the assistant about the active project or editor.": "Chiedi allassistente del progetto o editor attivo.",
"Start chat": "Avvia chat",
"You": "Tu",
"The assistant sidebar chat surface is ready, but model execution is not connected yet.": "La superficie chat della barra laterale assistente è pronta, ma lesecuzione del modello non è ancora collegata."
}

View File

@@ -2010,6 +2010,134 @@ button {
padding: 14px;
}
.assistant-sidebar-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.assistant-sidebar-heading {
display: flex;
flex-direction: column;
gap: 4px;
}
.assistant-sidebar-description,
.assistant-sidebar-context-text,
.assistant-sidebar-message-content {
color: var(--vscode-descriptionForeground);
}
.assistant-sidebar-status {
border-radius: 999px;
border: 1px solid var(--vscode-panel-border);
padding: 2px 8px;
font-size: 11px;
line-height: 1.4;
}
.assistant-sidebar-status.is-offline {
background: rgba(255, 196, 0, 0.18);
border-color: rgba(255, 196, 0, 0.35);
color: var(--vscode-editor-foreground);
}
.assistant-sidebar-context {
display: flex;
flex-direction: column;
gap: 10px;
padding: 12px;
border: 1px solid var(--vscode-panel-border);
border-radius: 10px;
background: color-mix(in srgb, var(--vscode-sideBar-background) 78%, var(--vscode-editor-background));
}
.assistant-sidebar-context-row {
display: flex;
justify-content: space-between;
gap: 12px;
}
.assistant-sidebar-context-label,
.assistant-sidebar-message-role {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--vscode-descriptionForeground);
}
.assistant-sidebar-context-value {
text-align: right;
color: var(--vscode-editor-foreground);
}
.assistant-sidebar-context-text,
.assistant-sidebar-message-content {
margin: 0;
white-space: pre-wrap;
}
.assistant-sidebar-prompt-form,
.assistant-sidebar-welcome,
.assistant-sidebar-transcript {
display: flex;
flex-direction: column;
gap: 10px;
}
.assistant-sidebar-prompt {
width: 100%;
min-height: 112px;
resize: vertical;
border: 1px solid var(--vscode-input-border);
border-radius: 10px;
background: var(--vscode-input-background);
color: var(--vscode-input-foreground);
padding: 10px 12px;
font: inherit;
}
.assistant-sidebar-prompt:focus {
outline: 1px solid var(--vscode-focusBorder);
outline-offset: 1px;
}
.assistant-sidebar-start-button {
align-self: flex-start;
border: 1px solid var(--vscode-button-border, transparent);
border-radius: 999px;
background: var(--vscode-button-background);
color: var(--vscode-button-foreground);
padding: 7px 14px;
cursor: pointer;
}
.assistant-sidebar-start-button:disabled {
cursor: default;
opacity: 0.55;
}
.assistant-card,
.assistant-sidebar-message {
display: flex;
flex-direction: column;
gap: 6px;
padding: 12px;
border: 1px solid var(--vscode-panel-border);
border-radius: 10px;
border-bottom-width: 1px;
background: color-mix(in srgb, var(--vscode-sideBar-background) 82%, var(--vscode-editor-background));
}
.assistant-sidebar-message.user {
background: color-mix(in srgb, var(--vscode-list-hoverBackground) 76%, transparent);
}
.assistant-sidebar-message.assistant {
background: color-mix(in srgb, var(--vscode-sideBar-background) 70%, var(--vscode-editor-background));
}
.status-bar {
height: 22px;
display: flex;