Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
#
# Nothing here needs nightly, and there is deliberately no rust-toolchain.toml,
# so the repo builds with whatever recent stable toolchain you already have.
rust-version = "1.95"

Check warning on line 21 in Cargo.toml

View workflow job for this annotation

GitHub Actions / fmt + clippy + test

unused field `rust-version` in `workspace.package`

Check warning on line 21 in Cargo.toml

View workflow job for this annotation

GitHub Actions / fmt + clippy + test

unused field `rust-version` in `workspace.package`
authors = ["Rajeh Taher <rajeh@reforward.dev>"]
license = "MIT"
license-file = "LICENSE"
repository = "https://github.com/polymorfa/cellar"
homepage = "https://github.com/polymorfa/cellar"
keywords = ["whatsapp", "reverse-engineering", "javascript", "diff", "mcp"]

Check warning on line 27 in Cargo.toml

View workflow job for this annotation

GitHub Actions / fmt + clippy + test

unused field `keywords` in `workspace.package`

Check warning on line 27 in Cargo.toml

View workflow job for this annotation

GitHub Actions / fmt + clippy + test

unused field `keywords` in `workspace.package`
categories = ["development-tools", "command-line-utilities"]

Check warning on line 28 in Cargo.toml

View workflow job for this annotation

GitHub Actions / fmt + clippy + test

unused field `categories` in `workspace.package`

Check warning on line 28 in Cargo.toml

View workflow job for this annotation

GitHub Actions / fmt + clippy + test

unused field `categories` in `workspace.package`

[profile.release]
opt-level = 3
Expand Down Expand Up @@ -53,6 +53,7 @@
oxc_ast_visit = "0.143"
oxc_codegen = "0.143"
oxc_parser = "0.143"
oxc_semantic = "0.143"
oxc_span = "0.143"

cellar-core = { path = "crates/cellar-core", version = "0.1.0" }
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,11 @@ Copyright (c) 2026 Rajeh Taher
Copyright (c) 2026 Polymorfa (Softium LLC)

Licensed under the MIT License. See [LICENSE](LICENSE) for the full text.

## Semantic diffs

Run `cellar diff OLD NEW --semantic` to compare local bindings without treating a rename as a program change. Free names, literals, declaration kinds, async/generator flags, optional access, array-pattern holes and `for` clauses remain significant. Parse diagnostics produce an `unknown` verdict. Semantic classification covers the primary definition and stored variants even when the textual diff exceeds `maxDiffBytes`.

Functions are labelled by the name they are published under (`exports.foo = f` or `module.exports.foo = f`). A function that refers to a binding declared outside it is compared by what that binding is (its export name, the dependency it was bound to, its parameter slot or its literal value), not by its position, so inserting an unrelated declaration earlier in the module does not mark its consumers as changed.

Text, JSON and Markdown reports include the verdict and localized function names. An enclosing function is collapsed into its changed inner functions only when nothing else in its body changed; an enclosing function with its own edit is listed too. Whole function additions and removals retain their outer name. Counts describe this localized report. `--include-noise` also shows modules classified as rename-only.
8 changes: 8 additions & 0 deletions crates/cellar-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
license.workspace = true
license-file.workspace = true
repository.workspace = true
homepage.workspace = true

Check warning on line 10 in crates/cellar-core/Cargo.toml

View workflow job for this annotation

GitHub Actions / fmt + clippy + test

`package.homepage` is redundant with `package.repository`

Check warning on line 10 in crates/cellar-core/Cargo.toml

View workflow job for this annotation

GitHub Actions / fmt + clippy + test

`package.homepage` is redundant with `package.repository`
keywords = ["whatsapp", "reverse-engineering", "javascript", "diff", "archive"]
categories = ["development-tools", "parser-implementations"]

Expand All @@ -15,6 +15,14 @@
doctest = false

[dependencies]
# The shape engine needs a real AST and, more importantly, a symbol table: an
# identifier is only erasable once you know which binding it resolves to.
oxc_allocator = { workspace = true }
oxc_ast = { workspace = true }
oxc_ast_visit = { workspace = true }
oxc_parser = { workspace = true }
oxc_semantic = { workspace = true }
oxc_span = { workspace = true }
anyhow = { version = "1.0", default-features = false, features = ["std"] }
hex = { version = "0.4", default-features = false, features = ["std"] }
rayon = "1.12"
Expand Down
Loading
Loading