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

Function stringField

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

Source from the content-addressed store, hash-verified

450}
451
452function stringField(raw: Record<string, unknown>, key: string): string | undefined {
453 const value = raw[key];
454 if (typeof value !== 'string') return undefined;
455 const trimmed = value.trim();
456 return trimmed.length === 0 ? undefined : trimmed;
457}
458
459function stringArrayField(raw: Record<string, unknown>, key: string): readonly string[] | undefined {
460 const value = raw[key];

Callers 3

parseManifestFunction · 0.70
readAuthorFunction · 0.70
readInterfaceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected