mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #163] [MERGED] experiment(cli): evaluate clap dynamic completion #219
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#219
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/163
Author: @NickNYU
Created: 8/12/2026
Status: ✅ Merged
Merged: 8/21/2026
Merged by: @LSX-s-Software
Base:
main← Head:experiment/completion-clap-dynamic📝 Commits (4)
d5a06cfDocument the safe first slice of dynamic CLI completiond505294feat(cli): evaluate clap dynamic completione2527f8fix(cli): refine dynamic sandbox completion044f945fix(cli): emit dynamic completion registration script📊 Changes
14 files changed (+188 additions, -34 deletions)
View changed files
📝
Cargo.lock(+21 -3)📝
crates/aenv/Cargo.toml(+1 -1)📝
crates/aenv/src/client/mod.rs(+16 -2)📝
crates/aenv/src/commands/completion.rs(+138 -27)📝
crates/aenv/src/commands/connect.rs(+1 -0)📝
crates/aenv/src/commands/delete.rs(+1 -0)📝
crates/aenv/src/commands/download.rs(+1 -0)📝
crates/aenv/src/commands/exec.rs(+1 -0)📝
crates/aenv/src/commands/pause.rs(+1 -0)📝
crates/aenv/src/commands/resume.rs(+1 -0)📝
crates/aenv/src/commands/snapshot.rs(+1 -0)📝
crates/aenv/src/commands/timeout.rs(+1 -0)📝
crates/aenv/src/commands/upload.rs(+1 -0)📝
crates/aenv/src/main.rs(+3 -1)📄 Description
Summary
This is one of two parallel experiments for #37. It evaluates
clap_completeunstable-dynamicfor dynamic sandbox-ID completion while preserving the existing staticaenv completion bash|zsh|fishcommand.What it adds
CompleteEnvshell adapter for Bash, Zsh, and Fish.Trade-off
This keeps the shell protocol small and shell-portable, but depends on
clap_completeunstable-dynamic and its generated shell adapter contract. The companion PR proposes an AgentENV-ownedaenv __completeprotocol instead. These are alternatives; please review and choose one direction rather than merging both.Verification
cargo fmt --allcargo check -p aenv --bin aenvcargo test -p aenv --bin aenv(56 passed; one pre-existing macOS/varsymlink test failure in download tests)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.