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 branch/env picker toolbar and create branch flow
Julius Marminge3047974fdc75
diff --git a/packages/contracts/src/git.ts b/packages/contracts/src/git.tsindex aa2f72e67..6f1e4ea90 100644--- a/packages/contracts/src/git.ts+++ b/packages/contracts/src/git.ts@@ -17,6 +17,11 @@ export const gitRemoveWorktreeInputSchema = z.object({path: z.string().min(1),});+export const gitCreateBranchInputSchema = z.object({+ cwd: z.string().min(1),+ branch: z.string().min(1),+});+export const gitInitInputSchema = z.object({cwd: z.string().min(1),});@@ -44,6 +49,7 @@ export type GitWorktree = z.infer<typeof gitWorktreeSchema>;export type GitRemoveWorktreeInput = z.infer<typeof gitRemoveWorktreeInputSchema>;+export type GitCreateBranchInput = z.infer<typeof gitCreateBranchInputSchema>;export type GitInitInput = z.infer<typeof gitInitInputSchema>;export interface GitListBranchesResult {diff --git a/packages/contracts/src/ipc.ts b/packages/contracts/src/ipc.tsindex 45aa5f1d6..d0b843d32 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 {+ GitCreateBranchInput,GitCreateWorktreeInput,GitCreateWorktreeResult,GitInitInput,@@ -74,6 +75,7 @@ export interface NativeApi {listBranches: (input: GitListBranchesInput) => Promise<GitListBranchesResult>;createWorktree: (input: GitCreateWorktreeInput) => Promise<GitCreateWorktreeResult>;removeWorktree: (input: GitRemoveWorktreeInput) => Promise<void>;+ createBranch: (input: GitCreateBranchInput) => Promise<void>;init: (input: GitInitInput) => Promise<void>;};}