(value: unknown)
| 6919 | } |
| 6920 | |
| 6921 | function readStringArrayMetadata(value: unknown): string[] { |
| 6922 | if (!Array.isArray(value)) { |
| 6923 | return []; |
| 6924 | } |
| 6925 | return uniqueStrings(value.filter(hasNonEmptyString).map((item) => item.trim())); |
| 6926 | } |
| 6927 | |
| 6928 | function buildFeishuCliExternalReference(kind: string, value: string): string { |
| 6929 | return `${kind}:${createHash("sha256").update(`${kind}:${value}`, "utf8").digest("hex").slice(0, 16)}`; |
no test coverage detected