Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AliyahZombie/OctSSH
/ functions
Functions
202 in github.com/AliyahZombie/OctSSH
⨍
Functions
202
◇
Types & classes
4
↓ 56 callers
Function
getOctsshDir
()
src/state/paths.ts:8
↓ 56 callers
Function
respond
(result: ToolResult)
src/mcp/server.ts:31
↓ 40 callers
Function
respond
(result: ToolResult)
src/mcp/localServer.ts:23
↓ 25 callers
Method
get
(key: K)
src/ssh/connectionPool.ts:39
↓ 24 callers
Function
runCommand
( client: Client, command: string, options: ExecOptions = {} )
src/ssh/runCommand.ts:20
↓ 21 callers
Function
wrapSh
(command: string)
src/ssh/shell.ts:8
↓ 16 callers
Function
call
(client, name, args)
scripts/transfer-remote-smoke.cjs:30
↓ 16 callers
Method
close
(key: K)
src/ssh/connectionPool.ts:67
↓ 15 callers
Function
toolName
(name: string)
src/mcp/server.ts:166
↓ 12 callers
Function
saveSession
(record: SessionRecord, baseDir?: string)
src/state/sessions.ts:105
↓ 11 callers
Function
loadSession
(sessionId: string, baseDir?: string)
src/state/sessions.ts:98
↓ 11 callers
Function
toolName
(name: string)
src/mcp/localServer.ts:95
↓ 10 callers
Function
quoteForSh
(value: string)
src/ssh/shell.ts:1
↓ 9 callers
Function
toHomeAbs
(remotePath: string)
src/mcp/server.ts:62
↓ 8 callers
Function
appendLog
(sessionId: string, line: string, baseDir = getOctsshDir())
src/transfer/manager.ts:28
↓ 7 callers
Function
isoNow
()
src/mcp/server.ts:47
↓ 7 callers
Function
loadConfig
(baseDir?: string)
src/state/config.ts:61
↓ 6 callers
Function
nowIso
()
src/transfer/manager.ts:16
↓ 6 callers
Function
setTransferSession
(update: Partial<SessionRecord> & { session_id: string }, baseDir = getOctsshDir())
src/transfer/manager.ts:36
↓ 5 callers
Function
firstLine
(s: string)
src/init/extended.ts:14
↓ 4 callers
Function
atomicWriteFileSync
(filePath: string, contents: string)
src/state/fs.ts:8
↓ 4 callers
Function
createPending
(record: PendingRecord, baseDir?: string)
src/state/pending.ts:48
↓ 4 callers
Function
deletePending
(code: string, baseDir?: string)
src/state/pending.ts:62
↓ 4 callers
Function
guardExecCommand
(params: { client: Client; machine: string; command: string; allowSudo: boolean; confirm_code?: stri
src/security/policy.ts:202
↓ 4 callers
Function
guardLocalCommand
(params: { machine: string; command: string; allowSudo: boolean; confirm_code?: string; security: Se
src/security/localPolicy.ts:190
↓ 4 callers
Function
loadPending
(code: string, baseDir?: string)
src/state/pending.ts:55
↓ 4 callers
Function
mapLimit
(items, limit, fn)
src/init/initCli.ts:19
↓ 4 callers
Function
readJsonIfExistsSync
(filePath: string)
src/state/fs.ts:17
↓ 4 callers
Function
runStreamableHttpServer
(params: { config: ServeConfig; server?: McpServer; createServer?: () => McpServer; })
src/mcp/httpServe.ts:158
↓ 4 callers
Function
splitShellWords
(input: string)
src/security/shellwords.ts:1
↓ 4 callers
Function
withSftp
(client: Client, fn: (sftp: SftpClient) => Promise<T>)
src/ssh/sftp.ts:14
↓ 3 callers
Function
ask
(rl: readline.Interface, q: string)
src/init/initCli.ts:11
↓ 3 callers
Function
badRequest
(res: http.ServerResponse, message = "Bad Request")
src/mcp/httpServe.ts:80
↓ 3 callers
Function
canSpawn
(exe: string, args: string[])
src/local/shell.ts:21
↓ 3 callers
Function
commonEnvVars
()
src/envManager/protocol.ts:29
↓ 3 callers
Function
connectSsh2
(params: SshClientParams)
src/ssh/connect.ts:42
↓ 3 callers
Function
deleteSessionFile
(sessionId: string, baseDir: string)
src/state/cleanup.ts:38
↓ 3 callers
Function
getDefaultSshConfigPath
()
src/ssh/config/paths.ts:4
↓ 3 callers
Function
getPendingPath
(code: string, baseDir?: string)
src/state/pending.ts:44
↓ 3 callers
Function
isoNow
()
src/init/initCli.ts:15
↓ 3 callers
Function
isoNow
()
src/mcp/localServer.ts:30
↓ 3 callers
Function
isoNow
()
src/local/asyncWrapper.ts:16
↓ 3 callers
Function
parse
(res)
test/http-serve.test.js:130
↓ 3 callers
Function
saveInventory
(inv: Inventory, baseDir?: string)
src/state/inventory.ts:41
↓ 3 callers
Function
sftpStat
(sftp: SftpClient, p: string)
src/ssh/sftp.ts:28
↓ 3 callers
Method
size
()
src/ssh/connectionPool.ts:35
↓ 3 callers
Function
spawnShell
(params: { shell: LocalShellSpec; command: string; shellArgs?: string[]; options?: SpawnOptions; })
src/local/shell.ts:100
↓ 3 callers
Function
toSingleHeaderValue
(v: string | string[] | undefined)
src/mcp/httpServe.ts:118
↓ 3 callers
Function
writeMeta
(metaPath: string, meta: any)
src/local/asyncWrapper.ts:20
↓ 2 callers
Function
cleanup
()
src/ssh/connect.ts:47
↓ 2 callers
Function
collectExtendedInfo
(client: Client)
src/init/extended.ts:18
↓ 2 callers
Function
connectAndClose
()
test/http-serve.test.js:82
↓ 2 callers
Function
connectDirect
(params: Omit<SshClientParams, "sock">)
src/ssh/connect.ts:82
↓ 2 callers
Function
connectWithProxyJump
(params: { jump: Omit<SshClientParams, "sock"> & { host: string; port?: number }; target: Omit<SshClientPa
src/ssh/connect.ts:90
↓ 2 callers
Function
defaultUsername
()
src/ssh/machine.ts:45
↓ 2 callers
Function
discoverHostAliases
(options: HostDiscoveryOptions = {})
src/ssh/config/hosts.ts:39
↓ 2 callers
Function
ensureLocalDir
(dir: string)
src/transfer/download.ts:9
↓ 2 callers
Function
findDownloadConflicts
(plan: DownloadPlan)
src/transfer/download.ts:84
↓ 2 callers
Function
findExpiredSessions
(params: { baseDir: string; retentionDays: number; now?: Date; })
src/state/cleanup.ts:18
↓ 2 callers
Function
findUploadConflicts
(client: Client, plan: UploadPlan)
src/transfer/upload.ts:67
↓ 2 callers
Function
getConfigPath
(baseDir?: string)
src/state/config.ts:56
↓ 2 callers
Function
getDefaultOctsshDir
()
src/state/paths.ts:4
↓ 2 callers
Function
getInventoryPath
(baseDir?: string)
src/state/inventory.ts:29
↓ 2 callers
Function
getSessionPath
(sessionId: string, baseDir?: string)
src/state/sessions.ts:94
↓ 2 callers
Function
getSshConfigPath
()
src/ssh/config/paths.ts:9
↓ 2 callers
Function
getStructured
(toolResult)
test/mcp-client.test.js:10
↓ 2 callers
Function
globToRegExp
(glob: string)
src/ssh/config/resolve.ts:25
↓ 2 callers
Function
grep
(file: string)
src/mcp/server.ts:879
↓ 2 callers
Function
grepFile
(filePath: string)
src/mcp/localServer.ts:500
↓ 2 callers
Function
hasPwsh
()
src/local/shell.ts:30
↓ 2 callers
Function
hasSh
()
src/local/shell.ts:26
↓ 2 callers
Function
hasWindowsPowerShell
()
src/local/shell.ts:34
↓ 2 callers
Function
isDir
(attrs: any)
src/transfer/remoteWalk.ts:12
↓ 2 callers
Function
loadFirstPrivateKey
(identityFiles: string[])
src/ssh/connect.ts:33
↓ 2 callers
Function
loadInventory
(baseDir?: string)
src/state/inventory.ts:34
↓ 2 callers
Function
logServeError
(message: string, err: unknown, meta: Record<string, unknown>)
src/mcp/httpServe.ts:136
↓ 2 callers
Function
matchesAnyRegex
(command: string, patterns: string[])
src/security/policy.ts:75
↓ 2 callers
Function
matchesAnyRegex
(command: string, patterns: string[])
src/security/localPolicy.ts:65
↓ 2 callers
Function
methodNotAllowed
(res: http.ServerResponse, message = "Method Not Allowed")
src/mcp/httpServe.ts:86
↓ 2 callers
Function
performDownload
(client: Client, plan: DownloadPlan)
src/transfer/download.ts:92
↓ 2 callers
Function
performUpload
(client: Client, plan: UploadPlan)
src/transfer/upload.ts:79
↓ 2 callers
Function
planDownload
(client: Client, remotePath: string, localPath: string)
src/transfer/download.ts:36
↓ 2 callers
Function
planMachineConnection
(machine: string)
src/ssh/machine.ts:59
↓ 2 callers
Function
planUpload
(client: Client, localPath: string, remotePath: string)
src/transfer/upload.ts:24
↓ 2 callers
Function
pollTransfer
(client, session_id)
scripts/transfer-remote-smoke.cjs:37
↓ 2 callers
Function
push
()
src/security/shellwords.ts:7
↓ 2 callers
Function
q
(s: string)
src/security/policy.ts:155
↓ 2 callers
Function
resolveHostConfig
(alias: string, options: ResolveOptions = {})
src/ssh/config/resolve.ts:225
↓ 2 callers
Function
resolveRemotePath
(client: Client, p: string)
src/transfer/remotePath.ts:23
↓ 2 callers
Function
resolveStatically
(alias: string, configPath: string)
src/ssh/config/resolve.ts:91
↓ 2 callers
Function
runLauncher
(pty: boolean)
src/ssh/asyncScreen.ts:106
↓ 2 callers
Function
runLocalCommand
(params: { command: string; sudo?: boolean; // Extra argv passed to the shell command after `-lc <comman
src/local/runLocalCommand.ts:23
↓ 2 callers
Function
runProtocol
(args, octsshHome, extraEnv = {})
test/env-manager-protocol.test.js:8
↓ 2 callers
Function
selectLocalShell
()
src/local/shell.ts:38
↓ 2 callers
Function
startAsyncInScreen
( client: Client, params: StartAsyncParams )
src/ssh/asyncScreen.ts:60
↓ 2 callers
Function
startLocalAsync
(params: StartLocalAsyncParams)
src/local/asyncProcess.ts:42
↓ 2 callers
Method
sweep
(now = Date.now())
src/ssh/connectionPool.ts:74
↓ 2 callers
Function
tailLocalFile
(filePath: string, lines: number)
src/mcp/localServer.ts:34
↓ 1 callers
Function
buildEffectiveSecurityConfig
(user: SecurityConfig)
src/security/policy.ts:59
↓ 1 callers
Function
buildEffectiveSecurityConfig
(user: SecurityConfig)
src/security/localPolicy.ts:49
next →
1–100 of 202, ranked by callers