openclaw/docs/plugins/reference/diffs-language-pack.md
Patrick Erichsen d6d7435f59
feat(plugins): default package installs to ClawHub (#173669)
* feat(plugins): default unprefixed packages to ClawHub

Use the shared source planner for CLI, chat, and assistant installs. Keep explicit npm and local sources, preserve canonical built-in shortcuts, and retain the selected registry in update and repair records.

Autoreview findings addressed:
- [P2] Preserve ClawHub provenance in search hints that match aliases
  Route scoped packages through ClawHub and add @latest to ambiguous unscoped search hints.
- [P2] Preserve usable search hints for scoped names with file suffixes
  Treat file-suffixed package names as registry specs, migrate source-selection tests, and retain npm in retry guidance.
- [P2] Update the remaining source-selection test expectations
  Treat file-suffixed package names as registry specs, migrate source-selection tests, and retain npm in retry guidance.
- [P2] Keep npm prerelease retry hints on npm
  Treat file-suffixed package names as registry specs, migrate source-selection tests, and retain npm in retry guidance.
- [P2] Restrict catalog shortcuts to canonical plugin IDs
  Restrict bare shortcuts to canonical IDs and retain npm in shared hook-pack prerelease guidance.
- [P2] Preserve npm in hook-pack prerelease guidance
  Restrict bare shortcuts to canonical IDs and retain npm in shared hook-pack prerelease guidance.

* docs(plugins): show ClawHub as the default install source

Update setup examples and generated inventory instructions to omit the ClawHub prefix. Document explicit npm selection and canonical plugin-ID shortcuts.

* fix(plugins): keep recovery tied to the selected source

* test(plugins): cover search commands and saved registry choices

* test(plugins): align pre-action recovery with selected sources

* test(plugins): prove source-bound recovery through the CLI

* fix(plugins): retain official identity during config recovery
2026-10-16 22:07:52 +00:00

1.5 KiB

summary read_when title
Adds syntax highlighting for languages outside the default diffs viewer set.
You are installing, configuring, or auditing the diffs-language-pack plugin
Diffs Language Pack plugin reference

Adds syntax highlighting for languages outside the default diffs viewer set.

Distribution

  • Package: @openclaw/diffs-language-pack
  • Install route: npm or ClawHub: @openclaw/diffs-language-pack

Surface

This plugin declares no channels, providers, commands, or contracts.

Added languages

The base diffs plugin already highlights the common languages documented in Diffs. Install this language pack when you want syntax highlighting for a broader set of Shiki-supported languages. If the pack is not installed, those files still render as readable plain text.

Examples include:

  • Astro
  • Vue
  • Svelte
  • MDX
  • GraphQL
  • Terraform/HCL
  • Nix
  • Clojure
  • Elixir
  • Haskell
  • OCaml
  • Scala
  • Zig
  • Solidity
  • Verilog/VHDL
  • Fortran
  • MATLAB
  • LaTeX
  • Mermaid
  • Sass/Less/SCSS
  • Nginx
  • Apache
  • CSV
  • dotenv
  • INI
  • diff files

See Shiki languages for Shiki's upstream language and alias catalog.