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

Function commandNameFromFile

packages/agent-core/src/plugin/manifest.ts:383–386  ·  view source on GitHub ↗
(file: string, root: string)

Source from the content-addressed store, hash-verified

381}
382
383function commandNameFromFile(file: string, root: string): string {
384 const relative = path.relative(root, file).replace(/\.md$/i, '');
385 return relative.split(path.sep).join('/');
386}
387
388async function normalizePluginMcpServer(input: {
389 readonly pluginRoot: string;

Callers 2

readCommandsFunction · 0.85
walkMarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected