Files
openclaw/extensions/diffs/package.json
Dallin Romney d638611684 feat: split diffs language pack
Split the diffs viewer Shiki language pack into an external publishable plugin.

The diffs plugin keeps the default curated syntax set, while the new @openclaw/diffs-language-pack package carries the extended Shiki languages for npm and ClawHub distribution. The install metadata includes the external ClawHub spec, and the curated C# alias set keeps both c# and cs supported without the language pack.

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-05-27 18:08:40 +01:00

55 lines
1.2 KiB
JSON

{
"name": "@openclaw/diffs",
"version": "2026.5.27",
"description": "OpenClaw diff viewer plugin",
"repository": {
"type": "git",
"url": "https://github.com/openclaw/openclaw"
},
"type": "module",
"scripts": {
"build:viewer": "node scripts/build-viewer.mjs"
},
"dependencies": {
"@pierre/diffs": "1.2.2",
"@pierre/theme": "1.0.3",
"@shikijs/langs": "3.23.0",
"playwright-core": "1.60.0",
"typebox": "1.1.38",
"zod": "4.4.3"
},
"devDependencies": {
"@openclaw/plugin-sdk": "workspace:*"
},
"openclaw": {
"extensions": [
"./index.ts"
],
"install": {
"npmSpec": "@openclaw/diffs",
"localPath": "extensions/diffs",
"defaultChoice": "npm",
"minHostVersion": ">=2026.4.30"
},
"compat": {
"pluginApi": ">=2026.5.27"
},
"assetScripts": {
"build": "pnpm build:viewer"
},
"build": {
"openclawVersion": "2026.5.27",
"staticAssets": [
{
"source": "./assets/viewer-runtime.js",
"output": "assets/viewer-runtime.js"
}
]
},
"release": {
"publishToClawHub": true,
"publishToNpm": true
}
}
}