csharpdeeb25a2 | 1 | using CascadeIDE.Contracts; |
| 2 | using CascadeIDE.Features.Chat.Application; |
| 3 | |
| 4 | namespace CascadeIDE.Features.IdeMcp.Application; |
| 5 | |
| 6 | /// <summary>Маршрут <c>send_chat</c>: fast append в ленту vs полная отправка через composer.</summary> |
| 7 | [ComputingUnit] |
| 8 | public static class IntercomMcpSendChatRoute |
| 9 | { |
| 10 | public static bool ShouldAppendPreparedFeedMessage(string? role, string message) => |
| 11 | string.Equals(role, "assistant", StringComparison.OrdinalIgnoreCase) |
| 12 | || IntercomAttachSyntax.HasWireOrBracketSyntax(message); |
| 13 | } |
| 14 | |
View only · write via MCP/CIDE