make GitCommitTool accept git instance

This commit is contained in:
Alex Gleason committed 2025-09-14 17:27:12 -05:00
1 parent 1ab895bd59
commit bc009d444e
5 files changed
+12 -16

No files matched your search

+2 -2
View File
@@ -19,9 +19,9 @@ export class GitCommitTool implements Tool<GitCommitParams> {
message: z.string().describe('Commit message text'),
});
constructor(fs: JSRuntimeFS, cwd: string) {
constructor(fs: JSRuntimeFS, cwd: string, git: Git) {
this.fs = fs;
this.git = new Git(fs);
this.git = git;
this.cwd = cwd;
}