Compare commits

...
4 Commits
Author SHA1 Message Date
bruno 3d9d36119a Merge pull request 'Correctif : commandes BooksLM mortes dans la palette — résidu D5 (2.95.2)' (#97) from fix/palette-bookslm-residuel into main
publish-nexus / publish-windows (release) Failing after 16s
CI / lint (push) Failing after 59s
CI / test (push) Skipped
CI / build (push) Skipped
CI / e2e (push) Skipped
CI / security (push) Successful in 1m37s
publish-nexus / publish-docs (release) Failing after 1m46s
publish-nexus / publish (release) Successful in 24m4s
2026-11-28 13:08:40 -05:00
Spark 4695d3d0cd fix(palette): commandes BooksLM mortes remplacées par Spark — résidu D5 (2.95.2)
CI / security (pull_request) Successful in 1m0s
CI / lint (pull_request) Failing after 1m2s
CI / test (pull_request) Skipped
CI / build (pull_request) Skipped
CI / e2e (pull_request) Skipped
2026-11-28 13:08:32 -05:00
bruno f096277d76 Merge pull request 'Correctif : toast 410 au chargement — statut IA résiduel du panneau sync (2.95.1)' (#96) from fix/statut-ia-panneau-sync into main
publish-nexus / publish-windows (release) Failing after 18s
CI / security (push) Successful in 39s
CI / lint (push) Failing after 1m7s
CI / test (push) Skipped
CI / build (push) Skipped
CI / e2e (push) Skipped
publish-nexus / publish-docs (release) Successful in 15s
publish-nexus / publish (release) Successful in 54m5s
2026-11-28 13:07:20 -05:00
Spark 0cace688e2 fix(sync): retirer le statut IA résiduel — toast 410 au chargement (2.95.1)
CI / lint (pull_request) Failing after 1m7s
CI / test (pull_request) Skipped
CI / build (pull_request) Skipped
CI / e2e (pull_request) Skipped
CI / security (pull_request) Successful in 41s
2026-11-28 13:07:10 -05:00
16 changed files with 67 additions and 234 deletions
+17 -1
View File
@@ -6,7 +6,7 @@ Format basé sur [Keep a Changelog](https://keepachangelog.com/fr/1.1.0/),
et [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
> **En cours de développement** : les changements à venir sont listés dans la section
> [Unreleased](#unreleased). La dernière version livrée est **2.95.0**.
> [Unreleased](#unreleased). La dernière version livrée est **2.95.2**.
---
@@ -14,6 +14,22 @@ et [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
---
## [2.95.2] — 2026-11-28
### Corrigé
- **Commandes BooksLM mortes dans la palette (résidu D5)** : la palette de commandes importait encore `bookslm.js`, supprimé en D5 — les deux commandes « BooksLM » échouaient au clic. Remplacées par une commande « ✦ Spark : ouvrir le panneau » (clés `palette.spark_open*`, FR/EN). Au passage, la garde du bouton lecture mobile vise le panneau Spark (`.draco-panneau`) au lieu de l'ancien panneau BooksLM, et ses écouteurs d'événements morts sont retirés. Test de garde `test_aucun_residu_bookslm_frontend`. **Redéploiement Docker requis.**
---
## [2.95.1] — 2026-11-28
### Corrigé
- **Toast 410 au chargement (résidu D5)** : le panneau de synchronisation interrogeait encore l'ancien endpoint `/api/ai/status` au démarrage et affichait le message « L'assistant intégré d'ObsiGate a été retiré » en toast d'erreur. La section « statut IA » du panneau sync, son appel de démarrage et ses styles sont retirés ; test de garde `test_aucun_appel_ia_residuel_sync`. **Redéploiement Docker requis.**
---
## [2.95.0] — 2026-11-28
### Ajouté
+3 -3
View File
@@ -4,7 +4,7 @@
**Porte d'entrée web ultra-léger pour vos vaults Obsidian** — Accédez, naviguez et recherchez dans toutes vos notes Obsidian depuis n'importe quel appareil via une interface web moderne et responsive.
[![Version](https://img.shields.io/badge/Version-2.95.0-blue.svg)]()
[![Version](https://img.shields.io/badge/Version-2.95.2-blue.svg)]()
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Docker](https://img.shields.io/badge/Docker-Ready-blue.svg)](https://www.docker.com/)
[![Python](https://img.shields.io/badge/Python-3.11+-green.svg)](https://www.python.org/)
@@ -981,8 +981,8 @@ Ce projet est sous licence **MIT** — voir le fichier [LICENSE](LICENSE) pour l
## 📝 Changelog
Consultez le [CHANGELOG.md](./CHANGELOG.md) pour l'historique complet de toutes les versions (v1.0.0 → v2.95.0).
Consultez le [CHANGELOG.md](./CHANGELOG.md) pour l'historique complet de toutes les versions (v1.0.0 → v2.95.2).
---
*Projet : ObsiGate | Version : 2.95.0 | Dernière mise à jour : Septembre 2026*
*Projet : ObsiGate | Version : 2.95.2 | Dernière mise à jour : Septembre 2026*
+3 -3
View File
@@ -2,7 +2,7 @@
**Ultra-light web gateway for your Obsidian vaults** — Access, browse, and search all your Obsidian notes from any device via a modern, responsive web interface.
[![Version](https://img.shields.io/badge/Version-2.95.0-blue.svg)]()
[![Version](https://img.shields.io/badge/Version-2.95.2-blue.svg)]()
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Docker](https://img.shields.io/badge/Docker-Ready-blue.svg)](https://www.docker.com/)
[![Python](https://img.shields.io/badge/Python-3.11+-green.svg)](https://www.python.org/)
@@ -1156,8 +1156,8 @@ This project is licensed under the **MIT License** - see the [LICENSE](LICENSE)
## 📝 Changelog
See [CHANGELOG.md](./CHANGELOG.md) for the complete version history (v1.0.0 → v2.95.0).
See [CHANGELOG.md](./CHANGELOG.md) for the complete version history (v1.0.0 → v2.95.2).
---
*Project: ObsiGate | Version: 2.95.0 | Last updated: September 2026*
*Project: ObsiGate | Version: 2.95.2 | Last updated: September 2026*
+1 -1
View File
@@ -1 +1 @@
2.95.0
2.95.2
+1 -1
View File
@@ -2626,7 +2626,7 @@ dependencies = [
[[package]]
name = "obsigate-desktop"
version = "2.95.0"
version = "2.95.2"
dependencies = [
"chrono",
"env_logger",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "obsigate-desktop"
version = "2.95.0"
version = "2.95.2"
description = "ObsiGate Desktop — Porte d'entrée native pour vos vaults Obsidian"
authors = ["Bruno Charest"]
edition = "2021"
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/nicedoc/obsigate/main/desktop/tauri.conf.schema.json",
"productName": "ObsiGate",
"version": "2.95.0",
"version": "2.95.2",
"identifier": "com.obsigate.desktop",
"build": {
"frontendDist": "../frontend",
+1 -1
View File
@@ -1,6 +1,6 @@
# ObsiGate — Roadmap
> **Version :** 2.95.0 | **Dernière mise à jour :** 2026-11-28
> **Version :** 2.95.2 | **Dernière mise à jour :** 2026-11-28
> **Ce fichier ne contient que le travail à venir** (🔵 En cours + ⚪ Backlog) et un index compact
> vers les fonctionnalités livrées.
> - **Méthode de livraison à appliquer pour toute tâche : [DELIVERY_WORKFLOW.md](./DELIVERY_WORKFLOW.md)**
+6 -5
View File
@@ -967,10 +967,13 @@ function buildReadingControls() {
document.body.appendChild(exit);
}
/** True when the BooksLM assistant panel is expanded on screen. */
/** True when the Spark panel is expanded on screen. */
function isAssistantOpen() {
const panel = document.querySelector('.bookslm-panel');
return !!(panel && panel.classList.contains('open') && !panel.classList.contains('hidden'));
const panel = document.querySelector('.draco-panneau');
if (!panel) return false;
return typeof panel.checkVisibility === 'function'
? panel.checkVisibility()
: !!panel.offsetParent;
}
/**
@@ -1047,8 +1050,6 @@ export function initMobileEditor() {
// Keep the reading button in sync with the current view: visible only when
// a file is open and the assistant is closed.
updateReadingButtonVisibility();
document.addEventListener('bookslm:opened', updateReadingButtonVisibility);
document.addEventListener('bookslm:closed', updateReadingButtonVisibility);
const readingArea = document.getElementById('content-area');
if (readingArea && typeof MutationObserver !== 'undefined') {
new MutationObserver(updateReadingButtonVisibility).observe(readingArea, {
+2 -3
View File
@@ -67,9 +67,8 @@ function getCMDS() {
{ id:'focus-next', label:'→ Panneau suivant', desc:'Active le panneau suivant (Ctrl+Alt+→)', cat:'Panneaux', act:()=>{close();if(window.PaneManager&&window.PaneManager.isSplit()){const n=(window.PaneManager.activePaneId+1)%window.PaneManager.panes.length;window.PaneManager.setActivePane(n);}} },
{ id:'focus-prev', label:'← Panneau précédent', desc:'Active le panneau précédent (Ctrl+Alt+←)', cat:'Panneaux', act:()=>{close();if(window.PaneManager&&window.PaneManager.isSplit()){const n=(window.PaneManager.activePaneId-1+window.PaneManager.panes.length)%window.PaneManager.panes.length;window.PaneManager.setActivePane(n);}} },
{ id:'reset-panes', label:'🔄 Réinitialiser les panneaux', desc:'Ferme tous les panneaux et revient au mode single-pane', cat:'Panneaux', act:()=>{close();if(window.PaneManager){while(window.PaneManager.isSplit()){window.PaneManager.closePane(window.PaneManager.panes.length-1);}localStorage.removeItem('obsigate-panes');}} },
// AI Assistant commands
{ id:'bookslm-open', label:t('palette.bookslm_open'), desc:t('palette.bookslm_open_desc'), cat:'AI', act:async()=>{close();const m=await import('./bookslm.js');m.default.openForCurrentContext();} },
{ id:'bookslm-new', label:t('palette.bookslm_new'), desc:t('palette.bookslm_new_desc'), cat:'AI', act:async()=>{close();const m=await import('./bookslm.js');m.default.newConversation();m.default.openForCurrentContext();} },
// Assistant Spark (l'assistant intégré et BooksLM ont été retirés, D5)
{ id:'spark-open', label:t('palette.spark_open'), desc:t('palette.spark_open_desc'), cat:'AI', act:async()=>{close();const m=await import('./spark-panneau.js');m.ouvrirSparkOuMessage();} },
];
return _cmdsCache;
}
-152
View File
@@ -286,9 +286,6 @@ function initSyncStatus() {
});
IndexUpdateManager.connect();
// Initialize AI status tracking
_initAIStatus();
}
function toggleSyncPanel() {
@@ -366,159 +363,10 @@ function _renderSyncPanel(panel) {
}
panel.innerHTML = html;
// ── AI Status section ──
_renderAIStatusSection(panel);
}
// ---------------------------------------------------------------------------
// AI Status Indicator (inside sync panel + header badge animation)
// ---------------------------------------------------------------------------
let _aiProcessing = false;
let _aiConfigured = null; // null = unknown, true/false
let _aiAutocomplete = null; // null = unknown, {available, server_ok, model_loaded, model, error}
/** Check if AI is configured by calling the /api/ai/status endpoint.
* Updates _aiConfigured, _aiAutocomplete and refreshes the panel if open. */
async function _checkAIStatus() {
try {
const status = await api('/api/ai/status');
_aiConfigured = status.configured === true;
_aiAutocomplete = status.autocomplete || null;
} catch {
_aiConfigured = false;
_aiAutocomplete = null;
}
_updateAIStatusInPanel();
}
function _renderAIStatusSection(panel) {
const section = document.createElement('div');
section.className = 'sync-panel__ai-section';
section.id = 'sync-panel-ai';
// ---- External provider status ----
let extIcon, extText, extClass;
if (_aiProcessing) {
extIcon = 'loader';
extText = t('sync.processing');
extClass = 'sync-panel__ai--processing';
} else if (_aiConfigured === true) {
extIcon = 'check-circle';
extText = 'Fournisseur externe actif';
extClass = 'sync-panel__ai--active';
} else if (_aiConfigured === false) {
extIcon = 'x-circle';
extText = t('sync.no_provider');
extClass = 'sync-panel__ai--inactive';
} else {
extIcon = 'help-circle';
extText = t('sync.verifying');
extClass = 'sync-panel__ai--unknown';
}
// ---- Autocomplete (Ollama) status ----
let acIcon, acText, acClass;
if (_aiAutocomplete && _aiAutocomplete.available) {
acIcon = 'check-circle';
acText = t('sync.autocomplete_active');
acClass = 'sync-panel__ai--active';
} else if (_aiAutocomplete && _aiAutocomplete.server_ok && !_aiAutocomplete.model_loaded) {
acIcon = 'alert-triangle';
acText = t('sync.model_not_loaded');
acClass = 'sync-panel__ai--inactive';
} else if (_aiAutocomplete && _aiAutocomplete.error) {
acIcon = 'x-circle';
acText = 'Serveur Ollama injoignable';
acClass = 'sync-panel__ai--inactive';
} else if (_aiAutocomplete === null) {
acIcon = 'help-circle';
acText = t('sync.verifying');
acClass = 'sync-panel__ai--unknown';
} else {
acIcon = 'x-circle';
acText = t('sync.not_configured');
acClass = 'sync-panel__ai--inactive';
}
section.innerHTML = '' +
'<div class="sync-panel__ai-title">Intelligence Artificielle</div>' +
'<div class="sync-panel__ai-row">' +
'<span class="sync-panel__ai-label">Fournisseur</span>' +
'<span class="sync-panel__ai-state ' + extClass + '" data-lucide-icon="' + extIcon + '">' +
'<i data-lucide="' + extIcon + '" style="width:14px;height:14px"></i>' +
extText +
'</span>' +
'</div>' +
'<div class="sync-panel__ai-row">' +
'<span class="sync-panel__ai-label">' + t('sync.autocomplete') + '</span>' +
'<span class="sync-panel__ai-state ' + acClass + '" data-lucide-icon="' + acIcon + '">' +
'<i data-lucide="' + acIcon + '" style="width:14px;height:14px"></i>' +
acText +
'</span>' +
'</div>';
panel.appendChild(section);
// Trigger icon refresh via global
if (window._obsigateRefreshIcons) window._obsigateRefreshIcons();
}
/** Update the AI section in the open sync panel. */
function _updateAIStatusInPanel() {
const section = document.getElementById('sync-panel-ai');
if (!section) return;
section.innerHTML = '';
const panel = document.getElementById('sync-panel');
if (panel) {
// Re-render just the AI section
const oldSection = panel.querySelector('.sync-panel__ai-section');
if (oldSection) oldSection.remove();
_renderAIStatusSection(panel);
}
}
/** Flash the sync badge white during AI processing.
* NOTE: now handled via CSS class on #sync-badge.
* The visual flash in the editor itself is handled by ai.js
* which adds a processing indicator inline. */
function _setBadgeAIProcessing(active) {
const badge = document.getElementById('sync-badge');
if (!badge) return;
if (active) {
badge.classList.add('sync-badge--ai-processing');
} else {
badge.classList.remove('sync-badge--ai-processing');
}
}
/** Initialize AI status tracking. */
function _initAIStatus() {
// Check AI status immediately at startup
_checkAIStatus();
// Listen for AI processing events from ai.js
document.addEventListener('ai-processing-start', () => {
_aiProcessing = true;
_setBadgeAIProcessing(true);
_updateAIStatusInPanel();
});
document.addEventListener('ai-processing-end', () => {
_aiProcessing = false;
_setBadgeAIProcessing(false);
_updateAIStatusInPanel();
});
// Re-check AI status when sync panel opens (in case config changed)
const badge = document.getElementById('sync-badge');
if (badge) {
badge.addEventListener('click', () => {
_checkAIStatus();
}, { once: false });
}
}
// ---------------------------------------------------------------------------
// PWA Service Worker Registration
// ---------------------------------------------------------------------------
+2 -4
View File
@@ -2249,10 +2249,8 @@
"mfa.password_mismatch": "The two passwords do not match.",
"mfa.password_changed": "Password updated.",
"mfa.challenge_unavailable": "Verification screen unavailable — please reload the page.",
"palette.bookslm_open": "BooksLM: Open for current directory",
"palette.bookslm_open_desc": "Opens the AI assistant for the current context (open documents or general)",
"palette.bookslm_new": "BooksLM: New conversation",
"palette.bookslm_new_desc": "Resets the AI assistant conversation",
"palette.spark_open": "✦ Spark: open the panel",
"palette.spark_open_desc": "Opens the Spark panel for the current context (open document, directory or general)",
"mfa.webauthn_title": "Security keys (WebAuthn)",
"mfa.webauthn_desc": "Authenticate with a physical key (YubiKey) or your device biometrics (Windows Hello, Touch ID).",
"mfa.webauthn_none": "No registered keys.",
+2 -4
View File
@@ -2249,10 +2249,8 @@
"mfa.password_mismatch": "Les deux mots de passe ne correspondent pas.",
"mfa.password_changed": "Mot de passe mis à jour.",
"mfa.challenge_unavailable": "Écran de vérification indisponible — veuillez recharger la page.",
"palette.bookslm_open": "BooksLM: Ouvrir pour le répertoire courant",
"palette.bookslm_open_desc": "Ouvre l'assistant AI pour le contexte courant (documents ouverts ou général)",
"palette.bookslm_new": "BooksLM: Nouvelle conversation",
"palette.bookslm_new_desc": "Réinitialise la conversation de l'assistant AI",
"palette.spark_open": "✦ Spark : ouvrir le panneau",
"palette.spark_open_desc": "Ouvre le panneau Spark pour le contexte courant (document ouvert, répertoire ou général)",
"mfa.webauthn_title": "Clés de sécurité (WebAuthn)",
"mfa.webauthn_desc": "Authentifiez-vous avec une clé physique (YubiKey) ou la biométrie de votre appareil (Windows Hello, Touch ID).",
"mfa.webauthn_none": "Aucune clé enregistrée.",
-53
View File
@@ -5417,11 +5417,6 @@ body.resizing-v {
}
/* AI processing — white flash on the sync badge */
.sync-badge--ai-processing {
background: #ffffff !important;
box-shadow: 0 0 6px 3px rgba(255, 255, 255, 0.6) !important;
animation: ai-flash 0.6s ease-in-out infinite;
}
@keyframes ai-flash {
0%, 100% { opacity: 1; box-shadow: 0 0 6px 3px rgba(255,255,255,0.6); }
@@ -5430,63 +5425,15 @@ body.resizing-v {
/* ── AI Status section inside sync panel ── */
.sync-panel__ai-section {
border-top: 1px solid var(--border);
padding: 10px 14px;
}
.sync-panel__ai-title {
font-size: 0.78rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 8px;
}
.sync-panel__ai-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 5px;
}
.sync-panel__ai-label {
font-size: 0.72rem;
color: var(--text-muted);
}
.sync-panel__ai-state {
font-size: 0.75rem;
display: flex;
align-items: center;
gap: 5px;
padding: 2px 8px;
border-radius: 4px;
}
.sync-panel__ai-state i {
flex-shrink: 0;
}
.sync-panel__ai--active {
color: #22c55e;
background: rgba(34, 197, 94, 0.1);
}
.sync-panel__ai--inactive {
color: #f59e0b;
background: rgba(245, 158, 11, 0.1);
}
.sync-panel__ai--processing {
color: #ffffff;
background: rgba(59, 130, 246, 0.2);
animation: ai-status-pulse 1s ease-in-out infinite;
}
.sync-panel__ai--unknown {
color: var(--text-muted);
background: var(--bg-tertiary);
}
@keyframes ai-status-pulse {
0%, 100% { opacity: 1; }
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "obsigate",
"version": "2.95.0",
"version": "2.95.2",
"description": "**Porte d'entr\u00e9e web ultra-l\u00e9ger pour vos vaults Obsidian** \u2014 Acc\u00e9dez, naviguez et recherchez dans toutes vos notes Obsidian depuis n'importe quel appareil via une interface web moderne et responsive.",
"main": "patch.js",
"directories": {
+26
View File
@@ -532,3 +532,29 @@ def test_finition_transition_d7_237():
assert doc.exists()
viewer = (FRONTEND / "js" / "viewer.js").read_text(encoding="utf-8")
assert 't("viewer.popout")' in viewer and "forge.popout" not in viewer
def test_aucun_appel_ia_residuel_sync():
"""Correctif 2.95.1 — le panneau de synchronisation ne doit plus
interroger l'ancien statut IA : l'appel à /api/ai/status au
démarrage affichait le message 410 en toast d'erreur (retour
terrain de Bruno, 2026-11-28)."""
sync = (FRONTEND / "js" / "sync.js").read_text(encoding="utf-8")
assert "/api/ai" not in sync
assert "_checkAIStatus" not in sync
assert "_renderAIStatusSection" not in sync
css = (FRONTEND / "style.css").read_text(encoding="utf-8")
assert ".sync-panel__ai" not in css
def test_aucun_residu_bookslm_frontend():
"""Correctif 2.95.2 — la palette importait encore bookslm.js
(module supprimé en D5) : commandes mortes au clic. Aucun module
du frontend ne doit référencer les modules supprimés."""
interdits = ("bookslm.js", "./ai.js", "ai-fab.js", "ai-quick-actions.js")
for fichier in (FRONTEND / "js").glob("*.js"):
contenu = fichier.read_text(encoding="utf-8")
for motif in interdits:
assert motif not in contenu, f"{fichier.name} référence {motif}"
palette = (FRONTEND / "js" / "palette.js").read_text(encoding="utf-8")
assert "spark-open" in palette and "ouvrirSparkOuMessage" in palette