MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / stringArrayField

Function stringArrayField

packages/agent-core/src/plugin/manifest.ts:459–465  ·  view source on GitHub ↗
(raw: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

457}
458
459function stringArrayField(raw: Record<string, unknown>, key: string): readonly string[] | undefined {
460 const value = raw[key];
461 if (!Array.isArray(value) || !value.every((entry) => typeof entry === 'string')) {
462 return undefined;
463 }
464 return value as readonly string[];
465}
466
467function isObject(value: unknown): value is Record<string, unknown> {
468 return typeof value === 'object' && value !== null && !Array.isArray(value);

Callers 1

parseManifestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected