Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

refactor(core): move remote-git (pure ssh leaf) into src/core/remote-ssh

enesd75c680bcdf6
diff --git a/src/main/remote-ssh/remote-git.test.ts b/src/core/remote-ssh/remote-git.test.ts
similarity index 100%
rename from src/main/remote-ssh/remote-git.test.ts
rename to src/core/remote-ssh/remote-git.test.ts
diff --git a/src/main/remote-ssh/remote-git.ts b/src/core/remote-ssh/remote-git.ts
similarity index 97%
rename from src/main/remote-ssh/remote-git.ts
rename to src/core/remote-ssh/remote-git.ts
index 9ffdc0be6..0be570470 100644
--- a/src/main/remote-ssh/remote-git.ts
+++ b/src/core/remote-ssh/remote-git.ts
@@ -5,7 +5,7 @@
// git-service.ts and commit-message.ts route the same way without threading a ref through every op.
import { execFile, execFileSync } from 'child_process'
import { promisify } from 'util'
-import { childArgs } from '../../core/remote-ssh/control-master'
+import { childArgs } from './control-master'
import { posixQuote, quoteRemotePath, type SshConnection } from '../../shared/ssh'
const run = promisify(execFile)
diff --git a/src/main/commit-message.ts b/src/main/commit-message.ts
index dcc816042..887fe0d52 100644
--- a/src/main/commit-message.ts
+++ b/src/main/commit-message.ts
@@ -3,7 +3,7 @@ import fs from 'fs'
import os from 'os'
import { promisify } from 'util'
import type { GitResult, Settings } from '../shared/types'
-import { resolveGitRemote, runRemoteGit } from './remote-ssh/remote-git'
+import { resolveGitRemote, runRemoteGit } from '../core/remote-ssh/remote-git'
const run = promisify(execFile)
diff --git a/src/main/git-service.ts b/src/main/git-service.ts
index 9e3284fc4..56527835d 100644
--- a/src/main/git-service.ts
+++ b/src/main/git-service.ts
@@ -9,7 +9,7 @@ import type { GitFileChange, GitResult, GitStatus } from '../shared/types'
import { loadGitHistoryFromExecutor } from '../shared/git-history'
import * as worktreeOps from '../shared/worktree-ops'
import type { GitHistoryOptions, GitHistoryResult } from '../shared/git-history'
-import { resolveGitRemote, runRemoteGit } from './remote-ssh/remote-git'
+import { resolveGitRemote, runRemoteGit } from '../core/remote-ssh/remote-git'
import { sendToMain } from './main-window'
import {
isValidCloneUrl,
diff --git a/src/main/index.ts b/src/main/index.ts
index 824b94d88..9aec2a2e4 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -51,7 +51,7 @@ import { createPairingService } from './pairing-service'
import { initRemoteHost } from './remote/host-service'
import { initRemoteClient } from './remote/client-service'
import { initSshProject } from './remote-ssh/ssh-project'
-import { setGitRemoteResolver, type GitRemoteRef } from './remote-ssh/remote-git'
+import { setGitRemoteResolver, type GitRemoteRef } from '../core/remote-ssh/remote-git'
import { SshFs } from './ssh-fs'
import {
registerMediaScheme,