MCPcopy
hub / github.com/cursor/cookbook / asRecord

Function asRecord

sdk/agent-kanban/src/lib/agents/server.ts:798–800  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

796}
797
798function asRecord(value: unknown): UnknownRecord {
799 return value && typeof value === "object" ? (value as UnknownRecord) : {}
800}
801
802function firstRecord(record: UnknownRecord, keys: string[]): UnknownRecord {
803 for (const key of keys) {

Callers 10

listCloudAgentsFunction · 0.70
downloadArtifactFunction · 0.70
getCurrentUserFunction · 0.70
attachAgentFunction · 0.70
normalizeAgentFunction · 0.70
normalizeRunFunction · 0.70
normalizeArtifactFunction · 0.70
normalizeModelFunction · 0.70
normalizeRepositoryFunction · 0.70
extractArrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected