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

Function readObjectArray

packages/db/src/task-queue.ts:1035–1039  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1033}
1034
1035function readObjectArray(value: unknown): Array<Record<string, unknown>> {
1036 return Array.isArray(value)
1037 ? value.filter((item): item is Record<string, unknown> => Boolean(item) && typeof item === "object" && !Array.isArray(item))
1038 : [];
1039}
1040
1041function readString(value: unknown): string | undefined {
1042 return typeof value === "string" && value.trim() ? value : undefined;

Callers 1

recordArtifactEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected