Forge
csharpdeeb25a2
1namespace CascadeIDE.Services;
2
3/// <summary>Knowledge API (partial IdeCommands).</summary>
4public static partial class IdeCommands
5{
6 /// <summary>Прочитать knowledge-файл. Корень: knowledge_path, knowledge_root_id (group, …) или primary из TOML. args: file_path:string, knowledge_path?:string, knowledge_root_id?:string, offset?:integer, limit?:integer; returns: text; example: {"file_path":"META/integrity-core.md","offset":2,"limit":20}.</summary>
7 public const string ReadKnowledgeFile = "read_knowledge_file";
8 /// <summary>Список knowledge-файлов. args: subdir?:string, knowledge_path?:string, knowledge_root_id?:string; returns: json; example: {"subdir":"work","knowledge_root_id":"group"}.</summary>
9 public const string ListKnowledgeFiles = "list_knowledge_files";
10 /// <summary>Записать knowledge-файл (полная замена). Запись только в primary; read-only roots отклоняются. args: file_path:string, content:string, knowledge_path?:string, knowledge_root_id?:string, save_revision?:boolean; returns: text; example: {"file_path":"META/x.md","content":"# Hi","save_revision":true}.</summary>
11 public const string WriteKnowledgeFile = "write_knowledge_file";
12 /// <summary>Добавить блок в конец knowledge-файла. args: file_path:string, content:string, knowledge_path?:string, knowledge_root_id?:string, save_revision?:boolean; returns: text; example: {"file_path":"META/x.md","content":"more","save_revision":true}.</summary>
13 public const string AppendKnowledgeFile = "append_knowledge_file";
14 /// <summary>Вставить/обновить секцию в knowledge-файле по section_id. args: file_path:string, section_id:string, content:string, knowledge_path?:string, knowledge_root_id?:string, save_revision?:boolean; returns: text; example: {"file_path":"index.md","section_id":"foo","content":"body"}.</summary>
15 public const string UpsertKnowledgeSection = "upsert_knowledge_section";
16 /// <summary>Удалить knowledge-файл. args: file_path:string, knowledge_path?:string, knowledge_root_id?:string; returns: text; example: {"file_path":"tmp.md"}.</summary>
17 public const string DeleteKnowledgeFile = "delete_knowledge_file";
18 /// <summary>Удалить секцию из knowledge-файла. args: file_path:string, section_id:string, knowledge_path?:string, knowledge_root_id?:string; returns: text; example: {"file_path":"index.md","section_id":"foo"}.</summary>
19 public const string DeleteKnowledgeSection = "delete_knowledge_section";
20}
21
View only · write via MCP/CIDE