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

Function readAuthor

packages/agent-core/src/plugin/manifest.ts:430–437  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

428}
429
430function readAuthor(raw: unknown): PluginManifest['author'] {
431 if (typeof raw === 'string') return { name: raw };
432 if (!isObject(raw)) return undefined;
433 const name = stringField(raw, 'name');
434 const email = stringField(raw, 'email');
435 if (name === undefined && email === undefined) return undefined;
436 return { name, email };
437}
438
439function readInterface(raw: unknown): PluginInterface | undefined {
440 if (!isObject(raw)) return undefined;

Callers 1

parseManifestFunction · 0.85

Calls 2

isObjectFunction · 0.70
stringFieldFunction · 0.70

Tested by

no test coverage detected