Repository navigation
fix(cli): align structured output guard with native flags - #777
Conversation
Signed-off-by: RudyCelekli <[email protected]>
|
Reviewed: fix direction is correct — verified against Incur 0.6.1 builtin-flag parsing (no One non-blocking nit: |
Review — APPROVESummaryFixes the CLI structured-output preflight (
Both mismatches previously let requests like Verification
Nit (non-blocking)
|
|
Thanks for checking this against Incur 0.6.1. The equals-form token-window check is deliberately conservative: Incur does not apply those forms, but rejecting an unsupported token-window request before structured output is safe. Unlike the former |
|
Thanks, @rudycelekli, for your work on “fix(cli): align structured output guard with native flags.” I appreciate your contribution to REA. |
Signed-off-by: RudyCelekli <[email protected]>
Problem
REA's output preflight and the installed Incur 0.6.1 builtin flag parser disagree about effective output format. The parser scans builtin flags past
--and only recognizes the spaced--formatform. The preflight stops at the delimiter and accepts an equals-form override.Actual production requests such as
providers -- --json --token-limit 5andproviders --json --format=toon --token-limit 5bypass the structured-output guard and emit truncated, invalid JSON error documents.Change
Align those two preflight decisions with the actual parser. The existing unsupported-output-combination error is emitted as a complete JSON document before dispatch. This does not add new argument grammar or change Incur's delimiter behavior.
Verification
AI-assisted implementation, independently reviewed; signed commit with DCO.