- MCP: replace fixed single Unity field with a generic list of servers
({name, url, token?}); dynamic mcp-config + allowlist glob mcp__*<name>*
per entry; new mcp-servers-ui.js editor (no data migration)
- Models: frontend refresh button wired to existing POST /api/models/refresh,
reloads optgroups and restores selection
- Model: add sonnet-5 alias + dropdown option (bare "sonnet" stays 4.6)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
53 lines
2.0 KiB
C#
53 lines
2.0 KiB
C#
namespace Gott.Models;
|
|
|
|
public class SessionRecord
|
|
{
|
|
public long Id { get; set; }
|
|
public string SessionId { get; set; }
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
public string Image { get; set; }
|
|
public string ImageSmall { get; set; } // 256px Thumbnail für Listen
|
|
public string AgentId { get; set; }
|
|
public string Workspace { get; set; }
|
|
public string Context { get; set; }
|
|
public string CustomCommands { get; set; }
|
|
public string UserId { get; set; }
|
|
public bool IsDeleted { get; set; }
|
|
public string TelegramBotId { get; set; }
|
|
public string TelegramChatId { get; set; }
|
|
public double AvatarScale { get; set; } = 1.0;
|
|
public double AvatarOffsetX { get; set; }
|
|
public double AvatarOffsetY { get; set; }
|
|
public string ReviewAgentId { get; set; }
|
|
public int MaxReviewIterations { get; set; } = 3;
|
|
public string FinalizerAgentId { get; set; }
|
|
public string PreparerAgentId { get; set; }
|
|
public string MultiModelMode { get; set; } // "off" / "fusion" / "moa"
|
|
public string PanelAgentIds { get; set; } // CSV der Panel-Agenten (Proposer)
|
|
public int MoaLayers { get; set; } = 2; // MoA: Anzahl Proposer-Runden vor der Synthese (Fusion ignoriert)
|
|
public string UnityMcpUrl { get; set; }
|
|
public string UnityMcpToken { get; set; }
|
|
public string McpServers { get; set; } // JSON-Array benutzerdefinierter MCP-Server [{name,url,token}]
|
|
public string CreatedAt { get; set; }
|
|
public string UpdatedAt { get; set; }
|
|
}
|
|
|
|
public class SessionWithStats
|
|
{
|
|
public SessionRecord Session { get; set; }
|
|
public int MessageCount { get; set; }
|
|
public int ArchiveMessageCount { get; set; }
|
|
public int TotalMessageCount { get; set; }
|
|
public bool TelegramConfigured { get; set; }
|
|
public bool TelegramLinked { get; set; }
|
|
}
|
|
|
|
public class GitStatusSummary
|
|
{
|
|
public int Add { get; set; }
|
|
public int Edit { get; set; }
|
|
public int Delete { get; set; }
|
|
public int Outgoing { get; set; }
|
|
}
|