Repository navigation
Conversation
`dla` is easier to type than `aid`: `dl` and one letter. It is a second bin target over aid's own `main.rs`, in the aid crate and in dl's `wheel` build, so the wheel, the conda package and `./dev.sh` (as `dla-next`) all ship it with no list to keep in step. It answers `--version` as aid. Bash completion treats `dla` as `aid`. The wheel checks in CI and publish, `scripts/check_wheel.py` and the conda recipe's tests now expect the third binary. Claude-Session: https://claude.ai/code/session_01PWu3jqjDurxhCRV3ZtmDDL
The wheel, the conda package and dev.sh now ship dla as well, so every "two binaries" and "both binaries" claim about them was false. Claude-Session: https://claude.ai/code/session_01PWu3jqjDurxhCRV3ZtmDDL
Inside the devcontainer the way in is `pixi run aid`, and nothing put a `dla` beside it. `pixi run dla` is the same cargo run over the dla target. Claude-Session: https://claude.ai/code/session_01PWu3jqjDurxhCRV3ZtmDDL
Reviewer's GuideThe PR introduces Sequence diagram for dla command executionsequenceDiagram
participant User
participant DLA as dla binary
participant Main as aid main.rs
participant DL as dl behavior
User->>DLA: invoke command
DLA->>Main: execute shared entry point
Main->>DL: rewrite and invoke dl behavior
DL-->>User: aid-compatible output and exit code
Sequence diagram for dla bash completionsequenceDiagram
participant Shell as Bash
participant Completion as _dl_completion
participant AidRules as aid completion rules
Shell->>Completion: complete dla --<tab>
Completion->>Completion: map dla to aid
Completion->>AidRules: evaluate aid options
AidRules-->>Shell: aid-compatible completions
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
…dl --install An existing install only gets dla completion after it rewrites the script with dl --install, since nothing else writes it. Claude-Session: https://claude.ai/code/session_01PWu3jqjDurxhCRV3ZtmDDL
Merged
blooop
added a commit
that referenced
this pull request
Oct 16, 2026
main made dla a second name for aid (#679), so restore_program maps dla and dla-next the way it maps aid and aid-next.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After this change, a user can type
dlawhere they typedaid.dlais the same program, and it is shorter to type:dland one letter.Evidence
I built the PyPI wheel from
mainand from this branch with maturin 1.14.1, the version that CI pins. Then I ran the CI wheel checks on each wheel, and I installed the branch wheel in a fresh venv.Source:
maturin build --release --lockedinpackaging/wheel, thenpip installof the wheel into a new venv.dla --versionprintsaid, because it is theaidprogram.Cost. The wheel grows from 6.96 MB (
main) to 10.47 MB (this branch).dlais a full second copy of theaidbinary. A bin-wheel and a conda package ship files, and they cannot carry a symlink.What this changes
rust/aid/Cargo.tomlandrust/dl/Cargo.tomldeclare a second[[bin]], nameddla, over the samerust/aid/src/main.rs. Thedlone is behind thewheelfeature, likeaid.cargo install --bins),./dev.sh(asdla-next) andpixi run build-releaseall shipdla. None of them keeps a list of binary names that needed an edit.pyproject.tomladds thepixi run dlatask, for the devcontainer, wherepixi run aidis the documented way in.dl.bashmapsdlatoaidbefore any branch reads the command name, and registerscomplete ... dla. Sodla --<tab>offers the flags ofaid, not the flags ofdl.scripts/check_wheel.py, the wheel steps inci.ymlandpublish.yml, and the conda recipe tests. Each check asserts thatdla --versionisaid <version>.aidsection says thatdlaworks in every place whereaidworks. CHANGELOG has an entry under Unreleased.Where this fits
How I checked it
dla_answers_exactly_as_aid_does(rust/aid/tests/rewrite.rs) runs--versionand--helpthrough both binaries, and compares the exit code and stdout.dlatarget at a stub that printsdla 0. The test failed (left: "dla 0\n",right: "aid 0.59.4\n"), and then passed after the revert.test_dla_completes_exactly_as_aid(test/test_bash_completion.py) comparesdlaandaidcompletion on four lines.dlatoaidmapping indl.bash. The test failed ondla --, wheredlaoffered the flags ofdl. It passed after the revert.pixi run ci: 844 passed, 42 deselected.cd rust && pixi run cargo test --locked --workspace: passed.cargo clippy --locked --all-targets -- -D warningsandcargo fmt --check: clean.prek run --from-ref origin/main --to-ref HEAD: all hooks passed.pixi run dla --versionprintsaid 0.59.4-dev.I did not run the conda build (
rattler-build) or the manylinux wheel build ofpublish.yml. CI runs the wheel job, and the conda recipe adds the same--versioncheck fordla.Merge danger
Door: two-way. A revert removes the
dlabinary and changes nothing else.Blast radius: small. If the change is wrong,
dlais missing or misbehaves, andaidanddldo not change. Each download of the wheel and the conda package is about 3.5 MB larger.Review notes
file ... main.rs found to be present in multiple build targetson each build ofaidanddl. This warning comes from the design. Two other designs fail: adla.rsthat loadsmain.rsas a module breaks thecrate::paths in the submodules, andinclude!refuses the//!docs ofmain.rs. No CI step fails on cargo manifest warnings.cargo test -p aid --bins, which CI runs, runs the unit tests ofmain.rstwo times, once for each binary. The second run takes well under one second.test = falsestops a plaincargo testfrom doing the same.aidmay be deprecated in favour ofdlalater. When that happens, theaidtargets go, and the wheel returns to its old size. A smalldlastub that runsaidwas the other design, and it is not needed.🤖 Generated with Claude Code
Summary by Sourcery
Add
dlaas a shorter alias foraidacross supported builds, tooling, documentation, and validation.New Features:
dlaas a second executable name foraidacross development, wheel, conda, and release installations.dlashell completion and document it as interchangeable withaid.Enhancements:
dlabehaves identically toaidand reports theaidversion.Build:
dla.CI:
dlaexecutable.Documentation:
dlain the README, changelog, and development guidance.Tests:
dlaruntime behavior and bash completion.