Luxe 0.1.3: your sessions on your phone, joinable sessions, and nested AGENTS.md
- luxe remote puts the sessions on your computer in reach of your own phone or tablet over Tailscale: write, steer, answer prompts, send photos, browse files, diffs and GitHub, with a paired device and your own Tailscale login. - luxe join lets another program on the same machine join a running session over the RPC protocol. - An AGENTS.md in a subfolder reaches the model the first time it works there. - Long sessions stay fast: no stall before each model call, lighter memory, cheaper drawing. - A session is open in one Luxe at a time, web_search shares results across its phrasings, and a grep glob starting with ! excludes. The CHANGELOG has the full list.
This commit is contained in:
@@ -173,6 +173,25 @@ pub fn list_directory(
|
||||
Ok(DirectoryListing { path: normalized(relative), entries, omitted })
|
||||
}
|
||||
|
||||
/// Whether an ignore file hides `folder`, or any folder on the way down to it from `top`.
|
||||
///
|
||||
/// Asked one level at a time, the way a listing sees it, so a rule in any `.gitignore` along the
|
||||
/// way counts. Anything outside `top` reads as ignored.
|
||||
pub(crate) fn is_ignored(top: &Path, folder: &Path) -> bool {
|
||||
let Ok(relative) = folder.strip_prefix(top) else {
|
||||
return true;
|
||||
};
|
||||
let mut parent = top.to_path_buf();
|
||||
for part in relative.components() {
|
||||
let name = part.as_os_str();
|
||||
if !walk(&parent, true).any(|entry| entry.depth() == 1 && entry.file_name() == name) {
|
||||
return true;
|
||||
}
|
||||
parent.push(part);
|
||||
}
|
||||
false
|
||||
}
|
||||
|
||||
/// One level of `folder`, honoring the ignore files when `ignoring`, never `.git`.
|
||||
fn walk(folder: &Path, ignoring: bool) -> impl Iterator<Item = ignore::DirEntry> {
|
||||
ignore::WalkBuilder::new(folder)
|
||||
|
||||
Reference in New Issue
Block a user