feat(telemetry): report hermes client usage. (#2703)

This commit is contained in:
yulunz
2026-09-09 10:43:41 +00:00
committed by GitHub
parent 7a46acf9b9
commit fb47e6ca31
3 changed files with 4 additions and 0 deletions
+2
View File
@@ -116,6 +116,8 @@ export class ClearcutLogger {
this.#mcpClient = McpClient.MCP_CLIENT_GROK;
} else if (lowerName.includes('copilot')) {
this.#mcpClient = McpClient.MCP_CLIENT_GITHUB_COPILOT;
} else if (lowerName.includes('hermes-agent')) {
this.#mcpClient = McpClient.MCP_CLIENT_HERMES;
} else {
this.#mcpClient = McpClient.MCP_CLIENT_OTHER;
}
+1
View File
@@ -96,6 +96,7 @@ export enum McpClient {
MCP_CLIENT_OPENCODE = 9,
MCP_CLIENT_CLAUDE_DESKTOP = 10,
MCP_CLIENT_GITHUB_COPILOT = 11,
MCP_CLIENT_HERMES = 12,
MCP_CLIENT_OTHER = 3,
}
+1
View File
@@ -140,6 +140,7 @@ describe('ClearcutLogger', () => {
{name: 'github-copilot-developer', expected: 11}, // MCP_CLIENT_GITHUB_COPILOT
{name: 'copilot-intellij', expected: 11}, // MCP_CLIENT_GITHUB_COPILOT
{name: 'unknown-client', expected: 3}, // MCP_CLIENT_OTHER
{name: 'hermes-agent/1.0.0', expected: 12}, // MCP_CLIENT_HERMES
];
for (const {name, expected} of clients) {