InstanceDirectoryManager nach Core verschoben (Vorarbeit #528 Stufe 3)

Reiner Umzug, keine Verhaltensaenderung. Der Instanzmanager braucht die
Verzeichnisstruktur einer Instanz - anlegen, auflisten, Konfiguration lesen
-, aber er darf ClawdDotNet.App nicht referenzieren: Dort haengen sechzehn
Werkzeugprojekte dran (Telegram, Mail, FTP, Rocket.Chat, ...), und der
Manager soll ausdruecklich keines davon kennen. Ein Projektverweis wuerde
sie nicht ausfuehren, aber laden - und die Zusage "keine Werkzeuge im
Manager" waere nur noch eine Absichtserklaerung statt einer Eigenschaft des
Bauplans.

Das Wissen selbst gehoert ohnehin nach Core: Es beschreibt, wie eine Instanz
auf der Platte liegt, und InstanceConfig und AgentConfig liegen dort schon.

Verschoben nach Core/Instances: InstanceDirectoryManager, InstanceInfo,
TokenUsageRecord/TokenUsageFile, AgentListItem/AgentListFile. In
ClawdDotNet.App/Models bleiben JobHistoryEntry und die
Werkzeug-Ansichtsmodelle, die dort richtig liegen.

Build ohne Warnungen, 717 Tests gruen.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Richard
2026-09-08 22:17:46 +02:00
co-authored by Claude Opus 5
parent 373e1f4caf
commit b78e5d844f
10 changed files with 10 additions and 5 deletions
+1
View File
@@ -29,6 +29,7 @@ using ClawdDotNet.Tools.TelegramClient;
using ClawdDotNet.Tools.WebFetch; using ClawdDotNet.Tools.WebFetch;
using ClawdDotNet.Tools.WebMonitor; using ClawdDotNet.Tools.WebMonitor;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using ClawdDotNet.Core.Instances;
namespace ClawdDotNet.App; namespace ClawdDotNet.App;
@@ -1,4 +1,5 @@
using ClawdDotNet.Core.Config; using ClawdDotNet.Core.Config;
using ClawdDotNet.Core.Instances;
namespace ClawdDotNet.App.Services; namespace ClawdDotNet.App.Services;
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace ClawdDotNet.App.Models; namespace ClawdDotNet.Core.Instances;
/// <summary> /// <summary>
/// Eintrag in der AgentList.json – Basisinformationen zu einem Agenten. /// Eintrag in der AgentList.json – Basisinformationen zu einem Agenten.
@@ -2,9 +2,8 @@ using System.Text.Json;
using ClawdDotNet.Core.Config; using ClawdDotNet.Core.Config;
using ClawdDotNet.Core.Security; using ClawdDotNet.Core.Security;
using ClawdDotNet.Core.Storage; using ClawdDotNet.Core.Storage;
using ClawdDotNet.App.Models;
namespace ClawdDotNet.App.Services; namespace ClawdDotNet.Core.Instances;
/// <summary> /// <summary>
/// Verwaltet die gesamte Verzeichnisstruktur für Instanzen und Agenten. /// Verwaltet die gesamte Verzeichnisstruktur für Instanzen und Agenten.
@@ -1,4 +1,4 @@
namespace ClawdDotNet.App.Models; namespace ClawdDotNet.Core.Instances;
/// <summary> /// <summary>
/// Zusammenfassung einer Instanz für die Anzeige im InstanceManager. /// Zusammenfassung einer Instanz für die Anzeige im InstanceManager.
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace ClawdDotNet.App.Models; namespace ClawdDotNet.Core.Instances;
public sealed class TokenUsageRecord public sealed class TokenUsageRecord
{ {
+1
View File
@@ -11,6 +11,7 @@ using ClawdDotNet.Desktop.Services;
using ClawdDotNet.Desktop.ViewModels; using ClawdDotNet.Desktop.ViewModels;
using ClawdDotNet.Desktop.Views; using ClawdDotNet.Desktop.Views;
using ClawdDotNet.Web; using ClawdDotNet.Web;
using ClawdDotNet.Core.Instances;
namespace ClawdDotNet.Desktop; namespace ClawdDotNet.Desktop;
@@ -3,6 +3,7 @@ using ClawdDotNet.App.Models;
using ClawdDotNet.App.Services; using ClawdDotNet.App.Services;
using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Input;
using ClawdDotNet.Core.Instances;
namespace ClawdDotNet.Desktop.ViewModels; namespace ClawdDotNet.Desktop.ViewModels;
@@ -2,6 +2,7 @@ using System.Text.Json;
using ClawdDotNet.App.Services; using ClawdDotNet.App.Services;
using ClawdDotNet.Core.Config; using ClawdDotNet.Core.Config;
using Shouldly; using Shouldly;
using ClawdDotNet.Core.Instances;
namespace ClawdDotNet.App.Tests.Services; namespace ClawdDotNet.App.Tests.Services;
@@ -3,6 +3,7 @@ using ClawdDotNet.App.Settings;
using ClawdDotNet.Core.Config; using ClawdDotNet.Core.Config;
using ClawdDotNet.Core.Tools; using ClawdDotNet.Core.Tools;
using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Logging.Abstractions;
using ClawdDotNet.Core.Instances;
namespace ClawdDotNet.App.Tests.Services; namespace ClawdDotNet.App.Tests.Services;