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

Function normalizeSourcePath

packages/agent-core/src/profile/load.ts:107–109  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

105}
106
107function normalizeSourcePath(path: string): string {
108 return normalize(path.replaceAll('\\', '/')).replace(/^\.\//, '');
109}
110
111function isRecord(value: unknown): value is Record<string, unknown> {
112 return typeof value === 'object' && value !== null && !Array.isArray(value);

Callers 2

resolveProfileSourcePathFunction · 0.85
readRequiredSourceFunction · 0.85

Calls 1

normalizeFunction · 0.85

Tested by

no test coverage detected