[9] MCP-Brücke zur offenen App: KI-Zugriff (opt-in, Sitzungsschlüssel), gemeinsame Werkzeugliste, Protokoll und Pause
dossier-cli mcp --app spricht MCP über stdio und lauscht auf 127.0.0.1; die App verbindet sich nur mit „KI-Zugriff erlauben“ als WebSocket-Client (gegenseitige HMAC-Anmeldung). Werkzeuge für Datei und App aus einer Liste (core/aiToolDefs.ts, core/aiTools.ts), run_command über die Kern-Befehle, jede Änderung ein Undo-Schritt „KI: <werkzeug>“, KI-Protokoll mit Pause.
This commit is contained in:
25 files changed
+1594
-119
No files matched your search
@@ -12,6 +12,7 @@
|
||||
//
|
||||
// Bezeichner englisch, Kommentare deutsch (CONVENTIONS.md).
|
||||
|
||||
import type { AiAccessView } from "../ui/AiAccessSection";
|
||||
import { useEffect, useRef } from "react";
|
||||
import { isTauriRuntime } from "./projectFile";
|
||||
import type { LayoutState } from "../panels/types";
|
||||
@@ -28,6 +29,8 @@ export interface SettingsSyncState {
|
||||
referenceElevationMasl: number | undefined;
|
||||
scaleLineWeights: boolean;
|
||||
offline: boolean;
|
||||
/** [9] KI-Zugriff (Schalter, Sitzungsschlüssel, Stand). */
|
||||
aiAccess: AiAccessView;
|
||||
layout: LayoutState;
|
||||
}
|
||||
|
||||
@@ -39,6 +42,7 @@ export interface SettingsCommandHandlers {
|
||||
onReferenceElevationChange: (n: number | undefined) => void;
|
||||
onScaleLineWeightsChange: (on: boolean) => void;
|
||||
onOfflineChange: (offline: boolean) => void;
|
||||
onAiAccessChange: (on: boolean) => void;
|
||||
onApplyLayout: (layout: LayoutState) => void;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user