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

Function resolveRgPath

packages/agent-core/src/tools/support/rg-locator.ts:78–86  ·  view source on GitHub ↗
(
  shareDir: string,
  signal?: AbortSignal | undefined,
)

Source from the content-addressed store, hash-verified

76}
77
78async function resolveRgPath(
79 shareDir: string,
80 signal?: AbortSignal | undefined,
81): Promise<RgResolution> {
82 const existing = await findExistingRg(shareDir);
83 if (existing) return existing;
84 signal?.throwIfAborted();
85 return downloadRgWithLock(shareDir);
86}
87
88/**
89 * Pure-lookup variant for test harnesses that want to assert on the

Callers 1

ensureRgPathFunction · 0.85

Calls 3

findExistingRgFunction · 0.85
downloadRgWithLockFunction · 0.85
throwIfAbortedMethod · 0.80

Tested by

no test coverage detected