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:
@@ -20,6 +20,16 @@ public struct ExecutableLocator: Sendable {
|
||||
return ExecutableLocator(directories: dirs.filter { seen.insert($0).inserted })
|
||||
}
|
||||
|
||||
/// `standard` plus the folders the Claude CLI installs itself into, which a GUI app's PATH never holds.
|
||||
public static var agent: ExecutableLocator {
|
||||
let home = FileManager.default.homeDirectoryForCurrentUser.path
|
||||
var locator = standard
|
||||
for dir in ["\(home)/.local/bin", "\(home)/.claude/local"] where !locator.directories.contains(dir) {
|
||||
locator.directories.append(dir)
|
||||
}
|
||||
return locator
|
||||
}
|
||||
|
||||
/// The first executable file called `name`, or nil. A name with a slash is checked as given.
|
||||
public func locate(_ name: String) -> URL? {
|
||||
let fm = FileManager.default
|
||||
|
||||
Reference in New Issue
Block a user