Skip to content

docs: fix factual inaccuracies surfaced by docs-vs-code validation#478

Merged
nmetulev merged 3 commits into
mainfrom
docs/validation-fixes
Apr 21, 2026
Merged

docs: fix factual inaccuracies surfaced by docs-vs-code validation#478
nmetulev merged 3 commits into
mainfrom
docs/validation-fixes

Conversation

@nmetulev
Copy link
Copy Markdown
Member

Validates docs against the live CLI schema and source code, then fixes the factual inaccuracies that surfaced.

Critical fixes

docs/usage.md

  • update: remove non-existent --config-dir, fix ----setup-sdks typo (only --setup-sdks is real)
  • package --output: default is <name>_<version>_<arch>.msix (with fallbacks), not <name>_<version>.msix
  • create-debug-identity --manifest: default is auto-detect (Package.appxmanifest then appxmanifest.xml), not ./appxmanifest.xml
  • manifest generate --if-exists: described the wrong thing (said "certificate file"; it's the manifest file)

docs/ui-automation.md

  • L10: removed false "no global input injection" claim — ui click does inject mouse input
  • L106-115: removed fictional [N] index disambiguation section — there is no selector parser support for it; replaced with the real "use the slug from search output" guidance
  • screenshot: multi-window output is composited into one PNG, not separate files
  • Clarified foreground-before-capture only applies to --capture-screen / blank-frame retry
  • set-value: value is a positional argument, not --text
  • Added missing wait-for --contains example

docs/npm-usage.md

  • execWithBuildTools return type: Buffer | string (matches buildtools-utils.ts)

docs/guides/rust.md

  • Removed redundant winapp manifest add-alias in step 6 — alias is already added via the same CLI command in step 4

src/winapp-CLI/.../PackageCommand.cs

  • Updated --output help text to match the actual default-name logic in MsixService.cs:388-394
  • Regenerated cli-schema.json, npm command wrappers, and SKILL.md tables (autogen)

Items intentionally not in this PR (per discussion)

  • upgrade command docs — belongs in a different branch
  • Bulk appxmanifest.xmlPackage.appxmanifest refresh across guides — separate change
  • PFN examples missing .debug suffix — was a false positive (winapp run doesn't add .debug; that's only create-debug-identity)

Validation

  • dotnet build clean (0 warnings, 0 errors)
  • All edits cross-checked against Commands/*.cs, Services/*.cs, src/winapp-npm/src/*.ts, and live --cli-schema output

Validates docs against the live CLI schema and source. Fixes:

usage.md
- update: remove non-existent --config-dir, fix ----setup-sdks typo
- package --output: default is <name>_<version>_<arch>.msix (with fallbacks)
- create-debug-identity --manifest: default is auto-detect, not ./appxmanifest.xml
- manifest generate --if-exists: corrected description (manifest, not certificate)

ui-automation.md
- Fix "no global input injection" claim (ui click does inject)
- Remove fictional [N] index disambiguation section (no parser support); replace with slug-based guidance
- Fix screenshot description: multi-window output is composited into one PNG
- Clarify foreground-before-capture only applies to --capture-screen / blank-frame retry
- Document wait-for --contains
- set-value: value is positional, not --text

npm-usage.md
- Fix execWithBuildTools return type: Buffer | string

guides/rust.md
- Remove redundant winapp manifest add-alias (already covered in step 4)

PackageCommand.cs
- Update --output help text to match actual default-name logic in MsixService.cs
- Regenerated cli-schema.json, npm command wrappers, and SKILL.md tables

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 20, 2026 21:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates WinApp documentation and generated artifacts to align with the live CLI schema/source code, correcting previously documented flags and behaviors (especially around packaging defaults and UI automation).

Changes:

  • Corrected docs for CLI options/behavior (update, package --output, manifest auto-detect, UI automation selectors/screenshot/set-value).
  • Updated package --output help text in the CLI and propagated it through regenerated schema/docs/npm wrappers.
  • Removed a redundant step from the Rust guide.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/winapp-npm/src/winapp-commands.ts Regenerated npm command typings/help text to reflect current CLI behavior.
src/winapp-CLI/WinApp.Cli/Commands/PackageCommand.cs Updated --output option help text for the package/pack command.
docs/usage.md Corrected CLI usage docs (removed nonexistent flags, fixed typos, updated defaults/semantics).
docs/ui-automation.md Corrected UI automation behavior (click injection, selector disambiguation guidance, screenshot output, set-value args, wait-for examples).
docs/npm-usage.md Updated npm usage docs to match current manifest expectations and packaging defaults.
docs/guides/rust.md Removed redundant manifest add-alias step.
docs/cli-schema.json Regenerated CLI schema to match updated help text.
.github/plugin/skills/winapp-cli/package/SKILL.md Updated generated skill table for package --output help text.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/usage.md Outdated
Comment thread src/winapp-CLI/WinApp.Cli/Commands/PackageCommand.cs
Comment thread docs/usage.md
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 20, 2026

Build Metrics Report

Binary Sizes

Artifact Baseline Current Delta
CLI (ARM64) 30.66 MB 30.66 MB 📈 +1.0 KB (+0.00%)
CLI (x64) 31.02 MB 31.02 MB 📈 +0.5 KB (+0.00%)
MSIX (ARM64) 12.94 MB 12.93 MB 📉 -0.3 KB (-0.00%)
MSIX (x64) 13.74 MB 13.74 MB 📈 +0.0 KB (+0.00%)
NPM Package 26.89 MB 26.89 MB 📈 +0.2 KB (+0.00%)
NuGet Package 26.98 MB 26.98 MB 📉 -0.6 KB (-0.00%)
VS Code Extension 19.72 MB 19.72 MB 📈 +1.0 KB (+0.00%)

Test Results

773 passed, 1 skipped out of 774 tests in 440.4s (+30.7s vs. baseline)

Test Coverage

21.4% line coverage, 36.4% branch coverage · ✅ +0.5% vs. baseline

CLI Startup Time

42ms median (x64, winapp --version) · ✅ -6ms vs. baseline


Updated 2026-04-21 18:03:36 UTC · commit a6da586 · workflow run

@nmetulev nmetulev merged commit ec02f7c into main Apr 21, 2026
9 checks passed
@nmetulev nmetulev deleted the docs/validation-fixes branch April 21, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants