Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Add git checkout support and clear errors on success
Julius Marminge59448593d8e6
diff --git a/packages/contracts/src/git.ts b/packages/contracts/src/git.tsindex 6f1e4ea90..8d1f22d1d 100644--- a/packages/contracts/src/git.ts+++ b/packages/contracts/src/git.ts@@ -22,6 +22,11 @@ export const gitCreateBranchInputSchema = z.object({branch: z.string().min(1),});+export const gitCheckoutInputSchema = z.object({+ cwd: z.string().min(1),+ branch: z.string().min(1),+});+export const gitInitInputSchema = z.object({cwd: z.string().min(1),});@@ -50,6 +55,7 @@ export type GitRemoveWorktreeInput = z.infer<typeof gitRemoveWorktreeInputSchema>;export type GitCreateBranchInput = z.infer<typeof gitCreateBranchInputSchema>;+export type GitCheckoutInput = z.infer<typeof gitCheckoutInputSchema>;export type GitInitInput = z.infer<typeof gitInitInputSchema>;export interface GitListBranchesResult {diff --git a/packages/contracts/src/ipc.ts b/packages/contracts/src/ipc.tsindex d0b843d32..0070e3100 100644--- a/packages/contracts/src/ipc.ts+++ b/packages/contracts/src/ipc.ts@@ -1,5 +1,6 @@import type { AgentConfig, AgentExit, OutputChunk } from "./agent";import type {+ GitCheckoutInput,GitCreateBranchInput,GitCreateWorktreeInput,GitCreateWorktreeResult,@@ -76,6 +77,7 @@ export interface NativeApi {createWorktree: (input: GitCreateWorktreeInput) => Promise<GitCreateWorktreeResult>;removeWorktree: (input: GitRemoveWorktreeInput) => Promise<void>;createBranch: (input: GitCreateBranchInput) => Promise<void>;+ checkout: (input: GitCheckoutInput) => Promise<void>;init: (input: GitInitInput) => Promise<void>;};}