@@ -63,7 +63,7 @@ export type MemoryConfig = {
6363 enabled : boolean ;
6464} ;
6565
66- // Represents full runtime config, including loaded instructions
66+ // Represents full runtime config, including loaded instructions.
6767export type AppConfig = {
6868 apiKey ?: string ;
6969 model : string ;
@@ -91,7 +91,7 @@ export function discoverProjectDocPath(startDir: string): string | null {
9191 }
9292 }
9393
94- // 2) Fallback: walk up to the Git root and look there
94+ // 2) Fallback: walk up to the Git root and look there.
9595 let dir = cwd ;
9696 // eslint-disable-next-line no-constant-condition
9797 while ( true ) {
@@ -104,13 +104,13 @@ export function discoverProjectDocPath(startDir: string): string | null {
104104 return candidate ;
105105 }
106106 }
107- // If Git root but no doc, stop looking
107+ // If Git root but no doc, stop looking.
108108 return null ;
109109 }
110110
111111 const parent = dirname ( dir ) ;
112112 if ( parent === dir ) {
113- // Reached filesystem root without finding Git
113+ // Reached filesystem root without finding Git.
114114 return null ;
115115 }
116116 dir = parent ;
@@ -157,7 +157,6 @@ export function loadProjectDoc(cwd: string, explicitPath?: string): string {
157157 }
158158}
159159
160- // (Receives params for testing)
161160export type LoadConfigOptions = {
162161 /** Working directory used for project doc discovery */
163162 cwd ?: string ;
@@ -210,7 +209,7 @@ export const loadConfig = (
210209 ? readFileSync ( instructionsFilePathResolved , "utf-8" )
211210 : DEFAULT_INSTRUCTIONS ;
212211
213- // Project doc -----------------------------------------------------------
212+ // Project doc support.
214213 const shouldLoadProjectDoc =
215214 ! options . disableProjectDoc &&
216215 process . env [ "CODEX_DISABLE_PROJECT_DOC" ] !== "1" ;
0 commit comments