Skip to content

Commit

Permalink
Update Cargo.lock and add core files
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen1 committed Jan 15, 2025
1 parent f8341aa commit dc7da47
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,8 @@ pub fn serialize_repo(
});
}

// Sort the final file list by priority desc
files.sort_by(|a, b| b.priority.cmp(&a.priority));
// Sort the final file list by priority asc (higher priority last)
files.sort_by(|a, b| a.priority.cmp(&b.priority));

let mut current_chunk: Vec<(String, String)> = Vec::new();
let mut current_chunk_size = 0;
Expand Down
9 changes: 9 additions & 0 deletions yek.core.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class Yek < Formula
desc "Repository content chunker and serializer for LLM consumption"
homepage "https://github.com/mohsen1/yek"
deprecate! date: "2024-01-13", because: "has been moved to mohsen1/yek/yek"

def install
odie "Please use 'brew install mohsen1/yek/yek' instead"
end
end

0 comments on commit dc7da47

Please sign in to comment.