MCPcopy Create free account
hub / github.com/cursor/plugins / field

Function field

orchestrate/skills/orchestrate/scripts/cli/task.ts:570–572  ·  view source on GitHub ↗
(obj: unknown, key: string)

Source from the content-addressed store, hash-verified

568}
569
570function field(obj: unknown, key: string): unknown {
571 return isRecord(obj) ? obj[key] : undefined;
572}
573
574function isRecord(value: unknown): value is Record<string, unknown> {
575 return typeof value === "object" && value !== null;

Callers 4

findActiveRootPlannerFunction · 0.85
listItemsFunction · 0.85
latestRunForAgentFunction · 0.85
latestRunFromItemFunction · 0.85

Calls 1

isRecordFunction · 0.85

Tested by

no test coverage detected