@@ -3,7 +3,6 @@ import * as path from "path";
33import type { Runtime } from "@/runtime/Runtime" ;
44import { readFileString } from "@/utils/runtime/helpers" ;
55
6-
76/**
87 * Instruction file names to search for, in priority order.
98 * The first file found in a directory is used as the base instruction set.
@@ -105,10 +104,17 @@ async function readFileWithLocalVariant(
105104 * @param directory - Directory to search for instruction files
106105 * @returns Combined instruction content, or null if no base file exists
107106 */
108- export async function readInstructionSet ( directory : string | null | undefined ) : Promise < string | null > {
107+ export async function readInstructionSet (
108+ directory : string | null | undefined
109+ ) : Promise < string | null > {
109110 if ( ! directory ) return null ;
110111 const reader = createLocalFileReader ( ) ;
111- return readFileWithLocalVariant ( reader , path . resolve ( directory ) , INSTRUCTION_FILE_NAMES , LOCAL_INSTRUCTION_FILENAME ) ;
112+ return readFileWithLocalVariant (
113+ reader ,
114+ path . resolve ( directory ) ,
115+ INSTRUCTION_FILE_NAMES ,
116+ LOCAL_INSTRUCTION_FILENAME
117+ ) ;
112118}
113119
114120/**
@@ -124,7 +130,12 @@ export async function readInstructionSetFromRuntime(
124130 directory : string
125131) : Promise < string | null > {
126132 const reader = createRuntimeFileReader ( runtime ) ;
127- return readFileWithLocalVariant ( reader , directory , INSTRUCTION_FILE_NAMES , LOCAL_INSTRUCTION_FILENAME ) ;
133+ return readFileWithLocalVariant (
134+ reader ,
135+ directory ,
136+ INSTRUCTION_FILE_NAMES ,
137+ LOCAL_INSTRUCTION_FILENAME
138+ ) ;
128139}
129140
130141/**
0 commit comments