# @lhx-kit/renderer

## 1.1.0

### Patch Changes

- [`6e27cd2`](https://github.com/juwenzhang/lhx-kit/commit/6e27cd2a3eec2a6b0a9825faab03c46b0c13f3f3) Thanks [@juwenzhang](https://github.com/juwenzhang)! - Type-safety + lint hygiene sweep — no public API changes:
  - Removed every `any` / `as any` from `packages/*` source. Replaced with `unknown` + typed shape (`viteExports` rolldown probe) and `unknown` → restrictive cast (`UserConfig['build']['rollupOptions']`, `Record<string, unknown>`) for Vite 8 surface that isn't in Vite 5/6/7 typings.
  - Cleared all 33 Biome warnings: `noNonNullAssertion` (replaced `!` with explicit narrowing), `noAssignInExpressions` (extracted regex `.exec` into separate statements), `useTemplate` (string concat → template literals), `useOptionalChain`, `useConsistentArrayType`, unused imports/parameters.
  - Switched `.changeset/config.json` from `fixed` to `linked`: package versions stay aligned, but unchanged packages no longer get re-published with empty changelogs every release.

## 1.0.1

### Patch Changes

- [`d123c02`](https://github.com/juwenzhang/lhx-kit/commit/d123c02e6779b4c0d7a648340fe0f554c2dc5ac5) Thanks [@juwenzhang](https://github.com/juwenzhang)! - chore(repo): 2026-05 AI workflow hardening & tri-model PR review upgrade

  This is a repository-level chore release — **no runtime code inside any
  `@lhx-kit/*` package has changed**. Every published package's built
  artifacts are byte-identical to the previous version. The patch bump
  exists purely to keep the `fixed` group in lock-step and to surface the
  following changes in each package's CHANGELOG / npm release notes:

  ### 🤖 AI collaboration pipeline now battle-tested

  After an end-to-end smoke test run, five latent issues were fixed in the
  AI workflows and the full 9-workflow suite is now verified operational:
  - **Tri-model PR review** — `google/gemini-2.5-flash` no longer exists on
    GitHub Models catalog, so `ai-review-gemini.yaml` was replaced by
    `ai-review-llama.yaml` (`meta/llama-3.3-70b-instruct`) and a third
    reviewer `ai-review-deepseek.yaml` (`deepseek/deepseek-v3-0324`) was
    added. The three reviewers have intentionally-non-overlapping prompt
    focuses (correctness / architecture / reasoning-chain) so cross-model
    agreement / disagreement becomes a useful confidence signal.
  - **`@ai-bot` command disambiguation** — `ai-assistant.yaml` now excludes
    `@ai-bot fix …` (which belongs to `ai-code-fix.yaml`), eliminating a
    double-trigger race.
  - **AI commits bypass husky hooks** — `ai-code-fix.yaml`,
    `ai-autofix.yaml`, and `ai-docs-assistant.yaml` all use
    `git commit --no-verify` + `git push --no-verify`. The patch they
    produce has already passed explicit `biome` + `typecheck` self-check
    steps; running husky again on the runner was both redundant and prone
    to tripping commitlint on synthesized commit messages.
  - **Shell-metachar-safe commits** — replaced `execSync(\`git commit -m "…"\`)`with`execFileSync('git', ['commit', '-m', …])`so user-supplied
instructions containing backticks /`$(…)` / `$VAR` cannot break
    the commit step.
  - **Robust docs-draft parser** — `ai-docs-assistant.yaml` previously
    asked the model for a JSON envelope whose `content` field held the
    whole markdown body. JSON escaping was fragile whenever the article
    included nested fenced code. The model now emits a two-part response
    separated by a literal `---8<--- CONTENT BELOW ---8<---` line, so the
    body can contain any character, including triple backticks.

  ### 📘 Documentation
  - Brand-new end-user manual: [`apps/docs/docs/engineering/ai-commands.md`](https://juwenzhang.github.io/lhx-kit/engineering/ai-commands)
    covering all 9 AI workflows with trigger locations, permission model,
    sample interactions, timeouts, and a troubleshooting map.
  - [`ai-review-strategy.md`](https://juwenzhang.github.io/lhx-kit/engineering/ai-review-strategy)
    rewritten for the tri-model topology and now explains why Gemini was
    dropped (catalog change) plus why Claude is not wired in (no free tier
    on GitHub Models).
  - Root `README.md` / `README.zh-CN.md`, the Rspress navbar/sidebar, and
    the CLI reference were all updated to mention the three-reviewer setup
    and the new manual.

  ### 🛡️ Why a patch for _every_ package?

  `@lhx-kit/*` uses a Changesets `fixed` group policy — the 8 packages
  always ship the same version number so users never have to think about
  compatibility between them. Even purely repository-level changes get a
  patch bump on every member so the version and the git history stay
  aligned.

  If you consume only the published tarballs, **there is nothing to do**:
  `pnpm up @lhx-kit/*` or ignore this release entirely.

## 1.0.0

## 0.0.3

## 0.0.2

### Patch Changes

- [`b7ac617`](https://github.com/juwenzhang/lhx-kit/commit/b7ac617ca9324e67179b31be405eaa1b4b8c66d8) Thanks [@juwenzhang](https://github.com/juwenzhang)! - Initial public release scaffolding.

  ## Added
  - **`@lhx-kit/tsconfig`** — Shared TypeScript configuration presets
    (`base` / `library` / `react` / `vue` / `node` / `app-react` / `app-vue`).
    Consumed via Node package resolution, so `extends` works identically
    before and after `npm publish` (no more `TS5083: Cannot read file
'../../tsconfig.base.json'` in published packages).
  - **`@lhx-kit/skills`** — Agent-agnostic AI coding skill pack. 8 bundled
    skills (project overview / add page / configure CDN / mobile
    adaptation / offline packaging / renderer schema / chunk optimisation /
    troubleshooting). Four adapters emit the right format for each agent:
    CodeBuddy, Cursor, Claude Code, or plain Markdown.
  - **`lhx-cli skills`** subcommand (`list` / `add` / `sync`) — install
    skills into the current project.

  ## Changed
  - **`lhx-cli` version reporting** now reads `@lhx-kit/cli/package.json`
    at runtime. A single `"version"` field feeds `--version`, `--help`
    banner, `lhx-cli info` header, AND the `@lhx-kit/*` dep pins written
    into scaffolded projects. One bump, everything in sync.
  - **Templates (`react-mpa` / `vue3-mpa`)** now `extends
"@lhx-kit/tsconfig/app-react.json"` / `app-vue.json`, and
    `@lhx-kit/*` dependency versions use `<%= lhxKitVersionRange %>` (a
    caret-range derived from the active CLI version). Scaffolded projects
    track whatever CLI they were created with.
  - **LICENSE files** added to every publishable package (previously only
    at repo root). Templates now also emit a `LICENSE` so scaffolded
    projects ship MIT out-of-the-box.
