Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

fix(github): support both runCommand and run_command in render matching

Arvin Xu6770d8f32143
diff --git a/packages/builtin-tools/src/github/index.ts b/packages/builtin-tools/src/github/index.ts
index 30c2d9bb145..86f5cc31dfc 100644
--- a/packages/builtin-tools/src/github/index.ts
+++ b/packages/builtin-tools/src/github/index.ts
@@ -6,13 +6,15 @@ import GithubRunCommandRender from './RunCommandRender';
export const GithubIdentifier = 'github';
export const GithubApiName = {
- runCommand: 'run_command',
+ runCommand: 'runCommand',
} as const;
export const GithubInspectors: Record<string, BuiltinInspector> = {
- [GithubApiName.runCommand]: GithubRunCommandInspector as BuiltinInspector,
+ runCommand: GithubRunCommandInspector as BuiltinInspector,
+ run_command: GithubRunCommandInspector as BuiltinInspector,
};
export const GithubRenders: Record<string, BuiltinRender> = {
- [GithubApiName.runCommand]: GithubRunCommandRender as BuiltinRender,
-};
+ runCommand: GithubRunCommandRender as BuiltinRender,
+ run_command: GithubRunCommandRender as BuiltinRender,
+};
\ No newline at end of file