# CLI 0.0.4-microsoft-preview.10

Opt-in Microsoft-backed evaluation preview. Stable `latest` remains 0.0.3.

## Detailed batch reports with offline Mermaid diagrams

- Each completed batch writes Markdown, JSON, and a self-contained HTML report.
  The terminal prints the Markdown and HTML paths, including when the batch
  stops after a migration failure.
- HTML renders a batch outcome diagram and per-solution stage diagrams locally
  in your browser. The pinned Mermaid renderer is embedded: no CDN, internet
  connection, extension, or extra user installation is required.
- Reports include solution/stage outcomes and timings, source/output and artifact
  links, token counts and count quality, failure remedies, and Azure monthly cost
  estimates calculated during the run. Reused cost reports remain linked.
- Solutions not reached after an early failure are listed as not run. Reused
  results and stages excluded by conversion-only/preflight mode are explicit.
- Model-call time and total elapsed time are separate. Missing token accounting
  is identified rather than silently treated as zero.
- Browser Print / Save as PDF is supported after diagrams render. HTML escapes
  report text, redacts common credential patterns, and blocks network requests.
  Reports may still contain sensitive names, paths, and diagnostic information.
- Reports show run status, not architecture diagrams imported from stage files
  or proof of orchestration business equivalence. Deployed integration and
  business acceptance testing remain separate.

## Actionable failures across stages

- Text-mode failures repeat blocking requirements, affected artifacts/settings
  when known, and next actions at the end of the stage.
- Precheck, discovery, planning, conversion, testing, packaging, cost estimation,
  and deployment use the shared failure summary. Interactive errors use the
  same formatter; worker-thread failures retain structured details.
- Missing stage prerequisites and failed local checks are enumerated. Unverified
  dependency warnings remain warnings, not confirmed missing files. Unknown
  diagnoses stay explicit. JSON mode remains machine-readable.

## Verification and limitations

198 CLI tests, TypeScript compilation, lint, production build, and bundled CLI
smoke tests passed on Windows. Offline Chromium testing rendered actual Mermaid
SVG diagrams from the built CLI's batch report with network resolution blocked.
No customer conversion, paid model calls, or Azure deployments were performed.

This is still a preview, not production migration certification. Preserve prior
outputs and reports. Implementation fingerprints change between previews; use
a fresh generated workspace for evaluation rather than editing fingerprints to
force checkpoint reuse. Clean-machine macOS/ARM64 migration qualification and
customer orchestration equivalence remain outstanding.

## PowerShell update

```powershell
Invoke-WebRequest 'https://tools.lambogenius.com/lambogenius-integration-migration/0.0.4-microsoft-preview.10/install-cli.ps1' -OutFile install-cli-preview10.ps1
# Review the downloaded script and respect your organization's execution policy.
& .\install-cli-preview10.ps1 -SkipDependencies
li.cmd --version
```

Omit `-SkipDependencies` if missing prerequisites should be installed. Use
`li.cmd` because `li` is a built-in PowerShell alias. Updating does not reset
activation, usage counters, or license expiry. Existing running commands retain
their loaded version; finish the current run before upgrading.

After running a batch, open the exact HTML path printed by the CLI:

```powershell
Invoke-Item -LiteralPath '.\reports\migration-batch-<timestamp>.html'
```
