Repository navigation
feat(ai-cu): add opt-in terminal Markdown previews - #10784
Chien Yuan Chang (chienyuanchang) wants to merge 23 commits into
Conversation
Add host-native generation prompts, a model multi-select flow, readable summaries, and regression coverage. Prepare 0.1.1-preview and date the initial release. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Address P2 analysis and analyzer error guidance and privacy-safe schema source locations. Add regressions for explicit empty selectors and full extension help paths. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Retry only validation errors for the prompted infrastructure field. Resolve authoring diagnostics against the selected alias without remapping literal spec findings or changing structured finding output. Add regression coverage and document source-location behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Render Markdown with Glamour and supported HTML tables with azd tables or cards. Preserve raw output by default, protect preview metadata and sensitive URLs, and cover command validation and multilingual rendering. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 26 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Preserve the merged CU provisioning and documentation updates while retaining the opt-in terminal Markdown renderer. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
VSCode Extension Installation Instructions
|
microsoft.azd.extensions PR buildNote This is an unsigned development build. Install it only if you trust this PR. Install the extension: azd ext install "https://azuresdkartifacts.z5.web.core.windows.net/azd/extensions/pr/10784/microsoft-azd-extensions.zip"
|
azure.ai.projects PR buildNote This is an unsigned development build. Install it only if you trust this PR. Install the extension: azd ext install "https://azuresdkartifacts.z5.web.core.windows.net/azd/extensions/pr/10784/azure-ai-projects.zip"
|
azure.ai.toolboxes PR buildNote This is an unsigned development build. Install it only if you trust this PR. Install the extension: azd ext install "https://azuresdkartifacts.z5.web.core.windows.net/azd/extensions/pr/10784/azure-ai-toolboxes.zip"
|
microsoft.azd.concurx PR buildNote This is an unsigned development build. Install it only if you trust this PR. Install the extension: azd ext install "https://azuresdkartifacts.z5.web.core.windows.net/azd/extensions/pr/10784/microsoft-azd-concurx.zip"
|
azure.ai.agents PR buildNote This is an unsigned development build. Install it only if you trust this PR. Install the extension: azd ext install "https://azuresdkartifacts.z5.web.core.windows.net/azd/extensions/pr/10784/azure-ai-agents.zip"
|
azure.ai.skills PR buildNote This is an unsigned development build. Install it only if you trust this PR. Install the extension: azd ext install "https://azuresdkartifacts.z5.web.core.windows.net/azd/extensions/pr/10784/azure-ai-skills.zip"
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
azure.ai.content-understanding PR buildNote This is an unsigned development build. Install it only if you trust this PR. Install the extension: azd ext install "https://azuresdkartifacts.z5.web.core.windows.net/azd/extensions/pr/10784/azure-ai-content-understanding.zip"
|
Keep metadata delimiters, page comments and source line breaks. Align H1 styling with other headings, replace the blanket preview banner with table layout notices, and mark generated card row labels as dim comments. Retain existing URL safety filtering. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Approval is blocked by two active review issues: the new user-facing --pretty option lacks a linked approved experiences spec, and the PR description contradicts the intentionally preserved URL components.
2 open issues
What changed in this PR
Adds opt-in terminal pretty-printing for azd ai cu analyze --pretty while preserving existing Markdown, HTML, JSON, report, and saved-result behavior by default. It also improves version output, provisioning guidance styling, documentation, and release metadata.
Changes:
- Adds Markdown, metadata, HTML table, and wide-table card rendering with terminal-safety filtering and color support.
- Adds validation for incompatible options and multiple-input pretty-printing.
- Updates version output, provisioning prompts, documentation, dependencies, tests, and changelog entries.
- Review follow-ups include moving multiple-input validation before output planning, adding the flag to offline help coverage, providing the experiences-spec reference, and correcting stale URL-redaction claims in the PR description.
| File | Description |
|---|---|
cli/azd/extensions/azure.ai.content-understanding/version.txt |
Bumps the extension preview version. |
cli/azd/extensions/azure.ai.content-understanding/README.md |
Documents default and pretty-printed analysis output. |
cli/azd/extensions/azure.ai.content-understanding/internal/preview/safety.go |
Filters terminal and bidi control characters. |
cli/azd/extensions/azure.ai.content-understanding/internal/preview/render.go |
Implements Markdown, metadata, table, card, and color rendering. |
cli/azd/extensions/azure.ai.content-understanding/internal/preview/render_test.go |
Tests rendering, safety, links, tables, cards, colors, layout, and cancellation. |
cli/azd/extensions/azure.ai.content-understanding/internal/preview/multilingual_test.go |
Tests multilingual table and card behavior. |
cli/azd/extensions/azure.ai.content-understanding/internal/preview/metadata.go |
Detects and preserves generated metadata blocks. |
cli/azd/extensions/azure.ai.content-understanding/internal/preview/metadata_test.go |
Tests metadata boundaries and opaque content. |
cli/azd/extensions/azure.ai.content-understanding/internal/cmd/version.go |
Improves human-readable version output while preserving JSON output. |
cli/azd/extensions/azure.ai.content-understanding/internal/cmd/root_test.go |
Tests version output behavior. |
cli/azd/extensions/azure.ai.content-understanding/internal/cmd/infra.go |
Highlights commands, paths, and identifiers in provisioning guidance. |
cli/azd/extensions/azure.ai.content-understanding/internal/cmd/infra_prompts.go |
Adds styling for prompts and guidance. |
cli/azd/extensions/azure.ai.content-understanding/internal/cmd/infra_prompts_test.go |
Tests prompt, guidance, and no-color behavior. |
cli/azd/extensions/azure.ai.content-understanding/internal/cmd/infra_host.go |
Styles subscription-selection prompts. |
cli/azd/extensions/azure.ai.content-understanding/internal/cmd/diagnostics.go |
Adds guidance text highlighting helpers. |
cli/azd/extensions/azure.ai.content-understanding/internal/cmd/analyze.go |
Registers, validates, and invokes --pretty. |
cli/azd/extensions/azure.ai.content-understanding/internal/cmd/analyze_render_test.go |
Tests pretty-print behavior, conflicts, redirects, reports, and output preservation. |
cli/azd/extensions/azure.ai.content-understanding/go.mod |
Promotes rendering libraries to direct dependencies. |
cli/azd/extensions/azure.ai.content-understanding/extension.yaml |
Updates the manifest version. |
cli/azd/extensions/azure.ai.content-understanding/docs/usage.md |
Documents pretty-print behavior, limitations, and compatibility. |
cli/azd/extensions/azure.ai.content-understanding/docs/provisioning.md |
Documents provisioning guidance and prompt colors. |
cli/azd/extensions/azure.ai.content-understanding/cspell.yaml |
Adds preview-specific spelling overrides. |
cli/azd/extensions/azure.ai.content-understanding/CHANGELOG.md |
Adds release notes for the feature and UX updates. |
This pull request requires changes.
Review effort: Lite
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
An unresolved critical safety issue allows semicolonless encoded control characters to bypass preview filtering, and the new flag still lacks the required approved experiences-spec reference.
3 open issues
1 resolved since last review
Review effort: Lite
| flags.BoolVarP(&options.pretty, "pretty", "p", false, | ||
| "Pretty-print one streamed LLM-input result in the terminal (default: original text)") |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Human assessment is needed because the change contains critical output-mode behavior that can corrupt documented JSON responses on interactive terminals, alongside a documentation inconsistency about supported flag combinations.
Review effort: Lite


Summary
Add opt-in terminal Markdown previews with
azd ai cu analyze --pretty(-p). Default output is Markdown/HTML text; saved results and reports are not pretty-printed.Analyzing <target>...progress only on interactive terminals with default output. Concurrent inputs share a rotating status line. Local targets show file names; URL targets omit credentials, query parameters, and fragments without changing the service request. Progress clears before final output and is never written to result or report files.https://<your-resource>.services.ai.azure.comexample in missing-endpoint guidance.Usage and behavior
--pretty/-pcannot be combined with--output json,--output none,--llm-input=false,--usage,--dry-run,--output-file, or--output-dir. Reports are supported.--pretty=false/-p=falsefor default text output.NO_COLOR. Redirected or piped previews are uncolored and use an 80-column layout; progress is omitted.Validation
prebuilt-layoutanalysis of the SDK sample invoice succeeded. Its three tables used HTML-source fallback; this is not evidence of successful formatted-table/card rendering or native Windows/macOS acceptance.Limitations and remaining review
--prettyand-p; approval is pending.