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.

chore(ssh): drop exports nothing imports

parsa22226011e3cd361
diff --git a/src/main/remote-ssh/ssh-agent.ts b/src/main/remote-ssh/ssh-agent.ts
index f7f2638b5..642f7138e 100644
--- a/src/main/remote-ssh/ssh-agent.ts
+++ b/src/main/remote-ssh/ssh-agent.ts
@@ -39,7 +39,7 @@ import path from 'path'
* cannot import a main-process module, so the socket path is published in process.env under this
* name while the agent is up. NOT `SSH_AUTH_SOCK` itself - that would leak into every LOCAL
* terminal the app spawns and quietly repoint the user's own shell at our agent. */
-export const APP_AGENT_ENV = 'NODETERM_APP_AGENT_SOCK'
+const APP_AGENT_ENV = 'NODETERM_APP_AGENT_SOCK'
/** Absolute ssh-agent binary. A GUI Electron app does not inherit the shell PATH (the exact
* reason sshBin()/findSsh() exist), and a bare `spawn('ssh-agent')` miss is only a console.error
@@ -58,7 +58,7 @@ const KEY_LIFETIME = '12h'
* connect dialog tears down its throwaway `ssh-browse-*` master a few hundred ms BEFORE the real
* project connects, and killing the agent in that gap would charge the user a second passphrase
* prompt to add one server. */
-export const IDLE_GRACE_MS = 10_000
+const IDLE_GRACE_MS = 10_000
interface AgentChild {
pid?: number
diff --git a/src/main/remote-ssh/ssh-askpass.ts b/src/main/remote-ssh/ssh-askpass.ts
index 264f55e59..195861d69 100644
--- a/src/main/remote-ssh/ssh-askpass.ts
+++ b/src/main/remote-ssh/ssh-askpass.ts
@@ -101,7 +101,7 @@ export function classifyPrompt(prompt: string): { passphrase: boolean; keyPath?:
* is capped near 104 bytes, which userData eats). OS file permissions are the primary access
* control: the dir is 0700 and the socket is chmod'd 0600 right after bind, so only this user
* can connect at all. The bearer token stays as a second factor. */
-export function askpassSockPath(): string {
+function askpassSockPath(): string {
return path.join(os.homedir(), '.nodeterm', `askpass-${instanceSockId()}.sock`)
}