@openclaw/diffs 2026.5.20-beta.1 → 2026.5.20-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1201,8 +1201,13 @@ async function isExecutable(candidate) {
1201
1201
  //#endregion
1202
1202
  //#region extensions/diffs/src/language-hints.ts
1203
1203
  const PASSTHROUGH_LANGUAGE_HINTS = new Set(["ansi", "text"]);
1204
+ function normalizeOptionalString$1(value) {
1205
+ if (typeof value !== "string") return;
1206
+ const trimmed = value.trim();
1207
+ return trimmed ? trimmed : void 0;
1208
+ }
1204
1209
  async function normalizeSupportedLanguageHint(value) {
1205
- const normalized = normalizeOptionalString(value);
1210
+ const normalized = normalizeOptionalString$1(value);
1206
1211
  if (!normalized) return;
1207
1212
  if (PASSTHROUGH_LANGUAGE_HINTS.has(normalized)) return normalized;
1208
1213
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/diffs",
3
- "version": "2026.5.20-beta.1",
3
+ "version": "2026.5.20-beta.2",
4
4
  "description": "OpenClaw diff viewer plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,11 +8,11 @@
8
8
  },
9
9
  "type": "module",
10
10
  "scripts": {
11
- "build:viewer": "bun build src/viewer-client.ts --target browser --format esm --minify --outfile assets/viewer-runtime.js"
11
+ "build:viewer": "bun build src/viewer-client.ts --target browser --format esm --minify --outfile assets/viewer-runtime.js && node -e \"let fs=require('fs'),p='assets/viewer-runtime.js',s=fs.readFileSync(p,'utf8').replace(/[ \\\\t]+$/gm,'');fs.writeFileSync(p,s)\""
12
12
  },
13
13
  "dependencies": {
14
- "@pierre/diffs": "1.1.22",
15
- "@pierre/theme": "0.0.29",
14
+ "@pierre/diffs": "1.2.1",
15
+ "@pierre/theme": "1.0.3",
16
16
  "playwright-core": "1.60.0",
17
17
  "typebox": "1.1.38",
18
18
  "zod": "4.4.3"
@@ -31,10 +31,10 @@
31
31
  "minHostVersion": ">=2026.4.30"
32
32
  },
33
33
  "compat": {
34
- "pluginApi": ">=2026.5.20-beta.1"
34
+ "pluginApi": ">=2026.5.20-beta.2"
35
35
  },
36
36
  "build": {
37
- "openclawVersion": "2026.5.20-beta.1",
37
+ "openclawVersion": "2026.5.20-beta.2",
38
38
  "staticAssets": [
39
39
  {
40
40
  "source": "./assets/viewer-runtime.js",
@@ -57,7 +57,7 @@
57
57
  "skills/**"
58
58
  ],
59
59
  "peerDependencies": {
60
- "openclaw": ">=2026.5.20-beta.1"
60
+ "openclaw": ">=2026.5.20-beta.2"
61
61
  },
62
62
  "peerDependenciesMeta": {
63
63
  "openclaw": {