MCPcopy
hub / github.com/coder/mux / readInstructionSetFromRuntime

Function readInstructionSetFromRuntime

src/node/utils/main/instructionFiles.ts:252–259  ·  view source on GitHub ↗
(
  runtime: Runtime,
  directory: string,
  scope: InstructionScope,
  projectName?: string
)

Source from the content-addressed store, hash-verified

250 * @param projectName - Project name (only for "project" scope)
251 */
252export async function readInstructionSetFromRuntime(
253 runtime: Runtime,
254 directory: string,
255 scope: InstructionScope,
256 projectName?: string
257): Promise<InstructionSet | null> {
258 return readInstructionSetWith(createRuntimeFileReader(runtime), directory, scope, projectName);
259}
260
261/**
262 * Searches for instruction files across multiple directories in priority order.

Calls 2

readInstructionSetWithFunction · 0.85
createRuntimeFileReaderFunction · 0.85

Tested by

no test coverage detected