File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // API baseline helpers hash public SDK exports for contract drift checks.
21import { createHash } from "node:crypto" ;
32import fs from "node:fs/promises" ;
43import path from "node:path" ;
54import { fileURLToPath } from "node:url" ;
5+ // API baseline helpers hash public SDK exports for contract drift checks.
6+ import { truncateUtf16Safe } from "@openclaw/normalization-core/utf16-slice" ;
67import ts from "typescript" ;
78import {
89 pluginSdkDocMetadata ,
@@ -352,7 +353,7 @@ function printNode(
352353 }
353354 const normalizedText = normalizePluginSdkApiDeclarationText ( repoRoot , text ) ;
354355 return normalizedText . length > 1200
355- ? `${ normalizedText . slice ( 0 , 1175 ) . trimEnd ( ) } \n/* truncated; see source */`
356+ ? `${ truncateUtf16Safe ( normalizedText , 1175 ) . trimEnd ( ) } \n/* truncated; see source */`
356357 : normalizedText ;
357358}
358359
You can’t perform that action at this time.
0 commit comments