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.

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

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