Forge
csharpfb8e0499
1namespace AgentNotes.Core;
2
3/// <summary>Effective settings after merging embedded defaults with user TOML (<c>--config</c>).</summary>
4public sealed class LocalSettings
5{
6 public required int SchemaVersion { get; init; }
7
8 /// <summary>Absolute path to primary knowledge repository root (directory containing <c>knowledge/</c>).</summary>
9 public required string PrimaryKnowledgeRoot { get; init; }
10
11 public required IReadOnlyDictionary<string, string> KnowledgeRoots { get; init; }
12
13 public required IReadOnlyList<ReadOnlyKnowledgeRoot> ReadOnlyKnowledgeRoots { get; init; }
14
15 public required WorkspaceSettings Workspace { get; init; }
16
17 public required StatusSettings Status { get; init; }
18}
19
20public sealed class WorkspaceSettings
21{
22 public required string DefaultScope { get; init; }
23
24 /// <summary>Path relative to <c>knowledge/</c> under primary root.</summary>
25 public required string ScopeMapRelative { get; init; }
26
27 public required string ScopeAliasMapRelative { get; init; }
28}
29
30public sealed class ReadOnlyKnowledgeRoot
31{
32 public required string Id { get; init; }
33
34 public required string Path { get; init; }
35}
36
37public sealed class StatusSettings
38{
39 public required bool Enabled { get; init; }
40
41 public required int Port { get; init; }
42
43 public required string Bind { get; init; }
44
45 public string? PreviewWorkspace { get; init; }
46}
47
View only · write via MCP/CIDE