(dir: string)
| 133 | } |
| 134 | |
| 135 | async 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 | |
| 141 | async function isFile(p: string): Promise<boolean> { |
| 142 | try { |
no test coverage detected