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

Function hasManifest

packages/agent-core/src/plugin/archive.ts:135–139  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

133}
134
135async function hasManifest(dir: string): Promise<boolean> {
136 const rootManifest = path.join(dir, 'kimi.plugin.json');
137 const dirManifest = path.join(dir, '.kimi-plugin', 'plugin.json');
138 return (await isFile(rootManifest)) || (await isFile(dirManifest));
139}
140
141async function isFile(p: string): Promise<boolean> {
142 try {

Callers 1

detectPluginRootFunction · 0.85

Calls 1

isFileFunction · 0.70

Tested by

no test coverage detected