Files
2026-07-24 21:42:30 +02:00

23 lines
3.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: modul-system
description: Modul-System umgesetzt (Schritte 1-4 vom 2026-07-22); Entwurf im Archiv unter design/; ToDo-Modul noch offen
metadata:
node_type: memory
type: project
originSessionId: 88afe630-4207-4f4b-b4f6-cb8e8f55b445
modified: 2026-07-23T09:35:53.510Z
---
Modul-System (Entwurf: archive/design/2026-07-22_1626-modul-system-fuer-aicentral-entwurf.md), umgesetzt 2026-07-22, Schritte 14 der Migrationsliste:
- Backend-Registry `domain/modules.rs`: MODULES (draft=Kern, commands, archive mit requires_archive), BufferDesc (env/event/file), `active_in` als eine Enablement-Quelle; ProjectConfig-Feld `modules` (nur Abweichungen). mcp.rs: tools/list aus Registry, Guard in tools/call. terminal.rs: Puffer-Init/Env/Watcher als Schleife (bewusst alle Module, Abwahl wirkt nur auf Tools/Tabs); `buffer_read`+`enabled_modules` ersetzen die vier Read-Commands.
- Frontend-Registry `src/modules/` (PanelTab, ModuleCtx, ModuleView); panel-wiring generiert Tabs+Container, HTML-Dateien ohne feste Tab-/Content-Elemente; MCP-Tools archiv-Module bleiben bei fehlendem Home absichtlich gelistet (Home mid-session setzbar, Tools melden selbst).
- `src/tiles.ts`: renderTile + copyAction/deleteAction + flash/panelToast/stripInvisibles (eine Stelle); commands- und search-View rendern darüber.
- Settings-UI: Sektion „Module" aus module_registry generiert (set_module schreibt sofort), Archiv-Pfadzeile dorthin gewandert; i18n-Namespace `modules` (pro Modul Key + `<id>Desc` in de/en nötig).
Alte Hook-Todoliste (OFFENE-PUNKTE.md + SessionStart-Hook) am 2026-07-23 komplett entfernt: domain/todo.rs gelöscht, Commands todo_state/set_todo raus (commands.rs, app.rs, build.rs, main.json), todo-Param aus create_project_full, todo_hook aus DeletePreview und Lösch-Flow, Wizard-/Settings-Checkbox und i18n-Keys raus. Alle Bestandsprojekte migriert (5 Projekte: 08-07, limbach, misc, robotunits, wittgenstein): Hook aus settings.json, OFFENE-PUNKTE.md gelöscht (alle waren leer), modules.todo=true in .ai-control/config.json; claude-ai-control selbst war schon umgestellt.
ToDo-Tab kann seit 2026-07-23 anlegen und bearbeiten: Commands `todos_add`/`todos_update` (terminal.rs, Zeilenform wie call_write_todos via todo_line/replace_todo_line, ID+ts bleiben beim Update; in build.rs-ACL und Capabilities panel/terminal eingetragen), todo-view mit „+ ToDo"-Knopf und in-flow-Formular (Text/Notiz/date-Input, Enter speichert, Esc schließt; Stift-Kachel-Aktion editAction in tiles.ts, vorbefüllt), Fehler als Toast. i18n todos.*-Keys („+ ToDo" in messages.test-Allowlist), Formular mit Abbrechen-Button (2026-07-23). 56 Frontend-/105 Rust-Tests grün; alles zusammen als Commit 1523856 auf lintus (2026-07-23). Offen: App-Verifikation nach neuem Build (installierter rpm ist der Stand von 2026-07-22, ohne Hook-Entfernung und Abbrechen-Button).
Schritt 5 ToDo-Modul umgesetzt (2026-07-22): persistenter Puffer `<projekt>.todos.jsonl` (BufferDesc.persistent — Session-Start legt nur an), Modul opt-in (default_enabled false), MCP write_todos (due als YYYY-MM-DD validiert, stabile IDs)/show_todos, todos_delete-Command, todo-view mit Ampel (overdue/soon≤2d/later) und Locale-Datum, Sortierung due aufsteigend dann neueste; Auto-Open beim Start wenn Modul gewählt und Liste nicht leer (Terminal + abgelöstes Fenster). BufferDesc.suffix speist session_files (Löschvorschau). 106 Backend-/52 Frontend-Tests grün; deb+rpm 0.3.0 gebaut, rpm-Install per deploy-linux.sh braucht sudo (Kachel liegt im Panel). App-Verifikation und Commit stehen aus. Erster Blick in den installierten Build (2026-07-22 abends): laut Marcus „passt noch nix" — Details offen, Fehlersuche am 2026-07-23; Kandidaten aus den Umbauten: generierte Tabs/Container (panel-wiring), CSP-/ACL-Folgen neuer Commands (buffer_read, enabled_modules, module_registry, set_module, todos_delete), Modul „todo" opt-in (Tab fehlt bis zur Wahl in den Settings — kein Fehler).