MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / readStringArrayMetadata

Function readStringArrayMetadata

apps/cli/src/commands/integrations/feishu.ts:6921–6926  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

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

Calls 1

uniqueStringsFunction · 0.70

Tested by

no test coverage detected