Repository navigation
chore(deps): bump agcli from 0.17.0 to 0.19.0 - #2846
Merged
Merged
Conversation
Bumps [agcli](https://github.com/matthiasdebernardini/agcli) from 0.17.0 to 0.19.0. - [Release notes](https://github.com/matthiasdebernardini/agcli/releases) - [Changelog](https://github.com/matthiasdebernardini/agcli/blob/master/CHANGELOG.md) - [Commits](matthiasdebernardini/agcli@v0.17.0...v0.19.0) --- updated-dependencies: - dependency-name: agcli dependency-version: 0.19.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Contributor
📊 Benchmark Results
vs base, measured in this run
A difference counts only when it clears the combined spread of the two measurements, per shape (2σ: What do these numbers mean?
|
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
agcli 0.18 redesigned its Rust API and 0.19 tightened the audit:
- ExecutionContext and run_argv_with_context are gone: main calls
`run(args)` (argv is rewritten for config aliases first, so not
`run_env`). `run` installs no panic hook, so a handler panic is caught
as a task panic and still answered with one HANDLER_PANIC envelope,
exit code 1, as 0.17 did.
- Handlers take an owned CommandRequest and return a Send future:
`|req, _ctx| { ..; Box::pin(async move { .. }) }` becomes
`|req| { ..; async move { .. } }`, and parse_request takes
`&CommandRequest` (no lifetime).
- CommandError::new takes the ErrorCode first; a local `command_error`
keeps the message/code/fix order at the call sites.
- ExitCode is a u8 newtype: `exit_code(0)` is `ExitCode::SUCCESS`,
refusal_fix returns ExitCode, and a command status converts with
`try_from`.
- parse_invocation is `Invocation::parse(args, |_| false)` in the tests.
- 0.19's audit refuses a usage that names another command
(USAGE_PATH_MISMATCH): an alias (`c`, `q`, `fmt`, ...) now advertises
its own name, and the unsupported command's usage names itself.
One test passed `--yes` twice; agcli 0.18 makes a repeated flag a
PARSE_ERROR, so the duplicate is dropped.
Wire changes from agcli itself: the `command` field is shell-quoted, a
repeated flag is a PARSE_ERROR, and the value of a flag the usage does
not declare is shown as `<redacted>` in `command` (e.g. the spaced short
report flags such as `-a Assets`); handlers still read the real value.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
robcohen
added a commit
that referenced
this pull request
Nov 4, 2026
…-flag echo after agcli 0.19 (#2859) * fix(ag-rledger): restore the panic envelope, repeated flags and short-flag echo after agcli 0.19 Three regressions from the agcli 0.19 port (#2846): - A handler panic was answered for the wrong command: the fallback parsed argv with `Invocation::parse` after skipping the program name, so the command word became the program (`check f.beancount` gave exit 2 UNKNOWN_COMMAND "Valid commands: f.beancount."). The fallback is now the real command tree (`build_cli_with`) with every handler replaced, so agcli resolves the command, redacts and picks its next actions as in the run that panicked, whatever precedes the command word. The envelope is HANDLER_PANIC, exit 1, with agcli 0.17's fix text. - agcli 0.18 refuses any repeated flag (PARSE_ERROR), but rledger's list flags (--plugin, --native-plugin, --include-rules, --exclude-rules, --investments/-i, --income/-n, --wasm-importer, --wasm-importer-dir, --mapping/-m) take repeats. A repeated one is merged into one comma-joined flag before dispatch (`merge_repeated_value_flags`), which `flag_values` already splits on commas. Short forms merge only for the command that owns them; a flag given once and repeated switches are left as written. - agcli masks the value of an undeclared flag in `command`, and reads `--account/-a <ACCOUNT>` as declaring --account only, so every short value flag echoed `<redacted>`. Short forms are now their own usage tokens, in the report flags and the command usage strings. config -f, read as both --format and --force, is left as it was. Also moves usage_for's doc comment off with_globals. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(ag-rledger): find the command word as agcli does, and declare every flag a handler reads Review of #2859: - The command word was the first non-flag argument after the global value flags, so a value flag before it hid it: `--format json report l returns -i A -i B` merged no short forms and failed as "given twice". It is now the first argument that names a registered command (COMMAND_NAMES, checked against the root tree) or a config alias, as agcli finds it; expand_config_aliases and the merge use that rule. - agcli 0.19 never takes a command's name as a bare flag's value, so `-P x check l.beancount` ran the `x` alias (extract) on `check`. Declaring -P does not change that rule, so a global value flag before the command word is now passed with its value attached (`-P=x`). - Value flags the handlers read but the usage did not declare still echoed `<redacted>`: check --plugin, --include-rules, --exclude-rules, --cache-filename, --lint-min-confidence, --file, --show-summary; extract --wasm-importer, --wasm-importer-dir, --delimiter, --importers-config and its column, format and ledger flags; price --source-meta; add -q. All are declared now, and a unit test fails when a handler reads a flag its command's usage does not declare. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Bumps agcli from 0.17.0 to 0.19.0.
Release notes
Sourced from agcli's releases.
... (truncated)
Changelog
Sourced from agcli's changelog.
... (truncated)
Commits
ad546b2chore: release v0.19.0a322304fix: error text shows <redacted> for a hook-rewritten argument28e93cafix: close the leaks a review found in argv maskingc5ea249feat!: mask secrets in argv before any envelope echoes them8139fa5fix!: a command's name is never a flag's valuecb2c06fchore: release v0.18.0cc9bc81test: pin raw-prefix flag precedence and the compact-select guardsf3e9e1dfix: a nested --select emptied by --compact warns, and a raw command's own fl...f4bb07efix: the framework owns every token before a raw command's name, and three sm...28fb52bdocs: README and CHANGELOG for the review, and the Beautiful Rust passDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)