adds claude-generated commit messages and a recent commits panel to the git view - adds log tailing in the explorer, branch merging and a clean up button
This commit is contained in:
@@ -5,6 +5,8 @@ public enum TerminalKind: String, Sendable, Equatable, CaseIterable {
|
||||
case agent
|
||||
/// The bottom pane: a plain login shell.
|
||||
case shell
|
||||
/// The Explorer's log block: `tail -f` on one file.
|
||||
case tail
|
||||
}
|
||||
|
||||
/// Executable, arguments and environment for one terminal pane.
|
||||
@@ -21,7 +23,7 @@ public struct TerminalLaunch: Sendable, Equatable {
|
||||
self.workingDirectory = workingDirectory
|
||||
}
|
||||
|
||||
/// The launch for a pane. The agent runs as `$SHELL -i -c <command>`: `-i` still sources the rc
|
||||
/// The launch for the agent or shell pane. The agent runs as `$SHELL -i -c <command>`: `-i` still sources the rc
|
||||
/// files (nvm etc.) but leaves no prompt line or echoed command behind.
|
||||
public static func make(kind: TerminalKind, config: HelderConfig, projectRoot: String?, environment base: [String: String]) -> TerminalLaunch {
|
||||
let shell = config.terminal.shell ?? base["SHELL"] ?? "/bin/zsh"
|
||||
@@ -30,6 +32,12 @@ public struct TerminalLaunch: Sendable, Equatable {
|
||||
return TerminalLaunch(executable: shell, arguments: args, environment: environment(from: base), workingDirectory: cwd)
|
||||
}
|
||||
|
||||
/// `tail -f` on a project-relative path, run directly without a shell.
|
||||
public static func tail(path: String, projectRoot: String?, environment base: [String: String]) -> TerminalLaunch {
|
||||
TerminalLaunch(executable: "/usr/bin/tail", arguments: ["-f", path], environment: environment(from: base),
|
||||
workingDirectory: projectRoot ?? base["HOME"] ?? "/")
|
||||
}
|
||||
|
||||
/// The child environment. A GUI launch inherits no locale and no COLORTERM, which turns
|
||||
/// multibyte output into mojibake and shifts the CLI's 24-bit colours; npm's prefix
|
||||
/// variables make nvm refuse to load. `TERM_PROGRAM` tells the agent it runs in Helder.
|
||||
|
||||
Reference in New Issue
Block a user