Repository navigation
refactor(cli): unify output contracts for agent-facing commands - #293
Open
XXPermanentXX wants to merge 29 commits into
Open
XXPermanentXX wants to merge 29 commits into
XXPermanentXX wants to merge 29 commits into
Conversation
- support DASHSCOPE_QUIET environment variable - expose result, progress, info, warning and debug via ctx.output - centralize output format, channel and quiet/verbose policies - share error classification and preserve diagnostic context - add output contract tests and maintenance guidance
- Unify error, warning, debug, and polling progress output - Capture update subprocess output and prevent duplicate process listeners - Preserve existing download progress behavior - Emit UPDATE_AVAILABLE warnings in JSON and quiet modes, including cached updates - Add output contract and process lifecycle regression tests
- Route video command results through the unified output API - Preserve complete results in quiet mode and hide process messages in JSON mode - Use the shared output API for concurrent request notices - Preserve existing download progress and failure behavior - Add video output contract regression tests
- Route image generation and editing results through the unified output API - Preserve complete results and task metadata in quiet mode - Localize model notices and hide process information in JSON mode - Preserve text-mode download progress behavior - Add image output contract regression tests
- Route vocabulary command results through the unified output API - Preserve complete JSON responses in quiet mode and existing text layouts - Localize empty-list and undeployed vocabulary notes - Add CLI output regression tests and isolate inherited proxy settings
- Route synthesis results and process messages through the unified output API - Preserve complete results in quiet mode and existing text audio streams - Require file output for JSON streaming and return structured voice lists - Add binary, JSON, progress and CLI regression coverage
- Route speech recognition, memory, quota and security results through the output API - Preserve complete JSON results in quiet mode and existing text layouts - Keep request parameters, file formats, exit codes and deletion confirmation - Add output matrix, CLI boundary and interaction regression coverage
- Route all monitor and log results through the invocation output API - Keep activation progress out of JSON and quiet output - Preserve tables, details, pagination, request order and no-wait behavior - Fix colored hint spacing and add output and activation regression coverage
- Route usage and Token Plan results through the invocation output API - Keep quota cards, seat tables and one-time key results intact under quiet - Return a structured free-tier disable report and retain failure warnings - Add isolated output-contract and quota-view regression coverage
- Route knowledge base, category, file and collection results through the output API - Preserve complete results under quiet and move time-range notes to stderr - Update JSON field parsing in dependent integration tests and command manuals - Add isolated output-contract coverage for queries, mutations and import waits
- Integrate the new command families and current main behavior - Preserve unified output for migrated command paths - Reconcile preparation, workspace identity and asynchronous workflows - Update regression fixtures for the transport and output contracts
- Synchronize 2.7.0 package versions, skill metadata and release documentation
Route this command family through the invocation output contract while preserving business results and request behavior. Validation: isolated combined regression suite; normal repository pre-commit checks.
Route this command family through the invocation output contract while preserving business results and request behavior. Validation: isolated combined regression suite; normal repository pre-commit checks.
Route this command family through the invocation output contract while preserving business results and request behavior. Validation: isolated combined regression suite; normal repository pre-commit checks.
Route this command family through the invocation output contract while preserving business results and request behavior. Validation: isolated combined regression suite; normal repository pre-commit checks.
Route this command family through the invocation output contract while preserving business results and request behavior. Validation: isolated combined regression suite; normal repository pre-commit checks.
Route this command family through the invocation output contract while preserving business results and request behavior. Validation: isolated combined regression suite; normal repository pre-commit checks.
Route this command family through the invocation output contract while preserving business results and request behavior. Validation: isolated combined regression suite; normal repository pre-commit checks.
Route this command family through the invocation output contract while preserving business results and request behavior. Validation: isolated combined regression suite; normal repository pre-commit checks.
Route this command family through the invocation output contract while preserving business results and request behavior. Validation: isolated combined regression suite; normal repository pre-commit checks.
…ract Route this command family through the invocation output contract while preserving business results and request behavior. Validation: isolated combined regression suite; normal repository pre-commit checks.
Preserve main's dynamic Token Plan quota windows and hasQuotaData while retaining invocation-scoped output. Cover multi-window, missing, zero and reset-only quota data across text/JSON, quiet and verbose modes. Validation: 8037 isolated tests passed, 290 gated skips; seven package builds.
- Omit the redundant normalization cause from text errors - Preserve explicit causes, error codes, JSON details and verbose stacks - Remove the obsolete auth debug wiring TODO - Cover bilingual rendering and the actual CLI error boundary
- Reuse invocation sources for welcome and quick-start selection - Preserve parsed flags, Profile selection and credential precedence - Cover single config reads and bilingual help behavior
Preserve the official MCP SDK and AIGC auto routing from main. Route auto results, progress and SDK diagnostics through invocation output. Keep complete JSON results under quiet and preserve native download progress. Update SDK fixtures and cover result, error and session cleanup behavior.
This branch has not been deployed
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.
--output jsoncould still return plain text or shortened results with--quiet, while errors and process diagnostics followed inconsistent formats. This change gives agent-facing commands a shared output contract.Changes
ctx.output.result/progress/info/warning/debugAPIs; runtime renders terminal errors.DASHSCOPE_QUIET=1.blandkscli, including polling, SDK/HTTP diagnostics, and updater subprocess output. Preserve documented native streaming/binary protocols and TTY download progress.UPDATE_AVAILABLEwarnings in JSON/quiet modes. Preserve SDK refresh warnings and full ASR task responses when transcription results are empty.Validation
7309d2a6: 3,681 tests passed across 63 files, covering output matrices, runtime, and Managed Agent interactions.vp check: 0 errors, 2 existing warnings; normal pre-commit checks passed.Missing or inaccessible fixtures and Workspace permission gates remain skipped. The final two fixes were verified offline; live E2E was not repeated for them. Compiled-binary signing remains a validation gap.