Skip to main content

Function: getActiveInstructionChain()

function getActiveInstructionChain(
repositoryRoot: string,
currentFilePath: string,
currentSourceText: string,
fallbackFilenames: readonly string[]
): readonly Readonly<{
cumulativeBytes: number;
filePath: string;
}>[];

Defined in: _internal/agents-instructions.ts:94

Build the active Codex project instruction chain through a target file.

Parameters​

ParameterType
repositoryRootstring
currentFilePathstring
currentSourceTextstring
fallbackFilenamesreadonly string[]

Returns​

readonly Readonly<{ cumulativeBytes: number; filePath: string; }>[]