@@ -8,7 +8,6 @@ import type {
88 Workspace ,
99 WorkspaceInfo ,
1010 WorkspaceTerminalInfo ,
11- WorktreeInfo ,
1211} from "../shared/types" ;
1312import type { CloudRegion , OAuthTokenResponse } from "../shared/types/oauth" ;
1413import "electron-log/preload" ;
@@ -237,29 +236,6 @@ contextBridge.exposeInMainWorld("electronAPI", {
237236 errors : Array < { path : string ; error : string } > ;
238237 } > => ipcRenderer . invoke ( "cleanup-orphaned-worktrees" , mainRepoPath ) ,
239238 } ,
240- // Worktree API
241- worktree : {
242- create : ( mainRepoPath : string ) : Promise < WorktreeInfo > =>
243- ipcRenderer . invoke ( "worktree-create" , mainRepoPath ) ,
244- delete : ( mainRepoPath : string , worktreePath : string ) : Promise < void > =>
245- ipcRenderer . invoke ( "worktree-delete" , mainRepoPath , worktreePath ) ,
246- getInfo : (
247- mainRepoPath : string ,
248- worktreePath : string ,
249- ) : Promise < WorktreeInfo | null > =>
250- ipcRenderer . invoke ( "worktree-get-info" , mainRepoPath , worktreePath ) ,
251- exists : ( mainRepoPath : string , name : string ) : Promise < boolean > =>
252- ipcRenderer . invoke ( "worktree-exists" , mainRepoPath , name ) ,
253- list : ( mainRepoPath : string ) : Promise < WorktreeInfo [ ] > =>
254- ipcRenderer . invoke ( "worktree-list" , mainRepoPath ) ,
255- isWorktree : ( mainRepoPath : string , repoPath : string ) : Promise < boolean > =>
256- ipcRenderer . invoke ( "worktree-is-worktree" , mainRepoPath , repoPath ) ,
257- getMainRepoPath : (
258- mainRepoPath : string ,
259- worktreePath : string ,
260- ) : Promise < string | null > =>
261- ipcRenderer . invoke ( "worktree-get-main-repo" , mainRepoPath , worktreePath ) ,
262- } ,
263239 // Workspace API
264240 workspace : {
265241 create : ( options : CreateWorkspaceOptions ) : Promise < WorkspaceInfo > =>
0 commit comments